[kaffe] Problem in build

Guilhem Lavaux guilhem at kaffe.org
Mon Aug 23 05:45:47 PDT 2004


Pinaki Mukherjee wrote:

>Hi Guilhem,
>
>Thanks for replying. The platform I'm using is i686/Linux.
>
>Regards,
>Pinaki
>
>  
>
Actually, I have not understood what you have said the first time. You 
cannot add this a field to "struct _slots" without modifying a lot of 
other things in machine.c
(principally concerning the JNI calls). At the moment, the JNI calls are 
nearly directly mapped to what is _exactly_ in slots. So if you add some 
entries to it the native call has wrong arguments and will surely cause 
NullPointerException.

Cheers,

Guilhem.

P.S.: From what I can see, it may be possible (but only may) to put the 
fields _after_ the union... I have not yet looked deeply at it.

>-----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.
>
>
>  
>
>_______________________________________________
>kaffe mailing list
>kaffe at kaffe.org
>http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
>
>  
>




More information about the kaffe mailing list