[kaffe] Problem in build

Guilhem Lavaux guilhem at kaffe.org
Sun Aug 22 23:16:50 PDT 2004

Pinaki Mukherjee wrote:


Hi Pinaki,

>After working on the problem, I got some clue. I was able to build Kaffe
>(after doing a 'make clean' first). But when I ran 'make check', I
>started getting errors. These are basically compilation errors while
>creating the class files for the testcases.
>This is happenening only when I am changing a data structure of type
>struct called 'slots' in the file .../kaffe/kaffevm/intrp/slots.h. I am
>just adding another field (int size[2]) to the 'slots' struct, so that
>it looks like..
>typedef struct _slots {
>        int size[2];
>        union {
>                jint            tint;
>                jword           tword;
>                jlong           tlong;
>                jfloat          tfloat;
>                jdouble         tdouble;
>                void*           taddr;
>                char*           tstr;
>        } v;
>} slots;
This may be a problem with the compiler/arch. Anyway we'll add it if 

>I am not changing any other source file. Strangely, the Kaffe executable
>is getting compiled, but the testcase java files are not compiling. I
>cannot understand why this is happeneing. Below is the compilation error
>I'm getting for the Java testcase files while running 'make check'.
>TestScript: line 1:  8944 Aborted
>/workspace/pinaki/kaffe-1.1.4/kaffe/kaffe/kaffe-bin -noverify
>at.dms.kjc.Main -classpath
>/kjc.jar:::" -d . ./IndexTest.java
>FAIL: IndexTest.java
>error compiling:
>Internal error: caught an unexpected exception.
>Please check your CLASSPATH and your installation.
>        at java.lang.System.initProperties(System.java:native)
>        at java.lang.System.<clinit>(System.java:44)
>        at java.lang.ClassLoader.<init>(ClassLoader.java:114)
>        at java.lang.ClassLoader.<init>(ClassLoader.java:110)
>        at
>        at java.net.URLClassLoader.<init>(URLClassLoader.java:541)
>        at kaffe.lang.AppClassLoader.<init>(AppClassLoader.java:239)
>        at kaffe.lang.AppClassLoader.<clinit>(AppClassLoader.java:38)
I see you're getting a NPE in initProperties(). What is the architecture 
you are using ? I have recently fixed a problem in
sysdepCallMethod for m68k which was giving exactly the same type of error.



More information about the kaffe mailing list