binaryen
binaryen copied to clipboard
wasm-opt: "compile unit size was incorrect"
I'm unsure what exactly triggers this issue, but I tried several versions: v112, v116, v117, they all fail with the same message:
compile unit size was incorrect (this may be an unsupported version of DWARF)
UNREACHABLE executed at /home/runner/work/binaryen/binaryen/third_party/llvm-project/DWARFEmitter.cpp:200!
This is the command used: wasm-opt test.wasm -O -o test.opt.wasm.
The Wasm file: test.zip.
Our DWARF support is not very robust, so you are likely hitting a limitation there.
In general I would recommend using source maps support for debugging instead of DWARF, whenever possible - that is stable.