-
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
build wasm file to AOT, report error Unsupported opcode: 0x8 WASM_OP_THROW #4088
Comments
it's expected because currently exception-handling is only implemented for the classic interpreter. |
Thanks for your quick response,i compile Kotlin to WebAssembly ,do you plan to support the exception-handling feature in AOT, |
I haven't heard of any further plans from the community regarding exception handling in AOT. This is partly because the exception-handling proposal underwent significant changes at the end of last year, and the version implemented by WAMR is now considered "legacy exception handling." This makes it difficult to extend the current interpreter's solution to AOT mode. |
i want run Kotlin program at embbed devices,so aot is aot is really important for me,if not support aot,it will slow use classic interpreter |
Is there a way, like some command line options, for the Kotlin toolchain to compile .kt files to .wasm without utilizing exception handling opcodes? |
ok. goog idea, it can change the kotlin compiler chain . |
@lum1n0us Thanks. it worked when i removed the EH, and how can i run the aot. is the same as wasm file ./iwasm -f test Sys.aot 12 when i run it. error produced unhandled SIGSEGV, si_addr: 0x53 |
sometimes the follow error ./iwasm Sys.aot |
@ericCHensssssssss would you mind uploading |
The type_idx is fixed after[https://github.com//pull/4094] but meet new error |
Hava you find anything new? |
I'm using the latest commit d9c01b3 from the main branch. I compiled iwasm with the flag $ ./build/iwasm --gc-heap-size=1073741824 -f test ./aqaraSys-wasm-wasi.wasm
...
this is debug message: before propagate:out - AStatusNumeric,value:0.11333333333333334 {Status.ok}
没有link,links大小:1.开始传递至父节点,p:out,v:0.11333333333333334 {Status.ok}
this is debug message: before propagate:_value - ADouble,value:0.11333333333333334
没有link,links大小:0.开始传递至父节点,p:_value,v:0.11333333333333334
working值变更了,name:Ramp$288$29,working:0.11333333333333334 {Status.ok},out:0.10666666666666667 {Status.ok}
this is debug message: before propagate:_value - ADouble,value:0.10666666666666667
没有link,links大小:0.开始传递至父节点,p:_value,v:0.10666666666666667
this is debug message: before propagate:out - AStatusNumeric,value:0.11333333333333334 {Status.ok}
没有link,links大小:1.开始传递至父节点,p:out,v:0.11333333333333334 {Status.ok}
this is debug message: before propagate:_value - ADouble,value:0.11333333333333334
没有link,links大小:0.开始传递至父节点,p:_value,v:0.11333333333333334
working值变更了,name:Ramp$289$29,working:0.11333333333333334 {Status.ok},out:0.10666666666666667 {Status.ok}
this is debug message: before propagate:_value - ADouble,value:0.10666666666666667
没有link,links大小:0.开始传递至父节点,p:_value,v:0.10666666666666667
this is debug message: before propagate:out - AStatusNumeric,value:0.11333333333333334 {Status.ok}
没有link,links大小:1.开始传递至父节点,p:out,v:0.11333333333333334 {Status.ok}
this is debug message: before propagate:_value - ADouble,value:0.11333333333333334
没有link,links大小:0.开始传递至父节点,p:_value,v:0.11333333333333334
working值变更了,name:Ramp$2810$29,working:0.11333333333333334 {Status.ok},out:0.10666666666666667 {Status.ok}
this is debug message: before propagate:_value - ADouble,value:0.10666666666666667
没有link,links大小:0.开始传递至父节点,p:_value,v:0.10666666666666667
this is debug message: before propagate:out - AStatusNumeric,value:0.11333333333333334 {Status.ok}
没有link,links大小:1.开始传递至父节点,p:out,v:0.11333333333333334 {Status.ok}
|
yes, this is expected behavior. wasm worked as expect |
do you produce the null function reference error when run aot file? |
@lum1n0us i am blocked ,did you Have some new findings? |
No. I can't reproduce the issue with the commit d9c01b3 from the main branch. |
you can run the aot file with no exception? This is the my os i meet the follow error. Exception: null function reference test what more logs need i provide please let me know,Thanks |
@lum1n0us can you produce new error when run the aot? or do you need some more logs |
when i build wasm file to aot, it report errors. it seems not support WASM_OP_THROW
./wamrc --enable-gc -o test.aot --target=armv7 test.wasm
Create AoT compiler with:
target: armv7
target cpu:
target triple: armv7-pc-linux-gnu
cpu features:
opt level: 3
size level: 3
output format: AoT file
Unsupported opcode: 0x8
The text was updated successfully, but these errors were encountered: