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

Unable to run on fedora 40: Fatal glibc error: CPU does not support x86-64-v2 #94

Open
napsta32 opened this issue Aug 1, 2024 · 2 comments

Comments

@napsta32
Copy link

napsta32 commented Aug 1, 2024

I am currently trying to run the graalvm native image community but I can't on a fedora 40 VM:

$ docker run --rm -it --platform linux/x86_64 --entrypoint=/bin/sh ghcr.io/graalvm/native-image-community:21
Fatal glibc error: CPU does not support x86-64-v2

I checked and it looks my VM supports x86-64-v2:

$ ld.so --help
...
Shared library search path:
  (libraries located via /etc/ld.so.cache)
  /lib64 (system search path)
  /usr/lib64 (system search path)

Subdirectories of glibc-hwcaps directories, in priority order:
  x86-64-v4
  x86-64-v3
  x86-64-v2

I don't have such problems in my windows machine

@napsta32
Copy link
Author

napsta32 commented Aug 1, 2024

I just found out that it was because of Oracle Linux 9:

$ docker run -it --rm --entrypoint=/bin/sh container-registry.oracle.com/os/oraclelinux:9-slim
Unable to find image 'container-registry.oracle.com/os/oraclelinux:9-slim' locally
9-slim: Pulling from os/oraclelinux
f5a4b7786db5: Pull complete
Digest: sha256:5026cfa7e6ad6c0299796fd468573fd7044dfc226f8b3c5198b79b96bb2765fa
Status: Downloaded newer image for container-registry.oracle.com/os/oraclelinux:9-slim
Fatal glibc error: CPU does not support x86-64-v2

If I use Oracle Linux 8, it works fine:

$ docker run -it --rm --entrypoint=/bin/sh ghcr.io/graalvm/native-image-community:21-ol8
sh-4.4# 

@napsta32
Copy link
Author

napsta32 commented Aug 1, 2024

I tested my native app with OL8 and got these errors:

/lib64/libc.so.6: version `GLIBC_2.32' not found (required by /app/default)
/lib64/libc.so.6: version `GLIBC_2.34' not found (required by /app/default)

Why is graalvm relying on oracle linux? alma linux could be an option maybe?

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

No branches or pull requests

1 participant