Mock Version: 3.5 Mock Version: 3.5 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target loongarch64 --nodeps /builddir/build/SPECS/containernetworking-plugins.spec'], chrootPath='/var/lib/mock/module-container-tools-an8-8100020261123073056-721ededf-build-596986-102707/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=976gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target loongarch64 --nodeps /builddir/build/SPECS/containernetworking-plugins.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: loongarch64 Building for target loongarch64 Wrote: /builddir/build/SRPMS/containernetworking-plugins-1.4.0-11.0.1.module+an8.10.0+11567+7017801a.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/containernetworking-plugins.spec'], chrootPath='/var/lib/mock/module-container-tools-an8-8100020261123073056-721ededf-build-596986-102707/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=976gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/containernetworking-plugins.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: loongarch64 Building for target loongarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.gKWfiJ + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf plugins-1.4.0 + /usr/bin/gzip -dc /builddir/build/SOURCES/v1.4.0.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd plugins-1.4.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/git init -q + /usr/bin/git config user.name rpm-build + /usr/bin/git config user.email '' + /usr/bin/git add . + /usr/bin/git commit -q --allow-empty -a --author 'rpm-build ' -m 'containernetworking-plugins-1.4.0 base' + rm -rf plugins/main/windows + sed -i s,/opt/cni/bin/,/usr/libexec/cni/, plugins/ipam/dhcp/systemd/cni-dhcp.service + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.bi76s2 + umask 022 + cd /builddir/build/BUILD + cd plugins-1.4.0 + export ORG_PATH=github.com/containernetworking + ORG_PATH=github.com/containernetworking + export REPO_PATH=github.com/containernetworking/plugins + REPO_PATH=github.com/containernetworking/plugins + '[' '!' -h gopath/src/github.com/containernetworking/plugins ']' + mkdir -p gopath/src/github.com/containernetworking + ln -s ../../../.. gopath/src/github.com/containernetworking/plugins + rm -rf vendor/golang.org/x/sys + cp -arp /usr/share/golang/vendor/golang.org/x/sys/ vendor/golang.org/x/ ++ pwd + export GOPATH=/builddir/build/BUILD/plugins-1.4.0/gopath + GOPATH=/builddir/build/BUILD/plugins-1.4.0/gopath + export GO111MODULE=off + GO111MODULE=off + export 'CGO_CFLAGS=-O2 -g -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64' + CGO_CFLAGS='-O2 -g -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64' ++ pwd + mkdir -p /builddir/build/BUILD/plugins-1.4.0/bin + echo 'Building plugins' Building plugins + export 'PLUGINS=plugins/meta/* plugins/main/* plugins/ipam/* plugins/sample' + PLUGINS='plugins/meta/* plugins/main/* plugins/ipam/* plugins/sample' + for d in $PLUGINS + '[' -d plugins/meta/bandwidth ']' ++ basename plugins/meta/bandwidth + plugin=bandwidth + echo ' bandwidth' bandwidth ++ head -c20 /dev/urandom ++ od -An -tx1 ++ tr -d ' \n' + CGO_CPPFLAGS='-D_FORTIFY_SOURCE=2 -fstack-protector-all' + go build -compiler gc '-tags=rpm_crashtraceback libtrust_openssl ' -ldflags '-linkmode=external -compressdwarf=false -B 0x46a467ae01f0a9c9da3ffcda3f989bd7851deae6 -extldflags '\''-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld'\''' -a -v -x -o /builddir/build/BUILD/plugins-1.4.0/bin/bandwidth github.com/containernetworking/plugins/plugins/meta/bandwidth WORK=/tmp/go-build1614841111 gopath/src/github.com/containernetworking/plugins/vendor/golang.org/x/sys/unix/syscall_linux.go:16:2: cannot find package "slices" in any of: /builddir/build/BUILD/plugins-1.4.0/gopath/src/github.com/containernetworking/plugins/vendor/slices (vendor tree) /usr/lib/golang/src/slices (from $GOROOT) /builddir/build/BUILD/plugins-1.4.0/gopath/src/slices (from $GOPATH) error: Bad exit status from /var/tmp/rpm-tmp.bi76s2 (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.bi76s2 (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/containernetworking-plugins.spec\n', 1)] 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 --noclean --target loongarch64 --nodeps /builddir/build/SPECS/containernetworking-plugins.spec