-
Notifications
You must be signed in to change notification settings - Fork 909
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
WASM code that uses __multi3
produces module that cannot be parsed by wasm-opt
#4114
Comments
Update the code to reproduce a new issue, which is an evolution of the initial one
This is happening also with version 0.31.0. I've updated the reproduced to reflect that |
I found that #3844 was actually incorrect. I have fixed this locally, I'll make a PR soon. |
Here is the PR that fixes this issue: #4188. |
@aykevl good news, I've checked out the PR you linked above, built tinygo from scratch and then I successfully built and tested the real code (not the small reproducer). The fix is working 🥳 |
@flavio thanks for testing! |
This is a follow up on issue #3501. The issue has been fixed with tinygo 0.29.0.
However, the code linked as reproducer is still broken. This time the build fails during the optimization phase, when running
wasm-opt
.The compilation fails with the following error:
[parse exception: invalid function index (at 0:33795)]
This happens when building with the following Tinygo docker images:
tinygo/tinygo:0.29.0
tinygo/tinygo:0.30.0
Both images ship with
wasm-opt
version 114. I've tried to use the latest version ofwasm-opt
(v116), but I got the same error.UPDATE: this happens also with the latest version of tinygo (
tinygo/tinygo:0.31.0
), which containswasm-opt
version 116Reproducer
I've updated the code inside of the original reproducer, it can be found inside of this GitHub repository.
The text was updated successfully, but these errors were encountered: