Patches for Kaffe 1.0.b1
Simon J. Gerraty
sjg at quick.com.au
Wed Jul 15 21:40:13 PDT 1998
I've applied Alexandre Oliva's patches (thanks) and after a bit of a search
found a site which had libgr which includes libjpeg which I assume
is the one kaffe wants.... given that the Kaffe-1.0
claims that no 3rd party stuff is required it would be handy if
there were at least a link to where libjpeg source can be found.
Anyway, kaffe now builds ok on Solaris 2.6 (gcc-2.7.2) but
dumps core:
$ gmake test
gmake[1]: Entering directory `/var/obj/kaffe/test'
*** Running tests
HelloWorldApp ... Illegal Instruction - core dumped
error compiling
error: java.io.IOException: read error
TestIntLong ... Illegal Instruction - core dumped
error compiling
error: java.io.IOException: read error
TestFloatDouble ... ignored
...
...
I checked that Kaffe finds all its libs:
$ ldd /usr/local/bin/Kaffe
libkaffevm.so => /usr/local/lib/libkaffevm.so
libdl.so.1 => /usr/lib/libdl.so.1
libm.so.1 => /usr/lib/libm.so.1
libc.so.1 => /usr/lib/libc.so.1
libsocket.so.1 => /usr/lib/libsocket.so.1
libnsl.so.1 => /usr/lib/libnsl.so.1
libucb.so.1 => /usr/ucblib/libucb.so.1
libresolv.so.2 => /usr/lib/libresolv.so.2
libelf.so.1 => /usr/lib/libelf.so.1
libmp.so.2 => /usr/lib/libmp.so.2
and with CLASSPATH=/usr/local/share/kaffe/Klasses.jar:\
/usr/local/share/kaffe/pizza.jar:.
and manually running the command line:
/usr/local/bin/Kaffe pizza.compiler.Main -d /var/obj/kaffe/test \
HelloWorldApp.java
we get a dump.
$ gdb /usr/local/bin/Kaffe core
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 (sparc-sun-solaris2.5),
Copyright 1996 Free Software Foundation, Inc...
Core was generated by `/usr/local/bin/Kaffe pizza.compiler.Main -d /var/obj/kaffe/test HelloWorldApp.j'.
Program terminated with signal 4, Illegal instruction.
Reading symbols from /usr/local/lib/libkaffevm.so...done.
Reading symbols from /usr/lib/libdl.so.1...done.
Reading symbols from /usr/lib/libm.so.1...done.
Reading symbols from /usr/lib/libc.so.1...done.
Reading symbols from /usr/lib/libsocket.so.1...done.
Reading symbols from /usr/lib/libnsl.so.1...done.
Reading symbols from /usr/ucblib/libucb.so.1...done.
Reading symbols from /usr/lib/libresolv.so.2...done.
Reading symbols from /usr/lib/libelf.so.1...done.
Reading symbols from /usr/lib/libmp.so.2...done.
Reading symbols from /usr/platform/SUNW,Ultra-60/lib/libc_psr.so.1...done.
Reading symbols from /usr/local/lib/libnative.so...done.
#0 0xa18aa0 in ?? ()
(gdb) bt
#0 0xa18aa0 in ?? ()
#1 0xbcd4b0 in ?? ()
#2 0xa18a58 in ?? ()
#3 0xb950f0 in ?? ()
#4 0xbd37e0 in ?? ()
#5 0xcdec1c in ?? ()
#6 0xcf6c6c in ?? ()
#7 0x955d00 in ?? ()
#8 0x6ea4b4 in ?? ()
#9 0x446498 in ?? ()
#10 0xef75ccf8 in callMethodV (meth=0x3b646c, func=0x4f5ac, obj=0xef75ccf0,
args=0xefffe744, ret=0xefffe5d0)
at /share/src/kaffe-1.0.b1/kaffe/kaffevm/support.c:518
#11 0xef76d1ec in Kaffe_CallStaticVoidMethodV (env=0xef79bc58, cls=0x391e08,
meth=0x3c6fd0, args=0xefffe740)
at /share/src/kaffe-1.0.b1/kaffe/kaffevm/jni.c:2249
#12 0xef76d26c in Kaffe_CallStaticVoidMethod (env=0xef79bc58, cls=0x391e08,
meth=0x3c6fd0) at /share/src/kaffe-1.0.b1/kaffe/kaffevm/jni.c:2262
#13 0x10f74 in main2 (env=0xef79bc58, argv=0xefffec34, farg=2, argc=3)
at /share/src/kaffe-1.0.b1/kaffe/kaffe/main.c:188
#14 0x10e38 in main (argc=4, argv=0xefffec34)
at /share/src/kaffe-1.0.b1/kaffe/kaffe/main.c:108
(gdb) q
More information about the kaffe
mailing list