[kaffe] Cross-compile for m68k error: invalid register

David Wälchli d.waelchli at gmx.net
Fri May 19 10:31:04 PDT 2006


Hi all

I'm trying to cross-compile kaffe 1.1.7 for my m68k system (motorola 
MCF5282 ) by following the FAQ.cross-compile.
Compiling kaffe-native goes well but I'm stuck with the cross compiled 
version.

I do:
CC=m68k-elf-gcc NM=m68k-elf-nm AR=m68k-elf-ar CFLAGS="-Wall -m5282 
-Wl,elf2flt -lc"
and then:
../kaffe-1.1.7/configure --host=m68k-linux --build=i686-linux

configure is ok, but make doesn't finish. Error:
*****************************************
In file included from ./icode.h:1,
                from 
../../../../kaffe-1.1.7/kaffe/kaffevm/jit3/machine.c:34:
./../../../../kaffe-1.1.7/config/m68k/jit3-icode.h:191:28: warning: 
extra tokens at end of #undef directive
In file included from 
../../../../kaffe-1.1.7/kaffe/kaffevm/jit3/machine.c:384:
../../../../kaffe-1.1.7/kaffe/kaffevm/jit3/../kaffe.def: In function 
'translate':
../../../../kaffe-1.1.7/kaffe/kaffevm/jit3/../kaffe.def:3180: warning: 
passing argument 2 of 'softcall_lookupinterfacemethod' discards 
qualifiers from pointer target type
../../../../kaffe-1.1.7/kaffe/kaffevm/jit3/machine.c: In function 
'installMethodCode':
../../../../kaffe-1.1.7/kaffe/kaffevm/jit3/machine.c:662: error: invalid 
register name for '_beg'
../../../../kaffe-1.1.7/kaffe/kaffevm/jit3/machine.c:662: error: invalid 
register name for '_len'
../../../../kaffe-1.1.7/kaffe/kaffevm/jit3/machine.c:662: error: unknown 
register name '%d3' in 'asm'
../../../../kaffe-1.1.7/kaffe/kaffevm/jit3/machine.c:662: error: unknown 
register name '%d2' in 'asm'
../../../../kaffe-1.1.7/kaffe/kaffevm/jit3/machine.c:662: error: unknown 
register name '%d0' in 'asm'
../../../../kaffe-1.1.7/kaffe/kaffevm/jit3/machine.c: At top level:
../../../../kaffe-1.1.7/kaffe/kaffevm/jit3/machine.c:808: warning: 
unused parameter 'meth'
make[3]: *** [machine.lo] Error 1
make[3]: Leaving directory 
`/home/dave/software/kaffe-m68k-linux/kaffe/kaffevm/jit3'
make[2]: *** [all] Error 2
make[2]: Leaving directory 
`/home/dave/software/kaffe-m68k-linux/kaffe/kaffevm/jit3'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory 
`/home/dave/software/kaffe-m68k-linux/kaffe/kaffevm'
make: *** [all-recursive] Error 1
****************************************

I already tried --with engine=intrp and --with-engine=jit, but both 
failed as well...

Any hints??

thanks,
David





More information about the kaffe mailing list