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

Mac OS M3 failed to run custom build command for ring v0.17.6 #29

Closed
wxd56987 opened this issue Nov 29, 2023 · 2 comments
Closed

Mac OS M3 failed to run custom build command for ring v0.17.6 #29

wxd56987 opened this issue Nov 29, 2023 · 2 comments

Comments

@wxd56987
Copy link

mac verison: 14.1 (23B2073)
rust verison: rustc 1.76.0-nightly (5facb422f 2023-11-28)
node version: v18.0.0

run build:wasm: failed to run custom build command for ring v0.17.6

image
@0xtsukino
Copy link
Collaborator

im getting same issue on my machine - still looking for a fix

@mhchia
Copy link
Contributor

mhchia commented Dec 14, 2023

Encountered this one and solved it with this approach: rust-bitcoin/rust-secp256k1#254 (comment). So we'd need to install llvm from brew

brew install llvm

and force to use this version of clang when building the wasm

AR=/usr/local/opt/llvm/bin/llvm-ar CC=/usr/local/opt/llvm/bin/clang npm run build:wasm

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

4 participants