bootstrap 3.2.1 on solaris 8 host, failure at stage 2 for gcj

Anders Lennartsson anders.lennartsson@foi.se
Sun Jan 19 12:34:00 GMT 2003


I'm compiling gcc 3.2.1 on a sparc host running solaris 8, for install
in a non-standard directory. The faq says one can install binutils in
the very same directory first, and then gcc will use these instead of
solaris as and ld. Another method is to specify a default assembler
and linker, but one looses some flexibility.

The problem is that if I don't specify the as and ld already installed
in the gcc install directory as default as and ld, the bootstrap will
fail on the first instance where gcj is called, because it uses
/usr/ccs/bin/as even though the configure script has
identified gnu as in my install directory as the assembler to use.

I verified that if I install binutils in the gcc install directory,
configure with default as and ld pointing to the very same I just
installed, the bootstrap will succeed.
It also succeeds if I configure without default as and ld, but also
without the java language. So it seems the problem is concentrated
to the java stuff. I searched some mailing lists a little, but haven't
found anything very relevant.

Suppose the source of the problem can be found in configure scripts or
some makefile. Anyone got some clues?

Anders




More specifically the steps were as follows:

In a freshly unpacked binutils 2.13.2.1 I do
./configure --prefix=/usr/local/pkg/gcc/3.2.1-5 > \
   ~/log/binutils_configure.log 2>&1

make > ~/log/binutils_make.log 2>&1

make install > ~/log/binutils_install.log 2>&1




In an empty directory for building gcc I do

../gcc-3.2.1/configure --prefix=/usr/local/pkg/gcc/3.2.1-5 \
   --with-gnu-as --with-gnu-ld \
   --enable-threads > ~/log/gcc_configure.log 2>&1

make bootstrap > ~/log/gcc_make.log 2>&1





And the end of gcc_make.log is then (watch out for wrapped lines)


/bin/sh ./libtool --tag=GCJ --mode=compile
/disk1/local/pkg/gcc/src/3.2.1/obj-3.2.1-5/gcc/gcj
-B/disk1/local/pkg/gcc/src/3.2.1/obj-3.2.1-5/sparc-sun-solaris2.8/sparcv9/libjava/
-B/disk1/local/pkg/gcc/src/3.2.1/obj-3.2.1-5/gcc/ --encoding=UTF-8
-fclasspath=
-fbootclasspath=/disk1/local/pkg/gcc/src/3.2.1/obj-3.2.1-5/sparc-sun-solaris2.8/sparcv9/libjava
-g -O2  -m64 -MD -MT java/lang/Class.lo -MF java/lang/Class.d -c -o
java/lang/Class.lo ../../../../gcc-3.2.1/libjava/java/lang/Class.java

/disk1/local/pkg/gcc/src/3.2.1/obj-3.2.1-5/gcc/gcj
-B/disk1/local/pkg/gcc/src/3.2.1/obj-3.2.1-5/sparc-sun-solaris2.8/sparcv9/libjava/
-B/disk1/local/pkg/gcc/src/3.2.1/obj-3.2.1-5/gcc/ --encoding=UTF-8
-fclasspath=
-fbootclasspath=/disk1/local/pkg/gcc/src/3.2.1/obj-3.2.1-5/sparc-sun-solaris2.8/sparcv9/libjava
-g -O2 -m64 -MD -MT java/lang/Class.lo -MF java/lang/Class.d -c
../../../../gcc-3.2.1/libjava/java/lang/Class.java -fPIC -o
java/lang/.libs/Class.o
/usr/ccs/bin/as: error: unknown option '6'
/usr/ccs/bin/as: error: unknown option '4'
/usr/ccs/bin/as: error: unknown option 'A'
/usr/ccs/bin/as: error: unknown option 'v'
/usr/ccs/bin/as: error: unknown option '9'
usage: /usr/ccs/bin/as [-V] [-Q{y,n}] [-f[O][if]#] [-q] [-s]
          [-S] [-K {pic,PIC}] [-o objfile] [-L] [-T]
          [-P [[-Ipath] [-Dname] [-Dname=def] [-Uname]]...]
          [-m [-Ym,path]] [-n] [-xF] [-xarch=v7] [-xarch=v8]
[-xarch=v8a] [-xarch=v8plus] [-xarch=v8plusa] [-xarch=v8plusb] 
[-xarch=v9] [-xarch=v9a] [-xarch=v9b]  [-xcode={pic13,pic32}] file.s...
make[5]: *** [java/lang/Class.lo] Error 1
make[5]: Leaving directory
`/disk1/local/pkg/gcc/src/3.2.1/obj-3.2.1-5/sparc-sun-solaris2.8/sparcv9/libjava'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory
`/disk1/local/pkg/gcc/src/3.2.1/obj-3.2.1-5/sparc-sun-solaris2.8/sparcv9/libjava'
make[3]: *** [multi-do] Error 1
make[3]: Leaving directory
`/disk1/local/pkg/gcc/src/3.2.1/obj-3.2.1-5/sparc-sun-solaris2.8/libjava'
make[2]: *** [all-multi] Error 2
make[2]: Leaving directory
`/disk1/local/pkg/gcc/src/3.2.1/obj-3.2.1-5/sparc-sun-solaris2.8/libjava'
make[1]: *** [all-target-libjava] Error 2
make[1]: Leaving directory `/disk1/local/pkg/gcc/src/3.2.1/obj-3.2.1-5'
make: *** [bootstrap] Error 2



More information about the Gcc-bugs mailing list