'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=1690848000 Wrote: /builddir/build/SRPMS/kernel-6.5.0-0.rc4.30.6.riscv64.fc39.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/kernel.spec'], chrootPath='/var/lib/mock/f39-build-730065-102298/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=1209600uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/kernel.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=1690848000 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.gkBdHi + umask 022 + cd /builddir/build/BUILD + patch_command='git --work-tree=. apply' + cd /builddir/build/BUILD + rm -rf kernel-6.5-rc4 + /usr/bin/mkdir -p kernel-6.5-rc4 + cd kernel-6.5-rc4 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/linux-6.5-rc4.tar.xz + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + mv linux-6.5-rc4 linux-6.5.0-0.rc4.30.6.riscv64.fc39.riscv64 + cd linux-6.5.0-0.rc4.30.6.riscv64.fc39.riscv64 + cp -a /builddir/build/SOURCES/Makefile.rhelver . + ApplyOptionalPatch patch-6.5-redhat.patch + local patch=patch-6.5-redhat.patch + shift + '[' '!' -f /builddir/build/SOURCES/patch-6.5-redhat.patch ']' ++ wc -l /builddir/build/SOURCES/patch-6.5-redhat.patch ++ awk '{print $1}' + local C=2998 + '[' 2998 -gt 9 ']' + ApplyPatch patch-6.5-redhat.patch + local patch=patch-6.5-redhat.patch + shift + '[' '!' -f /builddir/build/SOURCES/patch-6.5-redhat.patch ']' + case "$patch" in + git --work-tree=. apply + ApplyOptionalPatch linux-kernel-test.patch + local patch=linux-kernel-test.patch + shift + '[' '!' -f /builddir/build/SOURCES/linux-kernel-test.patch ']' ++ wc -l /builddir/build/SOURCES/linux-kernel-test.patch ++ awk '{print $1}' + local C=38 + '[' 38 -gt 9 ']' + ApplyPatch linux-kernel-test.patch + local patch=linux-kernel-test.patch + shift + '[' '!' -f /builddir/build/SOURCES/linux-kernel-test.patch ']' Patch999999: linux-kernel-test.patch + case "$patch" in + git --work-tree=. apply error: patch failed: arch/riscv/include/asm/vmalloc.h:3 error: arch/riscv/include/asm/vmalloc.h: patch does not apply error: Bad exit status from /var/tmp/rpm-tmp.gkBdHi (%prep) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.gkBdHi (%prep) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/kernel.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 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 riscv64 --nodeps /builddir/build/SPECS/kernel.spec