> My attempt to build on Solaris 2.8 with binutils 2.16.1 died with > > /bin/ksh ./libtool --tag=GCJ --mode=link > /remote/atg2/jbuck/solaris.tmp/411/gcc/gcj > -B/remote/atg2/jbuck/solaris.tmp/411/sparc-sun-solaris2.8/libjava/ > -B/remote/atg2/jbuck/solaris.tmp/411/gcc/ > -L/remote/atg2/jbuck/solaris.tmp/411/sparc-sun-solaris2.8/libjava -g -O2 > -o jv-convert --main=gnu.gcj.convert.Convert -rpath > /u/jbuck/cvs.sol2/4.1.1/lib -shared-libgcc > -L/remote/atg2/jbuck/solaris.tmp/411/sparc-sun-solaris2.8/libjava/.libs > libgcj.la /remote/atg2/jbuck/solaris.tmp/411/gcc/gcj > -B/remote/atg2/jbuck/solaris.tmp/411/sparc-sun-solaris2.8/libjava/ > -B/remote/atg2/jbuck/solaris.tmp/411/gcc/ -g -O2 -o .libs/jv-convert > --main=gnu.gcj.convert.Convert -shared-libgcc > -L/remote/atg2/jbuck/solaris.tmp/411/sparc-sun-solaris2.8/libjava > -L/remote/atg2/jbuck/solaris.tmp/411/sparc-sun-solaris2.8/libjava/.libs > ./.libs/libgcj.so > -L/remote/atg2/jbuck/solaris.tmp/411/sparc-sun-solaris2.8/libstdc++-v3/src > -L/remote/atg2/jbuck/solaris.tmp/411/sparc-sun-solaris2.8/libstdc++-v3/src/ >.libs -lpthread -lrt -ldl -L/remote/atg2/jbuck/solaris.tmp/411/./gcc > -L/usr/ccs/lib -lgcc_s -lgcc_s -Wl,--rpath -Wl,/u/jbuck/cvs.sol2/4.1.1/lib > /u/jbuck/gnu.sol2/bin/ld: unrecognized option '-Wl,-rpath' > /u/jbuck/gnu.sol2/bin/ld: use the --help option for usage information > collect2: ld returned 1 exit status
I cannot reproduce with the same setup: /bin/ksh ./libtool --tag=GCJ --mode=link /opt/build/eric/gcc-4_1-branch/gcc/gcj-B/opt/build/eric/gcc-4_1-branch/sparc-sun-solaris2.8/libjava/ -B/opt/build/eric/gcc-4_1-branch/gcc/ -L/opt/build/eric/gcc-4_1-branch/sparc-sun-solaris2.8/libjava -g -O2 -o jv-convert --main=gnu.gcj.convert.Convert -rpath /opt/build/eric/gcc-4_1-branch/lib -shared-libgcc -L/opt/build/eric/gcc-4_1-branch/sparc-sun-solaris2.8/libjava/.libs libgcj.la /opt/build/eric/gcc-4_1-branch/gcc/gcj -B/opt/build/eric/gcc-4_1-branch/sparc-sun-solaris2.8/libjava/ -B/opt/build/eric/gcc-4_1-branch/gcc/ -g -O2 -o .libs/jv-convert --main=gnu.gcj.convert.Convert -shared-libgcc -L/opt/build/eric/gcc-4_1-branch/sparc-sun-solaris2.8/libjava -L/opt/build/eric/gcc-4_1-branch/sparc-sun-solaris2.8/libjava/.libs ./.libs/libgcj.so -L/opt/build/eric/gcc-4_1-branch/sparc-sun-solaris2.8/libstdc++-v3/src -L/opt/build/eric/gcc-4_1-branch/sparc-sun-solaris2.8/libstdc++-v3/src/.libs -lpthread -lrt -ldl -L/opt/build/eric/gcc-4_1-branch/./gcc -L/usr/ccs/lib -lgcc_s -lgcc_s -Wl,--rpath -Wl,/opt/build/eric/gcc-4_1-branch/lib creating jv-convert gax% uname -a SunOS gax 5.8 Generic_117350-25 sun4u sparc SUNW,Sun-Fire-V250 gax% gcc/xgcc -v Using built-in specs. Target: sparc-sun-solaris2.8 Configured with: /home/eric/svn/gcc-4_1-branch/configure --prefix=/opt/build/eric/gcc-4_1-branch --with-as=/opt/build/eric/local/bin/as --with-ld=/opt/build/eric/local/bin/ld --with-gmp=/opt/build/eric/local --with-mpfr=/opt/build/eric/local --with-local-prefix=/opt/build/eric/local --enable-languages=c,c++,objc,obj-c++,java,fortran Thread model: posix gcc version 4.1.2 20060603 (prerelease) gax% /opt/build/eric/local/bin/as --version GNU assembler 2.16.1 20060126 Copyright 2005 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License. This program has absolutely no warranty. This assembler was configured for a target of `sparc-sun-solaris2.8'. gax% /opt/build/eric/local/bin/ld --version GNU ld version 2.16.1 20060126 Copyright 2005 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License. This program has absolutely no warranty. > It's GNU ld version 2.16.1. This is strange; I would have expected the > linker to get just -rpath: -Wl should tell gcj to pass the following > option to the linker. Rather weird indeed. Can you reproduce it manually by replaying the command? -- Eric Botcazou