Fork me on GitHub
#graalvm
<
2020-02-19
>
Adrian Smith14:02:29

has anyone hit an error of "no instances of http://java.io.FilePermission are allow in the image heap as this class should be initialized at image runtime" before when trying to compile a native image?

Adrian Smith14:02:36

I'm trying to compile this file: https://github.com/slifin/moonlight-engine/blob/master/src/core.clj it seems adding the data-readers parameter to my edn/read-string call is causing this but not 100% positive

borkdude14:02:15

doesn't ring a bell

Adrian Smith15:02:17

Should I still be including clojure 1.9 in my deps to work around the spec stuff?

Adrian Smith15:02:52

the error is so weird I put a debugger into cursive and http://java.io.FilePermission it's responsible pretty early on to allow deps stuff to load from class path, but graalvm has a error for that class that says it should be initialized at runtime

borkdude15:02:43

the error you mentioned doesn't seem like a spec-triggered error

borkdude15:02:52

that usually goes like "monitor exit blabla"

Adrian Smith15:02:06

yeah I saw that earlier adding clojure 1.9 to deps made it go away

borkdude15:02:56

most notably the part about CLJ-1472

borkdude15:02:53

it seems they found the performance regression on macos for v20: https://github.com/oracle/graal/issues/2136#issuecomment-588287198

👏 16
👌 4