Mock Version: 2.15 Mock Version: 2.15 Mock Version: 2.15 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/kernel.spec'], chrootPath='/var/lib/mock/f40-build-730291-102654/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 -bs --target noarch --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: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1695254400 Wrote: /builddir/build/SRPMS/kernel-6.6.0-0.rc2.20230919git2cf0f7156238.21.0.riscv64.fc40.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/kernel.spec'], chrootPath='/var/lib/mock/f40-build-730291-102654/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 --target noarch --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: noarch Building for target noarch setting SOURCE_DATE_EPOCH=1695254400 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.ZJUv37 + umask 022 + cd /builddir/build/BUILD + patch_command='git --work-tree=. apply' + cd /builddir/build/BUILD + rm -rf kernel-6.6-rc2-18-g2cf0f7156238 + /usr/bin/mkdir -p kernel-6.6-rc2-18-g2cf0f7156238 + cd kernel-6.6-rc2-18-g2cf0f7156238 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/linux-6.6-rc2-18-g2cf0f7156238.tar.xz + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + mv linux-6.6-rc2-18-g2cf0f7156238 linux-6.6.0-0.rc2.20230919git2cf0f7156238.21.0.riscv64.fc40.noarch + cd linux-6.6.0-0.rc2.20230919git2cf0f7156238.21.0.riscv64.fc40.noarch + cp -a /builddir/build/SOURCES/Makefile.rhelver . + ApplyOptionalPatch patch-6.6-redhat.patch + local patch=patch-6.6-redhat.patch + shift + '[' '!' -f /builddir/build/SOURCES/patch-6.6-redhat.patch ']' ++ awk '{print $1}' ++ wc -l /builddir/build/SOURCES/patch-6.6-redhat.patch + local C=3256 + '[' 3256 -gt 9 ']' + ApplyPatch patch-6.6-redhat.patch + local patch=patch-6.6-redhat.patch + shift + '[' '!' -f /builddir/build/SOURCES/patch-6.6-redhat.patch ']' + case "$patch" in + git --work-tree=. apply :3035: trailing whitespace. warning: 1 line adds whitespace errors. + 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=20 + '[' 20 -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.ZJUv37 (%prep) Bad exit status from /var/tmp/rpm-tmp.ZJUv37 (%prep) RPM build errors: Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.9/site-packages/mockbuild/util.py", line 600, 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 noarch --nodeps /builddir/build/SPECS/kernel.spec