mechanoid
mechanoid copied to clipboard
ld.lld: error: undefined hidden symbol: __math_invalidf
I built tinygo from source as per official documentation (on gentoo here) tried to run ping pong example on nicenano
$ sudo ~/go/bin/mecha flash -i wazero -m nicenano
Building TinyGo module ping
Done.
code data bss | flash ram
9 0 0 | 9 0
Application built. Now flashing...
ld.lld: error: undefined hidden symbol: __math_invalidf
>>> referenced by sf_sqrt.c:0 (/home/zogg/dev/tinygo/lib/picolibc/newlib/libm/math/sf_sqrt.c:0)
>>> sf_sqrt.c.o:(sqrtf) in archive /root/.cache/tinygo/picolibc-thumbv7em-unknown-unknown-eabi-cortex-m4/lib.a
>>> did you mean: __math_invalid
>>> defined in: /root/.cache/tinygo/picolibc-thumbv7em-unknown-unknown-eabi-cortex-m4/lib.a(math_err_invalid)
failed to run tool: ld.lld
error: failed to link /tmp/tinygo2142027620/main: exit status 1
/usr/local/bin/tinygo flash -size short -stack-size 8kb -tags wazero -target nicenano -monitor .: exit status 1
btw i tried to do use only tinygo and wazero and get the same results
$ tinygo version
tinygo version 0.31.2 linux/amd64 (using go version go1.22.2 and LLVM version 17.0.1)