Mock Version: 1.4.13 Mock Version: 1.4.13 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/kernel.spec'], chrootPath='/var/lib/mock/f32-build-117707-35156/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=432000uid=998gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --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 BUILDSTDERR: warning: Macro expanded in comment on line 149: %define with_kabichk %{?_without_kabichk: 0} %{?!_without_kabichk: 1} BUILDSTDERR: warning: extra tokens at the end of %endif directive in line 838: %endif # with_selftests BUILDSTDERR: warning: extra tokens at the end of %endif directive in line 1028: %endif # with_zfcpdump BUILDSTDERR: warning: extra tokens at the end of %endif directive in line 1541: %endif # fedora BUILDSTDERR: warning: extra tokens at the end of %endif directive in line 1542: %endif # arches BUILDSTDERR: warning: extra tokens at the end of %endif directive in line 2084: %endif # with_doc BUILDSTDERR: warning: extra tokens at the end of %endif directive in line 2129: %endif # with_kernel_abi_whitelists Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1572825600 Wrote: /builddir/build/SRPMS/kernel-5.4.0-0.rc6.git0.1.0.riscv64.fc32.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/kernel.spec'], chrootPath='/var/lib/mock/f32-build-117707-35156/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=432000uid=998gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --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 BUILDSTDERR: warning: Macro expanded in comment on line 149: %define with_kabichk %{?_without_kabichk: 0} %{?!_without_kabichk: 1} BUILDSTDERR: warning: extra tokens at the end of %endif directive in line 838: %endif # with_selftests BUILDSTDERR: warning: extra tokens at the end of %endif directive in line 1028: %endif # with_zfcpdump BUILDSTDERR: warning: extra tokens at the end of %endif directive in line 1541: %endif # fedora BUILDSTDERR: warning: extra tokens at the end of %endif directive in line 1542: %endif # arches BUILDSTDERR: warning: extra tokens at the end of %endif directive in line 2084: %endif # with_doc BUILDSTDERR: warning: extra tokens at the end of %endif directive in line 2129: %endif # with_kernel_abi_whitelists Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1572825600 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.brH3d8 + umask 022 + cd /builddir/build/BUILD + patch_command='patch -p1 -F1 -s' BUILDSTDERR: ++ find /builddir/build/BUILD -maxdepth 1 -type d -name 'kernel-5.*' BUILDSTDERR: ++ grep -x -v /builddir/build/BUILD/kernel-5.3.fc32 + sharedirs= + : + '[' -d kernel-5.3.fc32 ']' + '[' '!' -d kernel-5.3.fc32/vanilla-5.4-rc6 ']' + '[' -d kernel-5.3.fc32/vanilla-5.3 ']' + rm -f pax_global_header + [[ ! -z '' ]] + cd /builddir/build/BUILD + rm -rf kernel-5.3.fc32 + /usr/bin/mkdir -p kernel-5.3.fc32 + cd kernel-5.3.fc32 + /usr/bin/xz -dc /builddir/build/SOURCES/linux-5.3.tar.xz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + mv linux-5.3 vanilla-5.3 + [[ ! -z '' ]] + cp -al vanilla-5.3 vanilla-5.4-rc6 + cd vanilla-5.4-rc6 + cp /builddir/build/SOURCES/remove-binary-diff.pl . + xzcat /builddir/build/SOURCES/patch-5.4-rc6.xz + ./remove-binary-diff.pl + patch -p1 -F1 -s + git init Initialized empty Git repository in /builddir/build/BUILD/kernel-5.3.fc32/vanilla-5.4-rc6/.git/ + git config user.email kernel-team@fedoraproject.org + git config user.name 'Fedora Kernel Team' + git config gc.auto 0 + git add . + git commit -a -q -m baseline + cd .. + cp -al vanilla-5.4-rc6 linux-5.4.0-0.rc6.git0.1.0.riscv64.fc32.riscv64 + cd linux-5.4.0-0.rc6.git0.1.0.riscv64.fc32.riscv64 + '[' '!' -d .git ']' + git am /builddir/build/SOURCES/0001-Make-get_cert_list-not-complain-about-cert-lists-tha.patch /builddir/build/SOURCES/0002-Add-efi_status_to_str-and-rework-efi_status_to_err.patch /builddir/build/SOURCES/0003-Make-get_cert_list-use-efi_status_to_str-to-print-er.patch /builddir/build/SOURCES/efi-secureboot.patch /builddir/build/SOURCES/lift-lockdown-sysrq.patch /builddir/build/SOURCES/arm64-Add-option-of-13-for-FORCE_MAX_ZONEORDER.patch /builddir/build/SOURCES/arm-make-highpte-not-expert.patch /builddir/build/SOURCES/ACPI-scan-Fix-regression-related-to-X-Gene-UARTs.patch /builddir/build/SOURCES/ACPI-irq-Workaround-firmware-issue-on-X-Gene-based-m400.patch /builddir/build/SOURCES/ARM-tegra-usb-no-reset.patch /builddir/build/SOURCES/arm64-tegra-jetson-tx1-fixes.patch /builddir/build/SOURCES/arm64-tegra-Jetson-TX2-Allow-bootloader-to-configure.patch /builddir/build/SOURCES/mfd-max77620-Do-not-allocate-IRQs-upfront.patch /builddir/build/SOURCES/gpio-max77620-Use-correct-unit-for-debounce-times.patch /builddir/build/SOURCES/arm64-tegra186-enable-USB-on-Jetson-TX2.patch /builddir/build/SOURCES/arm64-usb-host-xhci-tegra-set-MODULE_FIRMWARE-for-tegra186.patch /builddir/build/SOURCES/input-rmi4-remove-the-need-for-artifical-IRQ.patch /builddir/build/SOURCES/0001-Drop-that-for-now.patch /builddir/build/SOURCES/KEYS-Make-use-of-platform-keyring-for-module-signature.patch /builddir/build/SOURCES/0001-mm-kmemleak-skip-late_init-if-not-skip-disable.patch /builddir/build/SOURCES/ARM-fix-__get_user_check-in-case-uaccess_-calls-are-not-inlined.patch /builddir/build/SOURCES/0001-riscv-add-support-for-SECCOMP.patch /builddir/build/SOURCES/0002-SiFive-Unleashed-CPUFreq.patch /builddir/build/SOURCES/0001-riscv-make-kern_addr_valid-available-without-CONFIG_.patch Applying: Make get_cert_list() not complain about cert lists that aren't present. Applying: Add efi_status_to_str() and rework efi_status_to_err(). Applying: Make get_cert_list() use efi_status_to_str() to print error messages. Applying: security: lockdown: expose a hook to lock the kernel down Applying: efi: Add an EFI_SECURE_BOOT flag to indicate secure boot mode Applying: efi: Lock down the kernel if booted in secure boot mode Applying: Add a SysRq option to lift kernel lockdown Applying: Add option of 13 for FORCE_MAX_ZONEORDER Applying: arm: make CONFIG_HIGHPTE optional without CONFIG_EXPERT Applying: ACPI / scan: Fix regression related to X-Gene UARTs Applying: ACPI / irq: Workaround firmware issue on X-Gene based m400 Applying: ARM: tegra: usb no reset Applying: arm64: tegra210: Jetson TX1: disable display panel and associated backlight Applying: arm64: tegra: Jetson TX2: Allow bootloader to configure Ethernet MAC Applying: mfd: max77620: Do not allocate IRQs upfront Applying: gpio: max77620: Do not allocate IRQs upfront Applying: gpio: max77620: Fix interrupt handling Applying: arm64: tegra186: enable USB on Jetson-TX2 Applying: usb: host: xhci-tegra: set MODULE_FIRMWARE for tegra186 Applying: Input: rmi4 - remove the need for artificial IRQ in case of HID Applying: Drop that for now Applying: KEYS: Make use of platform keyring for module signature verify Applying: mm/kmemleak: skip late_init if not skip disable Applying: ARM: fix __get_user_check() in case uaccess_* calls are not inlined Applying: riscv: add support for SECCOMP Applying: SiFive Unleashed CPUFreq Applying: riscv: make kern_addr_valid available without CONFIG_FLATMEM Patch failed at 0027 riscv: make kern_addr_valid available without CONFIG_FLATMEM When you have resolved this problem, run "git am --continue". If you prefer to skip this patch, run "git am --skip" instead. To restore the original branch and stop patching, run "git am --abort". BUILDSTDERR: error: patch failed: arch/riscv/include/asm/pgtable.h:428 BUILDSTDERR: error: arch/riscv/include/asm/pgtable.h: patch does not apply BUILDSTDERR: hint: Use 'git am --show-current-patch' to see the failed patch BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.brH3d8 (%prep) BUILDSTDERR: Macro expanded in comment on line 149: %define with_kabichk %{?_without_kabichk: 0} %{?!_without_kabichk: 1} BUILDSTDERR: extra tokens at the end of %endif directive in line 838: %endif # with_selftests BUILDSTDERR: extra tokens at the end of %endif directive in line 1028: %endif # with_zfcpdump BUILDSTDERR: extra tokens at the end of %endif directive in line 1541: %endif # fedora BUILDSTDERR: extra tokens at the end of %endif directive in line 1542: %endif # arches BUILDSTDERR: extra tokens at the end of %endif directive in line 2084: %endif # with_doc BUILDSTDERR: extra tokens at the end of %endif directive in line 2129: %endif # with_kernel_abi_whitelists BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.brH3d8 (%prep) RPM build errors: 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 636, 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/kernel.spec