<p dir="auto">by <strong>xuxinhua1984</strong>:</p>
<pre class="notranslate">The code is:(test.go)
package main
import "fmt"
func main() {
    fmt.Println("Hello, World")
}

Then, I build it: go build test.go. It is OK.

But when I delete $GOROOT/src/pkg/fmt directory, then build test.go, it failed:
cannot find package "fmt" in any of:
    /usr/local/go/src/pkg/fmt (from $GOROOT)

However, I can build it by 6g and link it by 6l:
   go tool 6g test.go
   go tool 6l test.6
this will generate 6.out

Why "go build" depends on $GOROOT/src/pkg ?</pre>
<p dir="auto">by <strong>dpsplunk</strong>:</p>
<pre class="notranslate">See <a href="http://tip.golang.org/pkg/syscall/" rel="nofollow">http://tip.golang.org/pkg/syscall/</a> and search in page for EPOLLET

Compare value against /usr/include/sys/epoll.h on Linux (or possibly
/usr/include/x86_64-linux-gnu/sys/epoll.h if on Ubuntu 12.04)

Go version has a negative value; whereas, Linux version is positive.

Value is positive on Linux Ubuntu 10.04 LTS and Ubuntu 12.04 LTS.</pre>