You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Duplicate imports are disallowed by module linking. I'd expect that the module would be rejected before making it that far. So that's a little funny. The root issue here is that your module has duplicate imports, though. That will eventually be fixed in https://bugs.llvm.org/show_bug.cgi?id=50938. In the meantime, you can run wasm-opt -O to deduplicate the imports.
Amazing, thanks for the link and the tip, I'll try it out with wasm-opt -0. I seemed to have had success when compiling in release mode (which effectively skips this assertion).
Activity
fitzgen commentedon Jul 21, 2021
Duplicate imports are disallowed by module linking. I'd expect that the module would be rejected before making it that far. So that's a little funny. The root issue here is that your module has duplicate imports, though. That will eventually be fixed in https://bugs.llvm.org/show_bug.cgi?id=50938. In the meantime, you can run
wasm-opt -Oto deduplicate the imports.maximebedard commentedon Jul 22, 2021
Amazing, thanks for the link and the tip, I'll try it out with
wasm-opt -0. I seemed to have had success when compiling in release mode (which effectively skips this assertion).