Cross compiling Kafee for ARM SA1100 (Brutus board)
Edouard G. Parmelan
Edouard.Parmelan at quadratec.fr
Tue Apr 4 03:55:57 PDT 2000
Nandana wrote:
> "Edouard G. Parmelan" wrote:
>
> > Humm, I just read config/arm/linux/config.frag and if $cross_compile ==
> > yes, sizeof are setup. I don't know why configure don't detect that
> > you're in a cross-compiling environment :-(
> >
> > Could you remove line ``ac_cv_prog_cc_cross=${ac_cv_prog_cc_cross=no}''
> > in config.cache and re-run configure ?
>
> no I changed the following values
> ac_cv_sizeof___int64=${ac_cv_sizeof___int64=0}
> ac_cv_sizeof_int=${ac_cv_sizeof_int=4}
> ac_cv_sizeof_long=${ac_cv_sizeof_long=4}
> ac_cv_sizeof_long_long=${ac_cv_sizeof_long_long=8}
> ac_cv_sizeof_short=${ac_cv_sizeof_short=2}
> ac_cv_sizeof_voidp=${ac_cv_sizeof_voidp=4}
>
> and re-ran the configure, it seems working.
> Thanks for the direction.
>
> But now it gives following errors:
> ______________________________________________________________
>
> arm-linux-gcc -DHAVE_CONFIG_H -I. -I. -I../../../config -I../../../include
> -I../../../kaffe/kaffevm/systems/unix-jthreads -I.. -I./.. -DTRANSLATOR -DJIT3
> -DKVER=\"1.0.5\" -I/opt/ARM/lab/kaffe-1.0.5/./kaffe/kaffevm
> -I/opt/ARM/lab/kaffe-1.0.5/./kaffe/kaffevm/systems/unix-jthreads
> -I../../../config -I../../../include
> -I/usr/local/arm/glibc/arm-linux-glibc/include -g -O2 -Wall -Wstrict-prototypes
> -c machine.c -fPIC -DPIC -Wp,-MD,.deps/machine.TPlo -o .libs/machine.lo
> /tmp/ccAE0hLI.s: Assembler messages:
> /tmp/ccAE0hLI.s:11934: Error: bad instruction `call soft_fixup_trampoline'
> /tmp/ccAE0hLI.s:11936: Error: bad instruction `popl %ecx'
> /tmp/ccAE0hLI.s:11938: Error: bad instruction `jmp *%eax'
This is i386 assembler, not ARM's :-(
Try option --host of configure as in
$ CC=arm-linux-gnu ./configure --host=arm-linux
You should remove config.cache before :-(
--
Edouard G. Parmelan
http://egp.free.fr
More information about the kaffe
mailing list