Closed davisusanibar closed 6 months ago
@vbarua could we upgrade the GraalVM or is there an alternative for this?
Upgrading seems like a reasonable way to address this. I'd be happy to review a PR for an upgrade to the latest version that works with no changes. We can file an issue to move us to the latest version and deal with the changes required for that.
@vbarua we got one PR merged related to a related update. What more work would we need to close this?
Isthmus native image builds now run successfully using GraalVM 22.1.0.
Opened a separate issue to upgrade to the latest version, though I don't think it's critical to do so: https://github.com/substrait-io/substrait-java/issues/218
Issue
Currently Isthmus is using GraalVM 22.0.0.2 https://github.com/substrait-io/substrait-java/blob/main/isthmus/build.gradle.kts#L104
It is necessary to run
./gradlew nativeImage
in order to build Isthmus native image, and the process will finish with the following message:Reason of the error
Isthmus is using Palantir Gradle Graal to download and locally cache a GraalVM installation and make available select parts of the GraalVM compiler for use in Gradle builds.
GraalVM 22.0.0.2 is available to download, but not to install a new image, as you can see at:
Workaround
Consider: You won't experience any problems if your local environment just caches the GraalVM image at the moment when the native image was able to download and install (e.g. current Github CI Jobs).