This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: 64bit code generation for 3.1 on solaris?
- To: Brad Lucier <lucier at math dot purdue dot edu>
- Subject: Re: 64bit code generation for 3.1 on solaris?
- From: Kenneth Lareau <elessar at numenor dot org>
- Date: Tue, 10 Apr 2001 19:14:45 -0700
- cc: gcc at gcc dot gnu dot org
Since the question was raised about other's success, I myself have also
tried to build a 64-bit capable compiler on Solaris 8. My first step was
running the following (using gcc 2.95.2 as the initial compiler):
CFLAGS=-O ./configure --prefix=/usr/local/gnu32 --enable-shared --target=sparcv9-sun-solaris2.8 --host=sparcv9-sun-solaris2.8 --enable-languages=c
make all install
then setting CC to "/usr/local/gnu32/bin/gcc -m64":
CFLAGS=-O2 ../configure --prefix=/usr/local/gnu64 --enable-shared --target=sparcv9-sun-solaris2.8 --host=sparcv9-sun-solaris2.8 --enable-languages=c
make install
With this I was able to get a C compiler capable of building simple 64-bit
binaries (I really only did a simple "Hello world!" test, but it did work).
However, when I attempted to do a full bootstrap, setting CC to
"/usr/local/gnu64/bin/gcc -m64" and running:
../configure --enable-shared --with-stabs --enable-threads --with-cpu=ultrasparc --target=sparcv9-sun-solaris2.8 --host=sparcv9-sun-solaris2.8
the build failed during the initial stage with the following:
if [ -f lang-f77 ]; then \
/usr/local/gnu64/bin/gcc -m64 -c -DIN_GCC -DSVR4 -g -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/config -I../../gcc/../include -o g77version.o \
../../gcc/f/version.c; \
else true; fi
if [ -f lang-f77 ]; then \
/usr/local/gnu64/bin/gcc -m64 -DIN_GCC -DSVR4 -g -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -o g77 gcc.o g77spec.o g77version.o \
version.o prefix.o intl.o obstack.o ../libiberty/libiberty.a; \
else true; fi
./xgcc -B./ -B/usr/local/sparcv9-sun-solaris2.8/bin/ -isystem /usr/local/sparcv9-sun-solaris2.8/include -DIN_GCC -DSVR4 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/config -I../../gcc/../include -g0 \
-finhibit-size-directive -fno-inline-functions \
-fno-exceptions -fPIC \
-c ../../gcc/crtstuff.c -DCRT_END -o crtend.o
../../gcc/crtstuff.c: In function _do_global_ctors_aux':
../../gcc/crtstuff.c:404: Internal error: Segmentation Fault
Please submit a full bug report, with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
make[2]: *** [crtend.o] Error 1
make[2]: Leaving directory home/klareau/gcc-3.0/gcc/sparc64-sun-solaris2.8/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory home/klareau/gcc-3.0/gcc/sparc64-sun-solaris2.8/gcc'
make: *** [bootstrap] Error 2
I am one of the many (I would assume) out there who'd really like to see a
working 64-bit capable gcc for SPARC, given that I'm unable to build simple
things like 'lsof' and 'top' on the new UltraSPARC III systems without
spending several thousand dollars on Sun's own compiler. It would be a
great joy to finally see gcc able to do this, and I keep getting the feeling
that things are really close now, but still a few kinks to iron out.
Ken Lareau
klareau@ea.com