-
Notifications
You must be signed in to change notification settings - Fork 709
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
Cant generate typescript bindings using bazel for memory64 with embind #1494
Comments
It looks like the |
@sbc100 That part of the pass looks valid to me: https://github.com/WebAssembly/binaryen/blob/main/src/passes/Memory64Lowering.cpp#L120-L124 So I do think it might be the node.js version difference that explains this. Did the memory64 spec change on memory.copy between node 16 and 20, perhaps? |
This is |
There were some recent changes here: https://github.com/emscripten-core/emscripten/blob/b88d47915acd02adbd9bf438d2db714048d95b1b/system/lib/libc/emscripten_memcpy_bulkmem.S#L9-L13. Could there be an issue with the lowering pass? |
@sbc100 Hmm, is that My current guess is that Otherwise @sachitv can you perhaps reduce this testcase to something simpler that does not use bazel? That would be easier for us to debug. Specifically, we need to see the link command in detail (and I don't know how to get bazel to output that). A small cpp file + a link command would be ideal. |
I was attempting to build typescript bindings in bazel for MEMORY64=2 when I noticed it didn't build since the current version of node in bazel (16.6.2 -> see below) didn't seem to work.
emsdk/bazel/emscripten_deps.bzl
Lines 121 to 123 in 6abe512
I upgraded the dependencies for rules_nodejs and build_bazel_rules_nodejs to 5.8.5 and thereafer used the most recent version of node from there
20.14.0
and thereafter I was able to get unblocked.The failure I noticed was something like this:
Reproduction:
This is a commit / branch you can use to reproduce this error. After you cd into test-external please run
bazel build //:hello-embind-wasm
Possible Fix:
Here's my possible fix for this issue: 6b76de3
Please let me know if it would make sense to make a pull request for this change. Given the scope reduction of rules_nodejs i'm uncertain if this is the right path to take given efforts underway in #1487. This is sort of a band aid for me at the moment to get my project to emit these definitions.
The text was updated successfully, but these errors were encountered: