Mock Version: 2.15 Mock Version: 2.15 Mock Version: 2.15 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/golang-github-prometheus-node-exporter.spec'], chrootPath='/var/lib/mock/f40-build-737242-106781/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=604800uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/golang-github-prometheus-node-exporter.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 Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1689811200 Wrote: /builddir/build/SRPMS/golang-github-prometheus-node-exporter-1.5.0-2.fc40.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/golang-github-prometheus-node-exporter.spec'], chrootPath='/var/lib/mock/f40-build-737242-106781/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=604800uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/golang-github-prometheus-node-exporter.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 Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1689811200 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Z6N4QM + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf node_exporter-1.5.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/node_exporter-1.5.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd node_exporter-1.5.0 + rm -rf /builddir/build/BUILD/node_exporter-1.5.0-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/node_exporter-1.5.0-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + rm -fr /builddir/build/BUILD/node_exporter-1.5.0/vendor + [[ ! -e /builddir/build/BUILD/node_exporter-1.5.0/_build/bin ]] + install -m 0755 -vd /builddir/build/BUILD/node_exporter-1.5.0/_build/bin install: creating directory '/builddir/build/BUILD/node_exporter-1.5.0/_build' install: creating directory '/builddir/build/BUILD/node_exporter-1.5.0/_build/bin' + export GOPATH=/builddir/build/BUILD/node_exporter-1.5.0/_build:/usr/share/gocode + GOPATH=/builddir/build/BUILD/node_exporter-1.5.0/_build:/usr/share/gocode + [[ ! -e /builddir/build/BUILD/node_exporter-1.5.0/_build/src/github.com/prometheus/node_exporter ]] ++ dirname /builddir/build/BUILD/node_exporter-1.5.0/_build/src/github.com/prometheus/node_exporter + install -m 0755 -vd /builddir/build/BUILD/node_exporter-1.5.0/_build/src/github.com/prometheus install: creating directory '/builddir/build/BUILD/node_exporter-1.5.0/_build/src' install: creating directory '/builddir/build/BUILD/node_exporter-1.5.0/_build/src/github.com' install: creating directory '/builddir/build/BUILD/node_exporter-1.5.0/_build/src/github.com/prometheus' + ln -fs /builddir/build/BUILD/node_exporter-1.5.0 /builddir/build/BUILD/node_exporter-1.5.0/_build/src/github.com/prometheus/node_exporter + cd /builddir/build/BUILD/node_exporter-1.5.0/_build/src/github.com/prometheus/node_exporter Patch #0 (defaults-paths.patch): + echo 'Patch #0 (defaults-paths.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file collector/textfile.go Hunk #1 succeeded at 33 (offset -1 lines). + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.pHBg3o + umask 022 + cd /builddir/build/BUILD + cd node_exporter-1.5.0 + export 'BUILDTAGS=netgo osusergo static_build' + BUILDTAGS='netgo osusergo static_build' ++ date -u -d@1689811200 +%Y%m%d + LDFLAGS='-X github.com/prometheus/common/version.Version=1.5.0 -X github.com/prometheus/common/version.Revision=2.fc40 -X github.com/prometheus/common/version.Branch=tarball -X github.com/prometheus/common/version.BuildDate=20230720' ++ head -c20 /dev/urandom ++ od -An -tx1 ++ tr -d ' \n' + GOPATH=/builddir/build/BUILD/node_exporter-1.5.0/_build:/usr/share/gocode + GO111MODULE=off + go build -buildmode pie -compiler gc '-tags=rpm_crashtraceback netgo osusergo static_build' -ldflags '-X github.com/prometheus/common/version.Version=1.5.0 -X github.com/prometheus/common/version.Revision=2.fc40 -X github.com/prometheus/common/version.Branch=tarball -X github.com/prometheus/common/version.BuildDate=20230720 -X github.com/prometheus/node_exporter/version=1.5.0 -B 0xd119eab9803492bc1230f8f5f8506e4361b9c69a -compressdwarf=false -linkmode=external -extldflags '\''-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes '\''' -a -v -x -o /builddir/build/BUILD/node_exporter-1.5.0/_build/bin/node_exporter github.com/prometheus/node_exporter WORK=/tmp/go-build2824720150 /usr/share/gocode/src/github.com/prometheus/exporter-toolkit/web/landing_page.go:70:13: pattern landing_page.css: no matching files found error: Bad exit status from /var/tmp/rpm-tmp.pHBg3o (%build) Bad exit status from /var/tmp/rpm-tmp.pHBg3o (%build) RPM build errors: Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.9/site-packages/mockbuild/util.py", line 600, 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 riscv64 --nodeps /builddir/build/SPECS/golang-github-prometheus-node-exporter.spec