my os is ubuntu18.04.
my go compiler is gccgo.
GOROOT is /usr/local/go
it is report as:
package testmain
imports runtime/race: cannot find package "runtime/race" in any of:
/usr/local/go/src/runtime/race (from $GOROOT)
/home/lzx/tiny_distributed_system/src/runtime/race (from $GOPATH)
Asked
Active
Viewed 259 times
0

lizhengxian
- 69
- 12
-
Show us tree. of your working directory. – Richard Rublev May 11 '19 at 05:17
-
`gccgo` doesn’t support the race detector. – JimB May 11 '19 at 12:00
-
So how to change gccgo , I just use initial golang @JimB – lizhengxian May 11 '19 at 12:52
-
I'm not sure what you mean. Just install Go normally: https://golang.org/doc/install – JimB May 11 '19 at 12:56
-
thank you. Maybe i initially install go with gccgo.Now it works – lizhengxian May 11 '19 at 13:27