Bad CPU type in executable (os error 86)
I am getting the error when I am running a program on the MacBook Pro M1 system.
error: failed to run custom build command for `libp2p-kad v0.30.0`
Caused by:
process didn't exit successfully: `/Users/pankajchaudhary/Desktop/substrate-node-template/target/release/build/libp2p-kad-0453d89e20c9d740/build-script-build` (exit status: 101)
--- stderr
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Custom { kind: Other, error: "failed to invoke protoc (hint: https://docs.rs/prost-build/#sourcing-protoc): Bad CPU type in executable (os error 86)" }', /Users/pankajchaudhary/.cargo/registry/src/github.com-1ecc6299db9ec823/libp2p-kad-0.30.0/build.rs:22:63
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: build failed
MacBook Pro 13″, macOS 11.5