Mock Version: 3.0 Mock Version: 3.0 Mock Version: 3.0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/mongo-tools.spec'], chrootPath='/var/lib/mock/module-mongodb-3.6-8050020220618055723-f62ff348-build-7675-1150/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/mongo-tools.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False warning: Macro expanded in comment on line 58: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang} Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/mongo-tools-3.6.6-1.module+oc8.5.0+64+0bd21ab3.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/mongo-tools.spec'], chrootPath='/var/lib/mock/module-mongodb-3.6-8050020220618055723-f62ff348-build-7675-1150/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/mongo-tools.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False warning: Macro expanded in comment on line 58: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang} Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.AdNRNC + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf mongo-tools-bd441aa9f15a804220bb2f69835d627df90e7e30 + /usr/bin/gzip -dc /builddir/build/SOURCES/mongo-tools-bd441aa.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd mongo-tools-bd441aa9f15a804220bb2f69835d627df90e7e30 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . Patch #1 (mongodb-tools-fixparam.patch): + echo 'Patch #1 (mongodb-tools-fixparam.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file mongorestore/filepath.go + sed -i.bak -e s/built-without-version-string/3.6.6/ -e s/built-without-git-spec/bd441aa/ common/options/options.go + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.wRS5ZD + umask 022 + cd /builddir/build/BUILD + cd mongo-tools-bd441aa9f15a804220bb2f69835d627df90e7e30 + mkdir -p src/github.com/mongodb + ln -s ../../../ src/github.com/mongodb/mongo-tools ++ pwd ++ pwd + export GOPATH=/builddir/build/BUILD/mongo-tools-bd441aa9f15a804220bb2f69835d627df90e7e30:/builddir/build/BUILD/mongo-tools-bd441aa9f15a804220bb2f69835d627df90e7e30/vendor:/usr/share/gocode + GOPATH=/builddir/build/BUILD/mongo-tools-bd441aa9f15a804220bb2f69835d627df90e7e30:/builddir/build/BUILD/mongo-tools-bd441aa9f15a804220bb2f69835d627df90e7e30/vendor:/usr/share/gocode + mkdir bin + binaries=(bsondump mongostat mongofiles mongoexport mongoimport mongorestore mongodump mongotop) + for bin in "${binaries[@]}" ++ head -c20 /dev/urandom ++ od -An -tx1 ++ tr -d ' \n' + go build -buildmode pie -compiler gc -tags=rpm_crashtraceback -ldflags ' -B 0xec21dd5372141f28f715508d185d38fa9ccd7027 -extldflags '\''-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld'\''' -a -v -x -o bin/bsondump -tags ssl bsondump/main/bsondump.go WORK=/tmp/go-build1207360226 bsondump/main/bsondump.go:11:2: no required module provides package github.com/mongodb/mongo-tools/bsondump: go.mod file not found in current directory or any parent directory; see 'go help modules' bsondump/main/bsondump.go:12:2: no required module provides package github.com/mongodb/mongo-tools/common/db: go.mod file not found in current directory or any parent directory; see 'go help modules' bsondump/main/bsondump.go:13:2: no required module provides package github.com/mongodb/mongo-tools/common/log: go.mod file not found in current directory or any parent directory; see 'go help modules' bsondump/main/bsondump.go:14:2: no required module provides package github.com/mongodb/mongo-tools/common/options: go.mod file not found in current directory or any parent directory; see 'go help modules' bsondump/main/bsondump.go:15:2: no required module provides package github.com/mongodb/mongo-tools/common/signals: go.mod file not found in current directory or any parent directory; see 'go help modules' bsondump/main/bsondump.go:16:2: no required module provides package github.com/mongodb/mongo-tools/common/util: go.mod file not found in current directory or any parent directory; see 'go help modules' error: Bad exit status from /var/tmp/rpm-tmp.wRS5ZD (%build) Macro expanded in comment on line 58: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang} Bad exit status from /var/tmp/rpm-tmp.wRS5ZD (%build) RPM build errors: Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 598, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/mongo-tools.spec