Native image build fails (JDK 11, windows-latest)
See original GitHub issueJust noticed that the native image build fails since yesterday. Only JDK 11 / Windows seems to be affected.
Execution failed for task ':nativeImage'.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
> Couldn't find an installation of Windows SDK 7.1 suitable for GraalVM.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Native image fails to build on Windows and misreads system ...
Native image fails to build on Windows and misreads system architecture. Building a native image from the same jar file works fine on...
Read more >Use GitHub Actions to Build GraalVM Native Images
The main.yml workflow file configures GitHub Actions to check out your project, configure Node 16, configure Java 11, run your project's backend ...
Read more >How to workaround "The command line is too long" with ...
Upgrading to native-build-tools v0.9.10 fixes this issue on Windows.
Read more >Release Notes - GraalVM Enterprise Edition
Released experimental JDK 19 GraalVM builds including the Graal compiler, Native Image, and all GraalVM languages and tools except Espresso ...
Read more >21.3.3 - GraalVM
Updated the OpenJDK release on which GraalVM Community Edition is built to: ... Java and Compiler Updates; Platform Updates; Native Image; Polyglot Runtime ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Looks like the Palantir plugin checks for VS version 2019 or 2017 https://github.com/palantir/gradle-graal/blob/develop/src/main/java/com/palantir/gradle/graal/GraalExtension.java
(I basically never use Windows myself so my appetite for trying to work around this is low. I think that Graal native images are usually going to be used in Docker anyway.)
windows-2019 passes.
So there’s an incompatibility with windows-2022, either with GraalVM itself or the Palantir Graal gradle plugin.