User forums > General (but related to Code::Blocks)
TDM-GCC 4.6 series (Latest: 4.6.1 - 2011-09-23)
reckless:
Most of the lto problems seems to come from a binutils bug which is being worked on and will be fixed in 2.22.
I use the cvs version and while its not completely bug free it atleast works on most parts.
Also there are some patches for current binutils to fix the multiple-definition problem.
http://sourceware.org/bugzilla/attachment.cgi?id=5870
I havent tried the above patch yet as im deep in Msys2 development.
Totoxa:
Hello, im trying to compile wxWidgets 2.8.12 with TDM-GCC 4.6.1 but it fails at the linking process, the console windows show the message "memory exhausted", i use a amd turion x2 processor(1.9 ghz) and 2gb ram, windows xp, also the process takes too much time, approx 1 hour. Before i have tried to compile wxWidgets with the gcc that comes with qt sdk and it finishes without problems and in about 20 min, but it fail to compile codeblocks(for that reason i was trying with TDM-GCC 4.6.1). what can be the reason?
gd_on:
I had a similar problem, but for me the solution is in Tdragon's original post :
--- Quote ---Since GCC incorporates the "-fno-keep-inline-dllexport" flag beginning with the 4.6 series, you will probably need to use this flag when building wxWidgets as a MONOLITHIC dll (mingw32-make ... CXXFLAGS="-fno-keep-inline-dllexport").
--- End quote ---
It is necessary for me. Have you tried that ?
gd_on
xunxun:
--- Quote from: thomas on September 26, 2011, 03:56:58 pm ---Unluckily, this build rejects pretty much every piece of code I've ever written with multiple definition of
`typeinfo for A' (A being specialized template classes or classes with virtual functions defined inline in the base) while LTO is active. Which is a real shame seeing how LTO is the one big thing.
--- End quote ---
You can use latest binutils snapshot.
The issue is fixed by Kai.
xunxun:
--- Quote from: thomas on September 29, 2011, 10:13:50 am ---Bummer, LTO really isn't quite production just yet. :lol:
After patching lto-1.exe with a hex editor to be LARGEADDRESSAWARE, I just about managed to build wxWidgets (multimedia and RTTI disabled) with LTO enabled before running out of address space. Kids, don't try this at home if your machine only has 4GB of physical memory. Linking (just linking, not the entire build!) took only about 45 minutes, too. 8)
Unluckily it still gives me missing symbols from wxWidgets when building Code::Blocks (and, funnily, only 2 of them when building c::b without LTO, but around 25 with LTO enabled for c::b). Seems something is just not right yet. Ah well, maybe with gcc 4.7...
--- End quote ---
Maybe you said this bug I ever reported:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49844
Then you can try -flto-partition=none .
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version