You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exception in thread "main" java.lang.IllegalArgumentException: Missing scheme
at java.base/java.nio.file.Path.of(Path.java:200)
at org.graalvm.nativeimage.driver/com.oracle.svm.driver.NativeImage.callListModules(NativeImage.java:1617)
at org.graalvm.nativeimage.driver/com.oracle.svm.driver.NativeImage.listModulesFromPath(NativeImage.java:1585)
at org.graalvm.nativeimage.driver/com.oracle.svm.driver.NativeImage.buildImage(NativeImage.java:1449)
at org.graalvm.nativeimage.driver/com.oracle.svm.driver.NativeImage.completeImageBuild(NativeImage.java:1196)
at org.graalvm.nativeimage.driver/com.oracle.svm.driver.NativeImage.build(NativeImage.java:1773)
at org.graalvm.nativeimage.driver/com.oracle.svm.driver.NativeImage.performBuild(NativeImage.java:1738)
at org.graalvm.nativeimage.driver/com.oracle.svm.driver.NativeImage.main(NativeImage.java:1712)
Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: Failed, exit code: 1
at OperatingSystem.exec(build.java:1731)
at build.buildAgents(build.java:254)
at build.main(build.java:236)
Caused by: java.lang.RuntimeException: Failed, exit code: 1
at OperatingSystem.exec(build.java:1720)
at build.buildAgents(build.java:254)
at build.main(build.java:236)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at jdk.compiler/com.sun.tools.javac.launcher.Main.execute(Main.java:484)
at jdk.compiler/com.sun.tools.javac.launcher.Main.run(Main.java:208)
at jdk.compiler/com.sun.tools.javac.launcher.Main.main(Main.java:135)
Inspecting the case of the error we see that OpenJDK throws a java.lang.module.ResolutionException when asking it to list the modules:
/home/zakkak/code/mandrel-packaging/mandrel-java21-23.1.0-dev70b50a854f6/bin/java -p /home/zakkak/code/mandrel-packaging/mandrel-java21-23.1.0-dev70b50a854f6/lib/jvmci/graal-sdk.jar:/home/zakkak/code/mandrel-packaging/mandrel-java21-23.1.0-dev70b50a854f6/lib/truffle/truffle-compiler.jar:/home/zakkak/code/mandrel-packaging/mandrel-java21-23.1.0-dev70b50a854f6/lib/svm/builder/objectfile.jar:/home/zakkak/code/mandrel-packaging/mandrel-java21-23.1.0-dev70b50a854f6/lib/svm/builder/native-image-base.jar:/home/zakkak/code/mandrel-packaging/mandrel-java21-23.1.0-dev70b50a854f6/lib/svm/builder/pointsto.jar:/home/zakkak/code/mandrel-packaging/mandrel-java21-23.1.0-dev70b50a854f6/lib/svm/builder/svm.jar:/home/zakkak/code/mandrel-packaging/mandrel-java21-23.1.0-dev70b50a854f6/lib/graalvm/jvmti-agent-base.jar:/home/zakkak/code/mandrel-packaging/mandrel-java21-23.1.0-dev70b50a854f6/lib/graalvm/svm-agent.jar:/home/zakkak/code/mandrel-packaging/mandrel-java21-23.1.0-dev70b50a854f6/lib/graalvm/svm-configure.jar:/home/zakkak/code/mandrel-packaging/mandrel-java21-23.1.0-dev70b50a854f6/lib/graalvm/svm-driver.jar:/home/zakkak/code/mandrel-packaging/mandrel-java21-23.1.0-dev70b50a854f6/lib/svm/library-support.jar --list-modules
Error occurred during initialization of boot layer
java.lang.module.ResolutionException: Module org.graalvm.nativeimage.pointsto does not read a module that exports org.graalvm.compiler.options
Note however, that running the same command on the same jars but this time using GraalVM works as expected. However, using labsJDK still fails which is an indication that this is jlink-related. Indeed, trying to build graal with --no-jlinking results in the same error:
Building libjvmcicompiler.so.image... [dependency NATIVEBRIDGE updated]
Exception in thread "main" java.lang.IllegalArgumentException: Missing scheme
at java.base/java.nio.file.Path.of(Path.java:200)
at org.graalvm.nativeimage.driver/com.oracle.svm.driver.NativeImage.callListModules(NativeImage.java:1616)
at org.graalvm.nativeimage.driver/com.oracle.svm.driver.NativeImage.listModulesFromPath(NativeImage.java:1585)
at org.graalvm.nativeimage.driver/com.oracle.svm.driver.NativeImage.buildImage(NativeImage.java:1449)
at org.graalvm.nativeimage.driver/com.oracle.svm.driver.NativeImage.completeImageBuild(NativeImage.java:1196)
at org.graalvm.nativeimage.driver/com.oracle.svm.driver.NativeImage.build(NativeImage.java:1772)
at org.graalvm.nativeimage.driver/com.oracle.svm.driver.NativeImage.performBuild(NativeImage.java:1737)
at org.graalvm.nativeimage.driver/com.oracle.svm.driver.NativeImage.main(NativeImage.java:1711)
Exception in thread "main" java.lang.IllegalArgumentException: Missing scheme
at java.base/java.nio.file.Path.of(Path.java:200)
at org.graalvm.nativeimage.driver/com.oracle.svm.driver.NativeImage.callListModules(NativeImage.java:1616)
at org.graalvm.nativeimage.driver/com.oracle.svm.driver.NativeImage.listModulesFromPath(NativeImage.java:1585)
at org.graalvm.nativeimage.driver/com.oracle.svm.driver.NativeImage.buildImage(NativeImage.java:1449)
at org.graalvm.nativeimage.driver/com.oracle.svm.driver.NativeImage.completeImageBuild(NativeImage.java:1196)
at org.graalvm.nativeimage.driver/com.oracle.svm.driver.NativeImage.build(NativeImage.java:1772)
at org.graalvm.nativeimage.driver/com.oracle.svm.driver.NativeImage.performBuild(NativeImage.java:1737)
at org.graalvm.nativeimage.driver/com.oracle.svm.driver.NativeImage.main(NativeImage.java:1711)
Building native-image.image: Failed due to error: 1
Description
oracle#7076 breaks mandrel builds.
Since its merge the builds fail with:
Inspecting the case of the error we see that OpenJDK throws a
java.lang.module.ResolutionException
when asking it to list the modules:Note however, that running the same command on the same jars but this time using GraalVM works as expected. However, using labsJDK still fails which is an indication that this is jlink-related. Indeed, trying to build graal with
--no-jlinking
results in the same error:How To Reproduce
Steps to reproduce the behavior:
Configuration:
Expected behavior
Mandrel build should succeed
The text was updated successfully, but these errors were encountered: