Skip to content

Binaryen.js breakage when compiling with Emscripten tot #12123

Closed
WebAssembly/binaryen
#3113
@dcodeIO

Description

@dcodeIO

Seeing an issue that appears to be a problem when compiling Binaryen to JS with Emscripten newer than 2.0.2.

Works with:

  • Emscripten 2.0.1, building Binaryen with CMAKE_BUILD_TYPE=Release
  • Emscripten 2.0.2, building Binaryen with CMAKE_BUILD_TYPE=Release
  • Emscripten tot, building Binaryen with CMAKE_BUILD_TYPE=Debug

Does not work with:

  • Emscripten tot, building Binaryen with CMAKE_BUILD_TYPE=Release

Yielding the following cryptic error when attempting to compile the bootstrapped AssemblyScript compiler:

Assertion failed: *task.currp, at: /path/to/binaryen/src/wasm-traversal.h,702,walk
Error: abort(Assertion failed: *task.currp, at: /path/to/binaryen/src/wasm-traversal.h,702,walk). Build with -s ASSERTIONS=1 for more info.
... gibberish ...

Unfortunately, I haven't figured out yet how to debug this properly since it happens right after code generation in AssemblyScript, during emit of the Wasm binary (no fixture yet), doesn't seem to be a problem in Binaryen itself and does not show up in debug builds. Now I know this probably doesn't help much, but I thought I let you know in case you have an idea where this might be coming from?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions