Hello,
On Tue, May 20, 2008 at 12:23 AM, Timothy Wall <twal...@dev.java.net> wrote:
ANT_OPTS=-d32 ant test
Basically you need to point ant to a 32-bit JVM.
I'm running ant using a 32-bit JVM and did a "clean, test", but libffi
still seems to be building 64-bit libraries.
If I try to force gcc to make 32-bit binaries, using
CC="gcc -m32" ANT_OPTS="-d32 -DCC='gcc -m32'" ant clean default
I get
[exec] Configuring libffi (i386)
...
[exec] true "AR_FLAGS=" "CC_FOR_BUILD=" "CFLAGS=" "CXXFLAGS="
"CFLAGS_FOR_BUILD=" "CFLAGS_FOR_TARGET=" "INSTALL=/usr/bin/install -c"
"INSTALL_DATA=/usr/bin/install -c -m 644"
"INSTALL_PROGRAM=/usr/bin/install -c" "INSTALL_SCRIPT=/usr/bin/install
-c" "JC1FLAGS=" "LDFLAGS=" "LIBCFLAGS=" "LIBCFLAGS_FOR_TARGET="
"MAKE=make" "MAKEINFO=/bin/sh
/export/home/albert/work/jnalib/native/libffi/missing --run makeinfo
" "PICFLAG=" "PICFLAG_FOR_TARGET=" "RUNTESTFLAGS=" "SHELL=/bin/sh"
"exec_prefix=/usr/local" "infodir=/usr/local/info"
"libdir=/usr/local/lib" "prefix=/usr/local" "AR=ar" "AS=as" "CC=gcc
-m32" "CXX=g++" "LD=/usr/x86_64-suse-linux/bin/ld -m elf_i386"
"NM=/usr/bin/nm -B" "RANLIB=ranlib" "DESTDIR=" DO=all multi-do # make
...
[exec]
/usr/lib64/gcc/x86_64-suse-linux/4.2.1/../../../../x86_64-suse-linux/bin/ld:
i386 architecture of input file
`/export/home/albert/work/jnalib/build/native/dispatch.o' is
incompatible with i386:x86-64 output
and other errors and then it fails.
I guess some other flag still needs tweaking?
Regards,
Albert