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

Linux release requires GLibc 2.34 #7

Open
link2xt opened this issue Dec 4, 2023 · 4 comments
Open

Linux release requires GLibc 2.34 #7

link2xt opened this issue Dec 4, 2023 · 4 comments

Comments

@link2xt
Copy link

link2xt commented Dec 4, 2023

I have tried to run Linux x86_64 release, and it failed on a system with glibc 2.31:

$ ./dumbpipe 
./dumbpipe: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by ./dumbpipe)
./dumbpipe: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by ./dumbpipe)
./dumbpipe: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./dumbpipe)

Maybe build with cargo-zigbuild to get a static binary?

Otherwise at least build in an Ubuntu 18.04 container or something like this, but then it would not be runnable in Alpine Linux containers with musl libc.

I am using zig toolchain here without cargo-zigbuild, works pretty well and runs on any Linux:
https://github.com/deltachat/deltachat-core-rust/blob/280f13b8cf85e933c994f819ad6fae2823a563a0/scripts/zig-rpc-server.sh
https://github.com/deltachat/deltachat-core-rust/blob/280f13b8cf85e933c994f819ad6fae2823a563a0/scripts/zig-cc

@link2xt link2xt changed the title Linux release requires GLibc 2.32 Linux release requires GLibc 2.34 Dec 4, 2023
@dignifiedquire
Copy link
Contributor

dignifiedquire commented Dec 5, 2023

glibc is the new dot-net..

@rklaehn
Copy link
Contributor

rklaehn commented Dec 6, 2023

I guess we need to build with musl then. Thanks for testing.

@rklaehn
Copy link
Contributor

rklaehn commented Dec 6, 2023

Unfortunately I currently don't have access to my linux box on the attic.

Would it work to just install with musl?

cargo install dumbpipe --target x86_64-unknown-linux-musl

Tried this locally and it works, but for some weird reason my mac does not like the binary then... :-)

@link2xt
Copy link
Author

link2xt commented Dec 6, 2023

cargo install will work in any case as it will be linked against local libc. The issue is about the tarballs provided for 0.1.0 release.

Building against x86_64-unknown-linux-musl instead of x86_64-unknown-linux-gnu should work indeed, zig toolchains are only needed if you also want to cross-compile for aarch64 etc.

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