You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
odrling
changed the title
Builds fail when musl
Builds fail when built with musl
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:
The text was updated successfully, but these errors were encountered: