dumbpipe icon indicating copy to clipboard operation
dumbpipe copied to clipboard

Linux release requires GLibc 2.34

Open link2xt opened this issue 1 year ago • 4 comments

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 avatar Dec 04 '23 23:12 link2xt

glibc is the new dot-net..

dignifiedquire avatar Dec 05 '23 10:12 dignifiedquire

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

rklaehn avatar Dec 06 '23 12:12 rklaehn

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... :-)

rklaehn avatar Dec 06 '23 12:12 rklaehn

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.

link2xt avatar Dec 06 '23 16:12 link2xt