[RELEASED] Kaffe 0.8.2

Daniel Veillard Daniel.Veillard at imag.fr
Tue Mar 4 05:59:40 PST 1997


>KAFFE v0.8.2 - A JIT and interpreting virtual machine to run Java(tm)* code

 I'm probably doomed but I can't get 0.8.1 nor 0.8.2 to work.
I'm running on Linux 2.0.28, RedHat 4.0.
With 0.8.2 I tried first to compile it without shared library,
the configure script then produces an incorrect output :

make[5]: Entering directory `/users/veillard/opera/LINUX-ELF/kaffe-0.8.2/packag
es/biss-net.com/APIawt/lib'
Makefile:36: *** commands commence before first target.  Stop.
make[5]: Leaving directory `/users/veillard/opera/LINUX-ELF/kaffe-0.8.2/package
s/biss-net.com/APIawt/lib'

Then at the end of make in kaffe-0.8.2/kaffe/kaffevm
ranlib libkaffe_vm.a.0.82 -lm -ldl
ranlib: -lm: No such file or directory
make[3]: *** [libkaffe_vm.a.0.82] Error 9

Seems that the LINKXLIB macro of configure is wrong in the case of
configure --enable-staticlib 
at least on the Linux platform. I didn't even find out in configure
where this macro is set up ... Well I didn't succeed in compiling
without shared libs.

So I tried to reenable the dynamic linking, it compiles and install fine.
I set up LD_LIBRARY_PATH to the the directory of kaffe shared libs,
alas kaffe doesn't seems to work anymore. I tried to compile one of my
java classes, it segfault :

~/opera/classes/amaya -> gdb /users/veillard/opera/LINUX-ELF/bin/kaffe
GDB is free software and you are welcome to distribute copies of it
 under certain conditions; type "show copying" to see the conditions.
There is absolutely no warranty for GDB; type "show warranty" for details.
GDB 4.16 (i586-unknown-linux), Copyright 1996 Free Software Foundation, Inc...
(gdb) r sun.tools.javac.Main HTTPAccess.java
Starting program: /users/veillard/opera/LINUX-ELF/bin/kaffe 
sun.tools.javac.Main HTTPAccess.java
warning: Unable to find dynamic linker breakpoint function.
warning: GDB will be unable to debug shared library initializers
warning: and track explicitly loaded dynamic code.

 Program received signal SIGSEGV, Segmentation fault.
0x4001bf3e in do_execute_java_class_method (
    cname=0xbffff67f "sun.tools.javac.Main", method_name=0x8049892 "main", 
    signature=0x804987b "([Ljava/lang/String;)V")
    at /users/veillard/opera/kaffe-0.8.2/kaffe/kaffevm/support.c:257
257             CALL_KAFFE_FUNCTION_VARARGS(mb, 0, args, argptr, retval);
(gdb) where
#0  0x4001bf3e in do_execute_java_class_method (
    cname=0xbffff67f "sun.tools.javac.Main", method_name=0x8049892 "main", 
    signature=0x804987b "([Ljava/lang/String;)V")
    at /users/veillard/opera/kaffe-0.8.2/kaffe/kaffevm/support.c:257
#1  0x8048b16 in main (argc=3, argv=0xbffff538)
    at /users/veillard/opera/kaffe-0.8.2/kaffe/kaffe/main.c:87
#2  0x80489bb in ___crt_dummy__ ()
(gdb) print mb
$1 = (Method *) 0x8083364
(gdb) print *mb
$2 = {name = 0x8082e58, signature = 0x8082e88, accflags = 9, 
  code = 0x8084450 "»", codelen = 30, insn = 0x0, 
  ncode_start = 0x806f9c8 "U\211å\201ì$", ncode = 0x806f9c8 "U\211å\201ì$", 
  ncode_end = 0x806fb10 "", exception_table = 0x0, exception_table_len = 0, 
  stacksz = 4, localsz = 2, ins = 1, outs = 0, outtype = 86 'V', 
  class = 0x8081fc0, lines = 0x8084498, idx = -1}
(gdb) print args
$3 = 1
(gdb) print argptr 
$4 = (void *) 0xbffff500
(gdb) print retval
$5 = 134513216
(gdb) print /x retval
$6 = 0x8048240
(gdb) 

~/opera/classes/amaya -> ldd /users/veillard/opera/LINUX-ELF/bin/kaffe
        libkaffe_vm.so => /users/veillard/opera/LINUX-ELF/bin/libkaffe_vm.so
        libc.so.5 => /lib/libc.so.5.3.12
        libm.so.5 => /lib/libm.so.5.0.6
        libdl.so.1 => /lib/libdl.so.1.7.14

I dont understand as CALL_KAFFE_FUNCTION_VARARGS macro didn't change between
0.8.0 and 0.8.2 and the code in support.c didn't change much either. 

  I feel confused, what's happening ? The only difference I noticed is the
change from object to Object ...

Daniel, stuck with 0.8.0 

-- 
Daniel Veillard at w3.org      | W3C / INRIA Rhone-Alpes | Today's Bookmarks :
Daniel.Veillard at inrialpes.fr| 655 av de l'Europe      | Linux, WWW,
Tel : +33 04 76 61 53 85    | 38330 Montbonnot        | badminton,
Fax : +33 04 76 54 76 15    | France                  | Amaya and CSS.
Home: +33 04 76 63 05 86    | http://opera.inrialpes.fr/veillard




More information about the kaffe mailing list