Open n0thhhing opened 2 weeks ago
I was previously using emsdk version 3.1.47(downgrading back to it fixed the issue, but I can't use the latest)
If you can save the temp files emitted by EMCC_DEBUG=1
in the env, then there should be some wasm files in /tmp/emscripten_temp/
that you can attach here, which should reproduce the issue so we can investigate.
Thanks @n0thhhing , looks like even emcc-00-*.wasm
has errors (the same call param types must match
as you reported), so this must be a clang or wasm-ld issue. Two ways to look into that:
@sbc100 I wonder if we can make 1 easier somehow, as this situation happens now and then. Could wasm-ld
validate the input object files it reads? And/or could it validate its output?
Here I have provided a zip file containing the full directory structure, linker commands, and necessary inputs to reproduce the issue. You can find the details in README.md.
Please let me know if any additional information is required.
My repo which contains everything is ts-capstone
It may be because the libcapstone.a file was compiled with an older version and is now being used with emcc in a newer version
I recently upgraded emsdk to latest and I am given a wasm validator error, before upgrading the build worked as expected and didn't have any errors, but now after updating and attempting to rebuild, I'm getting the following error
NOTES: