3.1 bootstrap fails on sparcv9-sun-solaris2.8

Brad Lucier lucier@math.purdue.edu
Tue Apr 10 16:15:00 GMT 2001


Rainer Orth writes:
> 
> Brad Lucier <lucier@math.purdue.edu> writes:
> 
> > OK, I tried this with
> > 
> > ../configure sparcv9-sun-solaris2.8 --enable-checking=no --prefix=/pkgs/gcc-2.96 --enable-languages='c'
> > make all
> > make install
> > 
> > which worked, then, with new gcc being the default gcc, doing
> > 
> > ../configure sparcv9-sun-solaris2.8 --enable-checking=no --prefix=/pkgs/gcc-2.96
> >  --enable-languages='c'
> > make bootstrap
> > 
> > which failed.  (The stage1 xgcc segfaulted.)
> > 
> > But the solaris port has many more problems than this, and I don't think
> > that you or I can fix them at this point.
> 
> I managed to bootstrap the 3.0 branch (20010402) with
> 
> 	CC='cc -xarch=v9' configure sparcv9-sun-solaris2.8
> 	make bootstrap
> 	make RUNTESTFLAGS='--target_board "unix{-m32,}"' check
> 
> You need to apply
> 
> 	http://gcc.gnu.org/ml/gcc-patches/2001-04/msg00250.html
> 

It doesn't work with today's CVS, I tried

banach-115% env CC='cc -xarch=v9' ../configure sparcv9-sun-solaris2.8

and got with make bootstrap:

make CC="cc -xarch=v9" libdir=/usr/local/lib LANGUAGES="c "
make[2]: Entering directory `/export/home/lucier/gcc/gcc-3.0/objdir/gcc'
cc -xarch=v9 -c  -DIN_GCC  -DSVR4  -g    -DHAVE_CONFIG_H -DGENERATOR_FILE    -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/config -I../../gcc/../include ../../gcc/gengenrtl.c
rm -f obstack.c
ln -s ../../gcc/../libiberty/obstack.c obstack.c
cc -xarch=v9 -c  -DIN_GCC  -DSVR4  -g    -DHAVE_CONFIG_H -DGENERATOR_FILE    -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/config -I../../gcc/../include \
        obstack.c -o obstack.o
rm -f alloca.c
ln -s ../../gcc/../libiberty/alloca.c alloca.c
cc -xarch=v9  -DIN_GCC  -DSVR4  -g    -DHAVE_CONFIG_H -DGENERATOR_FILE    -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/config -I../../gcc/../include \
 -c alloca.c
true
cc -xarch=v9  -DIN_GCC  -DSVR4  -g    -DHAVE_CONFIG_H -DGENERATOR_FILE  -o gengenrtl \
 gengenrtl.o ` case "obstack.o" in ?*) echo obstack.o ;; esac ` ` case "alloca.o" in ?*) echo alloca.o ;; esac ` ` case "" in ?*) echo  ;; esac ` ` case "" in ?*) echo  ;; esac ` ` case "" in ?*) echo  ;; esac ` ` case "" in ?*) echo  ;; esac `
ild: (bad file) Input file /usr/lib/libc.a contains 32-bit relocatable, but producing a 64-bit file.
make[2]: *** [gengenrtl] Error 1
make[2]: Leaving directory `/export/home/lucier/gcc/gcc-3.0/objdir/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/export/home/lucier/gcc/gcc-3.0/objdir/gcc'
make: *** [bootstrap] Error 2

Brad



More information about the Gcc-bugs mailing list