This is the mail archive of the
java-patches@sourceware.cygnus.com
mailing list for the Java project.
[IRIX 6.2] Support n64 libgcj multilibs
- To: java-patches@sourceware.cygnus.com
- Subject: [IRIX 6.2] Support n64 libgcj multilibs
- From: Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
- Date: Tue, 10 Aug 1999 02:11:46 +0200 (MET DST)
Initially, an attempt to build libgcj 2.95 on a 64-bit IRIX 6.2 system
failed trying to build n64 (-mabi=64) libraries:
/bin/sh ./libtool --mode=link gcc -I././targ-include -I/vol/gnu/src/libgcj/libgcj-2.95/boehm-gc/./libc/include -fno-builtin -g -O2 -mabi=64 -o libgcjgc.la -version-info 0:0:0 -rpath /vol/gnu/lib allchblk.lo alloc.lo blacklst.lo checksums.lo dbg_mlc.lo dyn_load.lo finalize.lo headers.lo irix_threads.lo linux_threads.lo malloc.lo mallocx.lo mark.lo mark_rts.lo misc.lo new_hblk.lo obj_map.lo os_dep.lo pcr_interface.lo ptr_chck.lo quick_threads.lo real_malloc.lo reclaim.lo solaris_pthreads.lo solaris_threads.lo stubborn.lo typd_mlc.lo mips_sgi_mach_dep.lorm -fr .libs/libgcjgc.la .libs/libgcjgc.* .libs/libgcjgc.*
gcc -shared allchblk.o alloc.o blacklst.o checksums.o dbg_mlc.o dyn_load.o finalize.o headers.o irix_threads.o linux_threads.o malloc.o mallocx.o mark.o mark_rts.o misc.o new_hblk.o obj_map.o os_dep.o pcr_interface.o ptr_chck.o quick_threads.o real_malloc.o reclaim.o solaris_pthreads.o solaris_threads.o stubborn.o typd_mlc.o mips_sgi_mach_dep.o -lc -Wl,-soname -Wl,libgcjgc.so `test -n "sgi1.0" && echo -Wl,-set_version -Wl,sgi1.0` -o .libs/libgcjgc.so1.0
ld32: FATAL 12: Expecting n32 objects: allchblk.o is 64-bit.
As you can see, libtool (up to 1.3.3) doesn't pass -mabi=64 to gcc -shared,
so ld tries to build an n32 shared library and fails (as does building and
testing libtool 1.3.3 with CC=gcc -mabi=64). libtool from the current CVS
trunk corrects this, so I ran libtoolize from that version in libjava
and aclocal in boehm-gc, libffi, libjava and zlib.
This didn't fix the whole problem, though: the generated libtool's embed
the compiler etc. options passed at configure time, and the current
config-ml.in fails to pass the necessary multilib flags. I've already
sent a fix for this to egcs-patches:
http://egcs.cygnus.com/ml/gcc-patches/1999-06/msg00668.html
Rainer
-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University
Email: ro@TechFak.Uni-Bielefeld.DE