-
Notifications
You must be signed in to change notification settings - Fork 397
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
cross confuses wrong target environment variables such as CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER when building for aarch64 #1598
Comments
Verbose outputIt seems there may be 2 issues:
Without
|
This is expected behaviour, the problem is the build scripts target is
note |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Checklist
Describe your issue
Build fails with cross when I build with cross for Raspberry Pi, etc.:
on my amd64 Linux system, and have local system environment for all my other, non-cross Rust projects:
Error
When I remove those environment variables, my
cross build
succeeds:Conclusion: It seems
cross
is "confusing" the environment variables specific to one target with a different target.Versions
What target(s) are you cross-compiling for?
aarch64-unknown-linux-gnu
Which operating system is the host (e.g computer cross is on) running?
What architecture is the host?
What container engine is cross using?
cross version
cross 0.2.5
Example
This error seems not to occur in a new project with no dependencies, so let's add some:
Ensure it works with default config (ensure a clean shell with no
CARGO_TARGET_
variables set):Build succeeds. Add different target config than building with cross:
Build fails:
Additional information / notes
A whole bunch of results come up when I search issues for
environment variables
. I can't tell if they're related. There was another issue closed back in 2020 that seems related, but still not sure.The text was updated successfully, but these errors were encountered: