News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

FYI: GCC 4.5.0 on Mingw.org

Started by MortenMacFly, March 14, 2010, 08:33:08 PM

Previous topic - Next topic

MortenMacFly

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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

stahta01

#1
Current version info is


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.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

thomas

"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

ollydbg

Quote from: thomas on March 15, 2010, 12:55:05 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.

ironhead

#4
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.

stahta01

#5
Quote from: ironhead 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.

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

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
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

stahta01

#6
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.


GNU ld (GNU Binutils) 2.20


Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

MortenMacFly

...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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

idblew

Has anyone got around the issue of ld running out of memory?

I keep getting the error:

Quoteld.exe: out of memory allocating 28770816 bytes

MortenMacFly

Quote from: MortenMacFly on March 22, 2010, 07:06:23 AM
...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)

Quote from: idblew on April 22, 2010, 03:33:51 PM
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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

Loaden

#10
Quote from: MortenMacFly on April 22, 2010, 03:55:26 PM
...now it's:
gcc-4.5.0-1 (2010-04-19)
I try it, but it not working in here.

idblew

#11
Already testing with gcc-4.5.0-1 (2010-04-19)

Even tried setting the following in config.gcc

QuoteLDFLAGS ?= --no-keep-memory --reduce-memory-overheads

Windows Vista (32-bit)
4GB RAM

reckless

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.

reckless

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.

reckless

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: