Skip to content
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-opt: "compile unit size was incorrect" #6391

Open
daxpedda opened this issue Mar 8, 2024 · 1 comment
Open

wasm-opt: "compile unit size was incorrect" #6391

daxpedda opened this issue Mar 8, 2024 · 1 comment

Comments

@daxpedda
Copy link
Contributor

daxpedda commented Mar 8, 2024

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.

@kripken
Copy link
Member

kripken commented Mar 8, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants