when compiling using the LLVM backend, native image build fails:
Error: ImageSingletons do not contain key org.graalvm.home.HomeFinder
Error: Use -H:+ReportExceptionStackTraces to print stacktrace of underlying exception
Error: Image build request failed with exit status 1
com.oracle.svm.driver.NativeImage$NativeImageError: Image build request failed with exit status 1
at com.oracle.svm.driver.NativeImage.showError(NativeImage.java:1504)
at com.oracle.svm.driver.NativeImage.build(NativeImage.java:1266)
at com.oracle.svm.driver.NativeImage.performBuild(NativeImage.java:1227)
at com.oracle.svm.driver.NativeImage.main(NativeImage.java:1186)
at com.oracle.svm.driver.NativeImage$JDK9Plus.main(NativeImage.java:1683)
The same code works fine when compiling without the LLVM backend.
Thanks @johanvos. Might be related to the recently merged PR #1890.
@johanvos does it still fail with the changes in #1890?
yes it does. Adding the feature manually (which was the workaround before #1890) works though.
How can I add the "feature manually"?
Or is there a way I can help here?
@karussell add this in the pom.xml inside the
<nativeImageArgs>--features=org.graalvm.home.HomeFinderFeature</nativeImageArgs>
Cool & Thanks! This indeed worked and made the problem disappear.
Now I'm getting a different exception:
Used labsjdk-ce-11.0.6-jvmci-20.0-b02 and a fresh compiled graal vm did not help. Should I create another issue here or is this gluon plugin related?
Fixed by dbe88d
Thanks, can confirm that it works now without nativeImageArgs.