[kaffe] Problem in build

Pinaki Mukherjee pinaki at ics.uci.edu
Sun Aug 22 21:05:28 PDT 2004


Hi,

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;

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/javalib
/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)
******************************

Can somebody please help.

Thanks,
Pinaki


-----Original Message-----
From: kaffe-bounces at kaffe.org [mailto:kaffe-bounces at kaffe.org] On Behalf
Of Pinaki Mukherjee
Sent: Sunday, August 22, 2004 6:01 PM
To: kaffe at kaffe.org
Subject: [kaffe] Problem in build


Hi,

I am trying to build Kaffe after making some changes in the VM (some
files in the .../kaffe/kaffevm and .../kaffe/kaffevm/intrp directories).
I am getting the following error message:

**************************************

.........
.........
Making all in test
make[1]: Entering directory `/workspace/pinaki/kaffe-1.1.4/test'
Making all in regression
make[2]: Entering directory
`/workspace/pinaki/kaffe-1.1.4/test/regression'
Making all in compile_time
make[3]: Entering directory
`/workspace/pinaki/kaffe-1.1.4/test/regression/compile_time'
Internal error: caught an unexpected exception.
Please check your CLASSPATH and your installation.
java/lang/NullPointerException
        at java.lang.System.arraycopy(System.java:native)
        at java.lang.String.getChars(String.java:299)
        at java.lang.StringBuffer.append(StringBuffer.java:297)
        at java.lang.Runtime.loadLibrary(Runtime.java:153)
        at java.lang.System.loadLibrary(System.java:123)
        at java.io.FileDescriptor.<clinit>(FileDescriptor.java:80)
        at java.lang.System.<clinit>(System.java:48)
        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)
make[3]: *** [ClassToInterface.class] Aborted
make[3]: Leaving directory
`/workspace/pinaki/kaffe-1.1.4/test/regression/compile_time'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/workspace/pinaki/kaffe-1.1.4/test/regression'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/workspace/pinaki/kaffe-1.1.4/test'
make: *** [all-recursive] Error 1

*******************************

Can somebody please tell me what's wrong. It seems there is some problem
with the files in the
`/workspace/pinaki/kaffe-1.1.4/test/regression/compile_time' directory,
though I haven't touched it at all. As a matter of fact, earlier I was
being able to build the executable. I have been using the following
options with 'configure' : --enable-pure-java-math, --prefix <some
directory name> and --with-engine=intrp.

Please help.

Thanks a lot.

Pinaki


_______________________________________________
kaffe mailing list
kaffe at kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe





More information about the kaffe mailing list