cc-rs
cc-rs copied to clipboard
x86_64-linux-musl-g++ when compiling musl target
Dear cc-rs community,
I am new to this type of compilation and I am trying to build a musl binary from my project. For some reason the compilation fails https://github.com/eth-cscs/manta/actions/runs/15229587583/job/42836254358
I would like to understand how to solve this issue
kind regards
It looks like you are using cmake-rs
Did you install musl toolchain?
I just added this like to the pipeline rustup target add x86_64-unknown-linux-musl but it still fails with same error
For C/C++, you would need to also install musl-tools, or use something like cargo-zigbuild
installing musl-tools did not fix the issue. I would like to avoid cargo-zigbuild if possible because I am using cargo dist and using cargo-zigbuild means rewriting the CI ...
@Masber there might be some special things with cmake
From the build log, it looks like it's using cmake, and cmake uses cc for some detection