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

adapt deb/rpm packagement for using correctly graalvm with java >=11 #287

Open
davidcoutadeur opened this issue May 16, 2024 · 0 comments
Open
Assignees
Labels
enhancement NGI Work sponsored by NGI
Milestone

Comments

@davidcoutadeur
Copy link
Contributor

Currently, when building on debian, there are a few things missing in the package linked to GraalVM, leading to these errors while launching LSC with java >=11:

[To redirect Truffle log output to a file use one of the following options:
* '--log.file=<path>' if the option is passed using a guest language launcher.
* '-Dpolyglot.log.file=<path>' if the option is passed using the host Java launcher.
* Configure logging using the polyglot embedding API.]
[engine] WARNING: The polyglot context is using an implementation that does not support runtime compilation.
The guest application code will therefore be executed in interpreted mode only.
Execution only in interpreted mode will strongly impact the guest application performance.
For more information on using GraalVM see https://www.graalvm.org/java/quickstart/.
To disable this warning the '--engine.WarnInterpreterOnly=false' option or use the '-Dpolyglot.engine.WarnInterpreterOnly=false' system property.

The solution has already been found and deployed in the maven tests, it must now be adapted for the packages.

To sum up:

  • adding a compiler directory (in /usr/lib/lsc-compiler?)
  • deploy these 4 files in lsc-compiler: compiler.jar compiler-management.jar graal-sdk.jar truffle-api.jar
  • add the following options in bin/lsc, but only for JDK >=11: (check the usefulness of each option in a production environment first)
JAVA_OPTS="${JAVA_OPTS} -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI --module-path=/usr/lib/lsc-compiler/ --upgrade-module-path=/usr/lib/lsc-compiler/compiler.jar:/usr/lib/lsc-compiler/compiler-management.jar"
@davidcoutadeur davidcoutadeur added this to the 2.2 milestone May 16, 2024
@davidcoutadeur davidcoutadeur changed the title adapt deb/rpm packagement for the using correctly graalvm with java >=11 adapt deb/rpm packagement for using correctly graalvm with java >=11 May 16, 2024
@coudot coudot added the NGI Work sponsored by NGI label Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement NGI Work sponsored by NGI
Projects
None yet
Development

No branches or pull requests

2 participants