Shaun Deacon wrote: > Hi, > > I posted this on gcc-java but didn't receive any replies. Sorry for > cross-posting, but perhaps this is the more appropriate list... > > I'm currently trying to build gcc 3.4.6 on a Solaris 5.8 box for a colleague > who requires this version and gcj (our default gcc is built for c, c++, and > fortran). However, I'm getting the following error and haven't found any > clues in any forums : > > <snip> > > /home/sdeacon/tools/gcc/build/gcc/xgcc -shared-libgcc > -B/home/sdeacon/tools/gcc/build/gcc/ -nostdinc++ > -L/home/sdeacon/tools/gcc/build/sparc-sun-solaris2.8/sparcv9/libstdc++-v3/src > -L/home/sdeacon/tools/gcc/build/sparc-sun-solaris2.8/sparcv9/libstdc++-v3/src/.libs > -B/home/sdeacon/gcc/sparc-sun-solaris2.8/bin/ > -B/home/sdeacon/gcc/sparc-sun-solaris2.8/lib/ -isystem > /home/sdeacon/gcc/sparc-sun-solaris2.8/include -isystem > /home/sdeacon/gcc/sparc-sun-solaris2.8/sys-include -m64 -DHAVE_CONFIG_H -I. > -I../../../../gcc-3.4.6/libjava -I./include -I./gcj > -I../../../../gcc-3.4.6/libjava -Iinclude > -I../../../../gcc-3.4.6/libjava/include > -I/home/sdeacon/tools/gcc/gcc-3.4.6/boehm-gc/include -DGC_SOLARIS_THREADS=1 > -DGC_SOLARIS_PTHREADS=1 -DSILENT=1 -DNO_SIGNALS=1 -DALL_INTERIOR_POINTERS=1 > -DJAVA_FINALIZATION=1 -DGC_GCJ_SUPPORT=1 -DATOMIC_UNCOLLECTABLE=1 > -I../../../../gcc-3.4.6/libjava/libltdl > -I../../../../gcc-3.4.6/libjava/libltdl > -I../../../../gcc-3.4.6/libjava/.././libjava/../gcc > -I../../../../gcc-3.4.6/libjava/../zlib > -I../../../../gcc-3.4.6/libjava/../libffi/include -I../libffi/include -O2 -O > -I/usr/local/include -fno-rtti -fnon-call-exceptions > -fdollars-in-identifiers -Wswitch-enum -W -Wall -D_GNU_SOURCE > -DPREFIX=\"/home/sdeacon/gcc\" -DLIBDIR=\"/home/sdeacon/gcc/lib\" > -DBOOT_CLASS_PATH=\"/home/sdeacon/gcc/share/java/libgcj-3.4.6.jar\" -g -O2 > -m64 -Wp,-MD,.deps/posix.pp -c ../../../../gcc-3.4.6/libjava/posix.cc -o > posix.o >/dev/null 2>&1 > Creating list of files to link... > /bin/sh ./libtool --tag=CXX --mode=link > /home/sdeacon/tools/gcc/build/gcc/xgcc -shared-libgcc > -B/home/sdeacon/tools/gcc/build/gcc/ -nostdinc++ > -L/home/sdeacon/tools/gcc/build/sparc-sun-solaris2.8/sparcv9/libstdc++-v3/src > -L/home/sdeacon/tools/gcc/build/sparc-sun-solaris2.8/sparcv9/libstdc++-v3/src/.libs > -B/home/sdeacon/gcc/sparc-sun-solaris2.8/bin/ > -B/home/sdeacon/gcc/sparc-sun-solaris2.8/lib/ -isystem > /home/sdeacon/gcc/sparc-sun-solaris2.8/include -isystem > /home/sdeacon/gcc/sparc-sun-solaris2.8/sys-include -m64 > -L/home/sdeacon/tools/gcc/build/sparc-sun-solaris2.8/sparcv9/libjava -g -O2 > -m64 -m64 -o libgcj.la -objectlist libgcj.objectlist \ > ../boehm-gc/libgcjgc_convenience.la ../libffi/libffi_convenience.la > ../zlib/libzgcj_convenience.la \ > -rpath /home/sdeacon/gcc/lib/sparcv9 -rpath /home/sdeacon/gcc/lib/sparcv9 > -lpthread -lrt ./libltdl/libltdlc.la -version-info `grep -v '^#' > ../../../../gcc-3.4.6/libjava/libtool-version` > libtool: link: link input file `' does not exist > gmake[5]: *** [libgcj.la] Error 1 > gmake[5]: Leaving directory > `/home/sdeacon/tools/gcc/build/sparc-sun-solaris2.8/sparcv9/libjava' > gmake[4]: *** [all-recursive] Error 1 > gmake[4]: Leaving directory > `/home/sdeacon/tools/gcc/build/sparc-sun-solaris2.8/sparcv9/libjava' > gmake[3]: *** [multi-do] Error 1 > gmake[3]: Leaving directory > `/home/sdeacon/tools/gcc/build/sparc-sun-solaris2.8/libjava' > gmake[2]: *** [all-multi] Error 2 > gmake[2]: Leaving directory > `/home/sdeacon/tools/gcc/build/sparc-sun-solaris2.8/libjava' > gmake[1]: *** [all-target-libjava] Error 2 > gmake[1]: Leaving directory `/home/sdeacon/tools/gcc/build' > gmake: *** [bootstrap-lean] Error 2 > > My build configuration was as follows : > > ./configure --prefix=/home/sdeacon/gcc --enable-shared > --enable-languages=c,c++,java --with-libiconv-prefix=/usr/local > > The error occurs with both 'make bootstrap' and 'make bootstrap-lean' > > The version of gcc used for the build is 3.4.6 with the following config : > > Configured with: ../configure --with-as=/usr/ccs/bin/as > --with-ld=/usr/ccs/bin/ld --enable-shared --enable-languages=c,c++,f77 > Thread model: posix > > Any suggestions would be most appreciated. Well, it's a libtool bug in a very old version of gcc. To start with, try running the command that starts with "bin/sh ./libtool " on its own, and we can try to figure out what's going wrong. This may be hard to fix, and nobody will be very enthusiastic about exhuming the corpse of gcc 3.4.6. Andrew.