Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: ollydbg on March 10, 2010, 07:20:20 am

Title: [OT updated 2010-10-18] Loaden's MinGW GCC 4.4.5 released!
Post by: ollydbg on March 10, 2010, 07:20:20 am
2010-10-18
Loadens MinGW 4.4.5 released
containing:
Gcc 4.4.5 compiler suite (corss build from linux)
GDB 20101012 cvs snapshot with python support (with python binaries redistributed)
Other packages from the official MinGW.

It can be download from: mingw-static-4.4.5-all.7z (http://qp-gcc.googlecode.com/files/mingw-static-4.4.5-all.7z)

2010-06-04
Upldated: Loadens MinGW 4.4.4-3 released.
More details can be found in
MinGW-QP 4.4.4 static build (fix -finput-charset bug) (http://forums.codeblocks.org/index.php/topic,12670.msg85767/topicseen.html#msg85767)

By the way, the full package
mingw-static-all-4.4.4-3.7z (http://code.google.com/p/qp-gcc/downloads/detail?name=mingw-static-all-4.4.4-3.7z&can=2&q=)
Contains the MinGW gdb 7.1.5 build by ollydbg. see
[OT] ollydbg's unoffcial MinGW GDB 7.1.50-20100521 released (http://forums.codeblocks.org/index.php/topic,11301.0.html)

2010-03-12
After the hard working of 15days, Loaden (http://forums.codeblocks.org/index.php?action=profile;u=6632) has released a MinGW GCC&G++ 4.4.3 version in qp-gcc - Project Hosting on Google Code (http://code.google.com/p/qp-gcc/)

Here is a details about this release.

What's the disadvantages of the offical MinGW 4.4.0
1. gdb can't reach the breakpoints in the header files when debugging under CB due to a bug in GCC.
2. debugging cross models like if you want to debug DLLs, you need to "disable" the "catch C++ exception options" in CB, otherwise your gdb debugger will exit abnormally.
What's the advantages of the offical MinGW 4.4.0
1. A lot of fixes in STL libraries.
2. Better handling of dw-2 exceptions.
3. Better handling of Windows SEH exceptions.

What's the advantage of TDM GCC 4.4.1
1. it fixes the bug when breakpoint can't be reached in header files.
2. catch exceptions functionality can be debugged safely cross models, and you don't need to Disable "catch c++ exception" in CB.
3. support large file handing.
4. added feature:-std=c++0x option, also, fix build error when macro __STRICT_ANSI__ defined.
5. added feature: stack is extended to 32MB
6. all other fixes...

What's the disadvantages of MinGW TDM 4.4.1
1. It doesn't have the official MinGW patches included.
2, the official GCC is now 4.4.3, and TDM MinGW GCC is still 4.4.1.

Also: both the TDM MinGW GCC and the official MinGW is build under cygwin or native Windows.
Loaden's MinGW GCC&G++ release was corss-built from Linux.

What's the advantages of Loaden's MinGW GCC 4.4.3
It integrates all the patches from offcial mingw and TDM GCC 4.4.1. So, we have both the advantages from these previous MinGW releases, and the disadvantages of the Loaden's GCC release were minimized.

What's the advantages of Loaden's MinGW GCC 4.4.3
We have do a lot of testing before our release, these testing include building and debugging wxWidgets2.8.10, Qt4.6.2, Code::Blocks. But we don't guarantee this release is "bug free", so, we welcome the user to report any bugs.

Download packages
You can either download a "full MinGW packages" or only the "GCC&G++ package".
A full version
which includes:
Loaden's GCC&G++ 4.4.3 release
binutils-2.20.1-2
gdb-7.0.50
make-3.81
mingwrt-3.18,
w32api- 3.14,
pthreads2.8,
iconv_1.13.1
can be downloaded from mingw32-4.4.3-4-all.7z (http://qp-gcc.googlecode.com/files/mingw32-4.4.3-4-all.7z)
Manual installation
If you would like to manually install, you can only download the Loaden's GCC&G++ packages here:
gcc_g++-4.4.3-4.7z (http://qp-gcc.googlecode.com/files/gcc_g%2B%2B-4.4.3-4.7z)
Then, you need to download other packages from the MinGw offcial site, these include:
    * binutils (http://sourceforge.net/projects/mingw/files/GNU%20Binutils/binutils-2.20.1/binutils-2.20.1-2-mingw32-bin.tar.gz/download)
    * mingw-runtime (dev (http://sourceforge.net/projects/mingw/files/MinGW%20Runtime/mingwrt-3.18/mingwrt-3.18-mingw32-dev.tar.gz/download)and dll (http://sourceforge.net/projects/mingw/files/MinGW%20Runtime/mingwrt-3.18/mingwrt-3.18-mingw32-dll.tar.gz/download))
    * w32api (http://sourceforge.net/projects/mingw/files/MinGW%20API%20for%20MS-Windows/w32api-3.14/w32api-3.14-mingw32-dev.tar.gz/download)
    * Required runtime libraries (pthreads (http://sourceforge.net/projects/mingw/files/GCC%20Version%204/pthreads-w32-2.8.0-mingw32-dll.tar.gz/download))
    * mingw-gdb (http://sourceforge.net/projects/mingw/files/GNU%20Source-Level%20Debugger/GDB-7.0.50.20100202/gdb-7.0.50.20100202-mingw32-bin.tar.gz/download) for debugger
    * mingw32-make (http://sourceforge.net/projects/mingw/files/MinGW%20make/make-3.81-20090914-mingw32/make-3.81-20090914-mingw32-bin.tar.gz/download) for make

Just extract these package to the same folder.

Development issue


All the patches used in Loaden's MinGW GCC 4.4.3  can be downloaded from: patches_src-4.4.3-4.7z (http://qp-gcc.googlecode.com/files/patches_src-4.4.3-4.7z)

The build instructions can be found in the wikipage Build Steps (http://code.google.com/p/qp-gcc/wiki/Build)
And a Chinese version of the build steps can be found in Cross build of MinGW QP 4.4.3 by Loaden (http://topic.csdn.net/u/20100302/17/3a465a36-defa-46a3-a913-267c86673579.html)
Title: Re: [OT] Loaden's MinGW GCC 4.4.3 released!
Post by: blueshake on March 10, 2010, 07:43:59 am
Quote
The build instructions can be found in the qp-gcc - Project Hosting on Google Code

Seems need a English version for this. :D
Title: Re: [OT] Loaden's MinGW GCC 4.4.3 released!
Post by: MortenMacFly on March 10, 2010, 07:55:27 am
Seems need a English version for this. :D
True. I don't think its going to be accepted otherwise.
Title: Re: [OT] Loaden's MinGW GCC 4.4.3 released!
Post by: ollydbg on March 10, 2010, 08:00:13 am
Seems need a English version for this. :D
True. I don't think its going to be accepted otherwise.
Ok, I will translate the Chinese build docs to English version as soon as possible.
By the way, All the build work was done by Loaden, I just tested the release for several days.
Title: Re: [OT] Loaden's MinGW GCC 4.4.3 released!
Post by: nanyu on March 10, 2010, 08:26:43 am
I like it! thank you! I have a problem.

Do I have to rebuild all libs(such as wx, xerces-c, ...) with the Loaden's gcc?  Those lib have been build by offical ming.

Title: Re: [OT] Loaden's MinGW GCC 4.4.3 released!
Post by: MortenMacFly on March 10, 2010, 08:31:52 am
By the way, All the build work was done by Loaden, I just tested the release for several days.
Some questions that would be nice to know:
- Does it compile wxWidgets?
- Does it compile things like boost?
- Does it compile Code::Blocks?
- Does it allow debugging into wxWidgets apps (like Code::Blocks, wx v2.8.10)?
- Does it allow debugging into wxWidgets versions >= 2.9.x apps?
Title: Re: [OT] Loaden's MinGW GCC 4.4.3 released!
Post by: blueshake on March 10, 2010, 08:35:21 am
Loaden said they are all supported. :D
Title: Re: [OT] Loaden's MinGW GCC 4.4.3 released!
Post by: Loaden on March 10, 2010, 08:40:09 am
I like it! thank you! I have a problem.

Do I have to rebuild all libs(such as wx, xerces-c, ...) with the Loaden's gcc?  Those lib have been build by offical ming.


You only need to recompile your project!
Title: Re: [OT] Loaden's MinGW GCC 4.4.3 released!
Post by: Loaden on March 10, 2010, 08:42:30 am
By the way, All the build work was done by Loaden, I just tested the release for several days.
Some questions that would be nice to know:
- Does it compile wxWidgets?
- Does it compile things like boost?
- Does it compile Code::Blocks?
- Does it allow debugging into wxWidgets apps (like Code::Blocks, wx v2.8.10)?
- Does it allow debugging into wxWidgets versions >= 2.9.x apps?
Yes, ollydbg test it. it's can be debug well.
Title: Re: [OT] Loaden's MinGW GCC 4.4.3 released!
Post by: ollydbg on March 10, 2010, 11:24:45 am
By the way, All the build work was done by Loaden, I just tested the release for several days.
Some questions that would be nice to know:
- Does it compile wxWidgets?
yes
Quote
- Does it compile things like boost?
not tried yet
Quote
- Does it compile Code::Blocks?
yes
Quote
- Does it allow debugging into wxWidgets apps (like Code::Blocks, wx v2.8.10)?
yes, I can debug both exe and dll, cc plugin...
Quote
- Does it allow debugging into wxWidgets versions >= 2.9.x apps?
not tried yet
Title: Re: [OT] Loaden's MinGW GCC 4.4.3 released!
Post by: Loaden on March 10, 2010, 11:28:43 am
I built boost 1.4.2, wx2.9-snapshot in this afternoon, and seems ok. :)
Title: Re: [OT] Loaden's MinGW GCC 4.4.3 released!
Post by: ollydbg on March 10, 2010, 02:42:06 pm
I have translate the Chinese version to English, see below, I'm sorry If I have some errors, please correct me.

Edit 20100312 by ollydbg
Build step instructions were moved to the Build (http://code.google.com/p/qp-gcc/wiki/Build) wikipage.
Title: Re: [OT] Loaden's MinGW GCC 4.4.3 released!
Post by: Loaden on March 11, 2010, 05:04:00 am
Thanks for ollydbg! :D

I build boost 1.4.2:
Code
bjam --build-type=complete threading=multi --libdir=".\lib" --toolset=gcc-4.4.3 stage
and build Qt 4.6.2:
Code
configure -prefix D:\DengYC\LoveDEV\qt -debug-and-release -platform win32-g++ -shared -fast -opensource -no-qt3support -no-zlib -no-openssl -no-webkit -no-style-plastique -no-style-cleanlooks -no-style-motif -no-style-cde -nomake examples -nomake demos -nomake translations
Title: Re: [OT] Loaden's MinGW GCC 4.4.3 released!
Post by: nanyu on March 11, 2010, 06:35:58 am
I like it! thank you! I have a problem.

Do I have to rebuild all libs(such as wx, xerces-c, ...) with the Loaden's gcc?  Those lib have been build by offical ming.


You only need to recompile your project!

That is say : they have the compatible ABI ?
Title: Re: [OT] Loaden's MinGW GCC 4.4.3 released!
Post by: Loaden on March 12, 2010, 07:46:31 am
That is say : they have the compatible ABI ?
Yes, I think so.

2010-03-12 FIX:lost libcomp-1.dll question.
Full package: http://qp-gcc.googlecode.com/files/mingw32-4.4.3-4-all.7z (http://qp-gcc.googlecode.com/files/mingw32-4.4.3-4-all.7z)
Only Compiler: http://qp-gcc.googlecode.com/files/gcc_g%2B%2B-4.4.3-4.7z (http://qp-gcc.googlecode.com/files/gcc_g%2B%2B-4.4.3-4.7z)
Title: Re: [OT updated 2010 03 12] Loaden's MinGW GCC 4.4.3 released!
Post by: ollydbg on March 12, 2010, 03:38:27 pm
@Loaden
I have create a wiki page:
Build (http://code.google.com/p/qp-gcc/wiki/Build), so you can change it too.
Also, I have update my original post to the release 4.4.3-4 version.
Title: Re: [OT updated 2010 03 12] Loaden's MinGW GCC 4.4.3 released!
Post by: nenin on March 18, 2010, 07:58:44 pm
This issue-
http://forums.codeblocks.org/index.php/topic,11055.msg77947.html#msg77947
 occurs on Loaden's MinGW also.
Title: Re: [OT updated 2010 03 12] Loaden's MinGW GCC 4.4.3 released!
Post by: reckless on March 19, 2010, 01:30:20 am
hmm i wonder if my build experiences same issue ?

anyone had time to put it to the test yet ?
Title: Re: [OT updated 2010 03 12] Loaden's MinGW GCC 4.4.3 released!
Post by: thynson on April 28, 2010, 11:30:51 am
Hi, all
Do you know about MinGW-W64 project(http://www.sourceforge.net/projects/mingw-w64)? This project provides 32-bit/64-bit runtime library and also native/cross 32-bit/64-bit compiler.
Though it's not very urgent to port Codeblocks itself to 64-bit. But users may need to use Codeblocks to build 64-bit application. So I think, in the comming release, we could provide both MinGW and MinGW-W64 compiler.
I have successfully built the compiler from GCC 4.4.3/GCC 4.5.0 and MinGW-W64-CRT source(both 32-bit and 64bit), and also wxWidgets.
The Advantages:
1. 32-bit/64-bit support :D
2. Fully UNICODE support. that is with --municode link flag, the entry point will be wmain/wWinMain other than main/WinMain, just like MSVC.
3. TLS(Thread local storage) support. MinGW's runtime doesn't support this.
Throw this project is currently in beta now, but it's already very stable now. Downloadable binary is in its project page, the Win32/Win64 personal-build by sezero is recommanded.
Title: Re: [OT updated 2010 03 12] Loaden's MinGW GCC 4.4.3 released!
Post by: Loaden on May 02, 2010, 10:08:37 am
Hi, all
Do you know about MinGW-W64 project(http://www.sourceforge.net/projects/mingw-w64)? This project provides 32-bit/64-bit runtime library and also native/cross 32-bit/64-bit compiler.
Though it's not very urgent to port Codeblocks itself to 64-bit. But users may need to use Codeblocks to build 64-bit application. So I think, in the comming release, we could provide both MinGW and MinGW-W64 compiler.
I have successfully built the compiler from GCC 4.4.3/GCC 4.5.0 and MinGW-W64-CRT source(both 32-bit and 64bit), and also wxWidgets.
The Advantages:
1. 32-bit/64-bit support :D
2. Fully UNICODE support. that is with --municode link flag, the entry point will be wmain/wWinMain other than main/WinMain, just like MSVC.
3. TLS(Thread local storage) support. MinGW's runtime doesn't support this.
Throw this project is currently in beta now, but it's already very stable now. Downloadable binary is in its project page, the Win32/Win64 personal-build by sezero is recommanded.
I know that, and i will try it.
Thanks for share.
Title: Re: [OT updated 2010 03 12] Loaden's MinGW GCC 4.4.3 released!
Post by: 198710 on May 03, 2010, 11:11:56 am
seems that gcc 4.4.4 also released recently
Title: Re: [OT updated 2010 03 12] Loaden's MinGW GCC 4.4.3 released!
Post by: Loaden on May 03, 2010, 11:27:03 am
seems that gcc 4.4.4 also released recently
I know, and gcc 4.5.0 released too: http://qp-gcc.googlecode.com/files/mingw4.5.0.7z (http://qp-gcc.googlecode.com/files/mingw4.5.0.7z)
Title: Re: [OT updated 2010 03 12] Loaden's MinGW GCC 4.4.3 released!
Post by: Loaden on May 04, 2010, 07:09:56 am
I build a static version for 4.4.3 and 4.4.4
Test are welcome.
Title: Re: [OT updated 2010 05 04] Loaden's MinGW GCC 4.4.4 released!
Post by: ollydbg on May 04, 2010, 03:54:46 pm
Loaden has released the MinGW 4.4.4 version on his site:

http://code.google.com/p/qp-gcc/downloads/list


You can download the single compiler package:
mingw32-4.4.4-static.7z (http://qp-gcc.googlecode.com/files/mingw32-4.4.4-static.7z)

or the whole mingw package(binutils-2.20.1-2,gdb-7.0.1,make-3.81,mingwrt-3.18,w32api-3.14,pthreads2.8)
mingw32-4.4.4-static-all.7z (http://qp-gcc.googlecode.com/files/mingw32-4.4.4-static-all.7z)

And the source code (patches against the offcial GCC 4.4.4) can be found in:
patches-4.4.4.7z (http://qp-gcc.googlecode.com/files/patches-4.4.4.7z)
Title: Re: [OT updated 2010 03 12] Loaden's MinGW GCC 4.4.3 released!
Post by: mmkider on May 23, 2010, 12:36:23 pm
It is great.

But it seem lost "-finput-charset=BIG5" parameter of mingw32-g++.exe .

Because I got this message " no iconv implementation, cannot convert from BIG5 to UTF-8", if I use "-finput-charset=BIG5".


Thank you for your reply.
Title: Re: [OT updated 2010 03 12] Loaden's MinGW GCC 4.4.3 released!
Post by: Loaden on June 03, 2010, 01:35:15 am
It is great.

But it seem lost "-finput-charset=BIG5" parameter of mingw32-g++.exe .

Because I got this message " no iconv implementation, cannot convert from BIG5 to UTF-8", if I use "-finput-charset=BIG5".


Thank you for your reply.

I have try, But i don't know how to implement it.
Sorry.
Title: Re: [OT updated 2010 03 12] Loaden's MinGW GCC 4.4.3 released!
Post by: ollydbg on June 03, 2010, 05:00:20 pm
to all:
Loaden's MinGW 4.4.4-3 released, fix the bug related to:

Quote
But it seem lost "-finput-charset=BIG5" parameter of mingw32-g++.exe .

Because I got this message " no iconv implementation, cannot convert from BIG5 to UTF-8", if I use "-finput-charset=BIG5".

See here:
MinGW-QP 4.4.4 static build (fix -finput-charset bug) (http://forums.codeblocks.org/index.php/topic,12670.msg85767/topicseen.html#msg85767)
Title: Re: [OT updated 2010-10-18] Loaden's MinGW GCC 4.4.5 released!
Post by: ollydbg on October 18, 2010, 07:20:21 am
Loadenā€˜s MinGW 4.4.5 released.

See: [OT updated 2010-10-18] Loaden's MinGW GCC 4.4.5 released! (http://forums.codeblocks.org/index.php/topic,12160.msg82583.html#msg82583) for more details.