[Bug java/18212] New: nativ compilation with multiple jars fails / gives internal compiler error
bojan at antonovic dot com
gcc-bugzilla@gcc.gnu.org
Thu Oct 28 22:10:00 GMT 2004
given: A.jar, B.jar and X.jar. X.jar depends on A.jar and B.jar.
wanted: nativ compiled X.jar to a.out and x.exec
1 given jar:
working: gcj --main=A.main A.jar
working: gcj -o a.exec --main=A.main A.jar
multiple given jars:
working: gcj --classpath:A.jar:B.jar:. --main=X.main X.jar A.jar B.jar
working: gcj --classpath:A.jar:B.jar:. --main=X.main X/main.class A.jar B.jar
failing: gcj -o x.exec --classpath:A.jar:B.jar:. --main=X.main X.jar A.jar B.jar
crashing: gcj -o x.exec --classpath:A.jar:B.jar:. --main=X.main X/main.class
A.jar B.jar
When its failing, it compiles other things:
java/awt/Component.java: In class `java.awt.Component':
java/awt/Component.java: In method `java.awt.Component.eventTypeEnabled(int)':
java/awt/Component.java:4127: error: expected type 'int' but stack contains 'void'
java/awt/Component.java:4127: error: verification error at PC=311
java/awt/Component.java:4127: error: types could not be merged
^Cmake: *** [exe] Interrupt
The crash ends in an internal compiler error: Bus error.
I builded GCJ myself. See: http://gcc.gnu.org/ml/gcc/2004-09/msg00677.html
Bojan
--
Summary: nativ compilation with multiple jars fails / gives
internal compiler error
Product: gcc
Version: 3.4.2
Status: UNCONFIRMED
Severity: critical
Priority: P2
Component: java
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bojan at antonovic dot com
CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18212
More information about the Java-prs
mailing list