This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-05-18
Channels
- # announcements (9)
- # atom-editor (29)
- # aws (17)
- # babashka (72)
- # beginners (83)
- # braveandtrue (3)
- # calva (7)
- # cider (16)
- # clj-kondo (15)
- # cljs-dev (146)
- # cljsjs (1)
- # cljsrn (8)
- # clojars (1)
- # clojure (96)
- # clojure-dev (19)
- # clojure-europe (53)
- # clojure-losangeles (1)
- # clojure-nl (3)
- # clojure-spec (7)
- # clojure-uk (235)
- # clojuredesign-podcast (5)
- # clojurescript (81)
- # conjure (73)
- # cursive (7)
- # data-science (1)
- # datomic (5)
- # defnpodcast (8)
- # emacs (3)
- # figwheel-main (34)
- # fulcro (83)
- # graalvm (10)
- # graphql (6)
- # helix (49)
- # jackdaw (3)
- # jobs (1)
- # joker (1)
- # kaocha (1)
- # mid-cities-meetup (10)
- # off-topic (17)
- # pathom (16)
- # re-frame (11)
- # reagent (18)
- # reitit (18)
- # remote-jobs (4)
- # shadow-cljs (63)
- # spacemacs (18)
- # specter (20)
- # sql (17)
- # uncomplicate (1)
- # vim (28)
- # xtdb (32)
@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
👋 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…Reason for above is that gnu-tar
is incompatible with tar
on MacOS. So I would suggest you check you downloaded proper distribution.
> 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/jarI 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 😞
There is a similar issue here: https://github.com/oracle/graal/issues/1974
I’ve put together a basic reproduction here: https://github.com/FundingCircle/repro-graalvm-mac-issue/runs/687035110