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
Trying to perform a static build using the crystallang/crystal:0.36.0-alpine docker image. The compilation fails with the following message:
> shards build --release --no-debug --static
Dependencies are satisfied
Building: werk
Error target werk failed to compile:
/usr/lib/gcc/x86_64-alpine-linux-musl/9.3.0/../../../../x86_64-alpine-linux-musl/bin/ld: cannot find -lyaml (this usually means you need to install the development package for libyaml)
collect2: error: ld returned 1 exit status
Error: execution of command failed with code: 1: `cc "${@}" -o /opt/app/bin/werk -rdynamic -static -L/usr/bin/../lib/crystal/lib -lyaml -lpcre -lm -lgc -lpthread /usr/share/crystal/src/ext/libcrystal.a -levent -lrt`
The yaml and yaml-dev packages are both installed, and the $HOME/.cache directory was also removed. One thing to mention is that this path "-L/usr/bin/../lib/crystal/lib" which should resolve to /usr/lib/crystal/lib does not exist.
Trying to perform a static build using the crystallang/crystal:0.36.0-alpine docker image. The compilation fails with the following message:
The
yaml
andyaml-dev
packages are both installed, and the$HOME/.cache
directory was also removed. One thing to mention is that this path "-L/usr/bin/../lib/crystal/lib" which should resolve to/usr/lib/crystal/lib
does not exist.Relevant info:
Docker image: crystallang/crystal:0.36.0-alpine
Crystal 0.36.0 [1e6f96a] (2021-01-26)
LLVM: 10.0.0
Default target: x86_64-unknown-linux-musl
The text was updated successfully, but these errors were encountered: