Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on cargo build on Mac OS M1 chip #12

Open
Amirjab21 opened this issue Oct 5, 2024 · 1 comment
Open

Error on cargo build on Mac OS M1 chip #12

Amirjab21 opened this issue Oct 5, 2024 · 1 comment

Comments

@Amirjab21
Copy link

I've made sure I have all the installed dependencies such as rustup, brew etc

When I try to run the build command:

I get this error:

error: failed to run custom build command for solochain-template-runtime v0.1.0 (/Users/xxx/Documents/temp/polkadot-sdk-solochain-template/runtime)

Caused by:
process didn't exit successfully: /Users/xxx/Documents/temp/polkadot-sdk-solochain-template/target/release/build/solochain-template-runtime-0ee76d9ad8414cf5/build-script-build (exit status: 1)
--- stderr
Cannot compile the WASM runtime: the wasm32-unknown-unknown target is not installed!
You can install it with rustup target add wasm32-unknown-unknown --toolchain 1.80.0 if you're using rustup.
warning: build failed, waiting for other jobs to finish...

And then if i try the suggestion I get the following error:

rustup target add wasm32-unknown-unknown --toolchain 1.80.0

error: toolchain '1.80.0-aarch64-apple-darwin' is not installed

@marcinjakuszko
Copy link

Try to use rustup target add wasm32-unknown-unknown --toolchain stable. Error indicates you do not have 1.80 version of rust installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants