This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Multilib libjava problem
- From: Bo Thorsen <bo at sonofthor dot dk>
- To: gcc at gcc dot gnu dot org
- Cc: Andreas Jaeger <aj at suse dot de>
- Date: Tue, 1 Oct 2002 12:08:26 +0200
- Subject: Multilib libjava problem
I have a linking problem in libjava, trying to link the 32 bit libjava on
x86-64:
/bin/sh ./libtool --tag=CXX --mode=link /suse/bo/Work/gcc/build/gcc/xgcc -shared-libgcc -B/suse/bo/Work/gcc/build/gcc/ -nostdinc++ -L/suse/bo/Work/gcc/build/x86_64-unknown-linux-gnu/32/libstdc++-v3/src -L/suse/bo/Work/gcc/build/x86_64-unknown-linux-gnu/32/libstdc++-v3/src/.libs -B/usr/local/x86_64-unknown-linux-gnu/bin/ -B/usr/local/x86_64-unknown-linux-gnu/lib/ -isystem /usr/local/x86_64-unknown-linux-gnu/include -m32 -L/suse/bo/Work/gcc/build/x86_64-unknown-linux-gnu/32/libjava -ffloat-store -g -O2 -m32 -m32 -o libgcj.la -objectlist libgcj.objectlist ../boehm-gc/libgcjgc_convenience.la ../libffi/libffi_convenience.la ../zlib/libzgcj_convenience.la -rpath /usr/local/lib/32 -rpath /usr/local/lib/32 -lpthread ./libltdl/libltdlc.la -version-info `grep -v '^#' ../../../../gcc/libjava/libtool-version`
creating reloadable object files...
creating a temporary reloadable object file: .libs/libgcj.la-2.o
/usr/bin/ld -r -o .libs/libgcj.la-1.o <aLOToffiles>.o
/usr/bin/ld: Relocatable linking with relocations from format elf32-i386 (.libs/prims.o) to format elf64-x86-64 (.libs/libgcj.la-1.o) is not supported
make[5]: *** [libgcj.la] Error 1
The problem here is the /usr/bin/ld command. This ought to have a -m elf_i386
switch.
Does this work on other architectures with multilib?
Any ideas how to fix it?
Bo.
--
Bo Thorsen | Praestevejen 4
Senior Software Engineer | 5290 Marslev
Klarälvdalens Datakonsult | Denmark