Closed fabriziosestito closed 1 month ago
I can confirm the same.
Debian Stable with musl-gcc from musl 1.2.3-1
.
However, the CI build job is working fine.
You mean the CI job that builds the container image?
You mean the CI job that builds the container image?
Exactly. We cannot build locally using the Dockerfile in the repository. But the CI is working fine. This is an issue found during the v1.15
while we would like to build the container image for testing.
This is going to be solved by https://github.com/kubewarden/policy-server/pull/874
Building outside of docker, using musl-gcc
is still failing. Should we leave this issue open or just close it?
I would close it, since this is a scenario we don't care about. Building locally, for quick testing with something like postman, can be done using a non-statically linked binary
fair enough, closing then since it's not particularly actionable on our side.
Is there an existing issue for this?
Current Behavior
Building with musl target fails locally. Both the
Dockerfile
andcargo build --release --target=x86_64-unknown-linux-musl
fail with the same error:However, the CI build job is working fine.
This seems to be related to: https://github.com/bytecodealliance/wasmtime/issues/8898 Buidling with the suggested
CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL_LINKER=musl-gcc
results in a binary that terminates withfish: Job 1, './target/x86_64-unknown-linux-m…' terminated by signal SIGSEGV (Address boundary error)
.Expected Behavior
No response
Steps To Reproduce
No response
Environment