What steps will reproduce the problem?
go test -race -short std
What is the expected output?
no WARINING messages
What do you see instead?
Please use labels and text to provide additional information.
I think I've run into this before on Linux, but I don't remember exactly what caused it.
I vaguely remember that there was something wrong with the way the test was being run,
and there wasn't actually a race. Might be worth a quick look through the test code.
It's not a data race, it's a compilation failure. The error reporting could be improved.
From your log:
=== RUN TestNoRaceCgoSync
cgo_test_main.go:7:21: fatal error: pthread.h: No such file or directory