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
Viz.js: wasm-opt: Fatal: error in validating input #10331
Comments
wasm2wat gives a better error:
|
I tried to build this but the second command fails,
Please run the final link command it with |
emcc-0-base.wasm already fails to validate, so guess I have to report this to https://bugs.llvm.org/ again? EDIT: Replaced the zip with a "-g4" build. Maybe more useful as it has the function names. |
An older emscripten (1.38.48) actually tells the concrete issue:
When libgts is missing the parameters for remove_overlap don't match with the header definition. So this sounds like a library bug, not a clang/binaryen bug. |
Yes, this would be an llvm bug then, please file it there (and link to it here). That old error reporting is from asm2wasm, while in the new backend the linker is lld which handles mismatches like that differently. @sbc100 does it not error or at least warn? (Or perhaps the data reaching the linker is very different if the newer clang/llvm emit something else, so might not be the linker specifically...) |
Certainly an llvm bug if the output of the compiler and linker doesn't validate. |
This is the char drand48();
int main (){
return drand48();
} asm2wasm trace
|
This issue has been automatically marked as stale because there has been no activity in the past year. It will be closed automatically if no further activity occurs in the next 30 days. Feel free to re-open at any time if this issue is still relevant. |
Emscripten version: 1.39.6
I try to compile this: https://github.com/mdaines/viz.js
Command executed:
deps-full extracts a graphviz archive. You have to manually patch the configure file and get rid of "-ffast-math". (see #9955)
Attached module.wasm that fails to validate and a patch file to make it build against later emscripten versions:
module.zip
Build line:
/usr/bin/wasm-opt --post-emscripten --inline-main --no-exit-runtime -O2 --pass-arg=emscripten-sbrk-ptr@220832 module.wasm -o module.wasm --mvp-features --strip-dwarf
The validation output is gigantic (600000 lines), won't attach it, just run wasm-opt to see it.
The only hint I can give is that it validates when using "deps-lite". This builds Graphviz only with "dot" support. But I need neato and sfdp which is part of "deps-full" :/
The text was updated successfully, but these errors were encountered: