Mock Version: 1.4.21 Mock Version: 1.4.21 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/kata-shim.spec'], chrootPath='/var/lib/mock/f33-build-376406-61708/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': 'en_US.UTF-8'}shell=Falselogger=timeout=432000uid=987gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/kata-shim.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': 'en_US.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1605744000 Wrote: /builddir/build/SRPMS/kata-shim-1.12.0-1.fc33.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/kata-shim.spec'], chrootPath='/var/lib/mock/f33-build-376406-61708/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': 'en_US.UTF-8'}shell=Falselogger=timeout=432000uid=987gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/kata-shim.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': 'en_US.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1605744000 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Iox9hn + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf shim-1.12.0 + /usr/bin/gzip -dc /builddir/build/SOURCES/shim-1.12.0.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd shim-1.12.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.MKeeFl + umask 022 + cd /builddir/build/BUILD + cd shim-1.12.0 ++ pwd + export GOPATH=/builddir/build/BUILD/shim-1.12.0/go + GOPATH=/builddir/build/BUILD/shim-1.12.0/go + mkdir go + mv vendor go/src + mkdir -p go/src/github.com/kata-containers ++ pwd + ln -s /builddir/build/BUILD/shim-1.12.0/../shim-1.12.0 go/src/github.com/kata-containers/shim + cd go/src/github.com/kata-containers/shim + LDFLAGS='-linkmode=external -X main.version=1.12.0' ++ head -c20 /dev/urandom ++ od -An -tx1 ++ tr -d ' \n' + GO111MODULE=off + go build -compiler gc '-tags=rpm_crashtraceback ' -ldflags '-linkmode=external -X main.version=1.12.0 -B 0x1d71742490f645eca408fba0fe5296000090916e -extldflags '\''-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld '\''' -a -v -x WORK=/tmp/go-build438073097 runtime/internal/sys mkdir -p $WORK/b013/ internal/unsafeheader mkdir -p $WORK/b006/ cat >$WORK/b013/importcfg << 'EOF' # internal # import config EOF cat >$WORK/b006/importcfg << 'EOF' # internal # import config EOF cd /usr/lib/golang/src/internal/unsafeheader /usr/lib/golang/pkg/tool/linux_riscv64/compile -o $WORK/b006/_pkg_.a -trimpath "$WORK/b006=>" -p internal/unsafeheader -std -complete -buildid cICPtRSjs0LtHBT5IJkQ/cICPtRSjs0LtHBT5IJkQ -goversion go1.15.5 -D "" -importcfg $WORK/b006/importcfg -pack -c=4 ./unsafeheader.go cd /usr/lib/golang/src/runtime/internal/sys /usr/lib/golang/pkg/tool/linux_riscv64/compile -o $WORK/b013/_pkg_.a -trimpath "$WORK/b013=>" -p runtime/internal/sys -std -+ -complete -buildid axwWUvIvn_QaMQKwZdH6/axwWUvIvn_QaMQKwZdH6 -goversion go1.15.5 -D "" -importcfg $WORK/b013/importcfg -pack -c=4 ./arch.go ./arch_riscv64.go ./intrinsics.go ./intrinsics_common.go ./stubs.go ./sys.go ./zgoarch_riscv64.go ./zgoos_linux.go ./zversion.go runtime/internal/atomic mkdir -p $WORK/b011/ cat >$WORK/b011/go_asm.h << 'EOF' # internal EOF cd /usr/lib/golang/src/runtime/internal/atomic /usr/lib/golang/pkg/tool/linux_riscv64/asm -p runtime/internal/atomic -trimpath "$WORK/b011=>" -I $WORK/b011/ -I /usr/lib/golang/pkg/include -D GOOS_linux -D GOARCH_riscv64 -gensymabis -o $WORK/b011/symabis ./atomic_riscv64.s /usr/lib/golang/pkg/tool/linux_riscv64/buildid -w $WORK/b006/_pkg_.a # internal cp $WORK/b006/_pkg_.a /builddir/.cache/go-build/9d/9de174a142849614f45a49b706a2136b99dbd453afe7f32a28048003d0e3b14f-d # internal internal/race mkdir -p $WORK/b016/ cat >$WORK/b016/importcfg << 'EOF' # internal # import config EOF cd /usr/lib/golang/src/internal/race /usr/lib/golang/pkg/tool/linux_riscv64/compile -o $WORK/b016/_pkg_.a -trimpath "$WORK/b016=>" -p internal/race -std -complete -buildid 8y3tIiM-ICU2HOZbUEmn/8y3tIiM-ICU2HOZbUEmn -goversion go1.15.5 -D "" -importcfg $WORK/b016/importcfg -pack -c=4 ./doc.go ./norace.go cat >$WORK/b011/importcfg << 'EOF' # internal # import config EOF cd /usr/lib/golang/src/runtime/internal/atomic /usr/lib/golang/pkg/tool/linux_riscv64/compile -o $WORK/b011/_pkg_.a -trimpath "$WORK/b011=>" -p runtime/internal/atomic -std -+ -buildid AFJEQ4VI81cU1AMDQbKH/AFJEQ4VI81cU1AMDQbKH -goversion go1.15.5 -symabis $WORK/b011/symabis -D "" -importcfg $WORK/b011/importcfg -pack -asmhdr $WORK/b011/go_asm.h -c=4 ./atomic_riscv64.go ./stubs.go /usr/lib/golang/pkg/tool/linux_riscv64/asm -p runtime/internal/atomic -trimpath "$WORK/b011=>" -I $WORK/b011/ -I /usr/lib/golang/pkg/include -D GOOS_linux -D GOARCH_riscv64 -o $WORK/b011/atomic_riscv64.o ./atomic_riscv64.s /usr/lib/golang/pkg/tool/linux_riscv64/buildid -w $WORK/b016/_pkg_.a # internal go tool compile: signal: segmentation fault (core dumped) cp $WORK/b016/_pkg_.a /builddir/.cache/go-build/33/33fa35711a053c3d545f3696db3393e6926cd4f8e946b053ec3efaff1fc2cb55-d # internal sync/atomic mkdir -p $WORK/b017/ cat >$WORK/b017/go_asm.h << 'EOF' # internal EOF cd /usr/lib/golang/src/sync/atomic /usr/lib/golang/pkg/tool/linux_riscv64/asm -p sync/atomic -trimpath "$WORK/b017=>" -I $WORK/b017/ -I /usr/lib/golang/pkg/include -D GOOS_linux -D GOARCH_riscv64 -gensymabis -o $WORK/b017/symabis ./asm.s /usr/lib/golang/pkg/tool/linux_riscv64/buildid -w $WORK/b013/_pkg_.a # internal go: failed to remove work dir: unlinkat /tmp/go-build438073097: directory not empty error: Bad exit status from /var/tmp/rpm-tmp.MKeeFl (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.MKeeFl (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/mockbuild/trace_decorator.py", line 95, in trace result = func(*args, **kw) File "/usr/lib/python3.8/site-packages/mockbuild/util.py", line 746, 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/kata-shim.spec