go: cmd/vet/internal/cfg: Failed: exit status 1

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

go version devel +d6cada7fa4 Tue Aug 15 23:29:17 2017 +0000 linux/amd64

What operating system and processor architecture are you using (go env)?

GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/paul"
GORACE=""
GOROOT="/home/paul/go"
GOTOOLDIR="/home/paul/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build041317988=/tmp/go-build -gno-record-gcc-switches"
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"

What did you do?

./all.bash

What did you expect to see?

Go compile from source

What did you see instead?

ok 	cmd/vet/internal/cfg	0.008s
2017/08/15 17:34:32 Failed: exit status 1

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 15 (4 by maintainers)

Most upvoted comments

I have this issue too. I’ve been doing “git pull” followed by all.bash for months and until recently it worked fine. I moved the non working build (after doing clean.bash) to go.save and re-cloned (which builds fine). The difference between a new clone and the non working version (other than a bunch of .git files) is:

Only in go.save: bin Only in go.save: pkg Only in go.save/src/cmd/cgo: zdefaultcc.go Only in go.save/src/cmd/internal/obj: zbootstrap.go Only in go.save/src/cmd/internal/objabi: zbootstrap.go Only in go.save: VERSION.cache

[go.save]$ ls bin gen pprof [go.save]$ ls pkg/ bootstrap linux_amd64 linux_amd64_race obj include linux_amd64_5577006791947779410_dynlink linux_amd64_shared tool

I manually removed the bin and pkg directories and the three .go files and it builds fine. Pretty obvious that “clean.bash” isn’t cleaning up something it needs to.

Returning to version d6cada7fa4 brings back the error.