conejoninja / gopherbadge

22 stars 8 forks source link

Unable to build marble-game #2

Open deadprogram opened 1 year ago

deadprogram commented 1 year ago
$ tinygo version
tinygo version 0.28.1 linux/amd64 (using go version go1.20 and LLVM version 15.0.0)

$ tinygo flash -target gopher-badge ./examples/marble-game/
tinygo:ld.lld: error: undefined hidden symbol: __math_invalidf
>>> referenced by sf_sqrt.c:0 (/home/ron/Development/tinygo/tinygo/lib/picolibc/newlib/libm/math/sf_sqrt.c:0)
>>>               sf_sqrt.c.o:(sqrtf) in archive /home/ron/.cache/tinygo/picolibc-thumbv6m-unknown-unknown-eabi-cortex-m0plus/lib.a
failed to run tool: ld.lld
error: failed to link /tmp/tinygo1717101476/main: exit status 1
conejoninja commented 1 year ago

It worked fine with 0.28.0-dev ... need to investigate more, but looks like an issue with tinygo itself¿?

➜  gopherbadge git:(main) ✗ tinygo version
tinygo version 0.28.0-dev linux/amd64 (using go version go1.20 and LLVM version 15.0.7)
➜  gopherbadge git:(main) ✗ tinygo flash -target gopher-badge ./examples/marble-game/
➜  gopherbadge git:(main) ✗