Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error building vault on ppc64le #2400

Closed
vaibhavsood opened this issue Feb 20, 2017 · 7 comments
Closed

Error building vault on ppc64le #2400

vaibhavsood opened this issue Feb 20, 2017 · 7 comments

Comments

@vaibhavsood
Copy link

Hi,

I am building vault as per steps here: https://github.com/hashicorp/vault#developing-vault

make fails for me with this error:

[root@pts00433-vm27 vault]# make
go generate
==> Removing old directory...
==> Building...
Number of parallel builds: 3

--> linux/ppc64le: github.com/hashicorp/vault

1 errors occurred:
--> linux/ppc64le error: exit status 2
Stderr: # github.com/hashicorp/vault/vault
vault/mount.go:126: undefined: sort.Slice

make: *** [dev] Error 1

Any help why I could be getting this error?

Thanks!
Vaibhav

Env:

uname -a

Linux pts00433-vm27 3.10.0-327.18.2.el7.ppc64le #1 SMP Fri Apr 8 05:10:45 EDT 2016 ppc64le ppc64le ppc64le GNU/Linux

go version

go version go1.7.5 linux/ppc64le

go env

GOARCH="ppc64le"
GOBIN=""
GOEXE=""
GOHOSTARCH="ppc64le"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/usr/local/go/gopath"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/linux_ppc64le"
CC="gcc"
GOGCCFLAGS="-fPIC -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build300707509=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1"

@jefferai
Copy link
Member

Nope. Try a git pull?

@AdallomRoy
Copy link

sort.Slice was only added in Go 1.8 (see here: golang/go@22a2bdf), therefor, terraform only compiles with Go 1.8+ (unlike the documented 1.7+)

@jefferai
Copy link
Member

jefferai commented Mar 7, 2017

@AdallomRoy this is a Vault issue tracker, not a Terraform issue tracker.

@AdallomRoy
Copy link

Sorry, but it's the same issue anyway :) sort.Slice was introduced only in Go 1.8

@jefferai
Copy link
Member

jefferai commented Mar 7, 2017

Right, but Vault documents that Go 1.8 is required. I don't know what Terraform documents as being required.

@AdallomRoy
Copy link

Yes, and again, sorry about that. Your documentation is correct and contains 1.8 as the minimum required while @vaibhavsood used 1.7.5

@jefferai
Copy link
Member

jefferai commented Mar 7, 2017

Definitely sounds like the OP's problem. Thanks @AdallomRoy !

@jefferai jefferai closed this as completed Mar 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants