Author Topic: [OT updated 2010-10-18] Loaden's MinGW GCC 4.4.5 released!  (Read 38442 times)

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5915
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
[OT updated 2010-10-18] Loaden's MinGW GCC 4.4.5 released!
« 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

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)

By the way, the full package
mingw-static-all-4.4.4-3.7z
Contains the MinGW gdb 7.1.5 build by ollydbg. see
[OT] ollydbg's unoffcial MinGW GDB 7.1.50-20100521 released

2010-03-12
After the hard working of 15days, Loaden has released a MinGW GCC&G++ 4.4.3 version in qp-gcc - Project Hosting on Google Code

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
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
Then, you need to download other packages from the MinGw offcial site, these include:
    * binutils
    * mingw-runtime (devand dll)
    * w32api
    * Required runtime libraries (pthreads)
    * mingw-gdb for debugger
    * mingw32-make 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

The build instructions can be found in the wikipage Build Steps
And a Chinese version of the build steps can be found in Cross build of MinGW QP 4.4.3 by Loaden
« Last Edit: October 18, 2010, 07:18:49 am by ollydbg »
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline blueshake

  • Regular
  • ***
  • Posts: 459
Re: [OT] Loaden's MinGW GCC 4.4.3 released!
« Reply #1 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
Keep low and hear the sadness of little dog.
I fall in love with a girl,but I don't dare to tell her.What should I do?

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: [OT] Loaden's MinGW GCC 4.4.3 released!
« Reply #2 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5915
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: [OT] Loaden's MinGW GCC 4.4.3 released!
« Reply #3 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.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline nanyu

  • Almost regular
  • **
  • Posts: 188
  • nanyu
Re: [OT] Loaden's MinGW GCC 4.4.3 released!
« Reply #4 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.


Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: [OT] Loaden's MinGW GCC 4.4.3 released!
« Reply #5 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?
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline blueshake

  • Regular
  • ***
  • Posts: 459
Re: [OT] Loaden's MinGW GCC 4.4.3 released!
« Reply #6 on: March 10, 2010, 08:35:21 am »
Loaden said they are all supported. :D
Keep low and hear the sadness of little dog.
I fall in love with a girl,but I don't dare to tell her.What should I do?

Offline Loaden

  • Lives here!
  • ****
  • Posts: 1014
Re: [OT] Loaden's MinGW GCC 4.4.3 released!
« Reply #7 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!

Offline Loaden

  • Lives here!
  • ****
  • Posts: 1014
Re: [OT] Loaden's MinGW GCC 4.4.3 released!
« Reply #8 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.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5915
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: [OT] Loaden's MinGW GCC 4.4.3 released!
« Reply #9 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
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline Loaden

  • Lives here!
  • ****
  • Posts: 1014
Re: [OT] Loaden's MinGW GCC 4.4.3 released!
« Reply #10 on: March 10, 2010, 11:28:43 am »
I built boost 1.4.2, wx2.9-snapshot in this afternoon, and seems ok. :)
« Last Edit: March 10, 2010, 11:30:41 am by Loaden »

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5915
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: [OT] Loaden's MinGW GCC 4.4.3 released!
« Reply #11 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 wikipage.
« Last Edit: March 12, 2010, 03:43:46 pm by ollydbg »
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline Loaden

  • Lives here!
  • ****
  • Posts: 1014
Re: [OT] Loaden's MinGW GCC 4.4.3 released!
« Reply #12 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

Offline nanyu

  • Almost regular
  • **
  • Posts: 188
  • nanyu
Re: [OT] Loaden's MinGW GCC 4.4.3 released!
« Reply #13 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 ?

Offline Loaden

  • Lives here!
  • ****
  • Posts: 1014
Re: [OT] Loaden's MinGW GCC 4.4.3 released!
« Reply #14 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
Only Compiler: http://qp-gcc.googlecode.com/files/gcc_g%2B%2B-4.4.3-4.7z

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5915
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: [OT updated 2010 03 12] Loaden's MinGW GCC 4.4.3 released!
« Reply #15 on: March 12, 2010, 03:38:27 pm »
@Loaden
I have create a wiki page:
Build, so you can change it too.
Also, I have update my original post to the release 4.4.3-4 version.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline nenin

  • Almost regular
  • **
  • Posts: 212
Re: [OT updated 2010 03 12] Loaden's MinGW GCC 4.4.3 released!
« Reply #16 on: March 18, 2010, 07:58:44 pm »

Offline reckless

  • Regular
  • ***
  • Posts: 338
Re: [OT updated 2010 03 12] Loaden's MinGW GCC 4.4.3 released!
« Reply #17 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 ?

Offline thynson

  • Multiple posting newcomer
  • *
  • Posts: 15
Re: [OT updated 2010 03 12] Loaden's MinGW GCC 4.4.3 released!
« Reply #18 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.

Offline Loaden

  • Lives here!
  • ****
  • Posts: 1014
Re: [OT updated 2010 03 12] Loaden's MinGW GCC 4.4.3 released!
« Reply #19 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.

Offline 198710

  • Multiple posting newcomer
  • *
  • Posts: 32
Re: [OT updated 2010 03 12] Loaden's MinGW GCC 4.4.3 released!
« Reply #20 on: May 03, 2010, 11:11:56 am »
seems that gcc 4.4.4 also released recently

Offline Loaden

  • Lives here!
  • ****
  • Posts: 1014
Re: [OT updated 2010 03 12] Loaden's MinGW GCC 4.4.3 released!
« Reply #21 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

Offline Loaden

  • Lives here!
  • ****
  • Posts: 1014
Re: [OT updated 2010 03 12] Loaden's MinGW GCC 4.4.3 released!
« Reply #22 on: May 04, 2010, 07:09:56 am »
I build a static version for 4.4.3 and 4.4.4
Test are welcome.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5915
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: [OT updated 2010 05 04] Loaden's MinGW GCC 4.4.4 released!
« Reply #23 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

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

And the source code (patches against the offcial GCC 4.4.4) can be found in:
patches-4.4.4.7z
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline mmkider

  • Almost regular
  • **
  • Posts: 150
Re: [OT updated 2010 03 12] Loaden's MinGW GCC 4.4.3 released!
« Reply #24 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.

Offline Loaden

  • Lives here!
  • ****
  • Posts: 1014
Re: [OT updated 2010 03 12] Loaden's MinGW GCC 4.4.3 released!
« Reply #25 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.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5915
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: [OT updated 2010 03 12] Loaden's MinGW GCC 4.4.3 released!
« Reply #26 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)
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5915
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: [OT updated 2010-10-18] Loaden's MinGW GCC 4.4.5 released!
« Reply #27 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! for more details.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.