-
Notifications
You must be signed in to change notification settings - Fork 193
Wamr Loader/GC giving a type mismatch failure #1929
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
Comments
I think I fixed this issue in bytecodealliance/wasm-micro-runtime#4075. But the implementation of the GC proposal in WAMR is partial and not sufficient to run programs produced by wasm_of_ocaml. I have just reopened an issue: bytecodealliance/wasm-micro-runtime#4190 |
Ah, sorry - you're right, I was using an older commit. However, I rebuilt and this time got a What's the best way of debugging this? Perhaps I should just raise a new issue on bytecodealliance/wasm-micro-runtime? |
You can get a backtrace by running it with
It seems it fails because the Wasm module is not a WASI module, and then crashes while trying to unload the module. You can raise an issue on bytecodealliance/wasm-micro-runtime, indeed. By the way, if you want to produce WASI modules (which do not depend on some JavaScript helper code), you should use #1831 and compile using the
|
Thanks for the above! Yes, after building the wasi branch, |
I'm too sure whether the issue I'm having is with the ocaml wasm compiler or with the bytecodealliance's runtime (wamr).
I've wrote a simple ocaml program:
let _ = Printf.printf "Hello")
compiled it with:
ocamlfind ocamlc -package js_of_ocaml -linkpkg -o hello.byte hello.ml
generated the wasm:
wasm_of_ocaml hello.byte
After building the wamr runtime with the following flags ...
... I was able to run a simple wasm file generated from C.
When attempting to run the ocaml wasm file I got the following error:
WASM module load failed: type mismatch: expect (ref ht) but got other
So, could anyone suggest possible ways for me to narrow down the cause of the error?
The text was updated successfully, but these errors were encountered: