Author Topic: FYI: GCC 4.5.0 on Mingw.org  (Read 86151 times)

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
FYI: GCC 4.5.0 on Mingw.org
« on: March 14, 2010, 08:33:08 pm »
Hi all,
GCC 4.5.0 is available officially at:
http://sourceforge.net/projects/mingw/files/
Any trials/report concerning:
- compiling/debugging wxWidgets
- compiling/debugging C::B
- compiling/debugging boost
are welcome.
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 stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: FYI: GCC 4.5.0 on Mingw.org
« Reply #1 on: March 14, 2010, 09:35:18 pm »
Current version info is

Code
gcc version 4.5.0 20100311 (experimental) (GCC)

Going to start wxWidgets build in a few minutes

It failed to compile wxWidgets 2.8.11rc2 could not find the stdio.h file.
Does not seem ready for real testing on Windows 7

Tim S.
« Last Edit: March 14, 2010, 11:03:55 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: FYI: GCC 4.5.0 on Mingw.org
« Reply #2 on: March 15, 2010, 12:55:05 pm »
Unusable, sadly.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5915
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: FYI: GCC 4.5.0 on Mingw.org
« Reply #3 on: March 15, 2010, 03:34:35 pm »
Unusable, sadly.
agreed, because a lot of patches need to be applied to the GCC4.5 source.
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 ironhead

  • Almost regular
  • **
  • Posts: 210
Re: FYI: GCC 4.5.0 on Mingw.org
« Reply #4 on: March 18, 2010, 09:39:09 pm »
I'd recommend trying the '-2' release.  I've successfully built wxWidgets and I'm in the process of building C::B with it.

Edit:  I just tried building wxWidgets on my development laptop (with only 1 GB of RAM) as opposed to my development machine at work, and linking failed due to insufficient memory (which never happened before).  I'm following up on the MinGW list.
« Last Edit: March 19, 2010, 04:18:14 am by ironhead »

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: FYI: GCC 4.5.0 on Mingw.org
« Reply #5 on: March 19, 2010, 04:29:36 am »
I'd recommend trying the '-2' release.  I've successfully built wxWidgets and I'm in the process of building C::B with it.

I am having issues using -g "debug" option under code::blocks with the c++ console template program.

Can anyone compile a simple C++ code using header <iostream> without error with GCC 4.5.0 -2?

Edit: I upgraded my binutils to 2.20
Tim S.

From Readme on MinGW GCC 4.5
Code
Runtime requirements:
  binutils-2.20.1-2-mingw32-bin.tar.gz
  libmpc-0.8.1-1-mingw32-dll-2.tar.lzma
  libmpfr-2.4.1-1-mingw32-dll-1.tar.lzma
  libgmp-5.0.1-1-mingw32-dll-10.tar.lzma
  libpthread-2.8.0-3-mingw32-dll-2.tar.lzma (for OpenMP)
  mingwrt-3.18-mingw32-dev.tar.gz
  w32api-3.14-mingw32-dev.tar.gz
« Last Edit: March 21, 2010, 06:34:15 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: FYI: GCC 4.5.0 on Mingw.org
« Reply #6 on: March 21, 2010, 10:11:59 pm »
What version ld.exe are you using?
The one I am using is currently using 1.5GB of memory.
I assume it runs out at 2GB. This is linking wxWidgets 2.8 Branch.

It seems to have leveled off at 1.5GB. I am waiting till it finishes/crashes/errors out before getting the version number.

It ran out of memory.

Code
GNU ld (GNU Binutils) 2.20

Tim S.
« Last Edit: March 21, 2010, 10:15:30 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: FYI: GCC 4.5.0 on Mingw.org
« Reply #7 on: March 22, 2010, 07:06:23 am »
...for the record: There is a "gcc-4.5.0_20100311-2" version now. I wonder if it has "all bugs fixed"... :lol:
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 idblew

  • Multiple posting newcomer
  • *
  • Posts: 27
Re: FYI: GCC 4.5.0 on Mingw.org
« Reply #8 on: April 22, 2010, 03:33:51 pm »
Has anyone got around the issue of ld running out of memory?

I keep getting the error:

Quote
ld.exe: out of memory allocating 28770816 bytes

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: FYI: GCC 4.5.0 on Mingw.org
« Reply #9 on: April 22, 2010, 03:55:26 pm »
...for the record: There is a "gcc-4.5.0_20100311-2" version now.
...now it's:
gcc-4.5.0-1 (2010-04-19)

Has anyone got around the issue of ld running out of memory?
Did you try the above already?
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 Loaden

  • Lives here!
  • ****
  • Posts: 1014
Re: FYI: GCC 4.5.0 on Mingw.org
« Reply #10 on: April 22, 2010, 04:08:52 pm »
...now it's:
gcc-4.5.0-1 (2010-04-19)
I try it, but it not working in here.
« Last Edit: April 22, 2010, 05:58:30 pm by Loaden »

Offline idblew

  • Multiple posting newcomer
  • *
  • Posts: 27
Re: FYI: GCC 4.5.0 on Mingw.org
« Reply #11 on: April 22, 2010, 04:30:11 pm »
Already testing with gcc-4.5.0-1 (2010-04-19)

Even tried setting the following in config.gcc

Quote
LDFLAGS ?= --no-keep-memory --reduce-memory-overheads

Windows Vista (32-bit)
4GB RAM
« Last Edit: April 22, 2010, 04:31:49 pm by idblew »

Offline reckless

  • Regular
  • ***
  • Posts: 338
Re: FYI: GCC 4.5.0 on Mingw.org
« Reply #12 on: April 23, 2010, 03:31:19 am »
its a problem with inlined code in wxwidgets gcc-4.5.0 produces some pretty massive object files when heavy inlining is used unfortunatly the linker cant cope with it :(

theres a discussion somewhere on the wx forums about it.

Offline reckless

  • Regular
  • ***
  • Posts: 338
Re: FYI: GCC 4.5.0 on Mingw.org
« Reply #13 on: April 24, 2010, 02:05:21 pm »
gcc-4.5.0 is released btw.

http://gcc.gnu.org/

wx compilation still runs out of memory though :S looking on how to fix that atm.

Offline reckless

  • Regular
  • ***
  • Posts: 338
Re: FYI: GCC 4.5.0 on Mingw.org
« Reply #14 on: April 24, 2010, 06:23:03 pm »
Inline functions decorated with __declspec(dllexport) are now always
   generated and included in object files. This also applies to methods
   defined in classes decorated with __declspec(dllexport).
   This may cause a general increase in object size, since gcc generates
   copies of each dllexport'd inline function in all object files whose
   source includes the header defining the function.

from mingw site about gcc-4.5.0

i foresee problems  :lol: