Files
termux-packages/packages/wasmtime
termux-pacman-bot d4e075dcec fix(main/wasmtime): implement support for 32-bit ARM Android
- Concepts used to implement `listenfd-32-bit-android.diff` based on similar patches found in other packages like `fish` and `below`
  - `S_IFMT` is not the same type as `st_mode` on 32-bit Android
  - `socklen_t` should be passed to `getsockname()` and `getsockopt()`, not `unsigned int`

- Based on this comment, `wasmtime` now has a codepath that supports 32-bit ARM: https://github.com/bytecodealliance/wasmtime/issues/1173#issuecomment-2557605936

- This build of `wasmtime` has been tested on a 32-bit ARM Android device to run a precompiled `wasi-hello-world.wasm` that was copied from a different device, and is working successfully:
  - The `wasi-hello-world.wasm` was compiled using a GNU/Linux PC running the `cargo install cargo-component` tool via a Rust toolchain https://github.com/bytecodealliance/cargo-component

```
~ $ wasmtime wasi-hello-world.wasm
Hello, world!
~ $ uname -a
Linux localhost 3.4.112-Lineage-g716f00ee2e8 #1 SMP PREEMPT Sun Oct 13 11:16:54 CDT 2019 armv7l Android
~ $
```

- 32-bit x86 still has an error which is different and does not appear during the build for 32-bit ARM
2025-11-06 11:35:46 +00:00
..