-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
IndexError: list assignment index out of range in create_asm_consts_wasm #10148
Comments
Did you install emscripten using emsdk? It looks like maybe you didn't due to the "LLVM version appears incorrect" warning. Since the LLVM wasm backend and Emscripten are co-developed, it is not expected that Emscripten will work with arbitrary LLVM versions. I strongly recommend installing via emsdk, but if you must assemble your own emscripten installation, then check for known-compatible versions of the various tools at https://chromium.googlesource.com/emscripten-releases/. All upstream LLVM commits after the LLVM 9.0 branch point have version 10.0. Emscripten uses a tip-of-tree build of LLVM, so it expects one of these 10.0 builds. |
I haven't installed emsdk manually, it's being installed by |
From the error message it looks like you are using the homebrew version of emscripten, so it could be a configuration issue. Can you trying installing via the emsdk and see if you get the same results? If that works then I would recommend filing a bug with the homebrew package. |
Ok I took a deeper look. I does indeed look like a mismatch between the version of binaryen and version of emscripten that are being used together. The following change to binaryen changed the output in a way that would make the above exception occur: This change to binaryen landed 2 months ago after the 1.39.1 release of emscripten. By comparison your version of emscripten is 4 months old. So it looks like the homebrew package is somehow misconfigured. |
Can you run the failing command with EMCC_DEBUG=1 so I can confirm my suspicion? |
@akolybelnikov I filed a bug on cargo-web about updating their Emscripten support. For now I would use emsdk to install Emscripten manually as a workaround https://emscripten.org/docs/getting_started/downloads.html. |
@sbc100 , here is the error with EMCC_DEBUG=1: https://gist.github.com/akolybelnikov/6ba29273b16cc885d702de75fcebd6f8 |
Yes, it looks like you |
Honestly, no idea. I followed the docs here: https://github.com/koute/cargo-web and
|
I would file a bug with cargo-web then. It clear the binaryen version is wrong here. If its ok with you we can close this bug? |
Thank you all for the support! |
I'm getting the following error while trying to run a build:
Here is my version info:
Also, I have no idea why it expects to see LLVM "10.0".
The text was updated successfully, but these errors were encountered: