wasmerio / wasmer-go

🐹🕸️ WebAssembly runtime for Go

Home Page:https://pkg.go.dev/github.com/wasmerio/wasmer-go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WebAssembly translation error: Unsupported feature: proposed simd operator F64x2PromoteLowF32x4

regnaio opened this issue · comments

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??