I'm new to Solana dev and was starting up with Anchor on an M1 machine.
While calling anchor build
, I receive the following error messages:
Warning: cargo-build-bpf is deprecated. Please, use cargo-build-sbf
cargo-build-bpf child: /.../solana/install/active_release/bin/cargo-build-sbf --arch bpf
error: command failed: 'cargo': Bad CPU type in executable (os error 86)
The versions I have for Solana, Anchor and Rustc are:
❯ anchor --version
anchor-cli 0.25.0
❯ solana --version
solana-cli 1.11.10 (src:843e018c; feat:4253057308)
❯ rustc --version
rustc 1.63.0 (4b91a6ea7 2022-08-08)