wasmtime-fiber do not build for target aarch64-apple-ios & aarch64-apple-ios-sim
Hello, I am trying to create an iOS app with CRUX and I want to use the crate wasmtime, but when I try to build it seems like wasmtime-fiber doesn't support to build for the targets aarch64-apple-ios neither aarch64-apple-ios-sim, there is something I can do it differently? Thanks, Im just starting with rust
Steps to Reproduce
-
(from a mac with M1) inside
wasmtime/crates/fiberrun: -
-
cargo build --target aarch64-apple-darwin(this works ✅)
-
-
-
cargo build --target aarch64-apple-ios(this doesn't work ❌)
-
-
-
cargo build --target aarch64-apple-ios-sim(this doesn't work ❌)
-
Expected Results
Actually create a build
Actual Results
Many errors for "unknown directive"
error: unknown directive
|
note: instantiated into assembly here
--> <inline asm>:2:1
|
2 | .hidden wasmtime_fiber_start_22_0_0
| ^
https://github.com/bytecodealliance/wasmtime/assets/30802967/40a481f7-ad32-47c6-912e-0baea31a7163
Versions and Environment
Wasmtime version: 21.0.1 Wasmtime commit: 23409ca7e184ef3b7d42fe17938caed470643d5d
Operating system: macOS Sonoma 14.5 (23F79)
Architecture: Apple M1
Thanks for the report! Wasmtime doesn't yet support iOS which is why you're getting this build error. If you're interested it might not be too too much work to dust off https://github.com/bytecodealliance/wasmtime/pull/7506 to get things compiling at least. You can also find some historical discussion of this at https://github.com/bytecodealliance/wasmtime/issues/5754 and https://github.com/bytecodealliance/wasmtime/issues/3867. Wasmtime's currently platform support is documented here.
Thank you very much Alex for your answer!
Ok I will do my research and see how I can continue, thank you for showing me possible ways forward.
#7506 seems to work fine: https://github.com/bytecodealliance/wasmtime/pull/7506#issuecomment-2336472557
It would be great to get an up-to-date patch merged. I'm happy to open a PR (or update the existing one)
Fixed in https://github.com/bytecodealliance/wasmtime/pull/9888