Mock Version: 5.0 Mock Version: 5.0 Mock Version: 5.0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target riscv64 --nodeps /builddir/build/SPECS/cadvisor.spec'], chrootPath='/var/lib/mock/f39-build-2520970-61728/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=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target riscv64 --nodeps /builddir/build/SPECS/cadvisor.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: %patchN is deprecated (1 usages found), use %patch N (or %patch -P N) Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1709942400 Wrote: /builddir/build/SRPMS/cadvisor-0.45.0-1.fc39.src.rpm RPM build warnings: %patchN is deprecated (1 usages found), use %patch N (or %patch -P N) Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target riscv64 --nodeps /builddir/build/SPECS/cadvisor.spec'], chrootPath='/var/lib/mock/f39-build-2520970-61728/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=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueraiseExc=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target riscv64 --nodeps /builddir/build/SPECS/cadvisor.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: %patchN is deprecated (1 usages found), use %patch N (or %patch -P N) Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1709942400 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.CX181c + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf cadvisor-0.45.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/cadvisor-0.45.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd cadvisor-0.45.0 + rm -rf /builddir/build/BUILD/cadvisor-0.45.0-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/cadvisor-0.45.0-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + rm -fr /builddir/build/BUILD/cadvisor-0.45.0/vendor + [[ ! -e /builddir/build/BUILD/cadvisor-0.45.0/_build/bin ]] + install -m 0755 -vd /builddir/build/BUILD/cadvisor-0.45.0/_build/bin install: creating directory '/builddir/build/BUILD/cadvisor-0.45.0/_build' install: creating directory '/builddir/build/BUILD/cadvisor-0.45.0/_build/bin' + export GOPATH=/builddir/build/BUILD/cadvisor-0.45.0/_build:/usr/share/gocode + GOPATH=/builddir/build/BUILD/cadvisor-0.45.0/_build:/usr/share/gocode + [[ ! -e /builddir/build/BUILD/cadvisor-0.45.0/_build/src/github.com/google/cadvisor ]] ++ dirname /builddir/build/BUILD/cadvisor-0.45.0/_build/src/github.com/google/cadvisor + install -m 0755 -vd /builddir/build/BUILD/cadvisor-0.45.0/_build/src/github.com/google install: creating directory '/builddir/build/BUILD/cadvisor-0.45.0/_build/src' install: creating directory '/builddir/build/BUILD/cadvisor-0.45.0/_build/src/github.com' install: creating directory '/builddir/build/BUILD/cadvisor-0.45.0/_build/src/github.com/google' + ln -fs /builddir/build/BUILD/cadvisor-0.45.0 /builddir/build/BUILD/cadvisor-0.45.0/_build/src/github.com/google/cadvisor + cd /builddir/build/BUILD/cadvisor-0.45.0/_build/src/github.com/google/cadvisor Patch #0 (0001-Use-github.com-influxdata-influxdb1-client-as-influx.patch): + echo 'Patch #0 (0001-Use-github.com-influxdata-influxdb1-client-as-influx.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file cmd/internal/storage/influxdb/influxdb.go patching file cmd/internal/storage/influxdb/influxdb_test.go Hunk #1 succeeded at 31 (offset 2 lines). + RPM_EC=0 ++ jobs -p + exit 0 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.670phI + umask 022 + cd /builddir/build/BUILD + cd cadvisor-0.45.0 + GOPATH=/builddir/build/BUILD/cadvisor-0.45.0/_build:/usr/share/gocode + GO111MODULE=off + golist --imported --package-path github.com/google/cadvisor --template 'golang({{.}})\n' --with-tests --skip-self + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/cadvisor-0.45.0-1.fc39.buildreqs.nosrc.rpm RPM build warnings: %patchN is deprecated (1 usages found), use %patch N (or %patch -P N) Child return code was: 11 Dynamic buildrequires detected Going to install missing buildrequires. See root.log for details. ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target riscv64 --nodeps /builddir/build/SPECS/cadvisor.spec'], chrootPath='/var/lib/mock/f39-build-2520970-61728/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=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueraiseExc=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -br --noclean --target riscv64 --nodeps /builddir/build/SPECS/cadvisor.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: %patchN is deprecated (1 usages found), use %patch N (or %patch -P N) Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1709942400 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.8qcesO + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf cadvisor-0.45.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/cadvisor-0.45.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd cadvisor-0.45.0 + rm -rf /builddir/build/BUILD/cadvisor-0.45.0-SPECPARTS + /usr/bin/mkdir -p /builddir/build/BUILD/cadvisor-0.45.0-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + rm -fr /builddir/build/BUILD/cadvisor-0.45.0/vendor + [[ ! -e /builddir/build/BUILD/cadvisor-0.45.0/_build/bin ]] + install -m 0755 -vd /builddir/build/BUILD/cadvisor-0.45.0/_build/bin install: creating directory '/builddir/build/BUILD/cadvisor-0.45.0/_build' install: creating directory '/builddir/build/BUILD/cadvisor-0.45.0/_build/bin' + export GOPATH=/builddir/build/BUILD/cadvisor-0.45.0/_build:/usr/share/gocode + GOPATH=/builddir/build/BUILD/cadvisor-0.45.0/_build:/usr/share/gocode + [[ ! -e /builddir/build/BUILD/cadvisor-0.45.0/_build/src/github.com/google/cadvisor ]] ++ dirname /builddir/build/BUILD/cadvisor-0.45.0/_build/src/github.com/google/cadvisor + install -m 0755 -vd /builddir/build/BUILD/cadvisor-0.45.0/_build/src/github.com/google install: creating directory '/builddir/build/BUILD/cadvisor-0.45.0/_build/src' install: creating directory '/builddir/build/BUILD/cadvisor-0.45.0/_build/src/github.com' install: creating directory '/builddir/build/BUILD/cadvisor-0.45.0/_build/src/github.com/google' + ln -fs /builddir/build/BUILD/cadvisor-0.45.0 /builddir/build/BUILD/cadvisor-0.45.0/_build/src/github.com/google/cadvisor + cd /builddir/build/BUILD/cadvisor-0.45.0/_build/src/github.com/google/cadvisor Patch #0 (0001-Use-github.com-influxdata-influxdb1-client-as-influx.patch): + echo 'Patch #0 (0001-Use-github.com-influxdata-influxdb1-client-as-influx.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file cmd/internal/storage/influxdb/influxdb.go patching file cmd/internal/storage/influxdb/influxdb_test.go Hunk #1 succeeded at 31 (offset 2 lines). + RPM_EC=0 ++ jobs -p + exit 0 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.v55Slb + umask 022 + cd /builddir/build/BUILD + cd cadvisor-0.45.0 + GOPATH=/builddir/build/BUILD/cadvisor-0.45.0/_build:/usr/share/gocode + GO111MODULE=off + golist --imported --package-path github.com/google/cadvisor --template 'golang({{.}})\n' --with-tests --skip-self + RPM_EC=0 ++ jobs -p + exit 0 Wrote: /builddir/build/SRPMS/cadvisor-0.45.0-1.fc39.buildreqs.nosrc.rpm RPM build warnings: %patchN is deprecated (1 usages found), use %patch N (or %patch -P N) Child return code was: 11 Dynamic buildrequires detected Going to install missing buildrequires. See root.log for details. ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -ba --noprep --noclean --target riscv64 --nodeps /builddir/build/SPECS/cadvisor.spec'], chrootPath='/var/lib/mock/f39-build-2520970-61728/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=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -ba --noprep --noclean --target riscv64 --nodeps /builddir/build/SPECS/cadvisor.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: %patchN is deprecated (1 usages found), use %patch N (or %patch -P N) Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1709942400 Executing(%generate_buildrequires): /bin/sh -e /var/tmp/rpm-tmp.jlc1dP + umask 022 + cd /builddir/build/BUILD + cd cadvisor-0.45.0 + GOPATH=/builddir/build/BUILD/cadvisor-0.45.0/_build:/usr/share/gocode + GO111MODULE=off + golist --imported --package-path github.com/google/cadvisor --template 'golang({{.}})\n' --with-tests --skip-self + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.ovwNoY + umask 022 + cd /builddir/build/BUILD + cd cadvisor-0.45.0 ++ od -An -tx1 ++ head -c20 /dev/urandom ++ tr -d ' \n' + GOPATH=/builddir/build/BUILD/cadvisor-0.45.0/_build:/usr/share/gocode + GO111MODULE=off + go build -buildmode pie -compiler gc '-tags=rpm_crashtraceback ' -ldflags ' -X github.com/google/cadvisor/version=0.45.0 -B 0x496468d8630a1bbb12afbfdea52a82489d8da224 -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/cadvisor-0.45.0/_build/bin/cadvisor github.com/google/cadvisor/cmd WORK=/tmp/go-build3618155831 /usr/share/gocode/src/github.com/docker/docker/api/types/registry/registry.go:7:2: cannot find package "github.com/opencontainers/image-spec/specs-go/v1" in any of: /usr/lib/golang/src/github.com/opencontainers/image-spec/specs-go/v1 (from $GOROOT) /builddir/build/BUILD/cadvisor-0.45.0/_build/src/github.com/opencontainers/image-spec/specs-go/v1 (from $GOPATH) /usr/share/gocode/src/github.com/opencontainers/image-spec/specs-go/v1 /usr/share/gocode/src/github.com/docker/docker/client/container_commit.go:9:2: cannot find package "github.com/distribution/distribution/v3/reference" in any of: /usr/lib/golang/src/github.com/distribution/distribution/v3/reference (from $GOROOT) /builddir/build/BUILD/cadvisor-0.45.0/_build/src/github.com/distribution/distribution/v3/reference (from $GOPATH) /usr/share/gocode/src/github.com/distribution/distribution/v3/reference error: Bad exit status from /var/tmp/rpm-tmp.ovwNoY (%build) RPM build warnings: RPM build errors: %patchN is deprecated (1 usages found), use %patch N (or %patch -P N) Bad exit status from /var/tmp/rpm-tmp.ovwNoY (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -ba --noprep --noclean --target riscv64 --nodeps /builddir/build/SPECS/cadvisor.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/mockbuild/util.py", line 597, 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 -ba --noprep --noclean --target riscv64 --nodeps /builddir/build/SPECS/cadvisor.spec