[kaffe] how to set ./configure to cross-compile

=?GB2312?B?s8zD9w==?= cheng-m03 at mails.tsinghua.edu.cn
Thu Aug 26 06:29:19 PDT 2004


Hi, everyone. I am cross-compiling kaffe on i686-linux for mipsel-linux.
I use the following command to configure

KAFFEH=/home/chengming/w/kaffe-1.1.4/kaffeh CC=mipsel-linux-gcc
CXX=mipsel-linux-g++ CXXCPP=mipsel-linux-cpp CFLAGS="-O2 -msoft-float
-fno-gcse -mips2 -Wa,-mfixhua7,-mno-lwl" ./configure
--with-threads=unix-jthreads --with-engine=intrp
--host=i686-pc-linux-gnu --with-build-cc=gcc --with-build-cflags="-O2"
--target=mipsel-mips-linux-gnu --disable-esdtest --disable-alsatest
--disable-sound --enable-pure-java-math --without-kaffe-x-awt
--without-classpath-gtk-awt --without-kaffe-qt-awt

and the result is OK. Then when I make, the following error show

../../config/i386/callKaffeException.h: In function `callKaffeException':
../../config/i386/callKaffeException.h:27: unknown register name `eax'
in `asm'
make[3]: *** [exception.lo] Error 1
make[3]: Leaving directory `/home/chengming/w/kaffe-1.1.4/kaffe/kaffevm'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/chengming/w/kaffe-1.1.4/kaffe/kaffevm'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/chengming/w/kaffe-1.1.4/kaffe'
make: *** [all-recursive] Error 1

and I notice that, in all of my Makefile, some parameters are set as the
following

CONFIG_CALLKAFFEEXCEPTION_H = $(top_srcdir)/config/i386/callKaffeException.h
CONFIG_MD_H = $(srcdir)/i386/linux/md.h
KAFFEVM_MD_C = $(top_srcdir)/config/i386/linux/md.c
KAFFE_ARCHOS = i386-linux
nativedir = /usr/local/kaffe/jre/lib/i386

I know these are the most important parameters for cross-compiling. But
they are set wrong. Maybe my parameters which I set when I configure are
wrong.
Who can tell me how to set the configure parameters when i
cross-compile? Thanks a lot.

cheers,
Cheng Ming



More information about the kaffe mailing list