-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Unable to run wasm in iPhone SE with iOS 14.7. #23612
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
Can you attach the offending wasm file? Also, using wasm-dis to disassembly it might give you a clue as to how references crept in. I don't think emscripten itself generates any uses of reference types yet. |
Hey @sbc100 , apologies, but i am not allowed to share the wasm file . |
I imagine that What version of safari is running the device? The default minimum version of safari that we generated output for is v15. If you are targeting a version of safari older than that you can use -sMIN_SAFARI_VERSION=14000 (for example, to target safari v14) |
Hey @sbc100 I did make -sMIN_SAFARI_VERSION=12000 But that did not help. |
does "references" mean what i think it means? When we pass a variable by reference using "&" ? Because i have loads of those in my code. |
No, it has nothing to do with C++ or What version of safari is running on the device that rejects the binary? |
It is 14.7.1. |
Interesting, so 3.1.25 itself is more than 2 years old, so I'm somewhat supprised that it wouldn't work with Safari 14. Can you try building with the very latest version of emscripten (4.0.3) with |
build fail with 4.0.3 with error On one of the imported library i have (ZXing). And it would require me to modify that library to build it. Any other version can i try with ? PReviously i was setting sMIN_SAFARI_VERSION=12000 |
The compilation failure looks related to recent changes to libc++ regarding std::string. See #23070. Regarding the error you are seeing on the phone, can you find out what is at the offset in your wasm binary? i.e. what is at offset 92417 from the error |
I have a wasm which is singlethreaded and with SIMD disabled.
It runs on other iPhones but we are encountering a problem that it does not compile on iPhone SE.
The error we get is : RuntimeError: Aborted(CompileError: WebAssembly.Module doesn't parse at byte 92417: "references are not enabled"
I am not able to find why this error comes. This is a debug build with Assertions enabled.
I know Wasm is not wrong because it works on other devices. Any help would be appreciated.
Thanks
The text was updated successfully, but these errors were encountered: