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: unassig...@gcc.gnu.org
        ReportedBy: howa...@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

Reply via email to