tinygo icon indicating copy to clipboard operation
tinygo copied to clipboard

Warnings are printed when running tinygo run or tinygo build on Windows

Open sago35 opened this issue 3 years ago • 4 comments
trafficstars

$ tinygo run ./src/examples/serial
ld.lld: warning: duplicate /export option: hypot
ld.lld: warning: duplicate /export option: nextafter
hello world!
hello world!
hello world!
hello world!

$ tinygo version
tinygo version 0.24.0-dev-8754f64f windows/amd64 (using go version go1.18.1 and LLVM version 14.0.0)

The same message is displayed in CI.

https://github.com/tinygo-org/tinygo/runs/6846276428?check_suite_focus=true#step:18:493

 GOOS=windows GOARCH=amd64 D:/a/tinygo/tinygo/build/tinygo build -size short -o test.exe   ./testdata/cgo
ld.lld: warning: duplicate /export option: hypot
ld.lld: warning: duplicate /export option: nextafter
   code    data     bss |   flash     ram
  21663     512       0 |   22175     512

sago35 avatar Jun 13 '22 12:06 sago35

Yes, I'm aware of those. Those flags aren't actually passed to the linker but these symbols are part of mingw-w64 (and are duplicated there).

aykevl avatar Jun 16 '22 12:06 aykevl

FYI: https://sourceforge.net/p/mingw-w64/mingw-w64/merge-requests/20/

dulanov avatar Jul 19 '22 20:07 dulanov

This is fixed upstream: https://github.com/mingw-w64/mingw-w64/commit/8526cb618269440a94810b94b77f8bd48c5c3396 We could update now, or wait until the next mingw-w64 release. I think it's fine to wait, the message is annoying but harmless.

aykevl avatar Aug 28 '22 16:08 aykevl

I think it's fine to wait, the message is annoying but harmless.

Agreed, let's do nothing here. :smiley_cat:

deadprogram avatar Sep 11 '22 17:09 deadprogram