Compiling the Kaffe core classes gives the following error:
java/lang/Object.java: In class `java.lang.Object':
java/lang/Object.java: In constructor `()':
java/lang/Object.java:20: internal compiler error: Segmentation fault
gcj (GCC) 3.3 20030103 (prerelease)
# Checkout kaffe from cvs:
cvs -d :pserver:email@example.com:/cvs/kaffe
cvs -d:pserver:firstname.lastname@example.org:/cvs/kaffe co kaffe
# Configure to use gcj as compiler:
# Make the core class library:
JAVAC_FLAGS="-C" make Klasses
I do not think this even going to be possible so changing to enchancement and lowing
Just checked gcj 3.3 against the CVS version of kaffe (pre 1.1).
$ JAVAC_FLAGS="-C" make Klasses
make: Entering directory `/home/mark/src/kaffe/libraries/javalib'
rm -rf lib
/bin/sh ./rebuildLib @essential.files
Compiling classes from @essential.files using /usr/local/gcc33/bin/gcj
./java/lang/ClassNotFoundException.java:52: error: Class
`java.lang.ClassNotFoundException' already defined in
public class ClassNotFoundException extends Exception
./java/lang/ClassNotFoundException.java:72: confused by earlier errors, bailing out
make: *** [lib/stamp] Error 1
make: Leaving directory `/home/mark/src/kaffe/libraries/javalib'
make: *** [Klasses] Error 2
This is because gcj gets confused about java/lang/ClassNotFoundException.java
and ./java/lang/ClassNotFoundException.java (note the ./ in front of the second
Changing all files in essential.files to have ./ added in front of them resolves
this issue. But brings back the original problem report.
Should this bug really be suspended? It might not have very high priority at the
moment, but it would be nice to be able to use gcj for compiling the kaffe core
classes (Kaffe is slowly merging with GNU Classpath, just like gcj).
This is fixable, so I'm reopening.
There was another report of this but with classpath ( I cannot remember the PR # right
Does this work now after the BC branch was merged.
All gcj front end bugs have been fixed by the gcj-eclipse branch merge.
I'm mass-closing the affected PRs.
If you believe one of these was closed in error, please reopen it
with a note explaining why.