>>> Compiling source in /var/tmp/portage/app-admin/mongo-tools-4.0.6/work/src/github.com/mongodb/mongo-tools ... Building bsondump go: cannot find GOROOT directory: /usr/lib64/go * ERROR: app-admin/mongo-tools-4.0.6::gentoo failed (compile phase): * (no error message) * ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1-developer_20190301-052221 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-7.3.1 [2] x86_64-pc-linux-gnu-8.3.0 * Available Python interpreters, in order of preference: [1] python3.7 [2] python3.6 [3] python2.7 (fallback) [4] pypy (fallback) [5] jython2.7 (fallback) Available Ruby profiles: [1] ruby24 (with Rubygems) * [2] ruby25 (with Rubygems) [3] ruby26 (with Rubygems) Available Rust versions: [1] rust-1.32.0 * java-config: The following VMs are available for generation-2: *) IcedTea JDK 3.10.0 [icedtea-bin-8] Available Java Virtual Machines: [1] icedtea-bin-8 system-vm emerge -qpvO app-admin/mongo-tools [ebuild N ] app-admin/mongo-tools-4.0.6 USE="ssl -sasl"
Created attachment 567788 [details] emerge-info.txt
Created attachment 567790 [details] app-admin:mongo-tools-4.0.6:20190304-183318.log
Created attachment 567792 [details] emerge-history.txt
Created attachment 567794 [details] environment
Created attachment 567796 [details] etc.portage.tbz2
Please post your $(equery files dev-lang/go). Do you override GOROOT?
Created attachment 568006 [details] out.txt
(In reply to Tomáš Mózes from comment #6) > Do you override GOROOT? no
(In reply to Toralf Förster from comment #8) > (In reply to Tomáš Mózes from comment #6) > > Do you override GOROOT? > no but FWIW: https://github.com/toralf/tinderbox/blob/master/bin/job.sh#L1361
(In reply to Toralf Förster from comment #9) > (In reply to Toralf Förster from comment #8) > > (In reply to Tomáš Mózes from comment #6) > > > Do you override GOROOT? > > no > > but FWIW: https://github.com/toralf/tinderbox/blob/master/bin/job.sh#L1361 Why do you think it's XDG related?
Seems like you have go in /usr/lib/go, so that's fine. But your profile is 17.1 so probably you don't have a symlink from /usr/lib64 to /usr/lib? It seems to me get_libdir returns lib64, but go isn't actually there, right?
(In reply to Tomáš Mózes from comment #11) > Seems like you have go in /usr/lib/go, so that's fine. But your profile is > 17.1 so probably you don't have a symlink from /usr/lib64 to /usr/lib? > > It seems to me get_libdir returns lib64, but go isn't actually there, right? mr-fox ~ # ls -ld /usr/lib* drwxr-xr-x 1 root root 1734 Mar 6 03:27 /usr/lib drwxr-xr-x 1 root root 183786 Mar 6 07:13 /usr/lib64 drwxr-xr-x 1 root root 3300 Mar 6 02:55 /usr/libexec
diff --git a/app-admin/mongo-tools/mongo-tools-4.0.6.ebuild b/app-admin/mongo-tools/mongo-tools-4.0.6.ebuild index 9a10e5de211..6e88c14a1c0 100644 --- a/app-admin/mongo-tools/mongo-tools-4.0.6.ebuild +++ b/app-admin/mongo-tools/mongo-tools-4.0.6.ebuild @@ -54,7 +54,7 @@ src_compile() { mkdir -p bin || die for i in bsondump mongostat mongofiles mongoexport mongoimport mongorestore mongodump mongotop mongoreplay; do echo "Building $i" - GOROOT="${PREFIX}/usr/$(get_libdir)/go" GOPATH="${WORKDIR}" go build -buildmode="${buildmode}" -o "bin/$i" \ + GOROOT="${PREFIX}/usr/lib/go" GOPATH="${WORKDIR}" go build -buildmode="${buildmode}" -o "bin/$i" \ -ldflags "-X ${EGO_PN}/common/options.VersionStr=${PV}" --tags "${myconf[*]}" "$i/main/$i.go" || die done } this fix problem for me
https://github.com/gentoo/gentoo/commit/c197f79646d7c015f872af6139d7b08af514c0be