-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Closed
Labels
Description
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (go version)?
go version go1.8 linux/amd64
What operating system and processor architecture are you using (go env)?
Debian 8 Jessie AMD64.
GOARCH="amd64"
GOBIN="/home/jjacobs/go/bin"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/jjacobs/go"
GORACE=""
GOROOT="/home/jjacobs/go/toolchain/current"
GOTOOLDIR="/home/jjacobs/go/toolchain/current/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build292127142=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1"
PKG_CONFIG="pkg-config"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
What did you do?
Try to compile the most simple go program:
package main
func main() {
}
What did you expect to see?
No errors during compilation
What did you see instead?
Redeclaration errors from stdlib
jjacobs@dev04:~$ go run main.go
# runtime
go/toolchain/current/src/runtime/signal_unix.go:27: _SIG_DFL redeclared in this block
previous declaration at go/toolchain/current/src/runtime/signal1_unix.go:15
go/toolchain/current/src/runtime/signal_unix.go:28: _SIG_IGN redeclared in this block
previous declaration at go/toolchain/current/src/runtime/signal1_unix.go:16
go/toolchain/current/src/runtime/signal_unix.go:37: fwdSig redeclared in this block
previous declaration at go/toolchain/current/src/runtime/signal1_unix.go:25
go/toolchain/current/src/runtime/signal_unix.go:42: disableSigChan redeclared in this block
previous declaration at go/toolchain/current/src/runtime/signal1_unix.go:35
go/toolchain/current/src/runtime/signal_unix.go:43: enableSigChan redeclared in this block
previous declaration at go/toolchain/current/src/runtime/signal1_unix.go:36
go/toolchain/current/src/runtime/signal_unix.go:44: maskUpdatedChan redeclared in this block
previous declaration at go/toolchain/current/src/runtime/signal1_unix.go:37
go/toolchain/current/src/runtime/signal_unix.go:56: signalsOK redeclared in this block
previous declaration at go/toolchain/current/src/runtime/signal1_unix.go:49
go/toolchain/current/src/runtime/signal_unix.go:62: initsig redeclared in this block
previous declaration at go/toolchain/current/src/runtime/signal1_unix.go:55
go/toolchain/current/src/runtime/signal_unix.go:97: sigInstallGoHandler redeclared in this block
previous declaration at go/toolchain/current/src/runtime/signal1_unix.go:90
go/toolchain/current/src/runtime/signal_unix.go:122: sigenable redeclared in this block
previous declaration at go/toolchain/current/src/runtime/signal1_unix.go:115
go/toolchain/current/src/runtime/signal_unix.go:122: too many errors