oracle / graal

GraalVM compiles Java applications into native executables that start instantly, scale fast, and use fewer compute resources 🚀
https://www.graalvm.org
Other
20.16k stars 1.61k forks source link

Unable to build libgraal.dll on Windows 10 with Java 17: Could not find any unresolved JVM_* symbols in static JDK libraries #3945

Open TheShermanTanker opened 2 years ago

TheShermanTanker commented 2 years ago

Describe the issue Building libgraal on Windows 10 with the instructions in the readme results in the build failing after a while

Steps to reproduce the issue Please include both build steps as well as run steps

  1. Follow the instructions to compile libgraal in the readme in the compiler directory
  2. The build fails after around 2 minutes

Describe GraalVM and your environment:

More details The issue appears to be Error executing: dumpbin /SYMBOLS "C:\Program Files\Java\jdk-17\lib\jawt.lib" [WinError 2] The system cannot find the file specified but a quick check in my jdk installation directory confirms the file is indeed present Error Trace:

    WARNING: symlinking not supported
WARNING: Adding non-default dependency com.oracle.svm.graal.hotspot.libgraal as it is needed by standard dependency GRAAL_HOTSPOT_LIBRARY
WARNING: Adding non-default dependency GRAAL_HOTSPOT_LIBRARY as it is needed by standard dependency jvmcicompiler.dll.image
Note: Some input files use or override a deprecated API that is marked for removal.
Note: Recompile with -Xlint:removal for details.
Note: D:\Graal JIT Compiler\graal\sdk\src\org.graalvm.polyglot\src\org\graalvm\polyglot\Engine.java uses or overrides a deprecated API that is marked for removal.
Note: Recompile with -Xlint:removal for details.
WARNING: D:\Graal JIT Compiler\graal\sdk\mxbuild\jdk17\dists\jdk17\launcher-common.jar: skipping update of META-INF/native/linux32/libjansi.so
     using: C:\Users\vert\.mx\cache\JLINE_c3aeac59c022bdc497c8c48ed86fa50450e4896a\jline.jar!META-INF/native/linux32/libjansi.so
  ignoring: C:\Users\vert\.mx\cache\JLINE3_4cb5f6c20b10912ef3c12f4c4c3ebcdbcbe3a555\jline3.jar!META-INF/native/linux32/libjansi.so
WARNING: D:\Graal JIT Compiler\graal\sdk\mxbuild\jdk17\dists\jdk17\launcher-common.jar: skipping update of META-INF/native/linux64/libjansi.so
     using: C:\Users\vert\.mx\cache\JLINE_c3aeac59c022bdc497c8c48ed86fa50450e4896a\jline.jar!META-INF/native/linux64/libjansi.so
  ignoring: C:\Users\vert\.mx\cache\JLINE3_4cb5f6c20b10912ef3c12f4c4c3ebcdbcbe3a555\jline3.jar!META-INF/native/linux64/libjansi.so
WARNING: D:\Graal JIT Compiler\graal\sdk\mxbuild\jdk17\dists\jdk17\launcher-common.jar: skipping update of META-INF/native/osx/libjansi.jnilib
     using: C:\Users\vert\.mx\cache\JLINE_c3aeac59c022bdc497c8c48ed86fa50450e4896a\jline.jar!META-INF/native/osx/libjansi.jnilib
  ignoring: C:\Users\vert\.mx\cache\JLINE3_4cb5f6c20b10912ef3c12f4c4c3ebcdbcbe3a555\jline3.jar!META-INF/native/osx/libjansi.jnilib
WARNING: D:\Graal JIT Compiler\graal\sdk\mxbuild\jdk17\dists\jdk17\launcher-common.jar: skipping update of META-INF/native/windows32/jansi.dll
     using: C:\Users\vert\.mx\cache\JLINE_c3aeac59c022bdc497c8c48ed86fa50450e4896a\jline.jar!META-INF/native/windows32/jansi.dll
  ignoring: C:\Users\vert\.mx\cache\JLINE3_4cb5f6c20b10912ef3c12f4c4c3ebcdbcbe3a555\jline3.jar!META-INF/native/windows32/jansi.dll
WARNING: D:\Graal JIT Compiler\graal\sdk\mxbuild\jdk17\dists\jdk17\launcher-common.jar: skipping update of META-INF/native/windows64/jansi.dll
     using: C:\Users\vert\.mx\cache\JLINE_c3aeac59c022bdc497c8c48ed86fa50450e4896a\jline.jar!META-INF/native/windows64/jansi.dll
  ignoring: C:\Users\vert\.mx\cache\JLINE3_4cb5f6c20b10912ef3c12f4c4c3ebcdbcbe3a555\jline3.jar!META-INF/native/windows64/jansi.dll
Note: D:\Graal JIT Compiler\graal\compiler\src\org.graalvm.compiler.serviceprovider\src\org\graalvm\compiler\serviceprovider\GraalUnsafeAccess.java uses or overrides a deprecated API that is marked for removal.
Note: Recompile with -Xlint:removal for details.
Note: Some input files use or override a deprecated API that is marked for removal.
Note: Recompile with -Xlint:removal for details.
Note: D:\Graal JIT Compiler\graal\truffle\src\com.oracle.truffle.api.library\src\com\oracle\truffle\api\library\LibraryFactory.java uses or overrides a deprecated API that is marked for removal.
Note: Recompile with -Xlint:removal for details.
Note: D:\Graal JIT Compiler\graal\truffle\src\com.oracle.truffle.host\src\com\oracle\truffle\host\HostClassLoader.java uses or overrides a deprecated API that is marked for removal.
Note: Recompile with -Xlint:removal for details.
JAVA_HOME: C:/Program Files/Java/jdk-17
18 unsatisfied dependencies were removed from build (use -v to list them)
5 non-default dependencies were removed from build (use -v to list them, mx build --all to build them)
Compiling com.oracle.mxtool.compilerserver with javac(JDK 17)... [D:\Graal JIT Compiler\mx\mxbuild\jdk17\com.oracle.mxtool.compilerserver\bin\com\oracle\mxtool\compilerserver\CompilerDaemon.class does not exist]
Compiling com.oracle.mxtool.checkcopy with javac-daemon(JDK 17)... [D:\Graal JIT Compiler\mx\mxbuild\jdk17\com.oracle.mxtool.checkcopy\bin\com\oracle\mxtool\checkcopy\CheckCopyright.class does not exist]
Compiling com.oracle.mxtool.jacoco with javac-daemon(JDK 17)... [D:\Graal JIT Compiler\mx\mxbuild\jdk17\com.oracle.mxtool.jacoco\bin\com\oracle\mxtool\jacoco\JacocoReport.class does not exist]
Compiling com.oracle.mxtool.jmh_1_21 with javac-daemon(JDK 17)... [D:\Graal JIT Compiler\mx\mxbuild\jdk17\com.oracle.mxtool.jmh_1_21\bin\com\oracle\mxtool\jmh_1_21\TestJMH_1_21.class does not exist]
Compiling com.oracle.mxtool.junit with javac-daemon(JDK 17)... [D:\Graal JIT Compiler\mx\mxbuild\jdk17\com.oracle.mxtool.junit\bin\com\oracle\mxtool\junit\AnsiTerminalDecorator.class does not exist]
Compiling com.oracle.mxtool.junit.jdk9 with javac-daemon(JDK 17)... [D:\Graal JIT Compiler\mx\mxbuild\jdk17\com.oracle.mxtool.junit.jdk9\bin\com\oracle\mxtool\junit\ModuleSupport.class does not exist]
Compiling com.oracle.mxtool.webserver with javac-daemon(JDK 17)... [D:\Graal JIT Compiler\mx\mxbuild\jdk17\com.oracle.mxtool.webserver\bin\com\oracle\mxtool\webserver\WebServer.class does not exist]
Compiling org.graalvm.collections with javac-daemon(JDK 17)... [D:\Graal JIT Compiler\graal\sdk\mxbuild\jdk17\org.graalvm.collections\bin\org\graalvm\collections\EconomicMap.class does not exist]
Compiling org.graalvm.collections.test with javac-daemon(JDK 17)... [dependency org.graalvm.collections updated]
Compiling org.graalvm.word with javac-daemon(JDK 17)... [D:\Graal JIT Compiler\graal\sdk\mxbuild\jdk17\org.graalvm.word\bin\org\graalvm\word\ComparableWord.class does not exist]
Compiling org.graalvm.options with javac-daemon(JDK 17)... [D:\Graal JIT Compiler\graal\sdk\mxbuild\jdk17\org.graalvm.options\bin\org\graalvm\options\OptionCategory.class does not exist]
Compiling org.graalvm.nativeimage with javac-daemon(JDK 17)... [dependency org.graalvm.word updated]
Compiling org.graalvm.home with javac-daemon(JDK 17)... [dependency org.graalvm.nativeimage updated]
Compiling org.graalvm.home.test with javac-daemon(JDK 17)... [dependency org.graalvm.home updated]
Compiling org.graalvm.polyglot with javac-daemon(JDK 17)... [dependency org.graalvm.collections updated]
Compiling org.graalvm.launcher with javac-daemon(JDK 17)... [dependency org.graalvm.polyglot updated]
Compiling org.graalvm.launcher.test with javac-daemon(JDK 17)... [dependency org.graalvm.launcher updated]
Compiling org.graalvm.nativeimage.test with javac-daemon(JDK 17)... [dependency org.graalvm.nativeimage updated]
Compiling org.graalvm.polyglot.tck with javac-daemon(JDK 17)... [dependency org.graalvm.polyglot updated]
Archiving GRAAL_SDK... [dependency org.graalvm.polyglot updated]
Building Java module org.graalvm.sdk (graal-sdk.jar) from GRAAL_SDK
Archiving LAUNCHER_COMMON... [dependency org.graalvm.launcher updated]
Building Java module org.graalvm.launcher (launcher-common.jar) from LAUNCHER_COMMON
Building polyglot.exe.image-bash... [dependency LAUNCHER_COMMON updated]
Creating native-image.properties for polyglot-launcher... [dependency LAUNCHER_COMMON updated]
Compiling org.graalvm.compiler.processor with javac-daemon(JDK 17)... [D:\Graal JIT Compiler\graal\compiler\mxbuild\jdk17\org.graalvm.compiler.processor\bin\org\graalvm\compiler\processor\AbstractProcessor.class does not exist]
Compiling org.graalvm.compiler.options.processor with javac-daemon(JDK 17)... [dependency org.graalvm.compiler.processor updated]
Compiling org.graalvm.compiler.serviceprovider.processor with javac-daemon(JDK 17)... [dependency org.graalvm.compiler.processor updated]
Compiling org.graalvm.compiler.nodeinfo.processor with javac-daemon(JDK 17)... [dependency org.graalvm.compiler.processor updated]
Compiling org.graalvm.compiler.replacements.processor with javac-daemon(JDK 17)... [dependency org.graalvm.compiler.processor updated]
Compiling org.graalvm.compiler.core.match.processor with javac-daemon(JDK 17)... [dependency org.graalvm.compiler.processor updated]
Compiling org.graalvm.compiler.lir.processor with javac-daemon(JDK 17)... [dependency org.graalvm.compiler.processor updated]
Archiving GRAAL_PROCESSOR... [dependency org.graalvm.compiler.processor updated]
Compiling org.graalvm.libgraal with javac-daemon(JDK 17)... [dependency GRAAL_SDK updated]
Compiling org.graalvm.libgraal.jdk11 with javac-daemon(JDK 17)... [dependency org.graalvm.libgraal updated]
Compiling org.graalvm.libgraal.jni.annotation with javac-daemon(JDK 17)... [D:\Graal JIT Compiler\graal\compiler\mxbuild\jdk17\org.graalvm.libgraal.jni.annotation\bin\org\graalvm\libgraal\jni\annotation\FromLibGraalEntryPointsResolver.class does not exist]
Compiling org.graalvm.libgraal.jni.processor with javac-daemon(JDK 17)... [dependency org.graalvm.compiler.processor updated]
Compiling org.graalvm.compiler.truffle.common.hotspot.libgraal with javac-daemon(JDK 17)... [dependency org.graalvm.libgraal.jni.annotation updated]
Compiling org.graalvm.compiler.truffle.compiler.hotspot.libgraal.processor with javac-daemon(JDK 17)... [dependency org.graalvm.libgraal.jni.processor updated]
Compiling org.graalvm.compiler.hotspot.management.libgraal.annotation with javac-daemon(JDK 17)... [dependency org.graalvm.libgraal.jni.annotation updated]
Compiling org.graalvm.compiler.hotspot.management.libgraal.processor with javac-daemon(JDK 17)... [dependency org.graalvm.compiler.hotspot.management.libgraal.annotation updated]
Archiving GRAAL_LIBGRAAL_PROCESSOR... [dependency org.graalvm.libgraal.jni.processor updated]
Compiling org.graalvm.compiler.serviceprovider with javac-daemon(JDK 17)... [D:\Graal JIT Compiler\graal\compiler\mxbuild\jdk17\org.graalvm.compiler.serviceprovider\bin\org\graalvm\compiler\serviceprovider\BufferUtil.class does not exist]
Compiling org.graalvm.graphio with javac-daemon(JDK 17)... [D:\Graal JIT Compiler\graal\compiler\mxbuild\jdk17\org.graalvm.graphio\bin\org\graalvm\graphio\DefaultGraphBlocks.class does not exist]
Compiling org.graalvm.compiler.options with javac-daemon(JDK 17)... [dependency GRAAL_SDK updated]
Compiling org.graalvm.compiler.debug with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Compiling org.graalvm.nativebridge.jni with javac-daemon(JDK 17)... [dependency GRAAL_SDK updated]
Compiling org.graalvm.libgraal.jni with javac-daemon(JDK 17)... [dependency GRAAL_LIBGRAAL_PROCESSOR updated]
Compiling org.graalvm.compiler.options.jdk11 with javac-daemon(JDK 17)... [dependency org.graalvm.compiler.options updated]
Compiling org.graalvm.compiler.nodeinfo with javac-daemon(JDK 17)... [D:\Graal JIT Compiler\graal\compiler\mxbuild\jdk17\org.graalvm.compiler.nodeinfo\bin\org\graalvm\compiler\nodeinfo\InputType.class does not exist]
Compiling org.graalvm.compiler.serviceprovider.jdk11 with javac-daemon(JDK 17)... [dependency org.graalvm.compiler.serviceprovider updated]
Compiling org.graalvm.compiler.serviceprovider.jdk16 with javac-daemon(JDK 17)... [dependency org.graalvm.compiler.serviceprovider updated]
Compiling org.graalvm.compiler.api.replacements with javac-daemon(JDK 17)... [D:\Graal JIT Compiler\graal\compiler\mxbuild\jdk17\org.graalvm.compiler.api.replacements\bin\org\graalvm\compiler\api\replacements\ClassSubstitution.class does not exist]
Compiling org.graalvm.compiler.api.runtime with javac-daemon(JDK 17)... [D:\Graal JIT Compiler\graal\compiler\mxbuild\jdk17\org.graalvm.compiler.api.runtime\bin\org\graalvm\compiler\api\runtime\GraalJVMCICompiler.class does not exist]
Compiling org.graalvm.util with javac-daemon(JDK 17)... [dependency GRAAL_SDK updated]
Note: Some input files use or override a deprecated API that is marked for removal.
Note: Recompile with -Xlint:removal for details.
Note: D:\Graal JIT Compiler\graal\substratevm\src\com.oracle.svm.hosted\src\com\oracle\svm\hosted\SecurityServicesFeature.java uses or overrides a deprecated API that is marked for removal.
Note: Recompile with -Xlint:removal for details.
Note: D:\Graal JIT Compiler\graal\substratevm\src\com.oracle.svm.core.jdk11\src\com\oracle\svm\core\jdk11\Target_java_util_ServiceLoader.java uses or overrides a deprecated API that is marked for removal.
Note: Recompile with -Xlint:removal for details.
Note: D:\Graal JIT Compiler\graal\substratevm\src\com.oracle.svm.core.containers\src\com\oracle\svm\core\containers\CgroupUtil.java uses or overrides a deprecated API that is marked for removal.
Note: Recompile with -Xlint:removal for details.
WARNING: Using incubator modules: jdk.incubator.foreign, jdk.incubator.vector
Compiling org.graalvm.compiler.core.common with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Compiling org.graalvm.compiler.bytecode with javac-daemon(JDK 17)... [D:\Graal JIT Compiler\graal\compiler\mxbuild\jdk17\org.graalvm.compiler.bytecode\bin\org\graalvm\compiler\bytecode\BridgeMethodUtils.class does not exist]
Compiling org.graalvm.compiler.graph with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Compiling org.graalvm.compiler.asm with javac-daemon(JDK 17)... [dependency org.graalvm.compiler.core.common updated]
Compiling org.graalvm.compiler.code with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Compiling org.graalvm.compiler.lir with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Compiling org.graalvm.compiler.nodes with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Compiling org.graalvm.compiler.word with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Compiling org.graalvm.compiler.phases with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Compiling org.graalvm.compiler.phases.common with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Compiling org.graalvm.compiler.virtual with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Compiling org.graalvm.compiler.loop.phases with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Compiling org.graalvm.compiler.core with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Compiling org.graalvm.compiler.api.directives with javac-daemon(JDK 17)... [D:\Graal JIT Compiler\graal\compiler\mxbuild\jdk17\org.graalvm.compiler.api.directives\bin\org\graalvm\compiler\api\directives\GraalDirectives.class does not exist]
Compiling org.graalvm.compiler.java with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Compiling org.graalvm.compiler.replacements with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Compiling org.graalvm.compiler.runtime with javac-daemon(JDK 17)... [dependency org.graalvm.compiler.core updated]
Compiling org.graalvm.compiler.printer with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Compiling org.graalvm.compiler.asm.aarch64 with javac-daemon(JDK 17)... [dependency org.graalvm.compiler.asm updated]
Compiling org.graalvm.compiler.lir.aarch64 with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Compiling org.graalvm.compiler.core.aarch64 with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Compiling org.graalvm.compiler.replacements.aarch64 with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Compiling org.graalvm.compiler.asm.amd64 with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Compiling org.graalvm.compiler.lir.amd64 with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Compiling org.graalvm.compiler.replacements.amd64 with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Compiling org.graalvm.compiler.core.amd64 with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Compiling org.graalvm.compiler.hotspot with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Compiling org.graalvm.compiler.hotspot.aarch64 with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Compiling org.graalvm.compiler.hotspot.amd64 with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Compiling org.graalvm.compiler.hotspot.jdk11 with javac-daemon(JDK 17)... [dependency org.graalvm.compiler.hotspot updated]
Compiling org.graalvm.compiler.hotspot.jdk15 with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Compiling org.graalvm.compiler.truffle.common with javac-daemon(JDK 17)... [dependency org.graalvm.graphio updated]
Compiling com.oracle.truffle.dsl.processor with javac-daemon(JDK 17)... [D:\Graal JIT Compiler\graal\truffle\mxbuild\jdk17\com.oracle.truffle.dsl.processor\bin\com\oracle\truffle\dsl\processor\AbstractRegistrationProcessor.class does not exist]
Compiling com.oracle.truffle.dsl.processor.jdk9 with javac-daemon(JDK 17)... [dependency com.oracle.truffle.dsl.processor updated]
Compiling com.oracle.truffle.object.dsl.processor with javac-daemon(JDK 17)... [dependency com.oracle.truffle.dsl.processor updated]
Archiving TRUFFLE_DSL_PROCESSOR... [dependency com.oracle.truffle.dsl.processor.jdk9 updated]
Compiling com.oracle.truffle.api.jdk11 with javac-daemon(JDK 17)... [D:\Graal JIT Compiler\graal\truffle\mxbuild\jdk17\com.oracle.truffle.api.jdk11\bin\com\oracle\truffle\api\impl\TruffleJDKServices.class does not exist]
Compiling com.oracle.truffle.api with javac-daemon(JDK 17)... [dependency GRAAL_SDK updated]
Compiling com.oracle.truffle.api.dsl with javac-daemon(JDK 17)... [dependency com.oracle.truffle.api updated]
Compiling com.oracle.truffle.api.utilities with javac-daemon(JDK 17)... [dependency com.oracle.truffle.api updated]
Compiling com.oracle.truffle.api.library with javac-daemon(JDK 17)... [dependency TRUFFLE_DSL_PROCESSOR updated]
Compiling com.oracle.truffle.api.profiles with javac-daemon(JDK 17)... [dependency com.oracle.truffle.api updated]
Compiling com.oracle.truffle.api.interop with javac-daemon(JDK 17)... [dependency TRUFFLE_DSL_PROCESSOR updated]
Compiling com.oracle.truffle.api.exception with javac-daemon(JDK 17)... [dependency TRUFFLE_DSL_PROCESSOR updated]
Compiling com.oracle.truffle.api.instrumentation with javac-daemon(JDK 17)... [dependency TRUFFLE_DSL_PROCESSOR updated]
Compiling com.oracle.truffle.polyglot with javac-daemon(JDK 17)... [dependency TRUFFLE_DSL_PROCESSOR updated]
Compiling com.oracle.truffle.api.debug with javac-daemon(JDK 17)... [dependency TRUFFLE_DSL_PROCESSOR updated]
Compiling com.oracle.truffle.api.object with javac-daemon(JDK 17)... [dependency TRUFFLE_DSL_PROCESSOR updated]
Compiling com.oracle.truffle.object with javac-daemon(JDK 17)... [dependency TRUFFLE_DSL_PROCESSOR updated]
Compiling com.oracle.truffle.api.object.dsl with javac-daemon(JDK 17)... [dependency com.oracle.truffle.api.object updated]
Compiling com.oracle.truffle.host with javac-daemon(JDK 17)... [dependency TRUFFLE_DSL_PROCESSOR updated]
Compiling com.oracle.truffle.api.staticobject with javac-daemon(JDK 17)... [dependency com.oracle.truffle.api updated]
Archiving TRUFFLE_API... [dependency com.oracle.truffle.api.jdk11 updated]
Building Java module org.graalvm.truffle (truffle-api-open.jar) from TRUFFLE_API
Building Java module org.graalvm.truffle (truffle-api.jar) from TRUFFLE_API
Compiling org.graalvm.compiler.truffle.options with javac-daemon(JDK 17)... [dependency TRUFFLE_DSL_PROCESSOR updated]
Compiling org.graalvm.compiler.truffle.compiler with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Compiling org.graalvm.compiler.truffle.compiler.amd64 with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Compiling org.graalvm.compiler.truffle.runtime.serviceprovider with javac-daemon(JDK 17)... [D:\Graal JIT Compiler\graal\compiler\mxbuild\jdk17\org.graalvm.compiler.truffle.runtime.serviceprovider\bin\org\graalvm\compiler\truffle\runtime\serviceprovider\TruffleRuntimeServices.class does not exist]
Compiling org.graalvm.compiler.truffle.runtime.serviceprovider.jdk11 with javac-daemon(JDK 17)... [dependency org.graalvm.compiler.truffle.runtime.serviceprovider updated]
Compiling org.graalvm.compiler.truffle.jfr with javac-daemon(JDK 17)... [dependency TRUFFLE_API updated]
Compiling org.graalvm.compiler.truffle.runtime with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Compiling org.graalvm.compiler.truffle.common.hotspot with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Compiling org.graalvm.compiler.truffle.runtime.hotspot with javac-daemon(JDK 17)... [dependency org.graalvm.compiler.truffle.runtime updated]
Compiling org.graalvm.compiler.truffle.runtime.hotspot.jdk11 with javac-daemon(JDK 17)... [dependency org.graalvm.compiler.truffle.runtime.hotspot updated]
Compiling org.graalvm.compiler.truffle.runtime.hotspot.jdk8+13 with javac-daemon(JDK 17)... [dependency org.graalvm.compiler.truffle.runtime updated]
Compiling org.graalvm.compiler.truffle.compiler.hotspot with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Compiling org.graalvm.compiler.truffle.runtime.hotspot.java with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Compiling org.graalvm.compiler.truffle.runtime.hotspot.libgraal with javac-daemon(JDK 17)... [dependency TRUFFLE_DSL_PROCESSOR updated]
Compiling org.graalvm.compiler.truffle.compiler.hotspot.amd64 with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Compiling org.graalvm.compiler.truffle.compiler.hotspot.aarch64 with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Archiving GRAAL... [dependency org.graalvm.libgraal.jdk11 updated]
Building Java module jdk.internal.vm.compiler (graal.jar) from GRAAL
Compiling com.oracle.objectfile with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Compiling com.oracle.svm.util with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Compiling com.oracle.svm.common with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Compiling com.oracle.svm.core with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Compiling com.oracle.graal.pointsto with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Compiling com.oracle.svm.hosted with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Compiling com.oracle.svm.jni with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Compiling com.oracle.svm.reflect with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Compiling com.oracle.svm.graal with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Compiling com.oracle.svm.graal.hotspot.libgraal with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Compiling com.oracle.svm.truffle with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Compiling com.oracle.svm.core.jdk11 with javac-daemon(JDK 17)... [dependency com.oracle.svm.core updated]
Compiling com.oracle.svm.hosted.jdk11 with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Compiling com.oracle.svm.hosted.jdk17 with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Compiling com.oracle.svm.core.jdk17 with javac-daemon(JDK 17)... [dependency com.oracle.svm.core.jdk11 updated]
Compiling com.oracle.svm.core.graal.amd64 with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Compiling com.oracle.svm.core.graal.aarch64 with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Compiling com.oracle.svm.core.posix with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Compiling com.oracle.svm.core.windows with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Compiling com.oracle.svm.core.genscavenge with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Compiling com.oracle.svm.core.containers with javac-daemon(JDK 17)... [dependency com.oracle.svm.core updated]
Compiling com.oracle.svm.jfr with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Compiling com.oracle.svm.methodhandles with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Archiving OBJECTFILE... [dependency com.oracle.objectfile updated]
Building Java module org.graalvm.nativeimage.objectfile (objectfile.jar) from OBJECTFILE
Compiling com.oracle.svm.util.jdk11 with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Archiving NATIVE_IMAGE_BASE... [dependency com.oracle.svm.common updated]
Building Java module org.graalvm.nativeimage.base (native-image-base.jar) from NATIVE_IMAGE_BASE
Archiving POINTSTO... [dependency com.oracle.svm.util.jdk11 updated]
Building Java module org.graalvm.nativeimage.pointsto (pointsto.jar) from POINTSTO
Archiving SVM... [dependency com.oracle.svm.graal updated]
Building Java module org.graalvm.nativeimage.builder (svm.jar) from SVM
Archiving GRAAL_HOTSPOT_LIBRARY... [dependency com.oracle.svm.graal.hotspot.libgraal updated]
Compiling org.graalvm.compiler.truffle.compiler.hotspot.libgraal with javac-daemon(JDK 17)... [dependency GRAAL_LIBGRAAL_PROCESSOR updated]
Archiving GRAAL_TRUFFLE_COMPILER_LIBGRAAL... [dependency org.graalvm.compiler.truffle.compiler.hotspot.amd64 updated]
Compiling org.graalvm.compiler.hotspot.management with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Compiling org.graalvm.compiler.hotspot.management.libgraal with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Compiling org.graalvm.compiler.management with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Archiving GRAAL_MANAGEMENT... [dependency org.graalvm.compiler.management updated]
Building Java module jdk.internal.vm.compiler.management (graal-management.jar) from GRAAL_MANAGEMENT
Archiving GRAAL_MANAGEMENT_LIBGRAAL... [dependency org.graalvm.compiler.hotspot.management.libgraal updated]
Compiling org.graalvm.compiler.truffle.jfr.impl.jdk11 with javac-daemon(JDK 17)... [dependency org.graalvm.compiler.truffle.jfr updated]
Compiling org.graalvm.compiler.truffle.jfr.impl with javac-daemon(JDK 17)... [dependency org.graalvm.compiler.truffle.jfr updated]
Archiving GRAAL_TRUFFLE_JFR_IMPL... [dependency org.graalvm.compiler.truffle.jfr.impl.jdk11 updated]
Building Java module jdk.internal.vm.compiler.truffle.jfr (graal-truffle-jfr-impl.jar) from GRAAL_TRUFFLE_JFR_IMPL
Compiling com.oracle.graalvm.locator.jdk11 with javac-daemon(JDK 17)... [D:\Graal JIT Compiler\graal\truffle\mxbuild\jdk17\com.oracle.graalvm.locator.jdk11\bin\com\oracle\graalvm\locator\JDKServices.class does not exist]
Compiling com.oracle.graalvm.locator with javac-daemon(JDK 17)... [dependency TRUFFLE_API updated]
Archiving LOCATOR... [dependency com.oracle.graalvm.locator.jdk11 updated]
Building Java module org.graalvm.locator (locator.jar) from LOCATOR
Building graalvm-jimage... [dependency GRAAL updated]
Compiling org.graalvm.component.installer with javac-daemon(JDK 17)... [dependency LAUNCHER_COMMON updated]
Archiving INSTALLER... [dependency org.graalvm.component.installer updated]
Creating native-image.properties for gu-launcher... [dependency INSTALLER updated]
Building gu.exe.image-bash-stage1... [dependency INSTALLER updated]
Creating native-image.properties for jvmcicompiler-library... [dependency GRAAL_HOTSPOT_LIBRARY updated]
Compiling com.oracle.svm.driver with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Compiling com.oracle.svm.driver.jdk11 with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Building SVM compiler flags... [dependency SVM updated]
Write file D:\Graal JIT Compiler\graal\substratevm\mxbuild\jdk17\svm-compiler-flags-builder\graal-compiler-flags-versions.config
Write file D:\Graal JIT Compiler\graal\substratevm\mxbuild\jdk17\svm-compiler-flags-builder\graal-compiler-flags-8.config
Write file D:\Graal JIT Compiler\graal\substratevm\mxbuild\jdk17\svm-compiler-flags-builder\graal-compiler-flags-11.config
Write file D:\Graal JIT Compiler\graal\substratevm\mxbuild\jdk17\svm-compiler-flags-builder\graal-compiler-flags-17.config
Compiling com.oracle.svm.polyglot with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Compiling com.oracle.svm.thirdparty with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Archiving LIBRARY_SUPPORT... [dependency com.oracle.svm.polyglot updated]
Building Java module org.graalvm.nativeimage.librarysupport (library-support.jar) from LIBRARY_SUPPORT
Archiving SVM_DRIVER... [dependency com.oracle.svm.driver updated]
Building Java module org.graalvm.nativeimage.driver (svm-driver.jar) from SVM_DRIVER
Building native-image.exe.image-bash-stage1... [dependency SVM_DRIVER updated]
Building polyglot.exe.image-bash-stage1... [dependency LAUNCHER_COMMON updated]
Compiling com.oracle.svm.jvmtiagentbase with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Archiving JVMTI_AGENT_BASE... [dependency com.oracle.svm.jvmtiagentbase updated]
Building Java module org.graalvm.nativeimage.agent.jvmtibase (jvmti-agent-base.jar) from JVMTI_AGENT_BASE
Archiving NATIVE_IMAGE_GRAALVM_SUPPORT... [D:\Graal JIT Compiler\graal\substratevm\mxbuild\windows-amd64\dists\native-image-graalvm-support.tar does not exist]
Archiving NATIVE_IMAGE_LICENSE_GRAALVM_SUPPORT... [D:\Graal JIT Compiler\graal\substratevm\mxbuild\jdk17\dists\native-image-license-graalvm-support.tar does not exist]
Compiling org.graalvm.polyglot.nativeapi with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Archiving POLYGLOT_NATIVE_API... [dependency org.graalvm.polyglot.nativeapi updated]
Archiving POLYGLOT_NATIVE_API_HEADERS... [dependency POLYGLOT_NATIVE_API updated]
Compiling com.oracle.svm.configure with javac-daemon(JDK 17)... [dependency com.oracle.svm.core updated]
Compiling com.oracle.svm.agent with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Compiling com.oracle.svm.configure.jdk11 with javac-daemon(JDK 17)... [dependency com.oracle.svm.configure updated]
Archiving SVM_CONFIGURE... [dependency com.oracle.svm.configure updated]
Building Java module org.graalvm.nativeimage.configure (svm-configure.jar) from SVM_CONFIGURE
Archiving SVM_AGENT... [dependency com.oracle.svm.agent updated]
Building Java module org.graalvm.nativeimage.agent.tracing (svm-agent.jar) from SVM_AGENT
Compiling com.oracle.svm.diagnosticsagent with javac-daemon(JDK 17)... [dependency GRAAL_PROCESSOR updated]
Archiving SVM_DIAGNOSTICS_AGENT... [dependency com.oracle.svm.diagnosticsagent updated]
Building Java module org.graalvm.nativeimage.agent.diagnostics (svm-diagnostics-agent.jar) from SVM_DIAGNOSTICS_AGENT
JvmFuncsFallbacksBuildTask svm-jvmfuncs-fallback-builder... [D:\Graal JIT Compiler\graal\substratevm\src\com.oracle.svm.native.jvm.windows\src\src_gen\17\JvmFuncsFallbacks.c does not exist]
Error executing: dumpbin /SYMBOLS "C:\Program Files\Java\jdk-17\lib\jawt.lib"
[WinError 2] The system cannot find the file specified
pejovica commented 2 years ago

@TheShermanTanker Did you run mx build from the Visual Studio Developer Command Prompt that targets x64? If you didn't (or if you don't have MSVC installed), then the error actually refers to the dumpbin that is missing.

TheShermanTanker commented 2 years ago

@TheShermanTanker Did you run mx build from the Visual Studio Developer Command Prompt that targets x64? If you didn't (or if you don't have MSVC installed), then the error actually refers to the dumpbin that is missing.

Hey there, thanks for taking the time :)

I did figure out my mistake shortly after posting the issue and did manage to fix the initial problem by adding dumpbin to the path, but unfortunately it's now displaying a second error of Could not find any unresolved JVM_* symbols in static JDK libraries :/

pejovica commented 2 years ago

That's odd. It would mean that your JDK does not have the necessary static libraries, which could be the case if you are not using LabsJDK. If so, you can download it using the mx fetch-jdk command.