Closed aviflax closed 4 years ago
Just pushed https://clojars.org/borkdude/clj-reflector-graal-java11-fix/versions/0.0.1-graalvm-19.3.2.
Can you try it?
🤯 wow 🏎
Will do!
I’m having some trouble.
deps.edn
My project compiles fine:
$ clojure -A:compile-for-native-image -e "(compile 'dad.cli)"
dad.cli
$ echo $?
0
But when I attempt to compile to native image, it fails:
~/dev/dad $ native-image \
> -cp "$(clojure -A:compile-for-native-image -Spath):classes" \
> -H:Name=dad \
> -H:+ReportExceptionStackTraces \
> --initialize-at-build-time \
> --verbose \
> --no-fallback \
> --no-server \
> "-J-Xms5g" \
> "-J-Xmx5g" \
> dad.cli
Error: Invalid or corrupt jarfile /Users/avi.flax/.m2/repository/org/graalvm/nativeimage/svm-hosted-native-linux-amd64/19.3.2/svm-hosted-native-linux-amd64-19.3.2.tar.gz
Caused by: java.util.zip.ZipException: zip END header not found
com.oracle.svm.driver.NativeImage$NativeImageError: Invalid or corrupt jarfile /Users/avi.flax/.m2/repository/org/graalvm/nativeimage/svm-hosted-native-linux-amd64/19.3.2/svm-hosted-native-linux-amd64-19.3.2.tar.gz
at com.oracle.svm.driver.NativeImage.showError(NativeImage.java:1486)
at com.oracle.svm.driver.NativeImage.processJarManifestMainAttributes(NativeImage.java:948)
at com.oracle.svm.driver.NativeImage.processManifestMainAttributes(NativeImage.java:935)
at com.oracle.svm.driver.NativeImage.addImageClasspathEntry(NativeImage.java:1407)
at com.oracle.svm.driver.NativeImage.addCustomImageClasspath(NativeImage.java:1377)
at com.oracle.svm.driver.DefaultOptionHandler.processClasspathArgs(DefaultOptionHandler.java:230)
at com.oracle.svm.driver.DefaultOptionHandler.consume(DefaultOptionHandler.java:103)
at com.oracle.svm.driver.NativeImage$NativeImageArgsProcessor.apply(NativeImage.java:1326)
at com.oracle.svm.driver.NativeImage.processNativeImageArgs(NativeImage.java:1526)
at com.oracle.svm.driver.NativeImage.completeImageBuild(NativeImage.java:988)
at com.oracle.svm.driver.NativeImage.build(NativeImage.java:1252)
at com.oracle.svm.driver.NativeImage.performBuild(NativeImage.java:1222)
at com.oracle.svm.driver.NativeImage.main(NativeImage.java:1181)
at com.oracle.svm.driver.NativeImage$JDK9Plus.main(NativeImage.java:1665)
Caused by: java.util.zip.ZipException: zip END header not found
at java.util.zip.ZipFile$Source.zerror(ZipFile.java:1535)
at java.util.zip.ZipFile$Source.findEND(ZipFile.java:1436)
at java.util.zip.ZipFile$Source.initCEN(ZipFile.java:1443)
at java.util.zip.ZipFile$Source.<init>(ZipFile.java:1274)
at java.util.zip.ZipFile$Source.get(ZipFile.java:1237)
at java.util.zip.ZipFile$CleanableResource.<init>(ZipFile.java:727)
at java.util.zip.ZipFile$CleanableResource.get(ZipFile.java:52)
at java.util.zip.ZipFile.<init>(ZipFile.java:247)
at java.util.zip.ZipFile.<init>(ZipFile.java:177)
at java.util.jar.JarFile.<init>(JarFile.java:348)
at java.util.jar.JarFile.<init>(JarFile.java:319)
at java.util.jar.JarFile.<init>(JarFile.java:285)
at com.oracle.svm.driver.NativeImage.processJarManifestMainAttributes(NativeImage.java:940)
... 12 more
I’m using MacOS 10.15.4… any suggestions?
@aviflax This issue should now be solved using the latest recommendations by @lread added to the README.
Hi, thanks for making this!
The README says:
I just downloaded GraalVM CE for my Mac and it looks like the latest CE LTS release is 19.3.2.
Do you have any plans to release a version of this library that works with 19.3.2?
Is this something I could help with?
Thanks!