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

GitHub release is built with too new a version of glibc #1300

Open
4 of 11 tasks
tyilo opened this issue Aug 2, 2023 · 3 comments
Open
4 of 11 tasks

GitHub release is built with too new a version of glibc #1300

tyilo opened this issue Aug 2, 2023 · 3 comments

Comments

@tyilo
Copy link

tyilo commented Aug 2, 2023

Checklist

Describe your issue

cross-x86_64-unknown-linux-gnu.tar.gz from https://github.com/cross-rs/cross/releases/tag/v0.2.5 requires version 2.34 of glibc to run.

The official rust docker image only comes with version 2.31 of glibc. Thus I propose to built the official release of the cross binary with a lower version of glibc.

What target(s) are you cross-compiling for?

No response

Which operating system is the host (e.g computer cross is on) running?

  • macOS
  • Windows
  • Linux / BSD
  • other OS (specify in description)

What architecture is the host?

  • x86_64 / AMD64
  • arm32
  • arm64 (including Mac M1)

What container engine is cross using?

  • docker
  • podman
  • other container engine (specify in description)

cross version

cross 0.2.5

Example

$ docker run --rm -it rust:1.71.0
# cd /tmp
# curl -L -O https://github.com/cross-rs/cross/releases/download/v0.2.5/cross-x86_64-unknown-linux-gnu.tar.gz
# tar xf cross-x86_64-unknown-linux-gnu.tar.gz 
# ./cross --version
./cross: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by ./cross)
./cross: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by ./cross)
./cross: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./cross)

Additional information / notes

This also occurs when using cargo-binstall to install cross in the image.

@Emilgardis
Copy link
Member

Emilgardis commented Aug 2, 2023

the official rust image has multiple debian sources, I'd recommend you use bookworm instead which ships with 2.36

We could maybe consider lowering it in our binary release, but I don't see the benefit of doing so.

@tyilo
Copy link
Author

tyilo commented Aug 3, 2023

We could maybe consider lowering it in our binary release, but I don't see the benefit of doing so.

The benefit would be that it would work with the default version of the official rust docker image.

@haarts
Copy link

haarts commented Nov 11, 2023

Is there a way to work around this issue till a more permanent solution has been implemented?

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

3 participants