Graal: No HomeFinder when compiling with llvm

Created on 27 Dec 2019  路  8Comments  路  Source: oracle/graal

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.

bug native-image

All 8 comments

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 tag of the plugin (e.g. https://github.com/gluonhq/client-samples/blob/master/Maven/HelloFX/pom.xml#L54)

<nativeImageArgs>--features=org.graalvm.home.HomeFinderFeature</nativeImageArgs>

Cool & Thanks! This indeed worked and made the problem disappear.

Now I'm getting a different exception:

Caused by: java.lang.UnsatisfiedLinkError: 'com.oracle.svm.core.hub.DynamicHub com.oracle.svm.core.snippets.KnownIntrinsics.readHub(java.lang.Object)'.

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.

Was this page helpful?
0 / 5 - 0 ratings