joseluisq/rust-linux-darwin-builder

Building crates needing C++ fails

Aperta

#27 aperta il 24 ago 2023

 (4 commenti) (0 reazioni) (0 assegnatari)Dockerfile (22 fork)github user discovery
bugdarwinhelp wantedlinuxmusl

Metriche repository

Star
 (153 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

When I use the builder, crates that contain Rust-compiled C++ code fail to link. Example:

...much spew...
  = note: ld: archive has no table of contents file '/root/src/difft/target/aarch64-apple-darwin/release/build/difftastic-abae5b1432a24d5f/out/libtree-sitter-ada.a' for architecture arm64
          clang: error: linker command failed with exit code 1 (use -v to see invocation)
...much spew...

AFAIK: lib tree-sitter-ada.a is built from C++ code by the difftastic crate.

This is working as intended? Or am I being an idiot?

Guida contributor