version `GLIBC_2.29' not found (required by himalaya)
Still officially supported Debian versions 9, 10 won't run recent himalaya due to dependency on GLIBC_2.29.
Is it possible to compile himalaya against musl to make it truly portable or at least lower requirement to avoid be dependent on most recent GLIBC ?
It is a very good question, I need to dig. Any help is welcomed!
Is it possible to compile
himalayaagainstmuslto make it truly portable or at least lower requirement to avoid be dependent on most recent GLIBC ?
Have a look at the Rust doc, it looks like there is MUSL options out there. Let me know if it helps you.
Tested it, one needs to jump a few hoops but it's doable:
-
Install musl and musl-gcc (on debian-ish, that's
muslandmusl-tools) -
Install the musl target:
rustup target install x86_64-unknown-linux-musl -
Set these to make OpenSSL compile:
xport PKG_CONFIG_ALLOW_CROSS=1 xport OPENSSL_STATIC=true(this is where a
rustlsfeature could be helpful) -
Build it:
cargo build --release --target x86_64-unknown-linux-musl
I tried but it does not compile :disappointed: DSO missing from command line
The only way I know to make truly portable across platform a program on amd64/linux is to spin out in virtual machine (or docker) with AlpineLinux (that natively using musl instead of glib ) and compile it there
Yeah, that's probably easier. You don't even need a linux, here's me on Windows 10, with a little WSL to confirm it worked:
❯ docker run -v "${PWD}:/volume" --rm -t clux/muslrust:stable cargo build --release
# magic is happening
❯ ubuntu2004 run ldd target/x86_64-unknown-linux-musl/release/himalaya
statically linked
❯ ubuntu2004 run ./target/x86_64-unknown-linux-musl/release/himalaya -V
himalaya 0.6.1
See https://github.com/clux/muslrust
So technically I can add a musl build to the release via GitHub Actions? I will give a shot and let you know!
So technically I can add a musl build to the release via GitHub Actions? I will give a shot and let you know!
Thank you!
Unfortunately rust isn't my language where I can contribute :(