WebAssembly / WebAssembly/binaryen
wasm-opt: "compile unit size was incorrect"
Nobody has claimed this yet.
- Dominant language
- WebAssembly
- Stars
- 8.6k
- Forks
- 885
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 69
Description
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the failure with wasm-opt test.wasm -O -o test.opt.wasm using the attached test.wasm from test.zip. Inspect the DWARFEmitter.cpp:200 path and compare behavior across the reported v112, v116, and v117 versions. Done means identifying the input or DWARF handling that causes the incorrect compile unit size and validating the result with the supplied file.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- wasm
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100