mock-chroot> \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1567468800 Wrote: /builddir/build/SRPMS/audit-3.0-0.12.20190507gitf58ec40.0.riscv64.fc31.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/audit.spec'], chrootPath='/var/lib/mock/f31-build-107375-33682/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=986gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/audit.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=1567468800 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.6686xA + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf audit-3.0 + /usr/bin/gzip -dc /builddir/build/SOURCES/audit-3.0-alpha8.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd audit-3.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (audit-riscv.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .riscv~ --fuzz=0 BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.6686xA (%prep) Patch #0 (audit-riscv.patch): patching file auparse/interpret.c Hunk #2 succeeded at 663 (offset 10 lines). patching file configure.ac Hunk #1 succeeded at 330 (offset 13 lines). patching file lib/Makefile.am Hunk #2 FAILED at 57. Hunk #3 succeeded at 65 (offset -6 lines). Hunk #4 succeeded at 111 (offset -21 lines). 1 out of 4 hunks FAILED -- saving rejects to file lib/Makefile.am.rej patching file lib/libaudit.c Hunk #2 succeeded at 1351 (offset 13 lines). Hunk #3 FAILED at 1372. 1 out of 3 hunks FAILED -- saving rejects to file lib/libaudit.c.rej patching file lib/libaudit.h Hunk #2 succeeded at 451 (offset 14 lines). Hunk #3 FAILED at 548. 1 out of 3 hunks FAILED -- saving rejects to file lib/libaudit.h.rej patching file lib/lookup_table.c Hunk #2 FAILED at 45. Hunk #3 succeeded at 77 (offset -8 lines). Hunk #4 succeeded at 138 (offset -16 lines). Hunk #5 succeeded at 179 (offset -22 lines). 1 out of 5 hunks FAILED -- saving rejects to file lib/lookup_table.c.rej patching file lib/machinetab.h Hunk #2 succeeded at 42 (offset -4 lines). patching file lib/riscv32_table.h patching file lib/riscv64_table.h patching file lib/syscall-update.txt Hunk #1 succeeded at 7 (offset -1 lines). Hunk #2 succeeded at 17 (offset -1 lines). patching file lib/test/lookup_test.c Hunk #1 succeeded at 154 (offset -18 lines). Hunk #2 FAILED at 462. 1 out of 2 hunks FAILED -- saving rejects to file lib/test/lookup_test.c.rej patching file src/autrace.c patching file tools/ausyscall/ausyscall.c Hunk #2 succeeded at 86 (offset 1 line). RPM build errors: BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.6686xA (%prep) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.7/site-packages/mockbuild/trace_decorator.py", line 96, in trace result = func(*args, **kw) File "/usr/lib/python3.7/site-packages/mockbuild/util.py", line 700, in do 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/audit.spec