mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-02-05 00:29:40 +03:00
vaultwarden compiled on Alpine Linux segfaults without "RUSTFLAGS=-C target-feature=-crt-static" #1286
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @DerVerruckteFuchs on GitHub (May 29, 2022).
I've attempted to build vaultwarden on Alpine Linux 3.15 and 3.16, and the resulting binary segfaults when trying to run it. It seems to be a build environment issue with OpenSSL. The build environment fix (using
RUSTFLAGS=-C target-feature=-crt-static) from the link worked for me. I usedenv RUSTFLAGS=-C target-feature=-crt-static cargo build..., and I have a build that runs successfully. It would probably be a good idea to set this somewhere for Alpine Linux builds.@BlackDex commented on GitHub (May 29, 2022):
We do not use alpine as a build environment, so no need to add this. Maybe adding it to the wiki is an option.