This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-03-02
Channels
- # announcements (9)
- # babashka (67)
- # beginners (62)
- # bitcoin (2)
- # clara (1)
- # clj-kondo (62)
- # cljfx (6)
- # cljs-dev (25)
- # clojars (17)
- # clojure (142)
- # clojure-australia (2)
- # clojure-europe (42)
- # clojure-gamedev (2)
- # clojure-nl (31)
- # clojure-poland (10)
- # clojure-spec (14)
- # clojure-uk (30)
- # clojurescript (3)
- # conjure (1)
- # cursive (10)
- # data-science (1)
- # datascript (4)
- # datomic (9)
- # depstar (7)
- # fulcro (17)
- # girouette (15)
- # graalvm (44)
- # honeysql (20)
- # jackdaw (3)
- # jobs (8)
- # jobs-discuss (10)
- # juxt (5)
- # lein-figwheel (1)
- # lsp (175)
- # malli (19)
- # pedestal (2)
- # reagent (31)
- # reitit (2)
- # remote-jobs (3)
- # reveal (12)
- # sci (77)
- # shadow-cljs (22)
- # specter (6)
- # startup-in-a-month (2)
- # tools-deps (1)
- # xtdb (21)
@borkdude I tried to compile deps.clj
locally but I can't find a graal version that is able to actually build it. With 20.1.0 I get Fatal error:java.lang.NoSuchMethodError: 'org.graalvm.compiler.options.OptionDescriptor org.graalvm.compiler.options.OptionDescriptor.create(java.lang.String, org.graalvm.compiler.options.OptionType, java.lang.Class, java.lang.String, java.lang.Class, java.lang.String, org.graalvm.compiler.options.OptionKey, boolean)'
. Something familiar?
@katox huh? deps.clj is a pretty standard project that should work with most any graalvm version. I haven't seen this error before, but fwiw, deps.clj is also used in babashka, so you might be able to check how it's used there
I did, Fatal error:com.oracle.svm.core.util.VMError$HostedError: Option name "HotSpotPostOnExceptions" has multiple definitions: org.graalvm.compiler.hotspot.meta.HotSpotExceptionDispatchPlugin$Options.HotSpotPostOnExceptions and org.graalvm.compiler.hotspot.meta.HotSpotNodePlugin$Options.HotSpotPostOnExceptions
@katox I'm back. Just for the record. Are you using deps.clj as a library or are you trying to compile the project to native as is?
I can't build the latest babashka either but it fails uberjaring it so I don't really know
$ env BABASHKA_LEAN=true script/uberjar
openjdk version "11.0.10" 2021-01-19
OpenJDK Runtime Environment GraalVM CE 21.0.0.2 (build 11.0.10+8-jvmci-21.0-b06)
OpenJDK 64-Bit Server VM GraalVM CE 21.0.0.2 (build 11.0.10+8-jvmci-21.0-b06, mixed mode, sharing)
OpenJDK 64-Bit Server VM warning: forcing TieredStopAtLevel to full optimization because JVMCI is enabled
OpenJDK 64-Bit Server VM warning: forcing TieredStopAtLevel to full optimization because JVMCI is enabled
Syntax error (FileNotFoundException) compiling at (babashka/impl/transit.clj:1:1).
Could not locate sci/impl/namespaces__init.class, sci/impl/namespaces.clj or sci/impl/namespaces.cljc on classpath.
Full report at:
/tmp/clojure-9354290185570760188.edn
Error encountered performing task 'do' with profile(s): 'base,system,user,provided,dev,transit,hiccup,test-check,reflection'
Suppressed exit
katox@oryx ~/p/babashka (master)$ cat /tmp/clojure-9354290185570760188.edn
{:clojure.main/message
"Syntax error (FileNotFoundException) compiling at (babashka/impl/transit.clj:1:1).\nCould not locate sci/impl/namespaces__init.class, sci/impl/namespaces.clj or sci/impl/namespaces.cljc on classpath.\n",
@katox As for babashka: you should clone the repo with --recursive
so it clones the submodules. Sci is a submodule of babashka
As for deps.clj, it's currently based on 20.3.0: https://github.com/borkdude/deps.clj/blob/0b70844983bf23fff4c2991dadb3fd14c4102b27/project.clj#L18 This is a hard dependency but this can be removed when upgrading to 21.0.0
hmm, not /Users/distiller/graalvm-ce-java11-21.0.0.2/Contents/Home/bin/gu: No such file or directory
either
you can use brew install delaguardo/graalvm/[email protected]
and follow instructions given in Caveats