It looks like Go compiler bug (or, more strictly, cgo bug; cgo is a tool that comes with Go compiler and allows direct calling of C functions from Go)
https://github.com/golang/go/issues/43830
The solution could be to build without LTO. In general, LTO should not make a lot of sense for Go programs.
It looks like Go compiler bug (or, more strictly, cgo bug; cgo is a tool that comes with Go compiler and allows direct calling of C functions from Go)
https:/ /github. com/golang/ go/issues/ 43830
The solution could be to build without LTO. In general, LTO should not make a lot of sense for Go programs.