[kaffe] Kaffe CVS, ARM and Cross Compilation (Regression?)

Holger Freyther freyther at gmx.net
Thu Dec 30 13:11:15 PST 2004


Hello,

I'm currently trying to add a recent kaffe with Qt Backend to the OpenEmbedded 
package database (www.openembedded.org).

The current CVS version got a problem with ARM lacking behind the JIT changes 
and it is generally not cross compileable. I'm not using 1.0.x and not 1.1.x 
as they do not succesfully compile either (not even for x86).

ARM and Jit:
--- kaffe/config/arm/jit-arm.def~fix-compile.patch
+++ kaffe/config/arm/jit-arm.def
@@ -655,7 +655,7 @@
 
 define_insn(epilogue, epilogue_xxx)
 {
-       setEpilogueLabel ((uintp)CODEPC);
+       KaffeJIT_setEpilogueLabel ((uintp)CODEPC);

--- kaffe/config/arm/jit3-arm.def~fix-compile.patch
+++ kaffe/config/arm/jit3-arm.def
@@ -684,7 +684,7 @@
 
 define_insn(epilogue, epilogue_xxx)
 {
-       setEpilogueLabel ((uintp)CODEPC);
+       KaffeJIT3_setEpilogueLabel ((uintp)CODEPC);
 
        /* Should restore floating point state here !!! F4-F7 */
 

are needed to actually compile kaffe-bin.

And now onto the issues with Cross Compilation:
1.) a native kaffeh build is needed
2.) various tests as ALIGNMENTOF_VOIDP fail as they try to run
     these test. This CAN'T work when cross compiling. I would wish
     for to specify these values on the configure cmd line. I'm an idiot
     on autotools so no patch is attached to fix that.
3.) after kaffe was sucesfully compiled, it tries to run kaffe-bin
     to optimize the .jar files. (This is where I'm now at). The question
     is what kind of optimisation is performed and if it couldn't be done
     when building kaffeh natively.

I would be glad for any hints to cross compile them.

kind regards holger


-- 
_____________________________________________
Holger 'zecke' Freyther
Project OPIE- the Open Palmtop Integrated Environment
http://opie.handhelds.org 
Sponsor me! Donate Hardware!
http://handhelds.org/~zecke
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-compile.patch.patch
Type: text/x-diff
Size: 1618 bytes
Desc: not available
Url : http://kaffe.org/pipermail/kaffe/attachments/20041230/c9311205/attachment-0004.patch 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: makefile-fixes.patch.patch
Type: text/x-diff
Size: 569 bytes
Desc: not available
Url : http://kaffe.org/pipermail/kaffe/attachments/20041230/c9311205/attachment-0005.patch 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://kaffe.org/pipermail/kaffe/attachments/20041230/c9311205/attachment-0002.pgp 


More information about the kaffe mailing list