From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 113326 invoked by alias); 30 Aug 2015 18:21:45 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 113276 invoked by uid 48); 30 Aug 2015 18:21:39 -0000 From: "egall at gwmail dot gwu.edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/66521] xgcc: cc1plus segfaults when compiling libstdc++-v3/src/c++11/ostream-inst.cc Date: Sun, 30 Aug 2015 18:21:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: egall at gwmail dot gwu.edu X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-08/txt/msg02073.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66521 --- Comment #15 from Eric Gallager --- (In reply to ctice from comment #14) > Author: ctice > Date: Wed Aug 12 15:40:11 2015 > New Revision: 226820 > > URL: https://gcc.gnu.org/viewcvs?rev=226820&root=gcc&view=rev > Log: > Fix warnings when bootstrapping on darwin with vtable verification enabled. > > libstdc++-v3/ChangeLog: > > 2015-08-11 Caroline Tice > > PR 66521, Contributed by Eric Gallager > * acinclude.m4 (VTV_CXXLINKFLAGS): Make this variable OS-specific, > and > fix the rpath flag to work properly for darwin. > * configure: Regenerated. > > > Modified: > trunk/libstdc++-v3/ChangeLog > trunk/libstdc++-v3/acinclude.m4 > trunk/libstdc++-v3/configure Thanks for committing this! Just a note re: the commit message, though: I wrote the patch to fix the error from comment #8; I'd assume the warnings I mentioned in comment #11 and comment #12 would still be an issue on darwin 10, though... I tried testing to confirm, but I'm actually currently knocked back to darwin 9 here, which has an older cctools and assembler, so now I error out earlier with an assembler error: Making all in c++98 make[6]: Entering directory `/private/var/root/gcc-git/my_oddly_named_builddir/i386-apple-darwin9.8.0/libstdc++-v3/src/c++98' /bin/sh ../../libtool --tag CXX --tag disable-shared --mode=compile /var/root/gcc-git/my_oddly_named_builddir/./gcc/xgcc -shared-libgcc -B/var/root/gcc-git/my_oddly_named_builddir/./gcc -nostdinc++ -L/var/root/gcc-git/my_oddly_named_builddir/i386-apple-darwin9.8.0/libstdc++-v3/src -L/var/root/gcc-git/my_oddly_named_builddir/i386-apple-darwin9.8.0/libstdc++-v3/src/.libs -L/var/root/gcc-git/my_oddly_named_builddir/i386-apple-darwin9.8.0/libstdc++-v3/libsupc++/.libs -B/usr/local/i386-apple-darwin9.8.0/bin/ -B/usr/local/i386-apple-darwin9.8.0/lib/ -isystem /usr/local/i386-apple-darwin9.8.0/include -isystem /usr/local/i386-apple-darwin9.8.0/sys-include -I/var/root/gcc-git/libstdc++-v3/../libgcc -I/var/root/gcc-git/my_oddly_named_builddir/i386-apple-darwin9.8.0/libstdc++-v3/include/i386-apple-darwin9.8.0 -I/var/root/gcc-git/my_oddly_named_builddir/i386-apple-darwin9.8.0/libstdc++-v3/include -I/var/root/gcc-git/libstdc++-v3/libsupc++ -std=gnu++98 -prefer-pic -D_GLIBCXX_SHARED -fno-implicit-templates -fvtable-verify=std -Wl,-u,_vtable_map_vars_start -Wl,-u,_vtable_map_vars_end -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi -fdiagnostics-show-location=once -fvisibility-inlines-hidden -ffunction-sections -fdata-sections -frandom-seed=bitmap_allocator.lo -g -O2 -c -o bitmap_allocator.lo ../../../../../libstdc++-v3/src/c++98/bitmap_allocator.cc libtool: compile: /var/root/gcc-git/my_oddly_named_builddir/./gcc/xgcc -shared-libgcc -B/var/root/gcc-git/my_oddly_named_builddir/./gcc -nostdinc++ -L/var/root/gcc-git/my_oddly_named_builddir/i386-apple-darwin9.8.0/libstdc++-v3/src -L/var/root/gcc-git/my_oddly_named_builddir/i386-apple-darwin9.8.0/libstdc++-v3/src/.libs -L/var/root/gcc-git/my_oddly_named_builddir/i386-apple-darwin9.8.0/libstdc++-v3/libsupc++/.libs -B/usr/local/i386-apple-darwin9.8.0/bin/ -B/usr/local/i386-apple-darwin9.8.0/lib/ -isystem /usr/local/i386-apple-darwin9.8.0/include -isystem /usr/local/i386-apple-darwin9.8.0/sys-include -I/var/root/gcc-git/libstdc++-v3/../libgcc -I/var/root/gcc-git/my_oddly_named_builddir/i386-apple-darwin9.8.0/libstdc++-v3/include/i386-apple-darwin9.8.0 -I/var/root/gcc-git/my_oddly_named_builddir/i386-apple-darwin9.8.0/libstdc++-v3/include -I/var/root/gcc-git/libstdc++-v3/libsupc++ -std=gnu++98 -D_GLIBCXX_SHARED -fno-implicit-templates -fvtable-verify=std -Wl,-u,_vtable_map_vars_start -Wl,-u,_vtable_map_vars_end -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi -fdiagnostics-show-location=once -fvisibility-inlines-hidden -ffunction-sections -fdata-sections -frandom-seed=bitmap_allocator.lo -g -O2 -c ../../../../../libstdc++-v3/src/c++98/bitmap_allocator.cc -fno-common -DPIC -D_GLIBCXX_SHARED -o bitmap_allocator.o /var/tmp//ccxrd6Je.s:15603:FATAL:symbol: __ZN4_VTVIN9__gnu_cxx24__concurrence_wait_errorEE12__vtable_mapE can't be a weak_definition (currently only supported in section of type coalesced) make[6]: *** [bitmap_allocator.lo] Error 1 make[6]: Leaving directory `/private/var/root/gcc-git/my_oddly_named_builddir/i386-apple-darwin9.8.0/libstdc++-v3/src/c++98' make[5]: *** [all-recursive] Error 1 make[5]: Leaving directory `/private/var/root/gcc-git/my_oddly_named_builddir/i386-apple-darwin9.8.0/libstdc++-v3/src' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/private/var/root/gcc-git/my_oddly_named_builddir/i386-apple-darwin9.8.0/libstdc++-v3' make[3]: *** [all] Error 2 make[3]: Leaving directory `/private/var/root/gcc-git/my_oddly_named_builddir/i386-apple-darwin9.8.0/libstdc++-v3' make[2]: *** [all-stage1-target-libstdc++-v3] Error 2 make[2]: Leaving directory `/private/var/root/gcc-git/my_oddly_named_builddir' make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory `/private/var/root/gcc-git/my_oddly_named_builddir' make: *** [all] Error 2 I get the feeling it could actually be related to those linker warnings I mentioned previously?