Fork me on GitHub
#graalvm
<
2020-05-18
>
jeroenvandijk07:05:44

@nate I have extracted the parts that do work with Graalvm, but it’s not the same experience https://github.com/AdGoji/aws-api/blob/master/dev/examples.clj

avi20:05:40

👋 has anyone ever seen this?

Error: Invalid or corrupt jarfile /Users/avi.flax/.m2/repository/org/graalvm/truffle/truffle-nfi-native-linux-amd64/19.3.1/truffle-nfi-native-linux-amd64-19.3.1.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/truffle/truffle-nfi-native-linux-amd64/19.3.1/truffle-nfi-native-linux-amd64-19.3.1.tar.gz
When attempting to compile a native image on MacOS, using borkdude/clj-reflector-graal-java11-fix ? He’s been helping me in DMs, I tried both 19.3.1 and 19.3.2, tried nuking my .m2, but no luck so far. Just thought I’d check…

littleli20:05:57

you're on MacOS, so why it tries to use linux archives?

littleli20:05:04

what's result of this:

gu list

littleli20:05:20

Reason for above is that gnu-tar is incompatible with tar on MacOS. So I would suggest you check you downloaded proper distribution.

avi20:05:50

> you’re on MacOS, so why it tries to use linux archives? Exactly‽ > what’s result of this…

$ gu list
ComponentId              Version             Component name      Origin 
--------------------------------------------------------------------------------
graalvm                  19.3.2              GraalVM Core        
native-image             19.3.2              Native Image        
> Reason for above is that gnu-tar is incompatible with tar on MacOS. So I would suggest you check you downloaded proper distribution. Well, that file, truffle-nfi-native-linux-amd64-19.3.1.tar.gz (which oddly doesn’t end with .jar) was brought in via borkdude/clj-reflector-graal-java11-fix 0.0.1-graalvm-19.3.2 which depends on org.graalvm.nativeimage/svm 19.3.2 which depends on org.graalvm.nativeimage/svm-hosted-native-linux-amd64 amongst many other similar dependencies such as svm-hosted-native-darwin-amd64 (and that pom.xml does specify that those dependencies are in tar.gz files, so I guess that part is kosher) https://search.maven.org/artifact/org.graalvm.nativeimage/svm/19.3.2/jar

littleli21:05:28

I believe it doesn't end with .jar because it contains prebuild binaries for each platform. The question is why does it pick the wrong one 😞

👍 4
avi21:05:24

Yeah but it’s closed with no useful info… I guess I’ll open a new issue.