[kaffe] porting kaffe to arm/uCLinux

Nick.Faulwetter at Stud.Tu-Ilmenau.De Nick.Faulwetter at Stud.Tu-Ilmenau.De
Tue Mar 9 07:05:28 PST 2004

is there anyone who can tell me how to compile kaffe for an ARM with uClinux?
It was no problem to install kaffe on my PC (i586-linux).
By the fact that there exists a subdirectory "config/arm" i thought,
cross-compiling for arm would be simple, too. I followed the instructions in the
FAQ but when i started make, it ended with an error:
/*...there is very much stuff before here*/
 /usr/local/arm-elf/bin/gcc -shared  .libs/ByteToCharDefault.o .libs/ByteToCharIconv.o
.libs/CharToByteDefault.o .libs/CharToByteIconv.o .libs/ObjectInputStream.o .libs/Class.o
.libs/ClassLoader.o .libs/Compiler.o .libs/Double.o .libs/Float.o .libs/Math.o .libs/MemoryAdvice.o
.libs/NativeLibrary.o .libs/Object.o .libs/PrimordialClassLoader.o .libs/Runtime.o .libs/String.o
.libs/System.o .libs/Thread.o .libs/ThreadStack.o .libs/Throwable.o .libs/UNIXProcess.o
.libs/ZipFile.o .libs/Array.o .libs/Constructor.o .libs/Field.o .libs/Method.o .libs/DateFormat.o
.libs/TestNative.o .libs/Arrays.o .libs/TimeZone.o  -Wl,--rpath -Wl,/uClibc-0.9.11/lib -lm
-L/uClibc-0.9.11/lib -lc  -Wl,-soname -Wl,libnative-1.1.4.so -Wl,-version-script
-Wl,.libs/libnative.ver -o .libs/libnative-1.1.4.so
/usr/local/arm-elf/bin/ld.real:.libs/libnative.ver:1: parse error in VERSION script
collect2: ld returned 1 exit status
make[2]: *** [libnative.la] Error 1
make[2]: Leaving directory `/wrk2/usr/cad/nfaulwet/kaffe-arm/libraries/clib/native'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/wrk2/usr/cad/nfaulwet/kaffe-arm/libraries/clib'
make: *** [all-recursive] Error 1
I started "configure" with following options: 
KAFFEH="/wrk2/usr/cad/nfaulwet/kaffe-native/bin/kaffeh" \
CC="/usr/local/arm-elf/bin/gcc" \
AR="/usr/local/arm-elf/bin/ar" \
NM="/usr/local/arm-elf/bin/nm" \
../kaffe-1.1.4/configure \
--host=arm-linux \
--build=i586-linux \
--with-rt-jar=/tmp/rt.jar \
--enable-pure-java-math \
--with-includes=/uClibc-0.9.11/include \
where /usr/local/arm-elf/bin is the directory of my cross-compiling-tools
and /wrk2/usr/cad/nfaulwet/kaffe-arm is the directory where i want to have
the kaffe installed.
Please tell me, what i'm doing wrong.
Do i have to change the configure-options? 
(I already tried several ones, some leaded to different make-errors than the one above)
Or do i need a different ld.read-version? Which one? Where can i get it?
Are there other aspects i have to consider?
If you have a kaffe running on arm/linux please tell me every detail of how you did it.
My greatest thanks to everybody who answers.

More information about the kaffe mailing list