trunk 20070720 fails with an ICE, although it doesn't seem to be the primary error. Matthias /bin/sh ./libtool --tag=GCJ --mode=compile /scratch/packages/gcc/snap/gcc-snapshot-20070720/build/gcc/gcj -B/scratch/packages/gcc/snap/gcc-snapshot-20070720/build/hppa-linux-gnu/libjava/ -B/scratch/packages/gcc/snap/gcc-snapshot-20070720/build/gcc/ -fclasspath= -fbootclasspath=../../../src/libjava/classpath/lib --encoding=UTF-8 -Wno-deprecated -fbootstrap-classes -g -O2 -c -o java/lang/Class.lo -fsource-filename=../../../src/libjava/java/lang/Class.java ../../../src/libjava/classpath/lib/java/lang/Class.class libtool: compile: /scratch/packages/gcc/snap/gcc-snapshot-20070720/build/gcc/gcj -B/scratch/packages/gcc/snap/gcc-snapshot-20070720/build/hppa-linux-gnu/libjava/ -B/scratch/packages/gcc/snap/gcc-snapshot-20070720/build/gcc/ -fclasspath= -fbootclasspath=../../../src/libjava/classpath/lib --encoding=UTF-8 -Wno-deprecated -fbootstrap-classes -g -O2 -c -fsource-filename=../../../src/libjava/java/lang/Class.java ../../../src/libjava/classpath/lib/java/lang/Class.class -fPIC -o java/lang/.libs/Class.o java/util/AbstractMap.java: In class 'java.lang.Class': java/util/AbstractMap.java: In method 'java.lang.Class.getProtectionDomain()': java/util/AbstractMap.java:819: error: cannot find file for class java.util.AbstractMap$SimpleEntry java/util/HashMap.java:819: error: cannot find file for class java.util.AbstractMap$SimpleEntry ../../../src/libjava/java/lang/Class.java:821: error: cannot find file for class java.lang.SecurityManager ../../../src/libjava/java/lang/Class.java:821: error: class 'java.lang.SecurityManager' has no method named 'checkPermission' matching signature '(Ljava/security/Permission;)V' ../../../src/libjava/java/lang/Class.java:821: internal compiler error: in simplify_subreg, at simplify-rtx.c:4678 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. make[5]: *** [java/lang/Class.lo] Error 1 make[5]: Leaving directory `/scratch/packages/gcc/snap/gcc-snapshot-20070720/build/hppa-linux-gnu/libjava' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/scratch/packages/gcc/snap/gcc-snapshot-20070720/build/hppa-linux-gnu/libjava' make[3]: *** [all-target-libjava] Error 2 make[3]: Leaving directory `/scratch/packages/gcc/snap/gcc-snapshot-20070720/build' make[2]: *** [bootstrap-lean] Error 2
ICE is just an artifact I think: java/util/AbstractMap.java:819: error: cannot find file for class java.util.AbstractMap$SimpleEntry is the real error.
Do you have Kyle's use-compat_sys_getdents patch installed? It fixes a scandir bug. Without it, building libjava fails. See <http://git.kernel.org/?p=linux/kernel/git/kyle/patches.git;a=shortlog>. It was also posted to parisc list.
works for me with kyles patch for the kernel. Matthias
closing as worksforme.
Subject: Re: libjava fails to build on hppa-linux-gnu (ICE in simplify_subreg) > works for me with kyles patch for the kernel. It's in 2.6.24. Dave