[kaffe] ARM and kaffe
Rudolf Marek
rudolf.marek at sysgo.com
Fri Feb 3 08:23:11 PST 2006
Hello,
I tried to get the caffe working on ARM. With JIT I get:
-sh-3.00# java HelloWorld.class
Internal error: caught an unexpected exception.
Please check your CLASSPATH and your installation.
java/lang/IllegalArgumentException: Illegal Load: 0.0
at java.lang.VMThrowable.fillInStackTrace(VMThrowable.java:native)
at java.lang.VMThrowable.fillInStackTrace(VMThrowable.java:76)
at java.lang.Throwable.fillInStackTrace(Throwable.java:492)
at java.lang.Throwable.<init>(Throwable.java:161)
at java.lang.Exception.<init>(Exception.java:78)
at java.lang.RuntimeException.<init>(RuntimeException.java:76)
at java.lang.IllegalArgumentException.<init>(IllegalArgumentException.java:73)
at java.util.Hashtable.<init>(Hashtable.java:267)
at java.util.Hashtable.<init>(Hashtable.java:122)
at java.util.Properties.<init>(Properties.java:30)
at java.util.Properties.<init>(Properties.java:27)
at java.lang.System.<clinit>(System.java:44)
at java.lang.Throwable.<clinit>(Throwable.java:403)
Aborted
Compile date : Pá úno 3 14:49:28 CET 2006
Compile host : mar
Install prefix: /usr/kaffe
Thread system : unix-pthreads
CC : arm_v4le-gcc
CFLAGS : -g -O0 -Wall -Wstrict-prototypes -fsigned-char
I tried both 1.1.6 and 1.1.3 and with and without -O0
With the intrp I can move further just to:
...
Loading java/lang/InternalError.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
effdcsvcvccvcvx
Loading java/lang/ExceptionInInitializerError.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
#
After InternalError.class it waits for enter and when I wrote effdcsvcvccvcvx + enter it quits silentely.
I would like to know if someone succeeded runing it on ARM (I was trying the qemu-system-arm and also dnp1110 as real hw)?
I tried some patches from mailing list but no luck. Any ideas?
gcc version: 3.4.4
glibc: 2.3.4
--
Thanks,
Rudolf
More verbose:
-sh-3.00# java -verbosejit /tmp/HelloWorld
<JIT: java/lang/String.<clinit>()V time 281ms (281ms) @ 0xfe628>
<JIT: java/lang/String$ICComp.<init>(Ljava/lang/String$1;)V time 6ms (287ms) @ 0x45ad8>
<JIT: java/lang/String$ICComp.<init>()V time 11ms (298ms) @ 0x45bb8>
<JIT: java/lang/Object.<init>()V time 11ms (309ms) @ 0xc5af8>
<JIT: java/security/CodeSource.<init>(Ljava/net/URL;[Ljava/security/cert/Certificate;)V time 1750ms (2059ms) @ 0x122c00>
<JIT: java/security/Permissions.<init>()V time 24ms (2083ms) @ 0x134be8>
<JIT: java/security/PermissionCollection.<init>()V time 10ms (2093ms) @ 0x126138>
<JIT: java/security/Permissions.this()V time 500ms (2593ms) @ 0x135240>
<JIT: java/util/Hashtable.<init>()V time 21ms (2614ms) @ 0x135430>
<JIT: java/util/Hashtable.<init>(IF)V time 731ms (3345ms) @ 0x145058>
<JIT: java/util/Dictionary.<init>()V time 11ms (3356ms) @ 0x1262f8>
<JIT: java/lang/StringBuffer.<init>(Ljava/lang/String;)V time 34ms (3390ms) @ 0x136430>
<JIT: java/lang/String.getChars(II[CI)V time 19ms (3409ms) @ 0x146048>
<JIT: java/lang/System.<clinit>()V time 692ms (4101ms) @ 0x146808>
<JIT: java/lang/VMSystem.makeStandardInputStream()Ljava/io/InputStream; time 522ms (4623ms) @ 0x14c248>
<JIT: java/io/FileDescriptor.<clinit>()V time 1513ms (6136ms) @ 0x14d820>
<JIT: gnu/java/nio/channels/FileChannelImpl.<clinit>()V time 19ms (6155ms) @ 0x14dc08>
<JIT: java/lang/System.loadLibrary(Ljava/lang/String;)V time 75ms (6230ms) @ 0x14c9f8>
<JIT: java/lang/Runtime.<clinit>()V time 21ms (6251ms) @ 0x14cbf8>
<JIT: java/lang/Runtime.<init>()V time 524ms (6775ms) @ 0x161068>
<JIT: gnu/classpath/SystemProperties.<clinit>()V time 755ms (7530ms) @ 0x169050>
<JIT: java/util/Properties.<init>()V time 15ms (7545ms) @ 0x45f38>
<JIT: java/lang/System.arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V time 9ms (7554ms) @ 0x126830>
<JIT: java/lang/VMSystem.arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V time 545ms (8099ms) @ 0x16b050>
<JIT: java/lang/Object.getClass()Ljava/lang/Class; time 67ms (8166ms) @ 0x15c920>
<JIT: java/lang/Class.isArray()Z time 121ms (8287ms) @ 0x15ca60>
<JIT: java/lang/reflect/Array.<clinit>()V time 525ms (8812ms) @ 0x173248>
<JIT: java/util/HashMap.<init>()V time 23ms (8835ms) @ 0x173430>
<JIT: java/util/HashMap.<init>(IF)V time 130ms (8965ms) @ 0x178058>
<JIT: java/util/AbstractMap.<init>()V time 4ms (8969ms) @ 0x126678>
<JIT: java/lang/StringBuffer.append(F)Ljava/lang/StringBuffer; time 24ms (8993ms) @ 0x173618>
<JIT: java/lang/Number.<clinit>()V time 34ms (9027ms) @ 0x176050>
<JIT: java/lang/Float.<clinit>()V time 236ms (9263ms) @ 0x126e58>
<JIT: java/lang/VMClassLoader.<clinit>()V time 18ms (9281ms) @ 0x173818>
<JIT: java/lang/VMClassLoader.getPrimitiveClass(C)Ljava/lang/Class; time 45ms (9326ms) @ 0x17d050>
<JIT: java/lang/Float.toString(F)Ljava/lang/String; time 78ms (9404ms) @ 0x1751d8>
<JIT: java/lang/VMDouble.<clinit>()V time 17ms (9421ms) @ 0x175358>
<JIT: java/lang/Runtime.getRuntime()Ljava/lang/Runtime; time 9ms (9430ms) @ 0x1752a0>
<JIT: java/lang/NullPointerException.<init>()V time 11ms (9441ms) @ 0x126f38>
<JIT: java/lang/RuntimeException.<init>()V time 10ms (9451ms) @ 0x17e058>
<JIT: java/lang/Exception.<init>()V time 10ms (9461ms) @ 0x17e138>
<JIT: java/lang/Throwable.<init>()V time 6ms (9467ms) @ 0x17e218>
<JIT: java/lang/Throwable.<init>(Ljava/lang/String;)V time 6ms (9473ms) @ 0x173dd8>
<JIT: java/lang/Throwable.this()V time 6ms (9479ms) @ 0x175420>
<JIT: java/lang/Throwable.fillInStackTrace()Ljava/lang/Throwable; time 44ms (9523ms) @ 0x17f048>
<JIT: java/lang/VMThrowable.fillInStackTrace(Ljava/lang/Throwable;)Ljava/lang/VMThrowable; time 22ms (9545ms) @ 0x17f240>
<JIT: java/lang/VMThrowable.<init>()V time 11ms (9556ms) @ 0x17e2f8>
<JIT: java/lang/ExceptionInInitializerError.<init>(Ljava/lang/Throwable;)V time 22ms (9578ms) @ 0x17f618>
<JIT: java/lang/LinkageError.<init>(Ljava/lang/String;)V time 11ms (9589ms) @ 0x17e3d8>
<JIT: java/lang/Error.<init>(Ljava/lang/String;)V time 9ms (9598ms) @ 0x17e4b8>
<JIT: java/lang/Throwable.initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable; time 100ms (9698ms) @ 0x17a438>
Internal error: caught an unexpected exception.
Please check your CLASSPATH and your installation.
java/lang/ExceptionInInitializerError
at java.lang.String.getChars (String.java:398)
at java.lang.StringBuffer.<init> (StringBuffer.java:147)
at java.util.Hashtable.<init> (Hashtable.java:267)
at java.util.Hashtable.<init> (Hashtable.java:217)
at java.security.Permissions.this (Permissions.java:81)
at java.security.Permissions.<init> (Permissions.java:87)
Aborted
-sh-3.00# java -verbose /tmp/HelloWorld
Loading java/lang/Object.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/io/Serializable.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/Cloneable.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/Class.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/String.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/Comparable.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/CharSequence.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/System.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/Runtime.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/Void.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/Boolean.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/Byte.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/Number.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/Character.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/Short.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/Integer.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/Long.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/Float.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/Double.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading kaffe/util/Ptr.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/ClassLoader.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/Throwable.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/VMThrowable.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/StackTraceElement.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/Exception.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/ArrayIndexOutOfBoundsException.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/IndexOutOfBoundsException.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/RuntimeException.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/NullPointerException.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/ArithmeticException.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/ClassNotFoundException.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/NoClassDefFoundError.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/LinkageError.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/Error.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/StackOverflowError.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/VirtualMachineError.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/io/IOException.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/ref/Reference.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/ref/WeakReference.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/ref/SoftReference.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/ref/PhantomReference.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/String$ICComp.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/util/Comparator.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/security/CodeSource.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/net/URL.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/util/HashSet.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/util/AbstractSet.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/util/AbstractCollection.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/util/Collection.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/util/Set.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/util/Arrays.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/security/Permissions.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/security/PermissionCollection.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/util/Hashtable.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/util/Dictionary.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/util/Map.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/IllegalArgumentException.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/StringBuffer.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/util/Hashtable$HashEntry.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/util/AbstractMap$BasicMapEntry.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/util/Map$Entry.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/VMSystem.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/io/InputStream.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/io/PrintStream.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/io/FilterOutputStream.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/io/OutputStream.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/io/BufferedInputStream.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/io/FilterInputStream.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/io/FileInputStream.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/io/FileDescriptor.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading gnu/java/nio/channels/FileChannelImpl.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/nio/channels/FileChannel.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/nio/channels/spi/AbstractInterruptibleChannel.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/nio/channels/Channel.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/nio/channels/InterruptibleChannel.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/nio/channels/ByteChannel.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/nio/channels/ReadableByteChannel.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/nio/channels/WritableByteChannel.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/nio/channels/GatheringByteChannel.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/nio/channels/ScatteringByteChannel.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading gnu/classpath/VMStackWalker.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading gnu/classpath/SystemProperties.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/util/StringTokenizer.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/util/Enumeration.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/InternalError.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/util/Properties.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading gnu/classpath/VMSystemProperties.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/ArrayStoreException.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/reflect/Array.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/VMObject.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/VMClass.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/util/HashMap.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/util/AbstractMap.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/util/HashMap$HashEntry.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/VMClassLoader.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/VMDouble.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/ExceptionInInitializerError.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Loading java/lang/IllegalStateException.class(/usr/kaffe/jre/lib/rt.jar) [compressed]
Internal error: caught an unexpected exception.
Please check your CLASSPATH and your installation.
java/lang/ExceptionInInitializerError
at java.lang.String.getChars (String.java:398)
at java.lang.StringBuffer.<init> (StringBuffer.java:147)
at java.util.Hashtable.<init> (Hashtable.java:267)
at java.util.Hashtable.<init> (Hashtable.java:217)
at java.security.Permissions.this (Permissions.java:81)
at java.security.Permissions.<init> (Permissions.java:87)
Aborted
Engine: Just-in-time Version: 1.1.6 Java Version: 1.4
Heap defaults: minimum size: 5 MB, maximum size: unlimited
Stack default size: 64 KB
Configuration/Compilation options:
) Compile date : Thu Feb 2 13:20:51 CET 2006
Compile host : blanice
Install prefix : /usr/kaffe
Thread system : unix-pthreads
Garbage Collector: kaffe-gc
CC : arm_v4le-gcc
CFLAGS : -g -O2 -Wall -W -Wextra -fsigned-char -fno-omit-frame-pointer -pthread -DENABLE_BINRELOC
LDFLAGS :
ChangeLog head : 2005-09-20 Dalibor Topic <robilad at kaffe.org>
More information about the kaffe
mailing list