-
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
jlink requires additional module since GraalVM 22.3.0 #7064
Comments
Thank you for reporting this, we'll take a look into it shortly |
Is it possible to isolate a reproducer that doesn't require Android SDK? |
Thank you for your interest. I added standalone reproducer at same branch ( graalvm_jlink : 08198c8f5 )
Note : standalone/jmod/java.base.jmod is intermediates output from Android Sdk |
It seems this error raised by https://github.com/oracle/graal/blob/vm-22.3.0/sdk/mx.sdk/mx_sdk_vm.py#L966 |
Tracked internally on GR 48003 |
As of GraalVM 22.3, jlink in Graalvm ensures that a jlink'ed image automatically includes libgraal. This is done by persisting certain jlink options, including the
Since it appears as though you are modifying |
@dougxc
I tried to add empty
I tried to create
|
You're updating the wrong module. As implied by the prefix "/modules/jdk.jlink", |
I assume the above tip resolved the problem. Feel free to re-open this issue with extra details if not. |
Hi, I tried to create the empty module but as ganadist didn't write what worked for them in the end, I couldn't follow. I guess the javac command at the end would need to be adapted to use the right modules and paths. Would you be so kind and provide the working command? To implement a fix rather than a workaround like this, would it make sense to raise an issue at Google, so they include that (empty) module by default in their android libraries?
|
Have the same issue as binarynoise with android gradle build
|
Describe the issue
A clear and concise description of the issue. We recommend using the latest snapshot builds to replicate the issue as bugs are constantly being fixed in the master branch
Steps to reproduce the issue
Please include both build steps as well as run steps
Describe GraalVM and your environment:
More details
jlink
is invoked by Android Gradle Plugin from JdkImageTransformDelegateUntil Graalvm 22.2.0, it worked properly, but since Graalvm 22.3.0, jlink is not working properly.
When I tried to invoke jlink manually, I can see following error.
The text was updated successfully, but these errors were encountered: