cargo-zigbuild icon indicating copy to clipboard operation
cargo-zigbuild copied to clipboard

`riscv64gc-unknown-linux-musl` support

Open walksanatora opened this issue 2 years ago • 4 comments
trafficstars

walksanatora avatar Feb 01 '23 21:02 walksanatora

it is appearing to work but the -Z build-std is not working

walksanatora avatar Feb 01 '23 21:02 walksanatora

it fails with

   Compiling nothing v0.0.1 (/home/walksanator/git/rust/oc2/project)
error[E0463]: can't find crate for `panic_abort`

For more information about this error, try `rustc --explain E0463`.
error: could not compile `nothing` due to previous error

walksanatora avatar Feb 01 '23 21:02 walksanatora

after specifying -Zbuild-std=std,panic_abort it fails with a new message

  = note: warning: unsupported linker arg: -znoexecstack
          warning: unsupported linker arg: -zrelro
          warning: unsupported linker arg: -znow
          error: static library 'unwind' not found. search paths: 
           /home/walksanator/git/rust/oc2/project/target/riscv64gc-unknown-linux-musl/debug/deps/libunwind.a
           /home/walksanator/git/rust/oc2/project/target/debug/deps/libunwind.a
           /home/walksanator/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/riscv64gc-unknown-linux-musl/lib/libunwind.a
           /home/walksanator/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/riscv64gc-unknown-linux-musl/lib/libunwind.a
           /home/walksanator/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/riscv64gc-unknown-linux-musl/lib/self-contained/libunwind.a
           suggestion: use full paths to static libraries on the command line rather than using -l and -L arguments
           ```

walksanatora avatar Feb 01 '23 21:02 walksanatora

Looks like the same kind issue as https://github.com/rust-lang/wg-cargo-std-aware/issues/81

messense avatar Feb 02 '23 02:02 messense