[kaffe] Problem in build
Pinaki Mukherjee
pinaki at ics.uci.edu
Sun Aug 22 23:51:20 PDT 2004
Hi Guilhem,
Thanks for replying. The platform I'm using is i686/Linux.
Regards,
Pinaki
-----Original Message-----
From: Guilhem Lavaux [mailto:guilhem at kaffe.org]
Sent: Sunday, August 22, 2004 11:17 PM
To: Pinaki Mukherjee
Cc: kaffe at kaffe.org
Subject: Re: [kaffe] Problem in build
Pinaki Mukherjee wrote:
>Hi,
>
>
>
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
necessary.
>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
>".::::.:compile_time:.:::/workspace/pinaki/kaffe-1.1.4/libraries/javali
b
>/kjc.jar:::" -d . ./IndexTest.java
>FAIL: IndexTest.java
>error compiling:
>Internal error: caught an unexpected exception.
>Please check your CLASSPATH and your installation.
>java/lang/NullPointerException
> 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
>java.security.SecureClassLoader.<init>(SecureClassLoader.java:23)
> 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.
Regards,
Guilhem.
More information about the kaffe
mailing list