hi guys:
I come across fatal error when execute
go get golang.org/x/net/http2 on mac osx 10.10.5 with go 1.5.1 installed, error message:
fatal error: runtime: bsdthread_register error (unset DYLD_INSERT_LIBRARIES)
runtime stack:
runtime.throw(0x4641c0, 0x3f)
/usr/local/Cellar/go/1.5.1/libexec/src/runtime/panic.go:527 +0x90 fp=0x7fff5fbfe3f0 sp=0x7fff5fbfe3d8
runtime.goenvs()
/usr/local/Cellar/go/1.5.1/libexec/src/runtime/os1_darwin.go:71 +0x74 fp=0x7fff5fbfe418 sp=0x7fff5fbfe3f0
runtime.schedinit()
/usr/local/Cellar/go/1.5.1/libexec/src/runtime/proc1.go:60 +0x83 fp=0x7fff5fbfe460 sp=0x7fff5fbfe418
runtime.rt0_go(0x7fff5fbfe498, 0x1d, 0x7fff5fbfe498, 0x0, 0x0, 0x1d, 0x7fff5fbfe788, 0x7fff5fbfe7c0, 0x7fff5fbfe7c3, 0x7fff5fbfe81f, ...)
/usr/local/Cellar/go/1.5.1/libexec/src/runtime/asm_amd64.s:109 +0x132 fp=0x7fff5fbfe468 sp=0x7fff5fbfe460
$ go version
go version go1.5.1 darwin/amd64
$ go env
GOARCH="amd64"
GOBIN="/Users/Neo/go_projects/bin"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/Neo/go_projects"
GORACE=""
GOROOT="/usr/local/opt/go/libexec"
GOTOOLDIR="/usr/local/opt/go/libexec/pkg/tool/darwin_amd64"
GO15VENDOREXPERIMENT=""
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fno-common"
CXX="clang++"
CGO_ENABLED="1"
$ xcodebuild -version
Xcode 7.0
Build version 7A220
the same error also occured when execute
go get golang.org/x/tools/imports, I can not figure out why it happened and how to resolve it