Skip to content

docker image "tinygo/tinygo-dev" can't build "-target=wasm" #1303

@sago35

Description

@sago35

https://hub.docker.com/layers/tinygo/tinygo-dev/latest/images/sha256-21ce996bfda617483357c21a5f07b52ad39fbf87ffd07bf2fd2e48ce463c6ce7?context=explore
tinygo/tinygo-dev:latest
Digest:sha256:21ce996bfda617483357c21a5f07b52ad39fbf87ffd07bf2fd2e48ce463c6ce7
OS/ARCH
linux/amd64
Size
1.27 GB
Last pushed
4 days ago by tinygo

$ docker run --rm -v $(pwd):/src -w /src tinygo/tinygo-dev tinygo build -o wasm.wasm -target=wasm main.go
wasm-ld-10: error: cannot open /tinygo/lib/wasi-libc/sysroot/lib/wasm32-wasi/libc.a: No such file or directory
error: failed to link /tmp/tinygo918951368/main: exit status 1

$ docker run --rm -v $(pwd):/src -w /src tinygo/tinygo-dev tinygo build -o app.hex -target=xiao -size short main.go
   code    data     bss |   flash     ram
   7372       8    4280 |    7380    4288

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions