On Fri, Nov 19, 2021 at 8:59 AM neilschel...@gmail.com <neilschellenber...@gmail.com> wrote: > > Can anyone comment on whether arm64 race detection plus Cgo (via gcc and > binutils) is known to work or not? > > I'm running in to a bunch of mechanical problems getting a binary linked, let > alone running. Unfortunately, we have unavoidable Cgo dependencies on a h/w > support library. I've gotten to the point where the final link is dying with > some DWARF warnings and with some relocation errors relating to tsan symbols. > > I don't want to pour too much more time into it if it is known to be a > non-starter....
As of Go 1.16 the Go race detector is supposed to work on linux-arm64 and darwin-arm64. This should work with cgo as well. To be clear, this means building Go code (that can use cgo) with "go build -race". Combining the Go race detector with the C race detector (the C compiler -fsanitize=thread option) does not work. Please feel free to report bugs at https://golang.org/issue with a description of how we can reproduce the problem. Thanks. Ian -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAOyqgcUXNbB4ss_0AxTdzWEUv0XiTAK8zXXAxoTvP2iEv%2B87Vg%40mail.gmail.com.