You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

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

Posted on Aug 6, 2021 1:31 AM

Reply

Similar questions

6 replies

Bad CPU type in executable (os error 86)

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.