[Bug middle-end/54630] [4.8 Regression] GCC 4.8 --enable-languages=c build fails: Undefined symbols: ___cxa_guard_acquire and ___cxa_guard_release
baker at usgs dot gov
gcc-bugzilla@gcc.gnu.org
Sat Sep 22 01:45:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54630
--- Comment #8 from Larry Baker <baker at usgs dot gov> 2012-09-22 01:45:31 UTC ---
After changing --with-host-libstdcxx back to
--with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm'
the build succeeds for Linux i386. I am sure LINKER was set to gcc in this
case.
I am rebuilding without --with-host-libstdcxx to verify that the cross compiler
can be built when LINKER is set to g++ for Linux i386.
After that, I'll try to use a newer GCC on CentoS Linux i386 and try again with
--with-host-libstdcxx='-static-libgcc -static-libstdc++ -lm'. This seems to be
the more modern equivalent on more recent gcc/g++ compilers. I found 4.6 and
4.7 compilers include both -static-libgcc and -static-libstdc++ (strings
host-gcc/g++-compiler | grep [-]static[-]).
You can probably reclassify this case from a bug to a feature request.
More information about the Gcc-bugs
mailing list