Skip to content
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

building native image with graalvm ce 21 not working #980

Closed
skateball opened this issue Mar 20, 2024 · 1 comment
Closed

building native image with graalvm ce 21 not working #980

skateball opened this issue Mar 20, 2024 · 1 comment
Assignees

Comments

@skateball
Copy link

Hi colleagues,
as already talked to Marc

  • building the native image with graalvm ce 17 is working fine
  • building the native image with graalvm ce 21 is not working
    Best Regards
    Chr
@beckermarc beckermarc self-assigned this Mar 25, 2024
@beckermarc
Copy link
Contributor

Unfortunately there is a bug in GraalVM 17, that was fixed by Oracle in GraalVM 21 (see oracle/graal#6457). To make it work on 17 we added a custom native-image.properties configuration, that has the same effect as the fix automatically applied on GraalVM 21. However on GraalVM 21 this configuration clashes with the provided fix and produces an error.

As SFlight uses Java 17 by default, I would like to keep it compatible with GraalVM 17 by default. If you want to run with 21 you need to remove the native-image.properties file before building the application (make sure to add clean to your Maven build command, if built previously). Then it works with GraalVM 21.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants