java compiler error while running JVM 2008 ( compiler benchmark )

Maurizio Cimadamore Maurizio.Cimadamore at Sun.COM
Wed Mar 25 06:57:12 PDT 2009

Hi Ednap,
What kind of error you are getting?

In any case keep in mind that the compiler included in the SPEC JVM 2008 
suite is not the same as 'our' javac. That explain the differences when 
you launch javac -version. I recently saw a similar failure (originally 
attributed to javac :-) ) with SPEC JVM 2008 - here's a link to the bug:

If that's your problem that's likely to be a bug in the C2 Hotspot compiler.


ednap wrote:
> Hi, 
> Has anyone tried to run SPEC JVM 2008 with open jdk6 (JVM) - built from the
> source? I have no problem running jvm2008 from the installed openjdk6, when
> it comes to running jvm2008 using the jvm that I built, I am running into
> this problem. 
> I was trying to run the SPEC JVM 98 with the open jdk6 (JVM) that I built
> from the source. 
> Built from openjdk source:
> --------------------------------------
> sirish at vancouver:~/jvm08/installation$
> /home/sirish/school/openjdk/control/build/linux-i586/bin/java -version
> openjdk version "1.6.0-internal"
> OpenJDK Runtime Environment (build
> 1.6.0-internal-sirish_22_mar_2009_21_57-b00)
> OpenJDK Client VM (build 11.0-b17, mixed mode)
> sirish at vancouver:~/jvm08/installation$
> /home/sirish/school/openjdk/control/build/linux-i586/bin/java -jar
> lib/javac.jar -version 
> javac 1.6.0-internal
> Installed openjdk6:
> --------------------------
> sirish at vancouver:~/jvm08/installation$
> /usr/lib/jvm/java-6-openjdk/jre/bin/java -version
> java version "1.6.0_0"
> OpenJDK  Runtime Environment (build 1.6.0_0-b11)
> OpenJDK Client VM (build 1.6.0_0-b11, mixed mode, sharing)
> sirish at vancouver:~/jvm08/installation$
> /usr/lib/jvm/java-6-openjdk/jre/bin/java -jar lib/javac.jar -version
> javac 1.7.0-opensource
> Has anyone seen this error. I had downloaded the JVM 2008 from the spec
> website. And there was this known bug issue for javac. 
> The problem boils down to this point. Why is java -jar lib/javac.jar
> -version giving different results. Should that command just run the Main
> class from javac.jar -verision - which in this case is javac.
> Ednap

More information about the compiler-dev mailing list