[kaffe] Does Kaffe support ARM?

2005-12-01 Thread Chris Develder

Hi,

Being a Kaffe newbie, I wondered whether anyone has been able to build a 
working kaffe for an ARM Xscale processor? (I noticed some people tried 
to achieve this [1,2], but didn't find any reports of succes...)


[1]: http://www.kaffe.org/pipermail/kaffe/2005-October/103521.html
[2]: http://www.kaffe.org/pipermail/kaffe/2005-November/103537.html

Cheers,
Chris


PS: I've been trying to get 1.1.6 to work for an Intel XScale IXP425 
(big endian), but without success so far...

using:

[x86_64-build-machine]#  ./configure 
--prefix=/work/cdvelder/xscale/usr/local/kaffe-1.1.6 --host=arm-linux 
--without-classpath-gtk-awt --without-x --enable-pure-java-math 
--disable-sound --disable-native-awt --with-engine=intrp --with-lffi 
--enable-xscale --with-threads=unix-jthreads --disable-alsatest 
--disable-esdtest--without-kaffe-qt-awt --without-kaffe-x-awt



But running the classic HelloWorld isn't very successful:

[arm-host-machine]# kaffe -vmdebug 
INIT,VMCLASSLOADER,INT_VMCALL,INT_RETURN HelloWorld


...
Returning from method addElement(Ljava/lang/Object;)V.
Returning from method add(Ljava/lang/Object;)Z.
Returning from method addThread(Ljava/lang/Thread;)V.
initThreads() done
Call: java/lang/Thread.init(Ljava/lang/VMThread;Ljava/lang/String;IZ)V.
Call: java/lang/Object.init()V.
Returning from method init()V.
Call: java/lang/ClassLoader.getSystemClassLoader()Ljava/lang/ClassLoader;.
Returning from method getSystemClassLoader()Ljava/lang/ClassLoader;.
Returning from method init(Ljava/lang/VMThread;Ljava/lang/String;IZ)V.
Call: java/lang/ClassLoader.getSystemClassLoader()Ljava/lang/ClassLoader;.
Returning from method getSystemClassLoader()Ljava/lang/ClassLoader;.
Internal error: caught an unexpected exception.
Please check your CLASSPATH and your installation.
java/lang/NullPointerException
Aborted

___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


[kaffe] WHICH LIBRARIES ARE NECESSARY TO RUN KAFFE?

2005-12-01 Thread daniel

Hello together.

I have a big problem since 4 weeks. I have ported kaffe-1.0.7 on my m68k
platform with eCos as os. I have applied kaffe-1.0.7 because this version of
kaffe was adapted for eCos.
I have build kaffe with following options:

--with-engine=intrp
--with-includes=/usr/local/m68k/lib/gcc/m68k-elf/3.4.3/install-tools/include
--host=m68k-ecos --build=i686-cygwin --with-staticlib --with-staticbin
--with-staticvm --without-x --with-threads=ecos-native

The compilation anbd linking process is no problem.
The result is a kaffe-bin in /usr/local/kaffe/jre/bin. 
On my platform i have created an JFFS2 Filsystem with the folder /lib. Then i
copied all the necessary libaries and jar files to run kaffe in my created /lib
folder on my platform:

rt.jar from /usr/local/kaffe/jre/lib

libio.a, 
libkaffevm.a
libmanagement.a
libmath.a
libnative.a
libnet.a
libsecurity.a
libzip.a 
from /usr/local/kaffe/jre/lib/m68k

kjc.jar 
tools.jar 

from /usr/local/kaffe/lib

the include directory from /usr/local/kaffe/include

Because my eCos RTOS cannot interpret the kaffe-Shellscript, i have set
following environment variables in kaffes main.c:

CLASSPATH=.:/lib:/lib/kjc.jar:/lib/tools.jar:/lib/security:/
KAFFELIBRARYPATH=/lib
LD_LIBRARY_PATH=/lib:/include
PATH=/lib
KAFFEHOME=/lib

I want to start a Hello World Java application with kaffe, so i have set kaffe
with these parameters in my function kaffe_ecos_main():

void 
kaffe_ecos_main(int *pargc, char ***pargv)
{
static char *ecos_argv[] = {
Kaffe,
-vmdebug,
ALL,
-mx,
7340032,
-ms,
6291456,
-as,
1048576,
Hello,
NULL
};

PROBLEM:

WEhen starting kaffe, i have a problem in the initialise modul:

Kaffe passes the following initialization functions:


/* Setup CLASSPATH */
initClasspath();

/* Init native support */
initNative();
initBaseClasses();

/* Setup exceptions */
initExceptions();

/* Setup locking */
initLocking();

But in the next function, kaffe is aborting and saying:

INTERNAL ERROR: CHECK CLASSPATH AND INSTALLATION
NegativeArrayException in ThreadGroup.java at line 84.

/* Init thread support */
initThreads();

The error is when calling the do_execute_java_method and inside this method in
the method call callMethodV.

WHATS THE PROBLEM?

DO I NEED TO UPLOAD OTHER NECESSARY LIBRARIES ON MY PLATFORM?

I HOPE THE ANYBODY HAS AN IDEA!

BYE! 


___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


[kaffe] CVS kaffe (alex): - slib.h - add DROPS/L4Env specific header file in order to support dynamic shar

2005-12-01 Thread Kaffe CVS
PatchSet 6979 
Date: 2005/12/01 23:50:53
Author: alex
Branch: HEAD
Tag: (none) 
Log:
- slib.h - add DROPS/L4Env specific header file in order to support dynamic 
shared libraries
- add DROPS as OS in config.subs in order to enable cross configuration and 
compiling
 - changes in autogen.sh and 3 patch files  config.sub modifications

Members: 
ChangeLog:1.4501-1.4502 
configure:1.507-1.508 
developers/autogen.sh:1.63-1.64 
developers/config1.patch:INITIAL-1.1 
developers/config2.patch:INITIAL-1.1 
developers/config3.patch:INITIAL-1.1 
kaffe/kaffevm/slib.h:INITIAL-1.10 
libltdl/config.sub:1.17-1.18 
scripts/config.sub:1.12-1.13 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4501 kaffe/ChangeLog:1.4502
--- kaffe/ChangeLog:1.4501  Tue Nov 29 21:14:55 2005
+++ kaffe/ChangeLog Thu Dec  1 23:50:53 2005
@@ -1,3 +1,21 @@
+2005-12-02  Alexander Boettcher  [EMAIL PROTECTED]
+
+   * configure: add thread binding drops-l4threads
+   * developers/config1.patch,
+ developers/config2.patch,
+ developers/config3.patch: new - DROPS patches of config.subs in
+ scripts, libltdl and libraries/javalib/external/classpath
+   * developers/autogen.sh: add configX.patch files (X=1..3)
+   * scripts/config.sub,
+ libltdl/config.sub,
+ libraries/javalib/external/classpath/config.sub: patched by
+   configX.patch (X=1..3) in order to enable cross compiling for OS DROPS
+   
+   * kaffe/kaffevm/slib.h: include DROPS/L4Env specific header file 
(located at
+   kaffe/kaffevm/systems/drops-l4threads/l4_loader.h), this enables the
+   look up of symbols in shared libraries by the DROPS loader/exec
+   service
+
 2005-11-29  Guilhem Lavaux  [EMAIL PROTECTED]
 
* libraries/javalib/gmp-math/java/math/BigInteger.java
Index: kaffe/configure
diff -u kaffe/configure:1.507 kaffe/configure:1.508
--- kaffe/configure:1.507   Fri Nov  4 20:23:41 2005
+++ kaffe/configure Thu Dec  1 23:50:55 2005
@@ -49259,6 +49259,8 @@
 
   ac_config_files=$ac_config_files 
kaffe/kaffevm/systems/oskit-pthreads/Makefile
 
+  ac_config_files=$ac_config_files 
kaffe/kaffevm/systems/drops-l4threads/Makefile
+
   ac_config_files=$ac_config_files 
kaffe/kaffevm/systems/beos-native/Makefile
 
   ac_config_files=$ac_config_files 
kaffe/kaffevm/systems/unix-pthreads/Makefile
@@ -50213,6 +50215,7 @@
   kaffe/kaffevm/systems/Makefile ) CONFIG_FILES=$CONFIG_FILES 
kaffe/kaffevm/systems/Makefile ;;
   kaffe/kaffevm/systems/unix-jthreads/Makefile ) CONFIG_FILES=$CONFIG_FILES 
kaffe/kaffevm/systems/unix-jthreads/Makefile ;;
   kaffe/kaffevm/systems/oskit-pthreads/Makefile ) 
CONFIG_FILES=$CONFIG_FILES kaffe/kaffevm/systems/oskit-pthreads/Makefile ;;
+  kaffe/kaffevm/systems/drops-l4threads/Makefile ) 
CONFIG_FILES=$CONFIG_FILES kaffe/kaffevm/systems/drops-l4threads/Makefile ;;
   kaffe/kaffevm/systems/beos-native/Makefile ) CONFIG_FILES=$CONFIG_FILES 
kaffe/kaffevm/systems/beos-native/Makefile ;;
   kaffe/kaffevm/systems/unix-pthreads/Makefile ) CONFIG_FILES=$CONFIG_FILES 
kaffe/kaffevm/systems/unix-pthreads/Makefile ;;
   kaffe/kaffevm/verifier/Makefile ) CONFIG_FILES=$CONFIG_FILES 
kaffe/kaffevm/verifier/Makefile ;;
Index: kaffe/developers/autogen.sh
diff -u kaffe/developers/autogen.sh:1.63 kaffe/developers/autogen.sh:1.64
--- kaffe/developers/autogen.sh:1.63Sat Oct 22 10:08:15 2005
+++ kaffe/developers/autogen.sh Thu Dec  1 23:51:05 2005
@@ -146,3 +146,19 @@
 
   autoreconf -i # -Wall
 )
+
+# drops specific patches
+(
+  cd scripts
+  patch -p0 ../developers/config1.patch
+)
+
+(
+  cd libltdl
+  patch -p0 ../developers/config2.patch
+)
+
+(
+  cd libraries/javalib/external/classpath
+  patch -p0 ../../../../developers/config3.patch
+)
===
Checking out kaffe/developers/config1.patch
RCS:  /home/cvs/kaffe/kaffe/developers/config1.patch,v
VERS: 1.1
***
--- /dev/null   Sun Aug  4 19:57:58 2002
+++ kaffe/developers/config1.patch  Thu Dec  1 23:58:12 2005
@@ -0,0 +1,17 @@
+Index: config.sub
+===
+RCS file: /cvs/kaffe/kaffe/scripts/config.sub,v
+retrieving revision 1.12
+diff -u -r1.12 config.sub
+--- config.sub 25 Oct 2005 15:44:00 -  1.12
 config.sub 1 Dec 2005 21:55:38 -
+@@ -1315,6 +1315,9 @@
+   -kaos*)
+   os=-kaos
+   ;;
++  -*drops)
++  os=-drops
++  ;;
+   -zvmoe)
+   os=-zvmoe
+   ;;
===
Checking out kaffe/developers/config2.patch
RCS:  /home/cvs/kaffe/kaffe/developers/config2.patch,v
VERS: 1.1
***
--- /dev/null   Sun Aug  4 19:57:58 2002
+++ kaffe/developers/config2.patch  Thu Dec  1 23:58:12 2005
@@ -0,0 +1,17 @@
+Index: config.sub

[kaffe] Classpath config.sub modification question

2005-12-01 Thread Alexander Boettcher
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Kaffe developers,

I omitted in my last checkin the modifications at
libraries/javalib/external/classpath/config.sub (add DROPS as OS, in
order to enable cross configuration and compiling of Kaffe), because I'm
unsure whether it's ok to modify this file. This classpath directory and
therefore this file is an imported one. Can this cause trouble for you,
if I modify it and you want to reimport changes of the classpath project
 later ?

Thx,

Alex.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDj4oXqjRK9KYzJbMRAqyCAJ9lg9akhkwhS+kBsJQKT+ymQfIoYwCgx4ws
0AnEf6RK5PRfk2PcfA1MXmo=
=yffH
-END PGP SIGNATURE-

___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


Re: [kaffe] Classpath config.sub modification question

2005-12-01 Thread Jim Pick
Alexander Boettcher wrote:
 Hi Kaffe developers,
 
 I omitted in my last checkin the modifications at
 libraries/javalib/external/classpath/config.sub (add DROPS as OS, in
 order to enable cross configuration and compiling of Kaffe), because I'm
 unsure whether it's ok to modify this file. This classpath directory and
 therefore this file is an imported one. Can this cause trouble for you,
 if I modify it and you want to reimport changes of the classpath project
  later ?

I'd just check it in.

If you then send the patch to the upstream people (there are some
intructions at the the top of the config.sub file), there shouldn't be
any problems.  I'm sure that Classpath can apply the patch to their
config.sub too.

Cheers,

 - Jim





___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe