On 07.07.2012, at 15:34, Alexander Graf wrote:
On 07.07.2012, at 11:05, Dirk Müller
wrote: Hi,
(braindump as I am out of time). while debugging the ecj-bootstrap buildfailure, I found a small reproducer:
gij --verbose:class --classpath /usr/lib/gcc/armv7hl-suse-linux- gnueabi/4.7/ecj.jar org.eclipse.jdt.internal.compiler.batch.GCCMain
which gives
... [Loaded (bytecode) org.eclipse.jdt.core.compiler.IProblem from (file:/usr/lib/gcc/armv7hl-suse-linux-gnueabi/4.7/ecj.jar <no certificates>)] ....
Exception in thread "main" [Loaded (pre-compiled) gnu.gcj.runtime.NameFinder from <no code source>] [Loaded (pre-compiled) java.lang.Throwable$StaticData from <no code source>] java.lang.NoClassDefFoundError: org.eclipse.jdt.core.compiler.IProblem <<No stacktrace available>>
with other words, it can load the class it complains about. However, there is a hint:
http://www.mail-archive.com/debian-68k@lists.debian.org/msg15345.html
which says, there might still be an undefined class, and it is not the one it mentions but one of the referenced ones.
anyone having time to search for it ?
strace should be able to tell you, no? Unless there is a cache of course :).
This is where the x86 (working) and arm (broken) cases diverge. So I'd assume the breakage is a missing LinkedHashSet implementation? Just a wild guess though. x86: [pid 1734] lstat("/x/org/eclipse/jdt/internal/compiler/util/HashtableOfInt.class", {st_mode=S_IFREG|0644, st_size=2337, ...}) = 0 [pid 1734] open("/x/org/eclipse/jdt/internal/compiler/util/HashtableOfInt.class", O_RDONLY) = 4 [pid 1734] stat("/x/org/eclipse/jdt/internal/compiler/util/HashtableOfInt.class", {st_mode=S_IFREG|0644, st_size=2337, ...}) = 0 [pid 1734] stat("/x/org/eclipse/jdt/internal/compiler/util/HashtableOfInt.class", {st_mode=S_IFREG|0644, st_size=2337, ...}) = 0 [pid 1734] read(4, "\312\376\272\276\0\0\0.\0Y\7\0\2\1\0005org/eclipse/jdt/"..., 2337) = 2337 [pid 1734] close(4) = 0 [pid 1734] write(2, "[Loaded (pre-compiled) java.lang"..., 62[Loaded (pre-compiled) java.lang.Float from <no code source>] ) = 62 [pid 1734] write(2, "[Loaded (bytecode) org.eclipse.j"..., 108[Loaded (bytecode) org.eclipse.jdt.internal.compiler.util.HashtableOfInt from (file:/x/ <no certificates>)] ) = 108 [pid 1734] write(2, "[Loaded (pre-compiled) java.util"..., 70[Loaded (pre-compiled) java.util.LinkedHashSet from <no code source>] ) = 70 [pid 1734] write(2, "[Loaded (pre-compiled) java.util"..., 70[Loaded (pre-compiled) java.util.LinkedHashMap from <no code source>] ) = 70 [pid 1734] write(2, "[Loaded (pre-compiled) java.util"..., 86[Loaded (pre-compiled) java.util.LinkedHashMap$LinkedHashEntry from <no code source>] ) = 86 [pid 1734] write(2, "[Loaded (pre-compiled) java.util"..., 72[Loaded (pre-compiled) java.util.LinkedHashMap$1 from <no code source>] ) = 72 ---- arm: [pid 8468] lstat64("/x/org/eclipse/jdt/internal/compiler/util/HashtableOfInt.class", {st_mode=S_IFREG|0644, st_size=2337, ...}) = 0 [pid 8468] open("/x/org/eclipse/jdt/internal/compiler/util/HashtableOfInt.class", O_RDONLY|O_LARGEFILE) = 4 [pid 8468] stat64("/x/org/eclipse/jdt/internal/compiler/util/HashtableOfInt.class", {st_mode=S_IFREG|0644, st_size=2337, ...}) = 0 [pid 8468] stat64("/x/org/eclipse/jdt/internal/compiler/util/HashtableOfInt.class", {st_mode=S_IFREG|0644, st_size=2337, ...}) = 0 [pid 8468] read(4, "\312\376\272\276\0\0\0.\0Y\7\0\2\1\0005org/eclipse/jdt/"..., 2337) = 2337 [pid 8468] close(4) = 0 [pid 8468] write(2, "[Loaded (pre-compiled) java.lang"..., 62[Loaded (pre-compiled) java.lang.Float from <no code source>] ) = 62 [pid 8468] write(2, "[Loaded (bytecode) org.eclipse.j"..., 108[Loaded (bytecode) org.eclipse.jdt.internal.compiler.util.HashtableOfInt from (file:/x/ <no certificates>)] ) = 108 [pid 8468] cacheflush(0xb42cb0d8, 0xb42cb0eb, 0, 0x71a8, 0xb42cb0d8) = 0 [pid 8468] cacheflush(0xb42cb0d8, 0xb42cb0e4, 0, 0x71a8, 0xb42cb0d8) = 0 [pid 8468] cacheflush(0xb42cb140, 0xb42cb153, 0, 0x71a8, 0xb42cb140) = 0 [pid 8468] cacheflush(0xb42cb140, 0xb42cb14c, 0, 0x71a8, 0xb42cb140) = 0 [pid 8468] cacheflush(0xb42cb1b0, 0xb42cb1c3, 0, 0x71a8, 0xb42cb1b0) = 0 [pid 8468] cacheflush(0xb42cb1b0, 0xb42cb1bc, 0, 0x71a8, 0xb42cb1b0) = 0 [pid 8468] cacheflush(0xb42cb220, 0xb42cb233, 0, 0x71a8, 0xb42cb220) = 0 [pid 8468] cacheflush(0xb42cb220, 0xb42cb22c, 0, 0x71a8, 0xb42cb220) = 0 [pid 8468] cacheflush(0xb42cb290, 0xb42cb2a3, 0, 0x71a8, 0xb42cb290) = 0 [pid 8468] cacheflush(0xb42cb290, 0xb42cb29c, 0, 0x71a8, 0xb42cb290) = 0 [pid 8468] cacheflush(0xb42cb300, 0xb42cb313, 0, 0x71a8, 0xb42cb300) = 0 [pid 8468] cacheflush(0xb42cb300, 0xb42cb30c, 0, 0x71a8, 0xb42cb300) = 0 [pid 8468] cacheflush(0xb42cb368, 0xb42cb37b, 0, 0x71a8, 0xb42cb368) = 0 [pid 8468] cacheflush(0xb42cb368, 0xb42cb374, 0, 0x71a8, 0xb42cb368) = 0 [pid 8468] cacheflush(0xb42cb3d0, 0xb42cb3e3, 0, 0x71a8, 0xb42cb3d0) = 0 [pid 8468] cacheflush(0xb42cb3d0, 0xb42cb3dc, 0, 0x71a8, 0xb42cb3d0) = 0 [pid 8468] write(2, "Exception in thread \"main\" ", 27Exception in thread "main" ) = 27 -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org