Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Builds fail when built with musl #75

Open
odrling opened this issue Aug 28, 2024 · 0 comments
Open

Builds fail when built with musl #75

odrling opened this issue Aug 28, 2024 · 0 comments

Comments

@odrling
Copy link
Member

odrling commented Aug 28, 2024

Builds fail when built with musl libc while calling the karaberus executable to generate the openapi spec.
The executable segfaults on startup due to golang/go#13492.
There is apparently no known workaround.

Building with c-archive has been the most stable way I've found to build the project with meson, because then the final executable is just a C program that links to our dependencies and the karaberus go library which is fairly easy and straightforward.

I was slightly surprised that the cli args "just worked" when building with c-archive, and it's sad that we now pay the cost in portability.

Quick Dockerfile/Containerfile to reproduce the issue on Alpine:

FROM alpine
RUN apk add go gcc npm meson musl-dev libass-dev ffmpeg-dev git
RUN git clone https://github.com/Japan7/karaberus /karaberus
RUN meson setup /build /karaberus -Dtest=false -Ds3_tests=disabled && meson compile -C /build
@odrling odrling changed the title Builds fail when musl Builds fail when built with musl Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant