crash loading gcj stuff

Marcus G. Daniels mgd at swarm.org
Wed Feb 2 17:35:02 PST 2000


>>>>> "GB" == Godmar Back <gback at cs.utah.edu> writes:

GB> On the positive side, it's nice to see someone actually replicate
GB> what I did and getting that far.

In the interest of replication, here's a test case that works for me.
(A build script and a run script.)

#!/bin/sh
P=/packages
DATADIR=/common/share
S=/src
CP=.:$DATADIR/kaffe

cat > hello.java << EOF
public class hello {
    static void main (String args[]) {
        System.out.println ("Hello World");
    }
}
EOF
jikes -classpath $CP hello.java
gcj -g -fPIC -c -classpath $CP hello.class
rm hello.class
gcc -g $S/kaffe/developers/fixup.c -o fixup
gcc -shared -o hello.so hello.o
./fixup hello > _fixup_hello.cc
g++ -fPIC -I$P/include -c _fixup_hello.cc
gcc -shared -o _fixup_hello.so _fixup_hello.o


#!/bin/sh
P=/packages
DATADIR=/common/share
CP=.:$DATADIR/kaffe
DEBUG='-vmdebug gcj -verbosejit'
#DEBUG='-v'

KAFFE_DEBUG=gdb CLASSPATH=hello.so:$CP LD_LIBRARY_PATH=.:$LD_LIBRARY_PATH kaffe $DEBUG  hello


More information about the kaffe mailing list