constabulary/gb

gb installation fail.

Opened this issue · 8 comments

I am trying to install gb on Ubuntu-16.04,64-bit. The installation fails with error message as too many errors. What am I missing?


champ@champ:~/horizon$ go version
go version go1.7.5 linux/amd64
champ@champ:~/horizon$ go get github.com/constabulary/gb/...
# runtime
/usr/local/go/src/runtime/lfstack_amd64.go:16: lfstackPack redeclared in this block
	previous declaration at /usr/local/go/src/runtime/lfstack_64bit.go:37
/usr/local/go/src/runtime/lfstack_amd64.go:20: lfstackUnpack redeclared in this block
	previous declaration at /usr/local/go/src/runtime/lfstack_64bit.go:41
/usr/local/go/src/runtime/os_linux.go:27: _FUTEX_WAIT redeclared in this block
	previous declaration at /usr/local/go/src/runtime/os1_linux.go:22
/usr/local/go/src/runtime/os_linux.go:28: _FUTEX_WAKE redeclared in this block
	previous declaration at /usr/local/go/src/runtime/os1_linux.go:23
/usr/local/go/src/runtime/os_linux.go:36: futexsleep redeclared in this block
	previous declaration at /usr/local/go/src/runtime/os1_linux.go:31
/usr/local/go/src/runtime/os_linux.go:67: futexwakeup redeclared in this block
	previous declaration at /usr/local/go/src/runtime/os1_linux.go:62
/usr/local/go/src/runtime/os_linux.go:83: getproccount redeclared in this block
	previous declaration at /usr/local/go/src/runtime/os1_linux.go:78
/usr/local/go/src/runtime/os_linux.go:109: _CLONE_VM redeclared in this block
	previous declaration at /usr/local/go/src/runtime/os1_linux.go:104
/usr/local/go/src/runtime/os_linux.go:110: _CLONE_FS redeclared in this block
	previous declaration at /usr/local/go/src/runtime/os1_linux.go:105
/usr/local/go/src/runtime/os_linux.go:111: _CLONE_FILES redeclared in this block
	previous declaration at /usr/local/go/src/runtime/os1_linux.go:106
/usr/local/go/src/runtime/os_linux.go:111: too many errors

Well, I have only go installation; built from source. And, this is what I have from go env. Any ideas?


champ@champ:~$ go env
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/champ/wrkspc-go"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build692762371=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1"
champ@champ:~$ go get github.com/constabulary/gb/...
# runtime
/usr/local/go/src/runtime/lfstack_amd64.go:16: lfstackPack redeclared in this block
	previous declaration at /usr/local/go/src/runtime/lfstack_64bit.go:37
/usr/local/go/src/runtime/lfstack_amd64.go:20: lfstackUnpack redeclared in this block
	previous declaration at /usr/local/go/src/runtime/lfstack_64bit.go:41
/usr/local/go/src/runtime/os_linux.go:27: _FUTEX_WAIT redeclared in this block
	previous declaration at /usr/local/go/src/runtime/os1_linux.go:22
/usr/local/go/src/runtime/os_linux.go:28: _FUTEX_WAKE redeclared in this block
	previous declaration at /usr/local/go/src/runtime/os1_linux.go:23
/usr/local/go/src/runtime/os_linux.go:36: futexsleep redeclared in this block
	previous declaration at /usr/local/go/src/runtime/os1_linux.go:31
/usr/local/go/src/runtime/os_linux.go:67: futexwakeup redeclared in this block
	previous declaration at /usr/local/go/src/runtime/os1_linux.go:62
/usr/local/go/src/runtime/os_linux.go:83: getproccount redeclared in this block
	previous declaration at /usr/local/go/src/runtime/os1_linux.go:78
/usr/local/go/src/runtime/os_linux.go:109: _CLONE_VM redeclared in this block
	previous declaration at /usr/local/go/src/runtime/os1_linux.go:104
/usr/local/go/src/runtime/os_linux.go:110: _CLONE_FS redeclared in this block
	previous declaration at /usr/local/go/src/runtime/os1_linux.go:105
/usr/local/go/src/runtime/os_linux.go:111: _CLONE_FILES redeclared in this block
	previous declaration at /usr/local/go/src/runtime/os1_linux.go:106
/usr/local/go/src/runtime/os_linux.go:111: too many errors

Correction: I downloaded a binary from here and then set the GOROOT to /usr/local/go after I unpacked the .tar.gz. And, I don't see a go version in $PATH .

Let me try this on a fresh VM and see how it goes. Please close this thread for now.

Ok. I nuked the /usr/local/go folder and unpacked the .tar.gz file. Then, I ran the command go get github.com/constabulary/gb/... to install gb. No errors this time!

When I run gb from command line, I get a message as "program not currently installed." Apparently, it is not a system-wide installation; it gets installed under GOPATH.

I have been instructed to run gb vendor restore. It results in a FATAL error message as 'unknown command "vendor"'. There is a gb-vendor command too; but, running it returns a error message as 'it is meant to be run as gb vendor ...'.

So, how am I supposed to run the restore to install dependencies followed by a build?

PS: Should I open a new question for this?