https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: app-admin/vault-1.8.1 fails to compile. Discovered on: amd64 (internal ref: ci) NOTE: This machine uses GCC-11: https://gcc.gnu.org/gcc-11/porting_to.html If you think this is a GCC-11 related issue, please block bug 732706.
Created attachment 735941 [details] build.log build log and emerge --info
Possible context of error(s): --> linux/amd64 error: exit status 2
Everything works here with go version go1.16.7 linux/amd64 But is fails with go version go1.17 linux/amd64 : 1 errors occurred: --> linux/amd64 error: exit status 2 Stderr: # github.com/hashicorp/vault github.com/sethvargo/go-limiter/memorystore.(*store).purge: relocation target runtime.walltime not defined github.com/sethvargo/go-limiter/memorystore.newBucket: relocation target runtime.walltime not defined github.com/sethvargo/go-limiter/memorystore.(*bucket).take: relocation target runtime.walltime not defined make: *** [Makefile:37: dev] Error 1 Same gcc version on both tests : $ cc --version cc (Gentoo 10.3.0-r2 p3) 10.3.0
It appears this is the culprit: https://discuss.hashicorp.com/t/basic-build-error/28526 Apparently bumping go-limiter to 0.7.0 should fix this. I tries to do this locally, but one needs to take care of other mods depending on go-limiter 0.3.0 as well...
Upstream has bumped the faulty lib in this PR : https://github.com/hashicorp/vault/pull/12358
Dupe of bug 808791 (which has a patch attached).
*** This bug has been marked as a duplicate of bug 808791 ***
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7fa16bc47f1c8d140656cfa0492e989da5c1bf67 commit 7fa16bc47f1c8d140656cfa0492e989da5c1bf67 Author: Austin English <austin.m.english@sony.com> AuthorDate: 2021-09-16 16:45:05 +0000 Commit: William Hubbs <williamh@gentoo.org> CommitDate: 2021-09-16 22:07:48 +0000 app-admin/vault: fix build with newer golang Closes: https://bugs.gentoo.org/808791 Closes: https://bugs.gentoo.org/810317 Signed-off-by: Austin English <austin.m.english@sony.com> Signed-off-by: William Hubbs <williamh@gentoo.org> app-admin/vault/Manifest | 4 +- app-admin/vault/files/vault-1.8.2-go-limiter.patch | 264 +++++++++++++++++++++ app-admin/vault/vault-1.8.2.ebuild | 6 +- 3 files changed, 270 insertions(+), 4 deletions(-)