BinaryBuilder.jl icon indicating copy to clipboard operation
BinaryBuilder.jl copied to clipboard

Rust compiling issue: error: linker `x86_64-linux-musl-cc` not found

Open Seelengrab opened this issue 1 year ago • 2 comments

I get this error when trying to compile a Rust project with a recipe locally & in CI:

[13:45:12] error: linker `x86_64-linux-musl-cc` not found
[13:45:12]   |
[13:45:12]   = note: No such file or directory (os error 2)

build_tarballs.jl for that can be found here. @jakobnissen mentioned that he ran into that as well while investigating https://github.com/JuliaPackaging/BinaryBuilder.jl/issues/1248, so maybe that's related?

Seelengrab avatar Nov 23 '22 13:11 Seelengrab

Seems like it was due to me forgetting to use compilers=[:c], adding that makes it at least start compilation in CI. Probably just needs docs then.

Seelengrab avatar Nov 23 '22 13:11 Seelengrab

Seems like it was due to me forgetting to use compilers=[:c], adding that makes it at least start compilation in CI. Probably just needs docs then.

You basically always need the linker, which is part of the C compilers shard.

giordano avatar Nov 23 '22 13:11 giordano