You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Encountered this when trying to use github.com/alexcrichton/flate2-rs as a build dependency for a cross-compiled project.
As a dependency flate2-rs compiles fine, but as a build-dependency it seems to want to use the cross compiler to compile the build tools, even though the TARGET is correctly reckognized:
Thanks for the report! This crate currently does not read cargo toml configuration and the error here is that CC is set which sets the default compiler for all compilations, not just the target one. The wrong compiler is being used as a result for host compilation, which causes the error here.
Encountered this when trying to use github.com/alexcrichton/flate2-rs as a build dependency for a cross-compiled project.
As a dependency
flate2-rs
compiles fine, but as a build-dependency it seems to want to use the cross compiler to compile the build tools, even though the TARGET is correctly reckognized:See rust-lang/flate2-rs#190 for details.
.cargo/config:
Using the command
cargo build --target armv5te-unknown-linux-gnueabi
results in:The text was updated successfully, but these errors were encountered: