cmd/link: race detector: doesn't work on OS X with CGO_ENABLED=0 #12844
Labels
Milestone
Comments
The race detector basically can't work with cgo disabled.
|
@minux That is entirely understandable, but we need a better error message. |
CL https://golang.org/cl/15440 mentions this issue. |
Thank for the quick fix. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Following up on https://groups.google.com/forum/#!topic/golang-nuts/7ZKusMdkNz4.
What version of Go are you using (go version)?
go 1.5.1
What operating system and processor architecture are you using?
OS X 10.10.5
What did you do?
Run
go run -race main.go
on any valid go file.What did you expect to see?
A running go binary with the race detector enabled.
What did you see instead?
The following error log:
@ianlancetaylor suggested that I open this issue with the request that either the race detector works with CGO_ENABLED=0, or that it prints a meaningful error message explaining that CGO_ENABLED=1 is required.
The text was updated successfully, but these errors were encountered: