-
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
[native-image] Cannot generate a native image from a Clojure JAR: command does not end #420
Comments
@nicokosi this seems to be the same issue as reported in #411 and trying to replicate it I get the same behavior as detailed in #411 (comment). |
Thanks for your response. 👍 When running from source (commit 5dc95ab) on my machine (macOS), |
I see the same issue (NPE) using this example project: Is there a way to somehow print the object that is being scanned? I would like to know which class is causing the trouble. |
@Jotschi the NPE was fixed. You can build from source or wait for the next GraalVM release. |
@cstancu I just tried the master. I can no longer observe the NPE. Thanks |
Any reason not to close this? |
@concavelenz unfortunately this is not fixed yet; the same fix as for #428 doesn't apply here. Just like with #411 this takes a lot of time and memory, but it eventually finishes compilation (and reports unsupported features). |
I just gave another try with the last source code:
PS: I update issue's title accordingly (stack trace with |
I cannot replicate the reported issue anymore. Using the following commands
the
Fixing these issues requires custom configuration. This article should help with understanding the error messages. |
Thank you @cstancu!
Maybe that my For information, the PS:
|
That's probably because you don't have enough available memory. On my machine, it tops up at about 12g. If it tops up at 8g that's likely the entire available memory. Another thing that you should be aware off is that the compilation server (which is on by default) uses 80% of the physical memory, and -J-Xmx14g is ignored. You can disable the compilations server with |
Thank you very much @cstancu for your patience and for these information. 👍 For information, here is the output:
|
I cannot generate a native image from a Clojure JAR file, with GraalVM Community Edition 1.0 RC1.
I did:
And got this error:
My setup:
Since this issue seems similar to #385, I also tried to build from source. I cloned https://github.com/oracle/graal (commit 5dc95abd42795d871c937d5be205ef01ae7300ff) then:
But
native-image
now hangs:The text was updated successfully, but these errors were encountered: