-
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
Possible regression in Native Image builds of Scala projects in 20.2 #2770
Labels
Comments
@plokhotnyuk Thanks, that seems to help indeed! |
As you already have a work around, once #2761 is implemented, |
Reopen the issue to get the bug fix in 20.2 |
The underlying issue here is incomplete |
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the issue
Builds of even very simple Scala applications that used to work on GraalVM 20.1.0 fail with GraalVM 20.2.0.
Steps to reproduce the issue
sbt new scala/scala-seed.g8
(make sure that the project uses Scala 2.13).Hello.scala
file to containsbt compile
.sbt "show fullClasspath"
.CLASSPATH=/path/to/scala-library/scala-library-2.13.2.jar:target/scala-2.13/classes
.native-image -cp $CLASSPATH example.Hello example_binary -H:+ReportExceptionStackTraces --no-fallback --initialize-at-build-time
.On GraalVM 20.1.0 it works and runs correctly.
On GraalVM 20.2.0 it fails with:
It looks like it is related to a bug that was reported to the Scala project a while ago, but it seems to have been resolved in GraalVM 19.3.0, so it looks like there might have been some kind of regression.
It also looks like it may be fixed by #2761, but I thought it may be worth reporting this as a bug, because it did work correctly in 20.1.0.
Describe GraalVM and your environment:
More details
Full trace of Native Image build:
The text was updated successfully, but these errors were encountered: