-
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
Cannot compile native image with scala 2.13.1 #2019
Comments
Have you tried adding |
@vjovanov I've reported the same issue but in the scala repo. W/A with |
Can you please try with the latest snapshot and |
Thanks for looking into this. With the following version of jdk (which is the latest I have available in sdkman):
And the option
I get an exception at runtime though:
Is there another version of the JDK you wanted me to try this with? The code and build definitions are largely the same as before:
build.sbt
plugin used to generate uberjar
|
@cstancu Sorry for delayed response. I have managed to solve the problem with GraalVM CE 19.3.1. The most viable solution that works for both Java 8 and Java 11 versions is using substitutions like here with the More options are available for the Java 11 version: please see this ticket for details. |
Thank you for finding a solution and for reporting back. The underlying issue here is incomplete |
I cannot compile a native image with scala 2.13.1 - the project is a simple println hello world style program.
Please see details of the build below:
JVM version:
Code:
build.sbt
project/plugins.sbt (for generating an uber jar)
The error log seen when invoking the following build command is attached
graalvm-failure.txt
The program compiles and runs as expected with scala 2.12.10.
The errors primarily look like this:
The text was updated successfully, but these errors were encountered: