Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GOOS=wasip1 GOARCH=wasm not working, gojs::runtime.ticks error #4682

Open
KieranP opened this issue Jan 4, 2025 · 1 comment
Open

GOOS=wasip1 GOARCH=wasm not working, gojs::runtime.ticks error #4682

KieranP opened this issue Jan 4, 2025 · 1 comment
Labels
duplicate This issue or pull request already exists wasm WebAssembly

Comments

@KieranP
Copy link

KieranP commented Jan 4, 2025

According to https://tinygo.org/docs/guides/webassembly/wasi/, I can use GOOS=wasip1 GOARCH=wasm just like GoLang supports. But it doesn't appear to work.

$ GOOS=wasip1 GOARCH=wasm tinygo build -o output.wasm
$ wasmtime run output.wasm
Error: failed to run main module `output.wasm`

Caused by:
    0: failed to instantiate "output.wasm"
    1: unknown import: `gojs::runtime.ticks` has not been defined

Using -target works:

$ tinygo build -o output.wasm -target=wasip1
$ wasmtime run output.wasm
  [runs app as expected]

Has support for GOOS/GOARCH been removed?

@deadprogram
Copy link
Member

I think this is duplicate of #4659

@deadprogram deadprogram added duplicate This issue or pull request already exists wasm WebAssembly labels Jan 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists wasm WebAssembly
Projects
None yet
Development

No branches or pull requests

2 participants