bytecodealliance / wasmtime

A fast and secure runtime for WebAssembly
https://wasmtime.dev/
Apache License 2.0
14.81k stars 1.23k forks source link

wasmtime-fiber do not build for target aarch64-apple-ios & aarch64-apple-ios-sim #8735

Open sturmenta opened 4 weeks ago

sturmenta commented 4 weeks ago

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

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

alexcrichton commented 4 weeks ago

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.

sturmenta commented 3 weeks ago

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.