I want to port kaffe-1.1.4 on Xscale target board.
But, I have some problems.
============ target board CPU info ====================================================
Processor : XScale-IXP4xx/IXC11xx rev 1 (v5b)
BogoMIPS : 399.76
Features : swp half thumb fastmult edsp
Hardware : Intel IXDP425 Development Platform
===================================================================================
============ target board kernel ====================================================
Linux IXDP425 2.4.24-uc0
===================================================================================
============ target board glibc ====================================================
2.2.5
===================================================================================
============ cross compiler => arm-linux-gcc -v ====================================================
Reading specs from /usr/local/lib/gcc-lib/arm-linux/3.3.2/specs
Configured with: ../configure --target=arm-linux --disable-shared --with-headers=/home/gerg/new-wave.xscale/linux-2.4.x/include --with-gnu-as --with-gnu-ld --enable-multilib
Thread model: posix
gcc version 3.3.2
===================================================================================
============ kaffe-1.1.4 patch contents ====================================================
diff -urN kaffe-1.1.4.org/AutoConfig_Final kaffe-1.1.4/AutoConfig_Final
--- kaffe-1.1.4.org/AutoConfig_Final 1970-01-01 09:00:00.000000000 +0900
+++ kaffe-1.1.4/AutoConfig_Final 2004-08-10 15:38:59.000000000 +0900
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+# This is auto configuration script for EZ-X5-board.
+# pleas, set some of arguments to complie
+
+ARM_QTDIR=/project/qt-arm
+QTDIR=${ARM_QTDIR}
+
+CROSS_PREFIX=arm-linux
+ARM_INSTALL_DIR=/mnt/kaffe
+
+CFLAGS="-g -Wall -c -DBEnd" LDFLAGS="-lm" CC=${CROSS_PREFIX}-gcc CXX=${CROSS_PREFIX}-g++
KAFFEH=/usr/local/kaffe/bin/kaffeh ./configure --prefix=${ARM_INSTALL_DIR}
--build=i686-linux --host=arm-linux --enable-pure-java-math --with-rt-jar=/tmp/rt.jar
--enable-xscale --with-includes=/usr/local/arm-linux/include
--with-libraries=/usr/local/arm-linux/lib --disable-sound --disable-alsatest
--disable-edstest --without-x --with-awt=qt --with-qtdir=${ARM_QTDIR} -without-alsa
--without-esd
+perl -pi -e 's:compile_time run_time ::' test/regression/Makefile
diff -urN kaffe-1.1.4.org/include/jsyscall.h kaffe-1.1.4/include/jsyscall.h
--- kaffe-1.1.4.org/include/jsyscall.h 2003-08-30 23:18:23.000000000 +0900
+++ kaffe-1.1.4/include/jsyscall.h 2004-08-10 15:34:53.000000000 +0900
@@ -14,7 +14,7 @@
struct sockaddr;
struct timeval;
-struct fd_set;
+//struct fd_set;
struct stat;
struct hostent;
===================================================================================
============ after configure, I modify Makefile like this ====================================================
CC = arm-linux-gcc ==> CC = arm-linux-gcc -mbig-endian ?mstructure-size-boundary=8
CPP = arm-linux-gcc -E ==> CC = arm-linux-gcc -mbig-endian ?mstructure-size-boundary=8
CXX = arm-linux-g++ ==> CXX = arm-linux-g++ -mbig-endian ?mstructure-size-boundary=8
CXXCPP = arm-linux-g++ -E ==> CXX = arm-linux-g++ -mbig-endian ?mstructure-size-boundary=8
===================================================================================
============ after cross compiling, When I execute kaffe, I have error message like this ====================================================
# ./kaffe
/kaffe: /mnt/kaffe/jre/bin/kaffe-bin: cannot execute binary file
/kaffe: /mnt/kaffe/jre/bin/kaffe-bin: Exec format error
===================================================================================
and I have some questions.
Is it same version both cross compiler lib and kernel library on target board?
And, When I don't patch in the kaffe, I have error message.
what do I do?
Could you tell me any advices?
|
_______________________________________________ kaffe mailing list [email protected] http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
