Closed davinkevin closed 5 months ago
Hello @davinkevin
For this version: 22.0.1
, to be able to use --static
you need to install musl libc
. Here is the change log, I suggest you check it out. Also you can find instructions on installing musl
here.
@ZynoZin , I know, but should this be included in the docker image provided by the project?
Hello @davinkevin , thank you for reaching out. Can you please check this image: ghcr.io/graalvm/native-image-community:22.0.1-muslib
it should have the needed library.
Thank you for your answer. I just discover this new image, good to know.
Using this image, and with --static --libc=musl
, I have now the correct result, similar to what I had with 22.0.0
.
PS: There is a strange error if --libc=musl
is not provided, maybe something to improve.
Finally, you answered part of my request, you still think this breaking change in the cli "api" is not an issue for a patch release?
No, this change was necessary because there was a bug when musl
is not used in this case, so it became required. Thus, it throws an error during build time if not used. And it was mentioned in the patch release change log.
Thank you for the extra details. π
Describe the issue
We have the following
dockerfile
, using the official image with version22.0.0
:The build was working perfectly, with the following report:
Then, we have upgraded to the patch version
22.0.1
:And the result is different:
If we follow the error recommendation, "Remove the '--static' option or add the '--libc=musl'", we have the following error:
My expectation was to have everything setup and ready in the
native-image
docker image, it's the main reason we use it π.So the bug is mainly about the CLI parameters breaking change in a patch version, but other element can be considered (no
x86_64-linux-musl-gcc
in the image for example).Describe GraalVM and your environment:
I tried to add as much information as possible, because everything is based on official images and code we build is just Java (no dependency nor framework), I think it's not required to provide more data⦠but let me know if you need something else.