Hi~<br />
I have a XScale(PXA 255) board.<br />
I want to use kaffe on this board.<br />
But, After porting I have error messages.<br />
What do I commit a fault?<br />
Do you recommend me a cross compiler and configure method and so on?<br />
<br />
<br />
1. I take a kaffe-patch file for porting.<br />
========== kaffe-patch ==========================================================================================<br />
diff -urN kaffe-1.1.4.org/AutoConfig_Final kaffe-1.1.4/AutoConfig_Final<br />
--- kaffe-1.1.4.org/AutoConfig_Final 1970-01-01 09:00:00.000000000 +0900<br />
+++ kaffe-1.1.4/AutoConfig_Final 2004-08-10 15:38:59.000000000 +0900<br />
@@ -0,0 +1,13 @@<br />
+#!/bin/bash<br />
+<br />
+# This is auto configuration script for EZ-X5-board.<br />
+# pleas, set some of arguments to complie<br />
+<br />
+ARM_QTDIR=/project/qt-arm<br />
+QTDIR=${ARM_QTDIR}<br />
+<br />
+CROSS_PREFIX=arm-linux<br />
+ARM_INSTALL_DIR=/mnt/kaffe<br />
+<br />
+CFLAGS="-D__XSCALE__" CC=${CROSS_PREFIX}-gcc CXX=${CROSS_PREFIX}-g++<br />
KAFFEH=/usr/local/kaffe/bin/kaffeh ./configure --prefix=${ARM_INSTALL_DIR}<br />
--build=i686-linux --host=arm-linux --enable-pure-java-math --with-rt-jar=/tmp/rt.jar<br />
--enable-xscale --with-includes=/usr/armv5l-linux/include<br />
--with-libraries=/usr/armv5l-linux/lib --disable-sound --disable-alsatest<br />
--disable-edstest --without-x --with-awt=qt --with-qtdir=${ARM_QTDIR} -without-alsa<br />
--without-esd<br />
+perl -pi -e 's:compile_time run_time ::' test/regression/Makefile<br />
diff -urN kaffe-1.1.4.org/include/jsyscall.h kaffe-1.1.4/include/jsyscall.h<br />
--- kaffe-1.1.4.org/include/jsyscall.h 2003-08-30 23:18:23.000000000 +0900<br />
+++ kaffe-1.1.4/include/jsyscall.h 2004-08-10 15:34:53.000000000 +0900<br />
@@ -14,7 +14,7 @@<br />
struct sockaddr;<br />
struct timeval;<br />
-struct fd_set;<br />
+//struct fd_set;<br />
struct stat;<br />
struct hostent;<br />
<br />
2. I have a arm-linux-gcc compiler 2.95.3 20010315 version.<br />
========== arm-linux-gcc -v ========================================<br />
Using builtin specs.<br />
gcc version 2.95.3 20010315 (release)<br />
<br />
3. When I configue, I use this configure options.<br />
========== configure ========================================<br />
CFLAGS="-D__XSCALE__" CC=arm-linux-gcc CXX=arm-linux-g++ KAFFEH=/usr/local/kaffe/bin/kaffeh ./configure --prefix=/mnt/kaffe --build=i686-linux --host=arm-linux --enable-pure-java-math --with-rt-jar=/tmp/rt.jar --enable-xscale --with-includes=/usr/arm-linux/include --with-libraries=/usr/arm-linux/lib --disable-sound --disable-alsatest --disable-edstest --without-x --with-awt=qt --with-qtdir=/project/qt-arm -without-alsa --without-esd<br />
<br />
4. When I have it make, I have error messages.<br />
========== error msg ================================================================================<br />
configure:2489: arm-linux-gcc -D__XSCALE__ -I/usr/arm-linux/include conftest.c -L/usr/arm-linux/lib >&5<br />
/tmp/cc8soIWp.s: Assembler messages:<br />
/tmp/cc8soIWp.s:7: Warning: rest of line ignored; first ignored character is `@'<br />
/tmp/cc8soIWp.s:8: Warning: rest of line ignored; first ignored character is `@'<br />
/tmp/cc8soIWp.s:9: Error: too many memory references for `mov'<br />
/tmp/cc8soIWp.s:10: Error: no such instruction: `stmfd sp!,{fp,ip,lr,pc}'<br />
/tmp/cc8soIWp.s:11: Error: too many memory references for `sub'<br />
/tmp/cc8soIWp.s:12: Error: expecting operand after ','; got nothing<br />
/tmp/cc8soIWp.s:13: Error: too many memory references for `mov'<br />
/tmp/cc8soIWp.s:14: Error: no such instruction: `ldmea fp,{fp,sp,pc}'<br><br>
<br><br>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr>
                <td height="2" bgcolor="#DCDCDC"></td>
        </tr>
        <tr>
                <td style="padding:10 0 0 0">
                <table border="0" cellpadding="0" cellspacing="0">
                        <tr>
        <td width="95" align="center"><img src="http://simg.paran.com/header/new/logo.gif" width="73" height="20"></td>
        <td style="padding:0 0 0 10"><td align="center" style="padding:10 0 0 2;">
<a href="http://mailintro.paran.com/event/letter/" target=_blank><font style="font-size : 13px ; font-family : ±¼¸² ; color:#1A254D; text-decoration : none "><u><b>[Àα⠸¸È ÆíÁöÁö]</b> ¾ç¿µ¼ø,¹Ú¼ÒÈñ,¸Þ°¡¾¤Å·~ ¸¸ÈÆíÁöÁö·Î Àç¹ÌÀÖ´Â °Ü¿ïÀ»!</font></a></td>
                        </tr>
                </table>                
                
                </td>
        </tr>
</table>
<img src='http://mail16.paran.com/read/put_ack.php?hp=L0QxNi90L28vaS90b29kdWxsaUBwYXJhbi5jb20vLkNvbmZpcm0vMTEzNjg5NjIzNi4xNjE3NS5tYWlsMTZ4MQ==&from=toodulli@paran.com&to=kaffe@kaffe.org_______________________________________________________________________________________________________________________________________' width=1 border=0 height=1>