Problem building graal on x86
Doug Simon
doug.simon at oracle.com
Thu Jan 12 14:06:38 UTC 2017
Hi Andrew,
Unfortunately there was a new JDK bug that prevented annotation processors from running:
https://bugs.openjdk.java.net/browse/JDK-8172158
Since JDK9 is still under development, we’re bound to run into these issues so the JDK9 EA version Graal works with (currently b143) is more of an exact version requirement as opposed to a minimum version requirement.
-Doug
> On 12 Jan 2017, at 13:02, Andrew Dinn <adinn at redhat.com> wrote:
>
> I am seeing errors (see after sig for commands and error output) when I
> try to 'mx build' graal from the git repo on x86. The build JVM is from
> the latest jdk9-dev tree built by my own fair hand.
>
> It seems the truffle repo is missing definitions for various classes such as
>
> JavaObjectMessageResolutionForeign
> ToJavaNodeGen
> ArrayReadNodeGen
> etc
>
> Have I missed out a generation step which is supposed to provide
> definitions for these files?
>
> regards,
>
>
> Andrew Dinn
> -----------
> Senior Principal Software Engineer
> Red Hat UK Ltd
> Registered in England and Wales under Company Registration No. 03798903
> Directors: Michael Cunningham, Michael ("Mike") O'Neill, Eric Shander
>
>
> $ git clone https://github.com/graalvm/graal-core.git
> $ cd graal-core
> $ mx --java-home
> /path/to/jdk9-dev/build/linux-x86_64-normal-server-release/images/jdk build
> Cloning https://github.com/graalvm/truffle.git revision
> 835a4eb7c5155e04c6c6579251616d2be327899b to
> /home/adinn/redhat/openjdk/graal/truffle with Git
> Cloning https://github.com/graalvm/truffle.git to
> /home/adinn/redhat/openjdk/graal/truffle with Git
> . . .
> Checking connectivity... done.
> Compiling com.oracle.mxtool.compilerserver with javac...
> [/home/adinn/redhat/openjdk/graal/mx/mxbuild/java/com.oracle.mxtool.compilerserver/bin/com/oracle/mxtool/compilerserver/JavacDaemon.class
> does not exist]
> warning: [options] bootstrap class path not set in conjunction with
> -source 1.7
> . . .
> 1 warning
> /home/adinn/redhat/openjdk/graal/truffle/truffle/com.oracle.truffle.api.interop.java/src/com/oracle/truffle/api/interop/java/JavaObject.java:44:
> error: cannot find symbol
> return JavaObjectMessageResolutionForeign.createAccess();
> ^
> symbol: variable JavaObjectMessageResolutionForeign
> location: class JavaObject
> /home/adinn/redhat/openjdk/graal/truffle/truffle/com.oracle.truffle.api.interop.java/src/com/oracle/truffle/api/interop/java/JavaFunctionMessageResolution.java:64:
> error: cannot find symbol
> this.toJava[i] = ToJavaNodeGen.create();
> ^
> symbol: variable ToJavaNodeGen
> location: class DoExecuteNode
> /home/adinn/redhat/openjdk/graal/truffle/truffle/com.oracle.truffle.api.interop.java/src/com/oracle/truffle/api/interop/java/JavaFunctionObject.java:47:
> error: cannot find symbol
> return JavaFunctionMessageResolutionForeign.createAccess();
> ^
> symbol: variable JavaFunctionMessageResolutionForeign
> location: class JavaFunctionObject
> /home/adinn/redhat/openjdk/graal/truffle/truffle/com.oracle.truffle.api.interop.java/src/com/oracle/truffle/api/interop/java/ToJavaNode.java:158:
> error: cannot find symbol
> this.toJava = ToJavaNodeGen.create();
> ^
> symbol: variable ToJavaNodeGen
> location: class TemporaryRoot
> /home/adinn/redhat/openjdk/graal/truffle/truffle/com.oracle.truffle.api.interop.java/src/com/oracle/truffle/api/interop/java/JavaInterop.java:154:
> error: cannot find symbol
> RootNode root = new TemporaryConvertRoot(TruffleLanguage.class,
> ToJavaNodeGen.create(), foreignObject, type);
> ^
> symbol: variable ToJavaNodeGen
> location: class JavaInterop
> /home/adinn/redhat/openjdk/graal/truffle/truffle/com.oracle.truffle.api.interop.java/src/com/oracle/truffle/api/interop/java/JavaInterop.java:263:
> error: cannot find symbol
> RootNode root = new TemporaryConvertRoot(TruffleLanguage.class,
> ToJavaNodeGen.create(), function, functionalType);
> ^
> symbol: variable ToJavaNodeGen
> location: class JavaInterop
> 1 warning
> /home/adinn/redhat/openjdk/graal/truffle/truffle/com.oracle.truffle.api.interop.java/src/com/oracle/truffle/api/interop/java/JavaObjectMessageResolution.java:160:
> error: cannot find symbol
> @Child private ArrayReadNode read = ArrayReadNodeGen.create();
> ^
> symbol: variable ArrayReadNodeGen
> location: class ReadFieldNode
> /home/adinn/redhat/openjdk/graal/truffle/truffle/com.oracle.truffle.api.interop.java/src/com/oracle/truffle/api/interop/java/JavaObjectMessageResolution.java:187:
> error: cannot find symbol
> @Child private ToJavaNode toJava = ToJavaNodeGen.create();
> ^
> symbol: variable ToJavaNodeGen
> location: class WriteFieldNode
> /home/adinn/redhat/openjdk/graal/truffle/truffle/com.oracle.truffle.api.interop.java/src/com/oracle/truffle/api/interop/java/JavaObjectMessageResolution.java:206:
> error: cannot find symbol
> @Child private ArrayWriteNode write = ArrayWriteNodeGen.create();
> ^
> symbol: variable ArrayWriteNodeGen
> location: class WriteFieldNode
> 9 errors
> 1 warning
> Compiling org.graalvm.compiler.graph with javac-daemon... [dependency
> GRAAL_OPTIONS_PROCESSOR updated]
> warning: [options] bootstrap class path not set in conjunction with
> -source 1.8
> 1 warning
> Compiling com.oracle.truffle.api.interop.java with javac-daemon failed
> 1 build tasks failed
> $
More information about the graal-dev
mailing list