Open rustrust opened 10 months ago
@rustrust Thanks for filing this issue!
It seems that you're using Rust on macOS, so stable-x86_64-unknown-linux-gnu
can't normally be a running host triple.
The error reading rustc version
error indicates exactly that: rustup
tries to run rustc
to find out the exact version, but you cannot run x64 Linux binaries on ARM64 macOS.
Maybe you're setting up cross compilation? In that case, you should add a new target triple under your aarch64-apple-darwin
toolchain, like you did with aarch64-unknown-linux-gnu
.
Please feel free to tell me if have further concerns. Have a nice day!
To prevent others from being perplexed by this in the future, maybe a different error message (one not using the word "error") might be helpful here?
@rustrust This error only indicates that rustup
failed to invoke rustc
, and no further info can be provided.
IRL this can happen for multiple reasons, e.g. the permission is not correct, the binary is corrupted, etc.
Although accidentally installing the binary built for another platform is indeed another possible reason, this particular situation should be quite rare IMHO.
Do you happen to have any specific error message in mind?
IRL this can happen for multiple reasons, e.g. the permission is not correct, the binary is corrupted, etc.
It would probably be helpful if we can propagate/show the exact error condition that triggered this.
Reopening since it's still valuable to enhance the error message.
Problem
M1 macOS 12.4.1
Steps
rustup update with stable-x86_64-unknown-linux-gnu toolchain
Possible Solution(s)
No response
Notes
No response
Rustup version