quickwit
quickwit copied to clipboard
Fix musl build and re-publish musl binaries
Not saying this is easy but there's gotta be a way :)
I suspect we will ditch rocksdb before this happens :)
I got quickwit to compile with musl in an alpine:edge container on c3c0c5494f583898f3e763865147dc23b3e704ee with the following build script:
apk add rustup protoc cyrus-sasl-dev cmake make g++ linux-headers perl
echo | rustup-init
source "$HOME/.cargo/env"
cd quickwit
je_cv_pthread_getname_np=no RUSTFLAGS="-C target-feature=+crt-static" cargo run --target x86_64-unknown-linux-musl --features release-feature-vendored-set --release
However I did not manage to get it to work with cross. Some sasl linking error. I'll let it as is for now and come back to it in a bit
Any news? I want musl release to run in alpine
It's not planned yet. If I remember correctly, the issue comes from a sasl dependency that does not work well with cross-compilation.
We have just started to use an arm64 runner and we could build the binaries without cross. That should solve the problem.
It's not on our priority list though. Don't hesitate to join the discord server to have a quick chat about your use case and timings.