Hi @fuero
I had the same issue as @Veras (even with devtools
installed), which was resolved by running go get
6 times on various dependency urls.
Here's an image of the error: https://i.imgur.com/Fc26fr7.png
Or a pastebin if you'd prefer: https://pastebin.com/KtczQaBW
The dependency urls I needed to build were:
github.com/davecgh/go-spew/spew
github.com/fatih/color
github.com/golang-collections/collections/stack
github.com/jesseduffield/gocui
github.com/tcnksm/go-gitconfig
gopkg.in/src-d/go-git.v4
I could reproduce this on my machine by deleting the build files from my cache and building fresh.
My solution would be to pull these dependencies in during the build but since I'm not super familiar with go I'm not entirely sure how to do it.
Pinned Comments
fuero commented on 2018-08-11 17:22 (UTC) (edited on 2018-08-11 19:46 (UTC) by fuero)
edit: pinned. Comment on what to provide for help added.
What you guys experience is that your build environment is "tainted" by whatever packages exist on your system. I've had similar problems in the past with other packages :-(. With this particular package though, I can build it fine with and without chroot.
That's why pretty much all the distros build their packages in sane build environments.
As it's tough to figure out what plagues your systems, my recommendation stands - stick to chroot builds. I know it's a bother, but sadly that's the only help I can give you.
If it still doesn't work, please install
devtools
and provide a complete log of your build attempt withextra-x86_64-build -c 2>&1 | tee build.log
Upload it to a pastebin service and post the link.