This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-08-07
Channels
- # aleph (4)
- # announcements (7)
- # arachne (1)
- # beginners (138)
- # calva (5)
- # cider (1)
- # clara (14)
- # clj-kondo (1)
- # cljsrn (2)
- # clojars (4)
- # clojure (247)
- # clojure-dev (33)
- # clojure-europe (3)
- # clojure-italy (71)
- # clojure-losangeles (6)
- # clojure-romania (6)
- # clojure-spain (11)
- # clojure-uk (17)
- # clojurescript (95)
- # core-async (2)
- # cursive (19)
- # datomic (7)
- # duct (27)
- # figwheel (1)
- # graalvm (22)
- # juxt (7)
- # kaocha (8)
- # leiningen (1)
- # luminus (7)
- # lumo (4)
- # off-topic (38)
- # reagent (4)
- # reitit (11)
- # shadow-cljs (30)
- # spacemacs (42)
- # tools-deps (103)
- # xtdb (5)
Anyone else unable to compile a native image using clojure 1.10? Is this a known issue?
I've compiled this native image before using older versions without issues, so i'm not sure what's going on
> Caused by: java.io.FileNotFoundException: Could not locate clojure/core__init.class or clojure/core.clj on classpath. that bit looks weird. how are you compiling? do you have a link to a project?
what I do most of the time: compile with leiningen to an uberjar with AOT all and feed this into graalvm
Yeah, I switched up the command, since native-image
seems to have new optional arguments
Build command is this: https://github.com/benzap/fif/blob/master/build-native.sh
I haven't tried compiling a native image for a few versions now, so it's unclear what i'm missing. I should probably comb over some of the changes to see if they affect it, but I haven't added any new dependencies that might conflict. Mostly just version bumps.
@benzap feel free to compare it to clj-kondo or jet: https://github.com/borkdude/clj-kondo https://github.com/borkdude/jet which are tools I'm using on clojure 1.10.1
one common pitfall is the locking issue which arises when you require clojure.pprint or clojure.spec.alpha