Open Michael-F-Bryan opened 1 year ago
Need to be able to handle abi = 'wasix'
in wasmer.toml
of packages.
I also encounter the similar issue when run php-8.2.6-wasmedge.wasm
with the latest wasmer 4.2.3.
> wasmer php-8.2.6-wasmedge.wasm --dir . hello.php
error: Instantiation failed
╰─▶ 1: Error while importing "wasi_snapshot_preview1"."sock_open": unknown import. Expected Function(FunctionType { params: [I32, I32, I32], results: [I32] })
See also https://github.com/vmware-labs/webassembly-language-runtimes/issues/121.
@liudonghua123 this is a different problem. sock_open
is not part of wasi preview1.
Not sure where this is coming from, but it's not official.
Describe the bug
I just tried to publish a package (wasmerio/fork-bomb) that was compiled using
cargo wasix build
and ran into validation errors. It looks like our code for interfaces doesn't know about WASIX, or at least thewasix_32v1
interface.Steps to reproduce
The error complains about loads of missing imports from the
wasix_32v1
namespace.Additional context