Summary: | Building CodeBlocks on Windows using mingw gcc 4.6.1 "-flto -fuse-linker-plugin" results in many linker stage errors | ||
---|---|---|---|
Product: | binutils | Reporter: | xunxun <xunxun1982> |
Component: | ld | Assignee: | unassigned |
Status: | RESOLVED OBSOLETE | ||
Severity: | normal | CC: | pinskia, xunxun1982 |
Priority: | P2 | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
See Also: | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49844 | ||
Host: | i686-pc-mingw32 | Target: | i686-pc-mingw32 |
Build: | i686-pc-mingw32 | Last reconfirmed: |
Description
xunxun
2011-07-26 10:53:04 UTC
I found that if I add the option "-flto-partition=none", the problem will disappear. As is : --------------------------------------------------------------------------------- g++.exe -shared -Wl,--out-implib=devel\libwxpropgrid.a -Wl,--dll -Lbase\tinyxml -LE:\MyPack\3rdLib\GUI\wxWidgets-2.8.12\lib\gcc_dll .objs\sdk\wxpropgrid\src\editors.o .objs\sdk\wxpropgrid\src\extras.o .objs\sdk\wxpropgrid\src\manager.o .objs\sdk\wxpropgrid\src\odcombo.o .objs\sdk\wxpropgrid\src\propgrid.o .objs\sdk\wxpropgrid\src\props.o .objs\sdk\wxpropgrid\src\xh_propgrid.o .objs\sdk\wxpropgrid\src\advprops.o -o devel\wxpropgrid.dll -mthreads -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -s -flto -fuse-linker-plugin -Wl,--allow-multiple-definition -Wl,--enable-auto-image-base -Wl,--add-stdcall-alias -Wl,--enable-auto-import -lwxmsw28u -flto-partition=none Creating library file: devel\libwxpropgrid.a --------------------------------------------------------------------------------- Why? Does the "-flto-partition=balanced" have some problems? I update to gcc 4.6.2 (20110819) and binutils 2.21.53.20110820, and it also has the problem. Not current, probably fixed a long time ago |