[kaffe] error cross-compiling latest CVS for arm

Dalibor Topic robilad at kaffe.org
Thu Mar 31 07:32:25 PST 2005


Am Dienstag, den 29.03.2005, 17:19 +0200 schrieb gian paolo ciceri:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> hi all,
> I'm trying to cross-compile a recent CVS co for arm:

> ~ arm-linux-gcc -DHAVE_CONFIG_H -I. -I. -I../../config
> - -I../../include/kaffe -I../../kaffe/kaffevm/systems/unix-pthreads
> - -I../../kaffe/kaffevm/jni -Iintrp -I./intrp -I../../libltdl
> - -DINTERPRETER -I../../kaffe/jvmpi -I../../kaffe/xprof -I../../include
> - -I../../kaffe/kaffevm/verifier -I../../kaffe/kaffevm/jni
> - -I/home/gpciceri/works/cvsroot/kaffe-arm/./kaffe/kaffevm
> - -I/home/gpciceri/works/cvsroot/kaffe-arm/./kaffe/kaffevm/intrp
> - 
> -I/home/gpciceri/works/cvsroot/kaffe-arm/./kaffe/kaffevm/systems/unix-pthreads
> - -I../../replace -I../../binreloc -I../../config -I../../include
> - -DKAFFE_VMDEBUG -D_REENTRANT -pthread -g -O2 -Wchar-subscripts -Wcomment
> - -Wformat=2 -Wimplicit-function-declaration -Wimplicit-int -Wmain
> - -Wmissing-braces -Wparentheses -Wreturn-type -Wswitch -Wtrigraphs
> - -Wunknown-pragmas -W -Wundef -Wshadow -Wpointer-arith
> - -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings
> - -Wconversion -Wsign-compare -Waggregate-return -Wstrict-prototypes
> - -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn
> - -Wredundant-decls -Wnested-externs -Winline -Wlong-long -fsigned-char
> - -fno-omit-frame-pointer -pthread -DENABLE_BINRELOC -c md.c
> - -Wp,-MD,.deps/libkaffevm_la-md.TPlo  -fPIC -DPIC -o 
> .libs/libkaffevm_la-md.o
> In file included from md.c:1:
> ../../config/arm/linux/md.c:19: warning: no previous prototype for `init_md'
> ../../config/arm/linux/md.c:31: warning: no previous prototype for
> `flush_dcache'
> /tmp/ccJ5yE4n.s: Assembler messages:
> /tmp/ccJ5yE4n.s:154: Error: Can not represent SWI relocation in this
> object file format (0)

Ciao gp,

I've googled around a bit for the error message, but I have found no
definite answer where that one comes from. ;(

I've checked in fixes for the compiler warnings you posted, I hope that
will be enough to fix that problem for you. Using the emdebian toolchain
for arm-linux I can't reproduce it, though ;(.

> My toolchain is the hardhat one in /opt/hardhat/devkit/arm/sa110_le/
> any guess to help me ?

If the latest CVS head does not work, you may want to try using the
interpreter instead (--with-engine=intrp), which does not require the
flush function.

cheers,
dalibor topic





More information about the kaffe mailing list