Skip to content

Conversation

tcharding
Copy link
Member

@tcharding tcharding commented Jul 2, 2025

WASM build is currently failing because we don't include memmove in our custom WASM header.

Close: #817

WASM build is currently failing because we don't include `memmove` in
our custom WASM header.
@tcharding
Copy link
Member Author

What versions do you want to backport this to @apoelstra?

@apoelstra
Copy link
Member

Does this really fix it? Under what conditions does it fail? Can you reenable the CI job after this?

I don't care to backport it. It worked for years without this change and at some point the wasm people broke their own tooling. I don't mind patching stuff going forward but if people want their builds to work with wasm they shouldn't be upgrading their tooling.

@apoelstra
Copy link
Member

Oh, I see, this is because we introduced memmove when introducing the secp256k1_pubkey_sort function. Ok, maybe this was our fault.

But can we attempt to reenable CI with this change?

@tcharding
Copy link
Member Author

I didn't check I just got it to build locally. I can take a look tomorrow though.

@apoelstra
Copy link
Member

apoelstra commented Jul 3, 2025

Gonna ACK and merge this, since the OP confirmed that it fixes his issue, and I believe it was our fault (sorta) rather than wasm's.

But it would be nice, separately, to get the CI job working again..

Copy link
Member

@apoelstra apoelstra left a comment

Choose a reason for hiding this comment

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

ACK c74c086; successfully ran local tests

@tcharding tcharding mentioned this pull request Jul 3, 2025
@apoelstra apoelstra merged commit cceb301 into rust-bitcoin:master Jul 4, 2025
28 checks passed
apoelstra added a commit that referenced this pull request Jul 5, 2025
1800e73 CI: Re-enable WASM job (Tobin C. Harding)

Pull request description:

  On top of #818, this was quicker than writing an issue. Maybe it will just work.


ACKs for top commit:
  apoelstra:
    ACK 1800e73; successfully ran local tests


Tree-SHA512: 29787ca03f5f3354d635d5cb24a033299385119fdc40d98dbe063aefd04319147c4b72ced5a5b5a411b513138b91cb55e4d4627bc17e1f7c202f3f485a0952e0
chain-forgexcr45 added a commit to chain-forgexcr45/rust-secp256k1 that referenced this pull request Sep 28, 2025
…the wasm-sysroot header

c74c086f4d27b0d939945971bb8d0f498b7cfdf0 secp256k1-sys: Add memmove to the wasm-sysroot header (Tobin C. Harding)

Pull request description:

  WASM build is currently failing because we don't include `memmove` in our custom WASM header.
  
  Close: #817


ACKs for top commit:
  apoelstra:
    ACK c74c086f4d27b0d939945971bb8d0f498b7cfdf0; successfully ran local tests


Tree-SHA512: 24249fc61337ae77c0d2928dc57bb72aebb6f0876b29fe5b2e865e06586e2c2841c921ecbdb13a35eae264b1575fe9140a0e2d667d00a6af4703450c952a9e93
william2332-limf added a commit to william2332-limf/rust-secp256k1 that referenced this pull request Oct 2, 2025
…the wasm-sysroot header

c74c086f4d27b0d939945971bb8d0f498b7cfdf0 secp256k1-sys: Add memmove to the wasm-sysroot header (Tobin C. Harding)

Pull request description:

  WASM build is currently failing because we don't include `memmove` in our custom WASM header.
  
  Close: #817


ACKs for top commit:
  apoelstra:
    ACK c74c086f4d27b0d939945971bb8d0f498b7cfdf0; successfully ran local tests


Tree-SHA512: 24249fc61337ae77c0d2928dc57bb72aebb6f0876b29fe5b2e865e06586e2c2841c921ecbdb13a35eae264b1575fe9140a0e2d667d00a6af4703450c952a9e93
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.

Help with WASM error (memmove missing?)

2 participants