-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Building crates needing C++ fails #27
Comments
Can you share how are you compiling |
Using environment from the CC=aarch64-apple-darwin22.2-clang \
CXX=aarch64-apple-darwin22.2-clang++ \
cargo build \
--release \
--target aarch64-apple-darwin I see from the spew that the C++ compiler has executed because it generated many compilation warnings. The behaviour for CC=musl-gcc \
CXX=musl-g++ \
cargo build \
--release \
--target x86_64-unknown-linux-musl It also failed in the link phase in a way that suggests a mismatch between Here's the error:
Maybe I need to add a full musl cross gcc to the Docker (something like richfelker/musl-cross-make: Simple makefile-based build for musl cross compiler) to build |
About musl, we probably have to do some clever stuff such as sysroot musl and add the necessary symlinks similar to cross. And regarding Darwin, for me looks like a mismatch issue but I have no clue about it at the moment, so I will try to figure it out. But in general, there are interesting ideas in the cross project (which BTW |
Since I want this to work... I'll see if I can make this work better over the next few weeks and update the bug with anything that I figure out. |
When I use the builder, crates that contain Rust-compiled C++ code fail to link. Example:
AFAIK:
lib tree-sitter-ada.a
is built from C++ code by thedifftastic
crate.This is working as intended? Or am I being an idiot?
The text was updated successfully, but these errors were encountered: