public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* the struggle for a 64-bit GCC on Solaris 10 - part 2
@ 2012-11-12 16:10 Dennis Clarke
  2012-11-12 16:53 ` Ryan Johnson
  2012-11-12 17:54 ` Ian Lance Taylor
  0 siblings, 2 replies; 29+ messages in thread
From: Dennis Clarke @ 2012-11-12 16:10 UTC (permalink / raw)
  To: gcc-help; +Cc: ebotcazou, ryan.johnson, jwakely.gcc


[ note : correctly posted in gcc-help ]

After many a foolish mistake and even a few blunt trauma foul ups on my part I seem 
to have this process moving along. The magic incantations required appear to be to 
specify environment variables for CC and CXX on the very command line that "configure" 
is also on.  As well as a correct magic "triplet". Odd, given that many environment variables
for CC and CXX as well as CFLAGS and CXXFLAGS are already defined in the env vars.
Regardless the following configure for GCC 4.7.2 resulted in an error : 

$ pwd
/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.ebotcazou  <-- pay homage to the wizards here :-)

$ CC='gcc -m64' CXX='g++ -m64' ../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\ 04\:18\:15\ 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
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 accepts -g... yes
checking for gcc -m64 option to accept ISO C89... none needed
checking whether we are using the GNU C++ compiler... yes
checking whether g++ -m64 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... 
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 tool
checking where to find the target nm... host tool
checking where to find the target objdump... host tool
checking where to find the target ranlib... host tool
checking where to find the target readelf... host tool
checking where to find the target strip... host tool
checking where to find the target windres... host tool
checking where to find the target windmc... host tool
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether -fkeep-inline-functions is supported... yes
configure: creating ./config.status
config.status: creating Makefile
$ 

then fire off a "/usr/bin/time -p gmake" and wait .. a long long time later in stage 2 I see : 

.
.
.
 /usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.ebotcazou/./prev-gcc/g++ -B/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.ebotcazou/./prev-gcc/ -B/usr/local/gcc4/sparc64-sun-solaris2.10/bin/ -nostdinc++ -B/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.ebotcazou/prev-sparc64-sun-solaris2.10/libstdc++-v3/src/.libs -B/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.ebotcazou/prev-sparc64-sun-solaris2.10/libstdc++-v3/libsupc++/.libs -I/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.ebotcazou/prev-sparc64-sun-solaris2.10/libstdc++-v3/include/sparc64-sun-solaris2.10 -I/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.ebotcazou/prev-sparc64-sun-solaris2.10/libstdc++-v3/include -I/usr/local/build/gcc-4.7.2/libstdc++-v3/libsupc++ -L/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.ebotcazou/prev-sparc64-sun-solaris2.10/libstdc++-v3/src/.libs -L/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.ebotcazou/prev-sparc64-sun-solaris2.10/libstdc++-v3/libsupc++/.libs -c  
 -g -O2 -DIN_GCC   -fno-exceptions -fno-rtti -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -I. -I. -I../../gcc-4.7.2/gcc -I../../gcc-4.7.2/gcc/. -I../../gcc-4.7.2/gcc/../include -I./../intl -I../../gcc-4.7.2/gcc/../libcpp/include -I/usr/local/include -I/usr/local/include -I/usr/local/include  -I../../gcc-4.7.2/gcc/../libdecnumber -I../../gcc-4.7.2/gcc/../libdecnumber/dpd -I../libdecnumber   -I/usr/local/include:/opt/csw/gcc4/include ../../gcc-4.7.2/gcc/diagnostic.c -o diagnostic.o
/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.ebotcazou/./prev-gcc/g++ -B/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.ebotcazou/./prev-gcc/ -B/usr/local/gcc4/sparc64-sun-solaris2.10/bin/ -nostdinc++ -B/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.ebotcazou/prev-sparc64-sun-solaris2.10/libstdc++-v3/src/.libs -B/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.ebotcazou/prev-sparc64-sun-solaris2.10/libstdc++-v3/libsupc++/.libs -I/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.ebotcazou/prev-sparc64-sun-solaris2.10/libstdc++-v3/include/sparc64-sun-solaris2.10 -I/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.ebotcazou/prev-sparc64-sun-solaris2.10/libstdc++-v3/include -I/usr/local/build/gcc-4.7.2/libstdc++-v3/libsupc++ -L/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.ebotcazou/prev-sparc64-sun-solaris2.10/libstdc++-v3/src/.libs -L/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.ebotcazou/prev-sparc64-sun-solaris2.10/libstdc++-v3/libsupc++/.libs -c   
-g -O2 -DIN_GCC   -fno-exceptions -fno-rtti -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -I. -I. -I../../gcc-4.7.2/gcc -I../../gcc-4.7.2/gcc/. -I../../gcc-4.7.2/gcc/../include -I./../intl -I../../gcc-4.7.2/gcc/../libcpp/include -I/usr/local/include -I/usr/local/include -I/usr/local/include  -I../../gcc-4.7.2/gcc/../libdecnumber -I../../gcc-4.7.2/gcc/../libdecnumber/dpd -I../libdecnumber   -I/usr/local/include:/opt/csw/gcc4/include ../../gcc-4.7.2/gcc/pretty-print.c -o pretty-print.o
../../gcc-4.7.2/gcc/pretty-print.c: In function 'const char* identifier_to_locale(const char*)':
../../gcc-4.7.2/gcc/pretty-print.c:954:28: error: invalid conversion from 'char**' to 'const char**' [-fpermissive]
gmake[3]: *** [pretty-print.o] Error 1
gmake[3]: Leaving directory `/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.ebotcazou/gcc'
gmake[2]: *** [all-stage2-gcc] Error 2
gmake[2]: Leaving directory `/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.ebotcazou'
gmake[1]: *** [stage2-bubble] Error 2
gmake[1]: Leaving directory `/usr/local/build/gcc-4.7.2_sparc64-sun-solaris2.10.ebotcazou'
gmake: *** [all] Error 2

real 27941.42
user 24133.86
sys 713.93


$ cat stage_current
stage2

It looks as if stage 1 was finished and then somewhere in stage 2 we get a C error in gcc/pretty-print.c.

Anyone have any thoughts on this one ? 

Dennis 

ps: I did try to use the wizard like incantations that have things like --with-{gmp,mpfr,mpc}=/usr/local on the configure line, 
however that was seen as an error .. or simply not understood by "configure" : 

$ CC='gcc -m64' CXX='g++ -m64' ../gcc-4.7.2/configure --prefix=/usr/local/gcc4 \
> --build=sparc64-sun-solaris2.10 --without-gnu-{as,ld} --with-{gmp,mpfr,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\ 04\:18\:15\ GMT\ 2012 \
> --with-bugurl=http\:\/\/www.blastwave.org\/support \
> --enable-languages=c,c++,objc,fortran,ada --enable-bootstrap
configure: error: invalid package name: gnu-{as,ld}


^ permalink raw reply	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2012-11-15  1:01 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-12 16:10 the struggle for a 64-bit GCC on Solaris 10 - part 2 Dennis Clarke
2012-11-12 16:53 ` Ryan Johnson
2012-11-12 17:09   ` Dennis Clarke
2012-11-12 17:54 ` Ian Lance Taylor
2012-11-12 21:00   ` Dennis Clarke
2012-11-12 21:17     ` Ryan Johnson
2012-11-12 21:20       ` Dennis Clarke
2012-11-12 21:26         ` Jonathan Wakely
2012-11-12 21:33           ` Dennis Clarke
2012-11-12 21:41             ` Ryan Johnson
2012-11-12 21:57               ` Dennis Clarke
2012-11-12 22:13                 ` Jonathan Wakely
2012-11-12 22:22                   ` Dennis Clarke
2012-11-12 22:32                     ` Jonathan Wakely
2012-11-12 22:37                       ` Dennis Clarke
2012-11-12 22:49                         ` Jonathan Wakely
2012-11-12 22:49                           ` Jonathan Wakely
2012-11-12 22:55                             ` Dennis Clarke
2012-11-12 23:26                               ` Jonathan Wakely
2012-11-15  1:01                                 ` Dennis Clarke
2012-11-12 23:04                             ` Dennis Clarke
2012-11-12 23:17                     ` Ryan Johnson
2012-11-12 23:19                       ` Dennis Clarke
2012-11-12 23:15                   ` Ryan Johnson
2012-11-12 23:17                     ` Dennis Clarke
2012-11-12 23:25                       ` Ryan Johnson
2012-11-12 21:29       ` Marc Glisse
2012-11-12 21:34         ` Ryan Johnson
2012-11-12 21:36         ` Dennis Clarke

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).