[Bug c/55293] Attempt to bootstrap GCC 4.7.2 on Solaris 10 Sparc fails with gcc/pretty-print.c:954:28: error: invalid conversion from 'char**' to 'const char**' [-fpermissive]
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55293 --- Comment #1 from Jonathan Wakely redi at gcc dot gnu.org 2012-11-12 21:48:46 UTC --- Solaris defines a non-standard iconv() signature unless you request POSIX 2001 Try adding -D_XOPEN_SOURCE=600 to the compilation flags
[Bug c/55293] Attempt to bootstrap GCC 4.7.2 on Solaris 10 Sparc fails with gcc/pretty-print.c:954:28: error: invalid conversion from 'char**' to 'const char**' [-fpermissive]
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55293 --- Comment #2 from Jonathan Wakely redi at gcc dot gnu.org 2012-11-12 21:50:08 UTC --- Or -D_POSIX_C_SOURCE=200112L
[Bug c/55293] Attempt to bootstrap GCC 4.7.2 on Solaris 10 Sparc fails with gcc/pretty-print.c:954:28: error: invalid conversion from 'char**' to 'const char**' [-fpermissive]
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55293 --- Comment #3 from Dennis Clarke dclarke at blastwave dot org 2012-11-12 22:07:29 UTC --- OKay, I am extracting a fresh gcc 4.7.2 tarball and then running a new bootstrap with the defines suggested. Results should appear in seven hours or so, however I am hoping for results in 24 hours as that would be a full three stage bootstrap.
[Bug c/55293] Attempt to bootstrap GCC 4.7.2 on Solaris 10 Sparc fails with gcc/pretty-print.c:954:28: error: invalid conversion from 'char**' to 'const char**' [-fpermissive]
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55293 --- Comment #4 from Dennis Clarke dclarke at blastwave dot org 2012-11-12 22:10:01 UTC --- bootstrap fails in 71 seconds : $ mkdir gcc-4.7.2_sparc64-sun-solaris2.10 $ cd gcc-4.7.2_sparc64-sun-solaris2.10 $ env | sort ../gcc-4.7.2_sparc64-sun-solaris2.10.env $ ls -la total 20 drwxr-xr-x 2 dclarke other 2 Nov 12 21:58 . drwxrwxr-x 138 root adbs 247 Nov 12 21:58 .. $ $ pwd /usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10 $ uname -a SunOS node002 5.10 Generic_147440-23 sun4v sparc SUNW,T5240 $ $ env | sort AR=/usr/ccs/bin/ar AS=/usr/ccs/bin/as BUILD=/usr/local/build CC=/opt/csw/gcc4/bin/gcc COLUMNS=124 CONFIG_SHELL=/bin/bash CPPFLAGS=-I/usr/local/include:/opt/csw/gcc4/include CXX=/opt/csw/gcc4/bin/g++ EDITOR=/usr/xpg4/bin/vi HOME=/export/home/dclarke LANG=C LC_ALL=C LC_COLLATE=C LC_CTYPE=C LC_MESSAGES=C LC_MONETARY=C LC_NUMERIC=C LC_TIME=C LD=/usr/ccs/bin/ld LD_LIBRARY_PATH=/usr/local/lib:/opt/csw/gcc4/lib/sparcv9:/opt/csw/gcc4/lib LD_OPTIONS=-R/usr/local/lib:/opt/csw/gcc4/lib/$ISALIST:/opt/csw/gcc4/lib -L/usr/local/lib:/opt/csw/gcc4/lib/$ISALIST:/opt/csw/gcc4/lib LD_RUN_PATH=/usr/local/lib:/opt/csw/gcc4/lib/$ISALIST LINES=43 LOGNAME=dclarke M4=/usr/local/bin/gm4 MACHTYPE=sparc-sun-solaris MAIL=/usr/mail/dclarke MAKE=/usr/local/bin/gmake MANPATH=/usr/local/man:/usr/local/share/man:/usr/share/man:/usr/X11/share/man OSTYPE=solaris PAGER=/usr/xpg4/bin/more PATH=/opt/csw/gcc4/bin:/usr/local/bin:/usr/local/sbin:/usr/xpg6/bin:/usr/xpg4/bin:/usr/ccs/bin:/usr/bin:/sbin:/bin:/usr/sbin:/usr/dt/bin:/usr/openwin/bin:/opt/schily/bin:/usr/local/texlive/2012/bin/sparc-solaris PERL=/usr/local/bin/perl PKG_CONFIG_PATH=/usr/local/lib/pkgconfig PWD=/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10 SED=/usr/local/bin/gsed SHELL=/bin/ksh SRC=/usr/local/src SSH_CLIENT=66.103.52.207 33595 22 SSH_CONNECTION=66.103.52.207 33595 66.225.151.250 22 SSH_TTY=/dev/pts/1 STY=4301.pts-1.node002 TERM=vt100 TZ=GMT0 USER=dclarke VISUAL=/usr/xpg4/bin/vi WINDOW=3 _=/usr/xpg4/bin/env $ $ which gcc /opt/csw/gcc4/bin/gcc $ $ gcc --version gcc (Blastwave.org Inc. Mon Aug 9 07:10:45 GMT 2010) 4.5.1 Copyright (C) 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ $ ls -lad ../gcc-4.7.2 drwxr-xr-x 33 dclarke other 75 Oct 29 04:04 ../gcc-4.7.2 $ $ which as /usr/ccs/bin/as $ which ld /usr/ccs/bin/ld $ $ echo $CFLAGS $ echo $CXXFLAGS $ $ CC='gcc -m64 -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=600 -g -mno-app-regs -mcpu=v9 -D_TS_ERRNO' \ CXX='g++ -m64 -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=600 -g -mno-app-regs -mcpu=v9 -D_TS_ERRNO' \ ../gcc-4.7.2/configure --prefix=/usr/local/gcc4 \ --build=sparc64-sun-solaris2.10 --without-gnu-as --without-gnu-ld \ --with-gmp=/usr/local --with-mpfr=/usr/local --with-mpc=/usr/local \ --with-ld=/usr/ccs/bin/ld --enable-nls --enable-threads=posix --enable-shared \ --libdir=/usr/local/gcc4/lib --with-local-prefix=/usr/local/gcc4 \ --with-cpu=v9 --enable-stage1-languages=c --disable-multilib \ --libexecdir=/usr/local/gcc4/lib \ --with-pkgversion=Blastwave.org\ Inc.\ Mon\ Nov\ 12\ 22\:02\:41\ GMT\ 2012 \ --with-bugurl=http\:\/\/www.blastwave.org\/support \ --enable-languages=c,c++,objc,fortran,ada --enable-bootstrap checking build system type... sparc64-sun-solaris2.10 checking host system type... sparc64-sun-solaris2.10 checking target system type... sparc64-sun-solaris2.10 checking for a BSD-compatible install... ../gcc-4.7.2/install-sh -c checking whether ln works... yes checking whether ln -s works... yes checking for a sed that does not truncate output... /usr/local/bin/gsed checking for gawk... gawk checking for libitm support... yes checking for gcc... gcc -m64 -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=600 -g -mno-app-regs -mcpu=v9 -D_TS_ERRNO checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc -m64 -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=600 -g -mno-app-regs -mcpu=v9 -D_TS_ERRNO accepts -g... yes checking for gcc -m64 -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=600 -g -mno-app-regs -mcpu=v9 -D_TS_ERRNO option to accept ISO C89... unsupported checking whether we are using the GNU C++ compiler... yes checking whether g++ -m64 -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=600 -g -mno-app-regs -mcpu=v9 -D_TS_ERRNO accepts -g... yes checking for gnatbind... gnatbind checking for gnatmake... gnatmake checking whether compiler driver understands Ada... yes checking how to compare
[Bug c/55293] Attempt to bootstrap GCC 4.7.2 on Solaris 10 Sparc fails with gcc/pretty-print.c:954:28: error: invalid conversion from 'char**' to 'const char**' [-fpermissive]
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55293 --- Comment #5 from Dennis Clarke dclarke at blastwave dot org 2012-11-12 22:44:19 UTC --- okay, exact same failure happens with -D_POSIX_C_SOURCE=200112L by itself. Am trying with _XOPEN_SOURCE=600 defined. Thus far ( well past 70 secs ) the stage 1 phase seems to be running. So I will report what I see in seven hours or more .. hopefully a lot lot more. dc
[Bug c/55293] Attempt to bootstrap GCC 4.7.2 on Solaris 10 Sparc fails with gcc/pretty-print.c:954:28: error: invalid conversion from 'char**' to 'const char**' [-fpermissive]
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55293 --- Comment #6 from Dennis Clarke dclarke at blastwave dot org 2012-11-12 23:06:56 UTC --- the following fails also .. and it fails early : $ $ CC='gcc -m64 -g -D_XOPEN_SOURCE=600' CXX='g++ -m64 -g -D_XOPEN_SOURCE=600' \ ../gcc-4.7.2/configure --prefix=/usr/local/gcc4 --build=sparc64-sun-solaris2.10 --without-gnu-as \ --without-gnu-ld --with-gmp=/usr/local --with-mpfr=/usr/local --with-mpc=/usr/local --with-ld=/usr/ccs/bin/ld \ --enable-nls --enable-threads=posix --enable-shared --libdir=/usr/local/gcc4/lib --with-local-prefix=/usr/local/gcc4 \ --with-cpu=v9 --enable-stage1-languages=c --disable-multilib --libexecdir=/usr/local/gcc4/lib \ --with-pkgversion=Blastwave.org\ Inc.\ Mon\ Nov\ 12\ 22\:56\:32\ GMT\ 2012 \ --with-bugurl=http\:\/\/www.blastwave.org\/support --enable-languages=c,c++,objc,fortran,ada --enable-bootstrap checking build system type... sparc64-sun-solaris2.10 checking host system type... sparc64-sun-solaris2.10 checking target system type... sparc64-sun-solaris2.10 checking for a BSD-compatible install... ../gcc-4.7.2/install-sh -c checking whether ln works... yes checking whether ln -s works... yes checking for a sed that does not truncate output... /usr/local/bin/gsed checking for gawk... gawk checking for libitm support... yes checking for gcc... gcc -m64 -g -D_XOPEN_SOURCE=600 checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc -m64 -g -D_XOPEN_SOURCE=600 accepts -g... yes checking for gcc -m64 -g -D_XOPEN_SOURCE=600 option to accept ISO C89... unsupported checking whether we are using the GNU C++ compiler... yes checking whether g++ -m64 -g -D_XOPEN_SOURCE=600 accepts -g... yes checking for gnatbind... gnatbind checking for gnatmake... gnatmake checking whether compiler driver understands Ada... yes checking how to compare bootstrapped objects... cmp $$f1 $$f2 16 16 checking for objdir... .libs checking for the correct version of gmp.h... yes checking for the correct version of mpfr.h... yes checking for the correct version of mpc.h... yes checking for the correct version of the gmp/mpfr/mpc libraries... yes checking for PWL_handle_timeout in -lpwl... no checking for version 0.11 (revision 0 or later) of PPL... no The following languages will be built: c,ada,c++,fortran,lto,objc *** This configuration is not supported in the following subdirectories: target-libmudflap target-libgo target-libffi target-zlib target-libjava target-boehm-gc (Any other directories should still work fine.) checking for default BUILD_CONFIG... bootstrap-debug checking for bison... bison -y checking for bison... bison checking for gm4... /usr/local/bin/gm4 checking for flex... flex checking for flex... flex checking for makeinfo... makeinfo checking for expect... expect checking for runtest... runtest checking for ar... (cached) /usr/ccs/bin/ar checking for as... (cached) /usr/ccs/bin/as checking for dlltool... no checking for ld... (cached) /usr/ccs/bin/ld checking for lipo... no checking for nm... nm checking for ranlib... ranlib checking for strip... strip checking for windres... no checking for windmc... no checking for objcopy... no checking for objdump... no checking for readelf... no checking for cc... cc checking for c++... c++ checking for gcc... gcc checking for gcj... no checking for gfortran... gfortran checking for gccgo... no checking for ar... no checking for ar... ar checking for as... no checking for as... as checking for dlltool... no checking for dlltool... no checking for ld... no checking for ld... ld checking for lipo... no checking for lipo... no checking for nm... no checking for nm... nm checking for objdump... no checking for objdump... no checking for ranlib... no checking for ranlib... ranlib checking for readelf... no checking for readelf... no checking for strip... no checking for strip... strip checking for windres... no checking for windres... no checking for windmc... no checking for windmc... no checking where to find the target ar... host tool checking where to find the target as... host tool checking where to find the target cc... just compiled checking where to find the target c++... just compiled checking where to find the target c++ for libstdc++... just compiled checking where to find the target dlltool... host tool checking where to find the target gcc... just compiled checking where to find the target gcj... host tool checking where to find the target gfortran... just compiled checking where to find the target gccgo... host tool checking where to find the target ld... host tool checking where to find the target lipo... host