Bug 32857 - libjava fails to build on hppa-linux-gnu (ICE in simplify_subreg)
Summary: libjava fails to build on hppa-linux-gnu (ICE in simplify_subreg)
Status: RESOLVED WORKSFORME
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 4.3.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-22 20:14 UTC by Debian GCC Maintainers
Modified: 2008-01-27 00:13 UTC (History)
4 users (show)

See Also:
Host:
Target: hppa-linux-gnu
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Debian GCC Maintainers 2007-07-22 20:14:28 UTC
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
Comment 1 Andrew Pinski 2007-07-22 20:16:19 UTC
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.
Comment 2 John David Anglin 2007-07-22 21:02:56 UTC
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.
Comment 3 Debian GCC Maintainers 2008-01-27 00:13:07 UTC
works for me with kyles patch for the kernel.

  Matthias
Comment 4 Debian GCC Maintainers 2008-01-27 00:13:47 UTC
closing as worksforme.
Comment 5 dave 2008-01-27 00:24:57 UTC
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