Skip to content

Unable to build Dockerfile attempting to use release v0.4.1 #239

@DazWilkin

Description

@DazWilkin

I'd had problems installing LLVM correctly on a Linux workstation and so use the Docker image.

Would like to try this now v0.4.1 (#235) but there's no accompanying image.

Self-building the image appears to not work for me :-(

I'm unable to go get -u github.com/tinygo-org/tinygo because my local LLVM is not working.

I tried:

git clone git@github.com:tinygo-org/tinygo $GOPATH/src/github.com/tinygo-org/tinygo
cd $GOPATH/src/github.com/tinygo-org/tinygo
docker build --tag=tinygo --file=Dockerfile .

But this fails when I use this local image:

docker run \
--rm --interactive --tty \
--volume=${PWD}/src:/src --volume=${PWD}/bin:/bin \
tinygo tinygo build -o /bin/arduino.hex -target=arduino \
/src/github.com/DazWilkin/tinygo/arduino/main.go
../usr/local/go/src/syscall/js/func.go:74:3: todo: unknown expression: select blocking []

but succeeds with the existing deployed image:

docker run \
--rm --interactive --tty \
--volume=${PWD}/src:/src --volume=${PWD}/bin:/bin \
tinygo/tinygo tinygo build -o /bin/arduino.hex -target=arduino \
/src/github.com/DazWilkin/tinygo/arduino/main.go

Additionally:

  • Please consider automating Docker image builds w/ releases

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