wasmerio / wasmer-go

🐹🕸️ WebAssembly runtime for Go
https://pkg.go.dev/github.com/wasmerio/wasmer-go
MIT License
2.84k stars 161 forks source link

WebAssembly translation error: Unsupported feature: proposed simd operator F64x2PromoteLowF32x4 #402

Open regnaio opened 1 year ago

regnaio commented 1 year ago

Repo with reproduction of issue: https://github.com/regnaio/havok-go

git clone git@github.com:regnaio/havok-go.git
cd havok-go/
go run ./main.go

Notice that it runs successfully. However, comment out line 8

import (
    "fmt"
    "log"
    "os"

    _ "github.com/bytecodealliance/wasmtime-go/v14" // <--- Comment out this line!

    "github.com/wasmerio/wasmer-go/wasmer"
)

Then, run the program again:

go run ./main.go

Now, it gives the error:

2023/10/25 04:16:16 NewModule(): err:WebAssembly translation error: Unsupported feature: proposed simd operator F64x2PromoteLowF32x4
exit status 1

This is so bizarre!! Why does importing another library (wasmtime-go) resolve the issue??