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

[docker] Fix glibc problem #165

Merged
merged 1 commit into from
Sep 8, 2023
Merged

Conversation

Krishnacore
Copy link
Contributor

We have once again encountered an issue with glibc on arch64:

magi: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by magi)
magi  | magi: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by magi)
magi  | magi: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by magi)
magi  | magi: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by magi)
magi  | magi: /lib/aarch64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by magi)

As you can see, the versions differ again between the rust:latest image and debian:bullseye-slim:

rust:latest

root@aed8602b702f:/# ldd --version
ldd (Debian GLIBC 2.36-9+deb12u1) 2.36

debian:bullseye-slim

root@76e82549a3bc:/# ldd --version
ldd (Debian GLIBC 2.31-13+deb11u6) 2.31

Of course, we can quickly fix this by changing the version to debian:bookworm-slim, but this is a temporary solution, and we are likely to encounter this problem again. Another approach is to pin the Rust version firmly, but this is not ideal either. Alternatively, we could compare the versions in the base images each time before building the images, but this is also not really good solution.

Therefore, I propose always using a single image for all stages and installing the necessary packages and dependencies as needed. This way, we can eliminate this problem.

@ncitron
Copy link
Contributor

ncitron commented Sep 8, 2023

This looks like a good solution. Thanks for the help!

@ncitron ncitron merged commit fb6a2de into a16z:master Sep 8, 2023
5 checks passed
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 this pull request may close these issues.

2 participants