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

buildNativeLamba fails with Java 21 #886

Closed
sdelamo opened this issue Nov 27, 2023 · 1 comment · Fixed by #889
Closed

buildNativeLamba fails with Java 21 #886

sdelamo opened this issue Nov 27, 2023 · 1 comment · Fixed by #889
Assignees
Labels
type: bug Something isn't working

Comments

@sdelamo
Copy link
Contributor

sdelamo commented Nov 27, 2023

Steps to reproduce

Clone repository https://github.com/micronaut-projects/micronaut-lambda-todo branch micronaut-4-java-21.

Run ./gradlew :function-native:buildNativeLambda -Pmicronaut.runtime=lambda_provided

It fails with:

Step 7/36 : RUN /usr/lib/graalvm/bin/gu install native-image
 ---> Running in 260a2deec639
/bin/sh: /usr/lib/graalvm/bin/gu: No such file or directory


> Task :function-native:dockerBuildNative FAILED

FAILURE: Build failed with an exception.

I assume that it is because gu is gone in GraalVM for Java 21 and we still do:

RUN /usr/lib/graalvm/bin/gu install native-image

in the docker file

@sdelamo sdelamo added the type: bug Something isn't working label Nov 27, 2023
@wetted wetted self-assigned this Nov 28, 2023
@wetted
Copy link
Contributor

wetted commented Nov 30, 2023

I assume that it is because gu is gone in GraalVM for Java 21 and we still do:

https://www.graalvm.org/latest/reference-manual/graalvm-updater/

oracle/graal#6855

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants