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
Since version 1.28.0, rustup checks if the host system is compatible and fails the installation if it is not (see #4028). However, Apple M1 systems are compatible with x86_64 architecture if Rosetta is installed. Unfortunately, rustup does not account for this compatibility.
Steps
Have an Apple M1 box with Rosetta
% sysctl -a | grep machdep.cpu.brand
machdep.cpu.brand_string: Apple M1
Try to install x64 rust toolchain:
% rustup toolchain install 1.85.0-x86_64-apple-darwin
error: toolchain '1.85.0-x86_64-apple-darwin' may not be able to run on this system
note: to build software for that platform, try `rustup target add x86_64-apple-darwin` instead
note: add the `--force-non-host` flag to install the toolchain anyway
rustup 1.28.1 (f9edccde0 2025-03-05)info: This is the version for the rustup toolchain manager, not the rustc compiler.info: The currently active `rustc` version is `rustc 1.85.0 (4d91de4e4 2025-02-17)`
@djc Back in v1.26.0 rustup would happily accept x64 as a native host and we have got a lot for surprising behaviors because of that (mostly linkage errors). That's why we accepted juliaup's patch explicitly for detecting Rosetta 2 and are now warning the user about it. As such I don't think we'll be working in the opposite direction...
Verification
Problem
Since version 1.28.0, rustup checks if the host system is compatible and fails the installation if it is not (see #4028). However, Apple M1 systems are compatible with x86_64 architecture if Rosetta is installed. Unfortunately, rustup does not account for this compatibility.
Steps
Possible Solution(s)
Use
--force-non-host
flag:Notes
No response
Rustup version
Installed toolchains
OS version
The text was updated successfully, but these errors were encountered: