-
Notifications
You must be signed in to change notification settings - Fork 668
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
For AOT,If enable gc, the reference_type will disable,Why ? #4097
Comments
The AOT option here: ref types here refer to wasm ref types proposal which became core wasm spec, gc refer to gc proposal. As those two proposals specified, some opcodes(for example, call indirect) and function reference have different definition and need different implementations, therefore the flag control here |
Thank you for your explanation. I'm in a hurry to let aot work. But unfortunately there have been problems。 If i enable gc proposal. so ref types is diabled,what the compiler do if find reference-types my wasm file is build from Kotlin,but it has ref types。 if the refTypes is disabled,how can my aot work well? |
Here's how I do it First:build aot ./wamrc --enable-gc -o --bounds-checks=1 aqaraSys.aot aqaraSys-wasm-wasi.wasm Second:run aot third:meet error if i run wasm with classic interpret,it work well |
It's not disabled but redefine the ref types to conform to the GC proposal definition, there shouldn't be any error. Could you please attach the WASM file? |
ok.please help check the file ,thanks . the entry function is test |
add aot file |
@TianlongLiang any updates? Very eager to get it up and running。thanks!! |
No luck yet, I was busy with some other things the last few days. I tried your wasm file in LLVM JIT running mode which is fine, and in aot the latest commit will core dump, I think maybe a bug in the aot emitting type info. I will try the simple test to see where was wrong. Keep you posted |
Thanks, I'm stuck here now, and I need to get to a conclusion as soon as possible when i update the latest main branch codes。 i find the same segment error, but did not find the root case .a a a |
@TianlongLiang would you help have a look this week? i really need it |
[ ] This is the simple and small wasm file to product the error。 |
would you help have a look ?please |
The text was updated successfully, but these errors were encountered: