java/10304: ICE when compiling OpenNMS (jcf-write.c:1041)

seth@oculan.com seth@oculan.com
Thu Apr 3 10:26:00 GMT 2003


>Number:         10304
>Category:       java
>Synopsis:       ICE when compiling OpenNMS (jcf-write.c:1041)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Thu Apr 03 10:26:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     seth@oculan.com
>Release:        gcj-3.2.1
>Organization:
>Environment:
GNU/Linux i386 Redhat 7.2 base, gcc 3.2.1

[root@seth-home root]# gcc --version
gcc (GCC) 3.2.1
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[root@seth-home root]# gcj --version
gcj (GCC) 3.2.1
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>Description:
I get an ICE when compiling the java code from the OpenNMS project.

Here's the Ant output:

    [javac] /root/opennms-unstable/src/services/org/opennms/netmgt/rtc/DataUpdater.java: In class `org.opennms.netmgt.rtc.DataUpdater':
    [javac] /root/opennms-unstable/src/services/org/opennms/netmgt/rtc/DataUpdater.java: In method `org.opennms.netmgt.rtc.DataUpdater.handleNodeGainedService(long,java.lang.String,java.lang.String)':
    [javac] /root/opennms-unstable/src/services/org/opennms/netmgt/rtc/DataUpdater.java:70: Internal compiler error in emit_store, at java/jcf-write.c:1041
    [javac] Please submit a full bug report,
    [javac] with preprocessed source if appropriate.
    [javac] See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.


The source code is downloadable from www.opennms.org and the  relevent files can be browsed from the CVS tree at http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/opennms/opennms/src/services/org/opennms/netmgt/rtc/

This code compiles without error when using JDK 1.3.1, 1.4.0, and jikes.
>How-To-Repeat:
Attempt to compile OpenNMS (www.opennms.org) project with GCJ. Change build.compiler property in build.properties file from "modern" to "gcj" and then run "./build.sh compile".

You may encounter additional issues with other files but I have been able to work around the other problems. Here are some proposed workarounds:

- src/services/org/opennms/netmgt/capsd/Scheduler.java: Remove NodeInfo(int, Date, long) constructor and change calls to it to use alternate (int,Timestamp,long) constructor
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Java-prs mailing list