[Bug middle-end/54630] [4.8 Regression] GCC 4.8 --enable-languages=c build fails: Undefined symbols: ___cxa_guard_acquire and ___cxa_guard_release

2012-11-26 Thread baker at usgs dot gov
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54630 --- Comment #19 from Larry Baker baker at usgs dot gov 2012-11-26 19:44:21 UTC --- (In reply to comment #18) Ian, You can also add linker options via the configure options --with-stage1-ldflags and --with-boot-ldflags, q.v. So, I read

[Bug middle-end/54630] [4.8 Regression] GCC 4.8 --enable-languages=c build fails: Undefined symbols: ___cxa_guard_acquire and ___cxa_guard_release

2012-11-21 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54630 Jonathan Wakely redi at gcc dot gnu.org changed: What|Removed |Added Severity|blocker |normal

[Bug middle-end/54630] [4.8 Regression] GCC 4.8 --enable-languages=c build fails: Undefined symbols: ___cxa_guard_acquire and ___cxa_guard_release

2012-11-21 Thread baker at usgs dot gov
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54630 --- Comment #17 from Larry Baker baker at usgs dot gov 2012-11-21 21:37:26 UTC --- Jonathan, Yes, I should have said link with a C++ driver instead of link with a C++ compiler. No, it's not equivalent, -static-libstdcxx does not imply

[Bug middle-end/54630] [4.8 Regression] GCC 4.8 --enable-languages=c build fails: Undefined symbols: ___cxa_guard_acquire and ___cxa_guard_release

2012-11-21 Thread ian at airs dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54630 Ian Lance Taylor ian at airs dot com changed: What|Removed |Added CC||ian at airs

[Bug middle-end/54630] [4.8 Regression] GCC 4.8 --enable-languages=c build fails: Undefined symbols: ___cxa_guard_acquire and ___cxa_guard_release

2012-11-20 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54630 Jakub Jelinek jakub at gcc dot gnu.org changed: What|Removed |Added Status|NEW |RESOLVED

[Bug middle-end/54630] [4.8 Regression] GCC 4.8 --enable-languages=c build fails: Undefined symbols: ___cxa_guard_acquire and ___cxa_guard_release

2012-11-20 Thread baker at usgs dot gov
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54630 --- Comment #13 from Larry Baker baker at usgs dot gov 2012-11-20 19:57:41 UTC --- Jakub, The root of the problem is because GCC required a C++ linker, but the logic in gcc/Makefile forces the linker to be $(CC) when HOST_LIBS are

[Bug middle-end/54630] [4.8 Regression] GCC 4.8 --enable-languages=c build fails: Undefined symbols: ___cxa_guard_acquire and ___cxa_guard_release

2012-11-20 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54630 --- Comment #14 from Jakub Jelinek jakub at gcc dot gnu.org 2012-11-20 20:19:58 UTC --- It is intentionally that way, so that one can fine tune the C++ libraries linked into the binary with --with-host-libstdcxx, but you are responsible for

[Bug middle-end/54630] [4.8 Regression] GCC 4.8 --enable-languages=c build fails: Undefined symbols: ___cxa_guard_acquire and ___cxa_guard_release

2012-11-20 Thread baker at usgs dot gov
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54630 --- Comment #15 from Larry Baker baker at usgs dot gov 2012-11-20 22:24:46 UTC --- Jakub, I undertand the reason for the --with-host-libstdcxx option. The documentation for --with-host-libstdcxx doesn't say anything about the side

[Bug middle-end/54630] [4.8 Regression] GCC 4.8 --enable-languages=c build fails: Undefined symbols: ___cxa_guard_acquire and ___cxa_guard_release

2012-11-19 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54630 --- Comment #11 from Jakub Jelinek jakub at gcc dot gnu.org 2012-11-19 13:44:21 UTC --- Author: jakub Date: Mon Nov 19 13:44:15 2012 New Revision: 193620 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=193620 Log: PR

[Bug middle-end/54630] [4.8 Regression] GCC 4.8 --enable-languages=c build fails: Undefined symbols: ___cxa_guard_acquire and ___cxa_guard_release

2012-11-18 Thread jason at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54630 Jason Merrill jason at gcc dot gnu.org changed: What|Removed |Added CC||jason at

[Bug middle-end/54630] [4.8 Regression] GCC 4.8 --enable-languages=c build fails: Undefined symbols: ___cxa_guard_acquire and ___cxa_guard_release

2012-09-24 Thread baker at usgs dot gov
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54630 --- Comment #9 from Larry Baker baker at usgs dot gov 2012-09-25 01:53:01 UTC --- The build on Linux i386 works fine without --with-host-libstdcxx. I believe g++ is used for linking. I tried using a native Linux i386 GCC 4.7.1 to build

[Bug middle-end/54630] [4.8 Regression] GCC 4.8 --enable-languages=c build fails: Undefined symbols: ___cxa_guard_acquire and ___cxa_guard_release

2012-09-21 Thread baker at usgs dot gov
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54630 --- Comment #4 from Larry Baker baker at usgs dot gov 2012-09-21 18:56:20 UTC --- Richard, On both Mac OS X and Linux, the link step uses gcc. On Mac OS X, the link succeed; on Linux, the link fails. The LINKER is selected by the following

[Bug middle-end/54630] [4.8 Regression] GCC 4.8 --enable-languages=c build fails: Undefined symbols: ___cxa_guard_acquire and ___cxa_guard_release

2012-09-21 Thread baker at usgs dot gov
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54630 --- Comment #5 from Larry Baker baker at usgs dot gov 2012-09-21 19:16:50 UTC --- From what I can tell from the GCC Link Options web page (http://gcc.gnu.org/onlinedocs/gcc/Link-Options.html#index-static_002dlibgcc-1032), -static-libstdc++

[Bug middle-end/54630] [4.8 Regression] GCC 4.8 --enable-languages=c build fails: Undefined symbols: ___cxa_guard_acquire and ___cxa_guard_release

2012-09-21 Thread baker at usgs dot gov
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54630 --- Comment #6 from Larry Baker baker at usgs dot gov 2012-09-21 20:34:41 UTC --- I'm looking at CFLAGS_FOR_BUILD and CXXFLAGS_FOR_BUILD as a way to pass -static-libgcc and -static-libstdc++ to the linker, respectively. In the top-level

[Bug middle-end/54630] [4.8 Regression] GCC 4.8 --enable-languages=c build fails: Undefined symbols: ___cxa_guard_acquire and ___cxa_guard_release

2012-09-21 Thread baker at usgs dot gov
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54630 --- Comment #7 from Larry Baker baker at usgs dot gov 2012-09-22 01:13:54 UTC --- I'm kind of stumped at the moment to find an alternative method to pass down linker flags without using --with-host-libstdcxx. I tried setting

[Bug middle-end/54630] [4.8 Regression] GCC 4.8 --enable-languages=c build fails: Undefined symbols: ___cxa_guard_acquire and ___cxa_guard_release

2012-09-21 Thread baker at usgs dot gov
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

[Bug middle-end/54630] [4.8 Regression] GCC 4.8 --enable-languages=c build fails: Undefined symbols: ___cxa_guard_acquire and ___cxa_guard_release

2012-09-20 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54630 Richard Guenther rguenth at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |NEW

[Bug middle-end/54630] [4.8 Regression] GCC 4.8 --enable-languages=c build fails: Undefined symbols: ___cxa_guard_acquire and ___cxa_guard_release

2012-09-20 Thread baker at usgs dot gov
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54630 --- Comment #2 from Larry Baker baker at usgs dot gov 2012-09-20 20:28:08 UTC --- This bug also occurs when --enable-languages=c,c++. I am building a cross compiler for ColdFire uClinux, TARGET=m68k-uclinux. On Mac OS X

[Bug middle-end/54630] [4.8 Regression] GCC 4.8 --enable-languages=c build fails: Undefined symbols: ___cxa_guard_acquire and ___cxa_guard_release

2012-09-20 Thread baker at usgs dot gov
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54630 --- Comment #3 from Larry Baker baker at usgs dot gov 2012-09-20 20:30:29 UTC --- Richard, Wrong track ... I found the problem (which also occurs when --enable-languages=c,c++). See my posting. Larry Baker US Geological Survey