quickwit icon indicating copy to clipboard operation
quickwit copied to clipboard

Fix musl build and re-publish musl binaries

Open guilload opened this issue 3 years ago • 1 comments

Not saying this is easy but there's gotta be a way :)

guilload avatar Jul 29 '22 19:07 guilload

I suspect we will ditch rocksdb before this happens :)

fulmicoton avatar Aug 01 '22 06:08 fulmicoton

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

trinity-1686a avatar Jan 09 '23 14:01 trinity-1686a

Any news? I want musl release to run in alpine

yuuhhe avatar Jun 08 '23 06:06 yuuhhe

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.

fmassot avatar Jun 08 '23 07:06 fmassot