Vault/v1.11.1/x86_64 make failure - error - fatal - unknown date format

Hi

Vault newbie here…trying to build local vault in an x86_64 environment. Consul build for the same environment proceeds despite these errors but fail in some other error as outlined below after vault errors.

Any help is greatly appreciated.

Thanks
SR

vault: v1.11.1
git clone GitHub - hashicorp/vault: A tool for secrets management, encryption as a service, and privileged access management

bash-4.2$ make bootstrap
Installing/Updating golang.org/x/tools/cmd/goimports
go generate -tags tools tools/tools.go
go: downloading golang.org/x/tools v0.1.5
go: downloading GitHub - favadi/protoc-go-inject-tag: Inject custom tags to protobuf golang struct v1.3.0
go: downloading protoc-gen-go-grpc command - google.golang.org/grpc/cmd/protoc-gen-go-grpc - Go Packages v1.1.0
go: downloading protobuf module - google.golang.org/protobuf - Go Packages v1.28.0
go: downloading mvdan.cc/gofumpt v0.1.1
go: downloading GitHub - client9/misspell: Correct commonly misspelled English words in source files v0.3.4
go: downloading grpc package - google.golang.org/grpc - Go Packages v1.47.0
go: downloading GitHub - google/go-cmp: Package for comparing Go values in tests v0.5.8
go: downloading golang.org/x/mod v0.4.2
go: downloading golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a
go: downloading golang.org/x/xerrors v0.0.0-20220517211312-f3a8303e98df

bash-4.2$ make
==> Checking that build is using go version >= 1.17.12…
==> Using go version 1.17.12…
fatal: unknown date format format:%Y-%m-%dT%H:%M:%SZ
make: *** [dev] Error 128
bash-4.2$
bash-4.2$
bash-4.2$ uname -a
Linux xxx-xxx-534 3.10.0-1160.31.1.el7.x86_64 #1 SMP Wed May 26 20:18:08 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
bash-4.2$

Consul error>>>>>
go: downloading github.com/Azure/go-autorest/autorest/validation v0.3.0

github.com/hashicorp/consul/agent/consul/state

agent/consul/state/catalog_schema.go:271:28: internal compiler error: assertion failed

Please file a bug report including a short program that triggers the error.

make: *** [dev-build] Error 2

This is a golang issue, I would find a community that does golang. This is more of an application community. Although someone might have an idea.

The only advice I can provide is, from what I have heard, the version of the go binary you use is very important so check the minimum requirements of the version of go that is needed to compile the version of Vault and Consul you want to build.

This is a community about Vault… I don’t see any problem with asking about problems building Vault here.

That said, @SRI1 , could you improve the formatting of your post, so its not all messed up by parts being interpreted as formatting markup? It makes it difficult to read. Use ``` sections to enclose console text.

Your errors are most likely because you are using RHEL7, a very ancient OS, and the build expects newer development tools.

It looks like this is coming from build_date.sh:

# it's tricky to do an RFC3339 format in a cross platform way, so we hardcode UTC
DATE_FORMAT="%Y-%m-%dT%H:%M:%SZ"

# we're using this for build date because it's stable across platform builds
git show --no-show-signature -s --format=%cd --date=format:"$DATE_FORMAT" HEAD

So presumably updating to a newer git should help.

Hi all

Thank you very much for your time and replies. Will try out newer Git and newer OS environment.

Will post using better format in future posts.

Thanks
SR