[kaffe] Re: cross-compilation for arm

David Tiller dtiller at captechventures.com
Thu Mar 3 06:37:36 PST 2005


Mourad,

I also got this message when trying to compile for arm9. I had to add __uclinux__ to the ifdefs in system.h along with the ones for unix, etc.

I hate to say it, but I had much better luck getting a working version by using a CVS snapshot (this was back in January).

Good Luck!

-----Original Message-----
From: mourad el badaoui [mailto:elbadaouimourad at gmail.com] 
Sent: Thursday, March 03, 2005 6:27 AM
To: kaffe at kaffe.org
Subject: [kaffe] Re: cross-compilation for arm


hi again 
i have tryied an other way by writting a script which i found in an old discussion and it includes the following instructions: ################################################################
CFLAGS="-mcpu=arm9 -Wl,-elf2flt -D__ARM__ -D__uclinux__" \ PATH="$HOME/kaffe/bin:$PATH" \ KAFFEH="$HOME/kaffe/bin/kaffeh" \ CC="/usr/local/bin/arm-elf-gcc" \ CXX="/usr/local/bin/arm-elf-g++" \ AR="/usr/local/bin/arm-elf-ar" \ NM="/usr/local/bin/arm-elf-nm" \ ../kaffe-1.1.4/configure \ --prefix=$HOME/kaffe-arm \ --disable-profiling \ --disable-xprofiling \ --disable-xdebugging \ --disable-feedback \ --without-profiling \ --without-stats \ --disable-gcj \ --host=arm-linux \ --build=i686-linux \ --enable-pure-java-math \ --with-includes=/usr/local/arm-elf/include \ --with-libs=/usr/local/arm-elf/lib \ --with-staticlib \ --with-staticvm \ --with-staticbin \ --enable-shared=no \ --enable-static=yes \ --disable-sound \ --without-awt ##################################################################
it works very well but when i launch the make command i get those errors: ##############################################
../../../include/system.h:48: #error "Separators undefined for this system"
make[2]: *** [System.lo] Erreur 1
make[2]: Quitte le répertoire `/home/elbadaoui/kaffe-1.1.4/libraries/clib/native'
make[1]: *** [all-recursive] Erreur 1
make[1]: Quitte le répertoire `/home/elbadaoui/kaffe-1.1.4/libraries/clib'
make: *** [all-recursive] Erreur 1 ##############################################
well first i wonder understand the meaning of the variable : CFLAGS, and why did i get this error from system.h? thx again cheers , Mourad

_______________________________________________
kaffe mailing list
kaffe at kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe



More information about the kaffe mailing list