Skip to content

unknown import: env::sync/atomic.StoreUint32 has not been defined #2652

Closed
@kyleconroy

Description

@kyleconroy

Using the latest dev, I'm unable to run code generated by protoc when it's compiled to WASM / WASI.

Error: failed to run main module `example.wasm`

Caused by:
    0: failed to instantiate "example.wasm"
    1: unknown import: `env::sync/atomic.StoreUint32` has not been defined
make: *** [run] Error 1

A full reproduction can be found here: https://github.com/kyleconroy/tinygo-protoc. You'll need to have wasmtime installed to run the example.wasm file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions