Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 679438 - app-admin/mongo-tools-4.0.6 : go: cannot find GOROOT directory: /usr/lib64/go
Summary: app-admin/mongo-tools-4.0.6 : go: cannot find GOROOT directory: /usr/lib64/go
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Ultrabug
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-04 18:36 UTC by Toralf Förster
Modified: 2019-03-07 04:18 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,16.34 KB, text/plain)
2019-03-04 18:36 UTC, Toralf Förster
Details
app-admin:mongo-tools-4.0.6:20190304-183318.log (app-admin:mongo-tools-4.0.6:20190304-183318.log,2.05 KB, text/plain)
2019-03-04 18:36 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,152.59 KB, text/plain)
2019-03-04 18:36 UTC, Toralf Förster
Details
environment (environment,19.95 KB, text/plain)
2019-03-04 18:36 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,11.94 KB, application/x-bzip)
2019-03-04 18:36 UTC, Toralf Förster
Details
out.txt (out.txt,721.70 KB, text/plain)
2019-03-06 17:30 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2019-03-04 18:36:05 UTC
>>> 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"
Comment 1 Toralf Förster gentoo-dev 2019-03-04 18:36:08 UTC
Created attachment 567788 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2019-03-04 18:36:11 UTC
Created attachment 567790 [details]
app-admin:mongo-tools-4.0.6:20190304-183318.log
Comment 3 Toralf Förster gentoo-dev 2019-03-04 18:36:14 UTC
Created attachment 567792 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2019-03-04 18:36:16 UTC
Created attachment 567794 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2019-03-04 18:36:19 UTC
Created attachment 567796 [details]
etc.portage.tbz2
Comment 6 Tomáš Mózes 2019-03-06 08:14:33 UTC
Please post your $(equery files dev-lang/go). Do you override GOROOT?
Comment 7 Toralf Förster gentoo-dev 2019-03-06 17:30:20 UTC
Created attachment 568006 [details]
out.txt
Comment 8 Toralf Förster gentoo-dev 2019-03-06 17:30:39 UTC
(In reply to Tomáš Mózes from comment #6)
>  Do you override GOROOT?
no
Comment 9 Toralf Förster gentoo-dev 2019-03-06 17:31:33 UTC
(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
Comment 10 Tomáš Mózes 2019-03-06 18:11:06 UTC
(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?
Comment 11 Tomáš Mózes 2019-03-06 18:14:27 UTC
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?
Comment 12 Toralf Förster gentoo-dev 2019-03-06 18:37:57 UTC
(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
Comment 13 Jura 2019-03-06 23:40:51 UTC
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