
rust@octodon.social ("Rust tips") wrote:
Have you moved to a shiny new M1/M2 Mac? Reinstall Rust.
Your old #Rustlang installation may be running emulated under Rosetta, and build for an Intel Mac instead of Apple Silicon. This mixup sometimes causes linker errors: "building for macOS-x86_64 but attempting to link with file built for macOS-arm64".
rustup self uninstall
https://rustup.rs