<HTML>
<HEAD>
<TITLE>Problems building on System z</TITLE>
</HEAD>
<BODY>
<FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'>I’m building the OpenJDK6 & 7 by way of the zeroJDK mechanism and am running into problems.<BR>
<BR>
Using gij with icedtea6 I get:<BR>
<BR>
+ CLASSPATH=/home/neale/ecj-3.4.1.jar<BR>
+ /usr/bin/gij org.eclipse.jdt.internal.compiler.batch.Main -1.5 -nowarn -g -d lib/hotspot-tools -source 1.5 -sourcepath hotspot-tools:openjdk/jdk/src/share/classes:openjdk/jdk/src/solaris/classes:openjdk/langtools/src/share/classes:openjdk/jaxp/src/share/classes:openjdk/corba/src/share/classes:openjdk/jaxws/src/share/classes:/home/neale/icedtea6-1.4.1/generated:/home/neale/icedtea6-1.4.1/rt -bootclasspath ''\'''\''' @hotspot-tools-source-files.txt<BR>
incorrect classpath: ''<BR>
----------<BR>
1. ERROR in /home/neale/icedtea6-1.4.1/openjdk/jdk/src/share/classes/java/lang/Double.java (at line 0)<BR>
    /*<BR>
    ^<BR>
Internal compiler error<BR>
java.lang.NullPointerException<BR>
   at java.lang.Double.parseDouble(libgcj.so.7)<BR>
   at java.lang.Double.valueOf(libgcj.so.7)<BR>
<BR>
Using gij with icedtea9 I get:<BR>
<BR>
/usr/bin/gcj -g -O2 -Wl,-Bsymbolic -findirect-dispatch -o native-ecj \<BR>
    --main=org.eclipse.jdt.internal.compiler.batch.Main /home/neale/ecj-3.4.1.jar<BR>
org/eclipse/jdt/internal/compiler/apt/dispatch/BatchAnnotationProcessorManager.java: In class 'org.eclipse.jdt.internal.compiler.apt.dispatch.BatchAnnotationProcessorManager':<BR>
org/eclipse/jdt/internal/compiler/apt/dispatch/BatchAnnotationProcessorManager.java: In method 'org.eclipse.jdt.internal.compiler.apt.dispatch.BatchAnnotationProcessorManager.discoverNextProcessor()':<BR>
org/eclipse/jdt/internal/compiler/apt/dispatch/BatchAnnotationProcessorManager.java:110: error: verification failed at PC=251: String, int, or float constant expected<BR>
org/eclipse/jdt/internal/compiler/apt/dispatch/BatchAnnotationProcessorManager.java:110: error: verification failed at PC=260: incompatible type on stack<BR>
org/eclipse/jdt/internal/compiler/apt/dispatch/BatchAnnotationProcessorManager.java:152: confused by earlier errors, bailing out<BR>
<BR>
This is with gcc 4.1.2 should I be using a later version?<BR>
<BR>
When I use the IBM 1.6 JDK with icedtea6 I get:<BR>
<BR>
   [mkdir] Created dir: /home/neale/icedtea6-1.4.1/openjdk-ecj/control/build/linux-s390x/langtools/build/toolclasses<BR>
    [javac] Compiling 2 source files to /home/neale/icedtea6-1.4.1/openjdk-ecj/control/build/linux-s390x/langtools/build/toolclasses<BR>
    [javac] ----------<BR>
    [javac] 1. ERROR in /home/neale/icedtea6-1.4.1/openjdk-ecj/langtools/make/tools/CompileProperties/CompileProperties.java (at line 1)<BR>
    [javac]     /*<BR>
    [javac]     ^<BR>
    [javac] The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files<BR>
    [javac] ----------<BR>
    [javac] 2. ERROR in /home/neale/icedtea6-1.4.1/openjdk-ecj/langtools/make/tools/CompileProperties/CompileProperties.java (at line 1)<BR>
    [javac]     /*<BR>
    [javac]     ^<BR>
    [javac] The type java.lang.String cannot be resolved. It is indirectly referenced from required .class files<BR>
    [javac] ----------<BR>
:<BR>
: <BR>
For a total of 100 errors.<BR>
<BR>
For icedtea9 I got exactly the same results. <BR>
<BR>
Does any of this look familiar to anyone?<BR>
<BR>
Also, when using the JDK I have build problems with both 6 & 9:<BR>
<BR>
make[2]: Entering directory `/home/neale/icedtea6-1.4.1/openjdk-ecj/jdk/make'<BR>
common/Release.gmk:662: Extraneous text after `else' directive<BR>
common/Release.gmk:664: *** only one `else' per conditional.  Stop.<BR>
<BR>
And after fixing that I get with 6...<BR>
<BR>
common/Release.gmk:731: Extraneous text after `else' directive<BR>
common/Release.gmk:735: *** only one `else' per conditional.  Stop.<BR>
<BR>
Which is also easily fixed.<BR>
<BR>
Neale</SPAN></FONT></FONT>
</BODY>
</HTML>