On 01/06/2011 07:07 PM, Gerald Pfeifer wrote:
I am trying to debug this, alas not very successfully so far and am
looking for a pointer or two.

This happens with head as well; binutils (/usr/local/bin/ld) is 2.20.1.


Note 1: This can be avoid configuring with --disable-rpath.  GCC
understands --disable-rpath, yet the string "rpath" does not occur
in _any_ *.texi file.  Could someone donate a bit of documentation?
I'll be happy to include that in our install documentation.

Note 2: I did not set -rpath to begin with, this is something libjava
does, and I am wondering whether this is correct to begin with?

I don't understand this.  Does it do the same if you execute the below
command by hand?

libtool: link: /usr/nabil-files/pfeifer/porttest/gcc45/work/build/./gcc/gcj
-B/usr/nabil-files/pfeifer/porttest/gcc45/work/build/i386-portbld-freebsd7.2/libjava/
-B/usr/nabil-files/pfeifer/porttest/gcc45/work/build/./gcc/
-B/files/pfeifer//gcc45/i386-portbld-freebsd7.2/bin/
-B/files/pfeifer//gcc45/i386-portbld-freebsd7.2/lib/
-isystem /files/pfeifer//gcc45/i386-portbld-freebsd7.2/include
-isystem /files/pfeifer//gcc45/i386-portbld-freebsd7.2/sys-include
-ffloat-store -fomit-frame-pointer -Usun -g -O2 -o .libs/jv-convert
--main=gnu.gcj.convert.Convert -shared-libgcc -pthread
-L/usr/nabil-files/pfeifer/porttest/gcc45/work/build/i386-portbld-freebsd7.2/libjava/.libs
-L/usr/nabil-files/pfeifer/porttest/gcc45/work/build/i386-portbld-freebsd7.2/libjava
./.libs/libgcj.so -lrt -lz -pthread
-Wl,-rpath -Wl,/files/pfeifer//gcc45/lib/gcc45
/usr/local/bin/ld: unrecognized option '-Wl,-rpath'
/usr/local/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status
gmake[3]: *** [jv-convert] Error 1

where the actual invocation is the following:

/bin/sh ./libtool --tag=GCJ --mode=link
/usr/nabil-files/pfeifer/porttest/gcc45/work/build/./gcc/gcj
-B/usr/nabil-files/pfeifer/porttest/gcc45/work/build/i386-portbld-freebsd7.2/libjava/
-B/usr/nabil-files/pfeifer/porttes t/gcc45/work/build/./gcc/
-B/files/pfeifer//gcc45/i386-portbld-freebsd7.2/bin/
-B/files/pfeifer//gcc45/i386-por tbld-freebsd7.2/lib/
-isystem /files/pfeifer//gcc45/i386-portbld-freebsd7.2/include
-isystem /files/pfeifer//gcc45/i386-portbld-freebsd7.2/sys-include
-L/usr/nabil-files/pfeifer/porttest/gcc45/work/build/i386-portbld-freebsd7.2/libjava
-ffloat-store -fomit-frame-pointer -Usun -g -O2 -o jv-convert
--main=gnu.gcj.convert.Convert
-rpath /files/pfeifer//gcc45/lib/gcc45 -shared-libgcc -pthread
-L/usr/nabil-files/pfeifer/porttest/gcc45/work 
/build/i386-portbld-freebsd7.2/libjava/.libs libgcj.la


Gerald

Reply via email to