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

Add llvm with wasm32-unknown-unknown as requirement to rust basic bitcoin #1017

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

altkdf
Copy link
Contributor

@altkdf altkdf commented Oct 8, 2024

If llvm with wasm32-unknown-unknown is not installed, the compilation would error with something similar to

warning: error: unable to create target: 'No available targets are compatible with triple "wasm32-unknown-unknown"'
warning: 1 error generated.
warning: error: unable to create target: 'No available targets are compatible with triple "wasm32-unknown-unknown"'
warning: 1 error generated.

error: failed to run custom build command for `secp256k1-sys v0.9.2`

See rust-bitcoin/rust-bitcoin#2331 for more details.

@altkdf altkdf requested a review from fspreiss October 8, 2024 12:25
@altkdf altkdf self-assigned this Oct 8, 2024
@altkdf altkdf marked this pull request as ready for review October 8, 2024 12:25
@altkdf altkdf requested a review from a team as a code owner October 8, 2024 12:25
@@ -27,6 +27,9 @@ For a deeper understanding of the ICP < > BTC integration, see the [Bitcoin inte
SDK](https://internetcomputer.org/docs/current/developer-docs/setup/install/index.mdx).
For local testing, `dfx >= 0.22.0-beta.0` is required.

On Mac, `llvm` with the `wasm32-unknown-unknown` target (which is not included in the XCode installation by default) is required.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that the other prerequisite is itemized with a bullet and a checkbox (* [x]), this note here about macOS is not so prominent so my impression is it could easily be overlooked. So I suggest to make this

* [x] On macOS, llvm with...

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

Successfully merging this pull request may close these issues.

2 participants