From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 500 invoked by alias); 25 Nov 2010 01:39:31 -0000 Received: (qmail 488 invoked by uid 22791); 25 Nov 2010 01:39:30 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_CX X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 25 Nov 2010 01:39:25 +0000 From: "howarth at nitro dot med.uc.edu" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/46650] New: r167010 breaks --enable-build-with-cxx X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: howarth at nitro dot med.uc.edu X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Thu, 25 Nov 2010 02:03:00 -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 X-SW-Source: 2010-11/txt/msg03062.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46650 Summary: r167010 breaks --enable-build-with-cxx Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap AssignedTo: unassigned@gcc.gnu.org ReportedBy: howarth@nitro.med.uc.edu On x86_64-apple-darwin10 (and likely any target using an older g++), the poisoning of strerror in system.h breaks the bootstrap when using -enable-build-with-cxx. These failures are of the form... g++ -c -g -DIN_GCC -W -Wall -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H -I. -I. -I../../gcc-4.6-20101124/gcc -I../../gcc-4.6-20101124/gcc/. -I../../gcc-4.6-20101124/gcc/../include -I../../gcc-4.6-20101124/gcc/../libcpp/include -I/sw/include -I/sw/include -I../../gcc-4.6-20101124/gcc/../libdecnumber -I../../gcc-4.6-20101124/gcc/../libdecnumber/dpd -I../libdecnumber -I/sw/include -I/sw/include -DCLOOG_INT_GMP -DCLOOG_ORG -I/sw/include ../../gcc-4.6-20101124/gcc/c-lang.c -o c-lang.o g++ -c -g -DIN_GCC -W -Wall -Wwrite-strings -Wcast-qual -fno-common -DHAVE_CONFIG_H -I. -Ic-family -I../../gcc-4.6-20101124/gcc -I../../gcc-4.6-20101124/gcc/c-family -I../../gcc-4.6-20101124/gcc/../include -I../../gcc-4.6-20101124/gcc/../libcpp/include -I/sw/include -I/sw/include -I../../gcc-4.6-20101124/gcc/../libdecnumber -I../../gcc-4.6-20101124/gcc/../libdecnumber/dpd -I../libdecnumber -I/sw/include -I/sw/include -DCLOOG_INT_GMP -DCLOOG_ORG -I/sw/include ../../gcc-4.6-20101124/gcc/c-family/stub-objc.c -o c-family/stub-objc.o In file included from /usr/include/c++/4.2.1/i686-apple-darwin10/x86_64/bits/c++locale.h:48, from /usr/include/c++/4.2.1/iosfwd:45, from /sw/include/gmp.h:24, from ../../gcc-4.6-20101124/gcc/double-int.h:24, from ../../gcc-4.6-20101124/gcc/tree.h:31, from ../../gcc-4.6-20101124/gcc/c-family/stub-objc.c:26: /usr/include/c++/4.2.1/cstring:75:8: error: attempt to use poisoned "strerror" /usr/include/c++/4.2.1/cstring:95:11: error: attempt to use poisoned "strerror" when using... ../gcc-4.6-20101124/configure --prefix=/sw --prefix=/sw/lib/gcc4.6 --mandir=/sw/share/man --infodir=/sw/lib/gcc4.6/info --enable-languages=c,c++,fortran,objc,obj-c++,java --with-gmp=/sw --with-libiconv-prefix=/sw --with-ppl=/sw --with-cloog=/sw --with-mpc=/sw --with-system-zlib --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib --program-suffix=-fsf-4.6 --enable-checking=yes --enable-cloog-backend=isl --enable-build-with-cxx