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

Mandrel image fails to build native image with wasmtime-java (GLIBC_2.32 not found) #227

Open
cardil opened this issue Apr 19, 2023 · 3 comments · May be fixed by #228
Open

Mandrel image fails to build native image with wasmtime-java (GLIBC_2.32 not found) #227

cardil opened this issue Apr 19, 2023 · 3 comments · May be fixed by #228

Comments

@cardil
Copy link

cardil commented Apr 19, 2023

Hi. I'm trying to build the Quarkus app with the wasmtime-java 0.14.0 library. The application works, but the native image build fails with:

/lib64/libc.so.6: version `GLIBC_2.32' not found (required by /tmp/libwasmtime_jni_0.14.0_linux15928750139324800087.so)

Here's my failing job: https://github.com/openshift-knative/showcase/actions/runs/4737898308/jobs/8411183414?pr=24

I think that's because the Mandrel image used (default to registry.access.redhat.com/quarkus/mandrel-22-rhel9:22.3-4) is based on RHEL 8, and those contain glibc 2.28-189.5 (see). It works well on my F37 machine. I have glibc 2.36-9.

Maybe we could have RHEL 9-based images as well? That would make this work.

Here's a PR with reproduction: https://github.com/cardil/openshift-knative-showcase/tree/117b06d539784971e875e5fb65197119a4275ee6

@cescoffier
Copy link
Member

We have the plan to switch to ubi:9 at some point in the future.

@cardil
Copy link
Author

cardil commented Apr 19, 2023

We have the plan to switch to ubi:9 at some point in the future.

Yup. Makes sense. How about providing ubi:8 and ubi:9 images, so the transition be easier?

@cescoffier
Copy link
Member

Yes, but we need to find a proper way to provide both (probably with ubi:9 in the image name or tag). Unfortunately it will make the maintenance a bit more cumbersome., and the migration annoying once we abandon ubi:8 and the tag gets reverted.

@cardil cardil linked a pull request Apr 19, 2023 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants