go: cmd/compile: internal compiler error: no function definition for [0xc42181a5a0]
What version of Go are you using (go version
)?
go version go1.10rc1 linux/amd64
Does this issue reproduce with the latest release?
This affects the release candidate.
What operating system and processor architecture are you using (go env
)?
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/tduberstein/.cache/go-build"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/tduberstein/local/go"
GORACE=""
GOROOT="/home/tduberstein/local/go1.10"
GOTMPDIR=""
GOTOOLDIR="/home/tduberstein/local/go1.10/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build297022879=/tmp/go-build -gno-record-gcc-switches"
What did you do?
go get -d github.com/cockroachdb/cockroach
cd $(go env GOPATH)/src/github.com/cockroachdb/cockroach
make build PKG=./pkg/sql/pgwire
What did you expect to see?
Tests run.
What did you see instead?
# github.com/cockroachdb/cockroach/pkg/sql/pgwire_test
pkg/sql/pgwire/pgwire_test.go:317:45: internal compiler error: no function definition for [0xc424862960] FUNC-method(*pgwire.Server) func() []context.CancelFunc
Please file a bug report including a short program that triggers the error.
https://golang.org/issue/new
FAIL github.com/cockroachdb/cockroach/pkg/sql/pgwire [build failed]
make: *** [Makefile:773: test] Error 2
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 24 (20 by maintainers)
Commits related to this issue
- overlord/ifacestate: workaround broken go vet in go 1.10 Workaround go vet 'internal compiler error' when methods are defined in test files and cross package imports are used. The original ticket is:... — committed to bboozzoo/snapd by bboozzoo 6 years ago
- overlord/devicestate: workaround broken go vet in go 1.10 Workaround go vet 'internal compiler error' when methods are defined in test files and cross package imports are used. The original ticket is... — committed to bboozzoo/snapd by bboozzoo 6 years ago
- overlord/ifacestate: workaround broken go vet in go 1.10 Workaround go vet 'internal compiler error' when methods are defined in test files and cross package imports are used. The original ticket is:... — committed to mvo5/snappy by bboozzoo 6 years ago
- overlord/devicestate: workaround broken go vet in go 1.10 Workaround go vet 'internal compiler error' when methods are defined in test files and cross package imports are used. The original ticket is... — committed to mvo5/snappy by bboozzoo 6 years ago
- lint: use 'go vet' instead of 'go tool vet' 'go tool vet' uses out-of-date/incorrect type information, so, since Go 1.10, the Go team recommends using 'go vet' instead. Take them up on their recommen... — committed to benesch/cockroach by benesch 6 years ago
- Merge #24454 #24573 #24577 #24605 #24619 24454: lint: various fixes r=nvanbenschoten a=benesch Fill in a deep, deep linter rabbit hole. In order for #24104 to pass the linter, we need to run `go vet... — committed to cockroachdb/cockroach by deleted user 6 years ago
Should the release notes be updated to mention adding methods in a test file is now “officially” supported?