I've got error below when try to run "anchor build"
zsh 1096 (git)-[main]-% anchor build
BPF SDK: /Users/medici/.local/share/solana/install/releases/1.10.31/solana-release/bin/sdk/bpf
cargo-build-bpf child: rustup toolchain list -v
cargo-build-bpf child: cargo +bpf build --target bpfel-unknown-unknown --release
error: command failed: 'cargo': Bad CPU type in executable (os error 86)
- solana-test-validator is OK
- anchor init is OK
i use solana 1.10.31 and anchor 0.25.0 installed with avm on mac m1. not sure what cause the problem. anything else i need to do to get anchor build on M1? any ideas please?