[kaffe] Question about porting kaffe to PXA255

¼ª¹âƬÓð5000 jiguangpianyu5000 at sina.com
Fri Jul 2 05:43:54 PDT 2004


Hello,
  I wanted to port kaffe to the Sitsang PXA255(Xscale),i had meeted too many  errors when building the cross-compiling kaffe,and now i was luck,It came through finally!I was not familier with cross-compiling,It's my first time to do it.When i burned kaffe to the board,it error again!
i think though it passed in the making,may be there're still some errors in my settings.

the environment variables as follows:

export PATH=/opt/qt-2.3.2-new/bin:/usr/local/arm-linux/bin:$PATH
export QTDIR=/opt/qt-2.3.2-new/
export JAVAC=/usr/java/j2sdk1.4.2_05/bin/javac

the compiling parameters as follows:

CFLAGS="-D__XSCALE__" NM=arm-linux-nm AR=arm-linux-ar CC=arm-linux-gcc ./configure   --with-awt=qt   --disable-debug   --enable-xscale   --host=arm-linux   --build=i686-linux   --enable-pure-java-math KAFFEH=/usr/local/kaffe/bin/kaffeh   --with-rt-jar=/usr/local/kaffe/jre/lib/rt.jar   --with-threads=unix-jthreads   --prefix=/cvs/xscale  --enable-static=yes --without-esd  --with-qtdir=$QTDIR
--with-jikes=$JAVAC

then make,make install

After building,i port the whole directory of /cvs/xscale to SITSANG,the absolute path of kaffe was the same in both host and Sitsang.
(My Sitsang Board was installed linux-2.4.19,qt-embedded-2.3.2,qtopia-1.5;)

then i tryed this:
export PATH=/cvs/xscale/bin:$PATH
kaffa

returns:*****************************************
usage: kaffe [-options] class
Options are:
        -help                    Print this message
        -version                 Print version number
        -fullversion             Print verbose version info
        -ss <size>               Maximum native stack size
        -mx <size>               Maximum heap size
        -ms <size>               Initial heap size
        -as <size>               Heap increment
        -classpath <path>        Set classpath
        -Xbootclasspath:<path>   Set bootclasspath
        -Xbootclasspath/a:<path> Append path to bootclasspath
        -Xbootclasspath/p:<path> Prepend path to bootclasspath
        -D<property>=<value>     Set a property
        -verify *                Verify all bytecode
        -verifyremote *          Verify bytecode loaded from network
        -noverify                Do not verify any bytecode
        -noclassgc               Disable class garbage collection
        -verbosegc               Print message during garbage collection
        -v, -verbose             Be verbose
        -verbosejit              Print message during JIT code generation
        -verbosemem              Print detailed memory allocation statistics
        -verbosecall             Print detailed call flow information
        -nodeadlock              Disable deadlock detection
        -debug *                 Trace method calls
        -noasyncgc *             Do not garbage collect asynchronously
        -cs, -checksource *      Check source against class files
        -oss <size> *            Maximum java stack size
        -jar                     Executable is a JAR
  * Option currently ignored.
                                                                                                                                               
Compatibility options:
        -Xss <size>              Maximum native stack size
        -Xmx <size>              Maximum heap size
        -Xms <size>              Initial heap size
        -cp <path>               Set classpath
end of return***************************************

then i tryed:

javac HelloWorld.java

returns:******************************
pc : [<400a3cc4>]    lr : [<400a3c90>]    Not tainted
sp : bffff854  ip : 401a79d0  fp : bffff8bc
r10: 40299914  r9 : 00008c58  r8 : 00000003
r7 : 4000ba94  r6 : 000089d4  r5 : bffffba4  r4 : 4001c164
r3 : c0000000  r2 : bffff000  r1 : 00000000  r0 : 00001000
Flags: nzCv  IRQs on  FIQs on  Mode USER_32  Segment user
Control: 397F  Table: A3214000  DAC: 00000015
pc : [<401f4cf8>]    lr : [<401f4c1c>]    Not tainted
sp : bffff7ec  ip : 402999b4  fp : bffff880
r10: 40299914  r9 : 00008c58  r8 : 00000003
r7 : 002220a4  r6 : 00000080  r5 : 00000000  r4 : 002220a4
r3 : 00000000  r2 : 00000020  r1 : 00000000  r0 : 002220a4
Flags: Nzcv  IRQs on  FIQs on  Mode USER_32  Segment user
Control: 397F  Table: A3214000  DAC: 00000015
Internal error: caught an unexpected exception.
Please check your CLASSPATH and your installation.
java/lang/NullPointerException
Aborted
end of return:****************************************

I was really confused,What was the problem?I have tryed setting CLASSPATH=KAFFE/lib
,kaffe/jre/lib,but it still can't work,I also tryed javac -classpath.
Is this really the error of CLASSPATH?
Did i must do some more settings on the board?

Does someone meet the same thing to me?Can anybody help me
Any sugestion is appreciate!Thx Reading.



______________________________________

×¢²áÐÂÀË30Õ×Ãâ·ÑÓÊÏ䣨 http://mail.sina.com.cn/chooseMode.html £©

===================================================================
µã»÷ӮȡµÚÁù½ìcctv-mtvÒôÀÖÊ¢µäÃÅƱ (http://ad4.sina.com.cn/shc/zhuiyu_hprefresh1.html)




More information about the kaffe mailing list