-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GraalVM-19 fails to build running native-images for Clojure projects #1265
Comments
After additional tests, it seems that the regression was introduced after |
We have changed the default for class initialization. Now, application classes are initialized at build time. Unfortunately, this change had to be done to make a larger set of applications work out of the box. The easy way out is to pass
At run time, |
Hi @vjovanov , There are a number of other packages in the
Do all of these need to be listed in the |
We have this document describing how it works. If it is still unclear from the doc and from flags I will expand the document. |
Great doc thx. |
Hi @vjovanov , Thanks |
Hi @BrunoBonacci! You could try using https://github.com/oracle/graal/blob/master/substratevm/CONFIGURE.md All you have to do is to run your Clojure program using regular https://github.com/wololock/graalvm-groovy-examples/blob/master/hello-world/compile.sh Maybe this will help you in your investigation. |
Great, thanks for the doc link and the example, I'll give it a try and feedback on the result. |
I assume this problem has been long resolved, closing this issue. Feel free to reopen if you see a problem with a recent version of GraalVM. |
Graal version:
Building a simple main function with Clojure-1.8.0 produces a native image which when executed throws the following error:
This works fine with version:
OpenJDK GraalVM CE 1.0.0-rc14 (build 25.202-b08-jvmci-0.56, mixed mode)
I've also cross checked all the latest Clojure versions with both GraalVM versions and this is what I get:
To reproduce the jars here all the steps:
https://github.com/BrunoBonacci/graalvm-clojure/tree/master/clojure
In attachment the standalone JAR
simple-clojure-1.8.0-uberjar.tar.gz
The text was updated successfully, but these errors were encountered: