Closed
Description
Currently when building something that involves compiling C (bat
as an example), at the linking stage the following happens, due to missing /usr/lib/crti.o
:
...
Compiling clap v2.33.3
Compiling chrono v0.4.19
error: linking with `cc` failed: exit code: 1
|
= note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" ... "-Wl,-Bdynamic" "-lgcc_s" "-lc"
= note: /usr/lib/gcc/x86_64-alpine-linux-musl/9.3.0/../../../../x86_64-alpine-linux-musl/bin/ld: cannot find crti.o: No such file or directory
collect2: error: ld returned 1 exit status
error: aborting due to previous error
This can be eliminated simply by adding musl-dev
after RUN apk add ....
Metadata
Metadata
Assignees
Labels
No labels