[kaffe] --with-profiling error when compiling kaffe-1.1.4

=?gb2312?B?UGF1bA==?= bytecode at tom.com
Tue Mar 1 23:59:02 PST 2005


While trying to compiling kaffe-1.1.4 with "--with-profiling" support, I am getting the following error when running kaffe.
[bytecode at cross Kaffe]$  ./configure --with-profiling
[bytecode at cross Kaffe]$  make 
..........
Making all in test
make[1]: Entering directory `/unity_nc/home/xyb/kaffe-1.1.4/test'
Making all in regression
make[2]: Entering directory `/unity_nc/home/xyb/kaffe-1.1.4/test/regression'
Making all in compile_time
make[3]: Entering directory `/unity_nc/home/xyb/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.Class.getClassLoader0(Class.java:native)
        at java.lang.Class.getClassLoader(Class.java:76)
        at kaffe.lang.ThreadStack.getCallersClassLoader(ThreadStack.java:112)
        at kaffe.lang.ThreadStack.getCallersClassLoader(ThreadStack.java:58)
        at java.lang.System.loadLibrary(System.java:123)
        at java.io.FileDescriptor.(FileDescriptor.java:80)
        at java.lang.System.(System.java:48)
        at java.lang.ClassLoader.(ClassLoader.java:114)
        at java.lang.ClassLoader.(ClassLoader.java:110)
        at java.security.SecureClassLoader.(SecureClassLoader.java:23)
        at java.net.URLClassLoader.(URLClassLoader.java:541)
        at kaffe.lang.AppClassLoader.(AppClassLoader.java:239)
        at kaffe.lang.AppClassLoader.(AppClassLoader.java:38)

When "make test" appears kaffe has been executed. "--with-profiling" means compiling kaffe with -pg option of GCC. But why it cannot run.

BTW, does anyone measure Kaffe with gprof? I want to find the performance bottleneck and optimize it. 

Please help.

Paul Yuan
bytecode at tom.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://pogo.kaffe.org/pipermail/kaffe/attachments/20050302/a6c4683c/attachment.htm


More information about the kaffe mailing list