Mock Version: 3.5 Mock Version: 3.5 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target aarch64 --nodeps /builddir/build/SPECS/edk2.spec'], chrootPath='/var/lib/mock/dist-an8.9-build-345891-70165/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=86400uid=982gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target aarch64 --nodeps /builddir/build/SPECS/edk2.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: aarch64 Building for target aarch64 Wrote: /builddir/build/SRPMS/edk2-20220126gitbb1bba3d77-6.0.2.an8.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/edk2.spec'], chrootPath='/var/lib/mock/dist-an8.9-build-345891-70165/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=86400uid=982gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/edk2.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: aarch64 Building for target aarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.fIdCjU + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf edk2-bb1bba3d77 + /usr/bin/xz -dc /builddir/build/SOURCES/edk2-bb1bba3d77.tar.xz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd edk2-bb1bba3d77 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + PATCHCOUNT=42 + PATCHLIST=/tmp/lua_rgb9MB + git init -q + git config user.name rpm-build + git config user.email rpm-build + git config core.whitespace cr-at-eol + git config am.keepcr true + git add -A . + git commit -q -a --author 'rpm-build ' -m 'edk2-bb1bba3d77 base' ++ grep '\.patch$' /tmp/lua_rgb9MB ++ wc -l + COUNT=42 + '[' 42 -ne 42 ']' + '[' 42 -gt 0 ']' ++ cat /tmp/lua_rgb9MB + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0008-BaseTools-do-not-build-BrotliCompress-RH-only.patch warning: quoted CRLF detected Applying: BaseTools: do not build BrotliCompress (RH only) Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0009-MdeModulePkg-remove-package-private-Brotli-include-p.patch warning: quoted CRLF detected Applying: MdeModulePkg: remove package-private Brotli include path (RH only) Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0010-OvmfPkg-increase-max-debug-message-length-to-512-RHE.patch warning: quoted CRLF detected Applying: OvmfPkg: increase max debug message length to 512 (RHEL only) Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0011-MdeModulePkg-TerminalDxe-add-other-text-resolutions-.patch warning: quoted CRLF detected Applying: MdeModulePkg: TerminalDxe: add other text resolutions (RHEL only) Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0012-MdeModulePkg-TerminalDxe-set-xterm-resolution-on-mod.patch warning: quoted CRLF detected Applying: MdeModulePkg: TerminalDxe: set xterm resolution on mode change (RH only) Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0013-OvmfPkg-take-PcdResizeXterm-from-the-QEMU-command-li.patch warning: quoted CRLF detected Applying: OvmfPkg: take PcdResizeXterm from the QEMU command line (RH only) Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0014-ArmVirtPkg-take-PcdResizeXterm-from-the-QEMU-command.patch warning: quoted CRLF detected Applying: ArmVirtPkg: take PcdResizeXterm from the QEMU command line (RH only) Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0015-OvmfPkg-allow-exclusion-of-the-shell-from-the-firmwa.patch warning: quoted CRLF detected Applying: OvmfPkg: allow exclusion of the shell from the firmware image (RH only) Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0016-ArmPlatformPkg-introduce-fixed-PCD-for-early-hello-m.patch warning: quoted CRLF detected Applying: ArmPlatformPkg: introduce fixed PCD for early hello message (RH only) Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0017-ArmPlatformPkg-PrePeiCore-write-early-hello-message-.patch warning: quoted CRLF detected Applying: ArmPlatformPkg: PrePeiCore: write early hello message to the serial port (RH) Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0018-ArmVirtPkg-set-early-hello-message-RH-only.patch warning: quoted CRLF detected Applying: ArmVirtPkg: set early hello message (RH only) Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0019-OvmfPkg-enable-DEBUG_VERBOSE-RHEL-only.patch warning: quoted CRLF detected Applying: OvmfPkg: enable DEBUG_VERBOSE (RHEL only) Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0020-OvmfPkg-silence-DEBUG_VERBOSE-0x00400000-in-QemuVide.patch warning: quoted CRLF detected Applying: OvmfPkg: silence DEBUG_VERBOSE (0x00400000) in QemuVideoDxe/QemuRamfbDxe (RH) Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0021-ArmVirtPkg-silence-DEBUG_VERBOSE-0x00400000-in-QemuR.patch warning: quoted CRLF detected Applying: ArmVirtPkg: silence DEBUG_VERBOSE (0x00400000) in QemuRamfbDxe (RH only) Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0022-OvmfPkg-QemuRamfbDxe-Do-not-report-DXE-failure-on-Aa.patch warning: quoted CRLF detected Applying: OvmfPkg: QemuRamfbDxe: Do not report DXE failure on Aarch64 silent builds (RH only) Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0023-OvmfPkg-silence-EFI_D_VERBOSE-0x00400000-in-NvmExpre.patch warning: quoted CRLF detected Applying: OvmfPkg: silence EFI_D_VERBOSE (0x00400000) in NvmExpressDxe (RH only) Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0024-CryptoPkg-OpensslLib-list-RHEL8-specific-OpenSSL-fil.patch warning: quoted CRLF detected Applying: CryptoPkg/OpensslLib: list RHEL8-specific OpenSSL files in the INFs (RH) Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0025-OvmfPkg-QemuKernelLoaderFsDxe-suppress-error-on-no-k.patch warning: quoted CRLF detected Applying: OvmfPkg/QemuKernelLoaderFsDxe: suppress error on no "-kernel" in silent aa64 build (RH) Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0026-SecurityPkg-Tcg2Dxe-suppress-error-on-no-swtpm-in-si.patch warning: quoted CRLF detected Applying: SecurityPkg/Tcg2Dxe: suppress error on no swtpm in silent aa64 build (RH) Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/edk2-OvmfPkg-AmdSev-SecretPei-Mark-SEV-launch-secret-area.patch warning: quoted CRLF detected Applying: OvmfPkg/AmdSev/SecretPei: Mark SEV launch secret area as reserved Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/edk2-rh-openssl-add-crypto-bn-rsa_sup_mul.c-to-file-list.patch warning: quoted CRLF detected Applying: rh openssl: add crypto/bn/rsa_sup_mul.c to file list Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/edk2-SecurityPkg-DxeImageVerificationLib-Check-result-of-.patch warning: quoted CRLF detected Applying: SecurityPkg/DxeImageVerificationLib: Check result of GetEfiGlobalVariable2 Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/edk2-UefiCpuPkg-MpInitLib-fix-apic-mode-for-cpu-hotplug.patch warning: quoted CRLF detected Applying: UefiCpuPkg/MpInitLib: fix apic mode for cpu hotplug Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0029-anolis-UefiCpuPkg-Add-StandardSignatureIsHygonGenuin.patch warning: quoted CRLF detected Applying: anolis: UefiCpuPkg: Add StandardSignatureIsHygonGenuine() in BaseUefiCpuLib Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0030-anolis-UefiCpuPkg-LocalApicLib-Exclude-second-SendIp.patch warning: quoted CRLF detected Applying: anolis: UefiCpuPkg/LocalApicLib: Exclude second SendIpi sequence on HYGON hardware Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0031-anolis-OvmfPkg-Add-CSV-secure-call-library-on-Hygon-.patch warning: quoted CRLF detected Applying: anolis: OvmfPkg: Add CSV secure call library on Hygon CPU Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0032-anolis-OvmfPkg-Tcg-Add-CsvLib-for-TpmMmioSevDecryptP.patch warning: quoted CRLF detected Applying: anolis: OvmfPkg/Tcg: Add CsvLib for TpmMmioSevDecryptPei Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0033-anolis-OvmfPkg-ResetVector-Support-CSV-in-ResetVecto.patch warning: quoted CRLF detected Applying: anolis: OvmfPkg/ResetVector: Support CSV in ResetVector phase Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0034-anolis-OvmfPkg-PlatformPei-Initialize-CSV-VM-s-memor.patch warning: quoted CRLF detected Applying: anolis: OvmfPkg/PlatformPei: Initialize CSV VM's memory Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0035-anolis-OvmfPkg-BaseMemcryptSevLib-update-page-status.patch warning: quoted CRLF detected Applying: anolis: OvmfPkg/BaseMemcryptSevLib: update page status to Secure Processor for CSV Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0036-anolis-OvmfPkg-Add-CsvDxe-driver.patch warning: quoted CRLF detected Applying: anolis: OvmfPkg: Add CsvDxe driver Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0037-anolis-OvmfPkg-IoMmuDxe-Add-CsvIoMmu-protocol.patch warning: quoted CRLF detected Applying: anolis: OvmfPkg/IoMmuDxe: Add CsvIoMmu protocol Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0038-anolis-OvmfPkg-Reserve-a-CPUID-table-page-for-CSV-gu.patch warning: quoted CRLF detected Applying: anolis: OvmfPkg: Reserve a CPUID table page for CSV guest Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0039-OvmfPkg-BaseMemEncryptLib-Detect-SEV-live-migration-.patch warning: quoted CRLF detected Applying: OvmfPkg/BaseMemEncryptLib: Detect SEV live migration feature. Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0040-OvmfPkg-BaseMemEncryptLib-Hypercall-API-for-page-enc.patch warning: quoted CRLF detected Applying: OvmfPkg/BaseMemEncryptLib: Hypercall API for page encryption state change Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0041-OvmfPkg-BaseMemEncryptLib-Invoke-page-encryption-sta.patch warning: quoted CRLF detected Applying: OvmfPkg/BaseMemEncryptLib: Invoke page encryption state change hypercall Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0042-OvmfPkg-VmgExitLib-Encryption-state-change-hypercall.patch warning: quoted CRLF detected Applying: OvmfPkg/VmgExitLib: Encryption state change hypercall support in VC handler Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0043-OvmfPkg-PlatformPei-Mark-SEC-GHCB-page-as-unencrypte.patch warning: quoted CRLF detected Applying: OvmfPkg/PlatformPei: Mark SEC GHCB page as unencrypted via hypercall Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0044-OvmfPkg-AmdSevDxe-Add-support-for-SEV-live-migration.patch warning: quoted CRLF detected Applying: OvmfPkg/AmdSevDxe: Add support for SEV live migration. Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0045-anolis-OvmfPkg-BaseMemcryptSevLib-Correct-the-calcul.patch warning: quoted CRLF detected Applying: anolis: OvmfPkg/BaseMemcryptSevLib: Correct the calculation of page range that notified to hypervisor Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0046-anolis-OvmfPkg-BaseMemEncryptLib-Return-SUCCESS-if-n.patch warning: quoted CRLF detected Applying: anolis: OvmfPkg/BaseMemEncryptLib: Return SUCCESS if not support SEV live migration Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0047-anolis-OvmfPkg-BaseMemEncryptLib-Save-memory-encrypt.patch warning: quoted CRLF detected error: patch failed: OvmfPkg/Library/BaseMemEncryptSevLib/DxeMemEncryptSevLibInternal.c:26 error: OvmfPkg/Library/BaseMemEncryptSevLib/DxeMemEncryptSevLibInternal.c: patch does not apply error: patch failed: OvmfPkg/OvmfPkg.dec:383 error: OvmfPkg/OvmfPkg.dec: patch does not apply error: patch failed: OvmfPkg/OvmfPkgX64.fdf:100 error: OvmfPkg/OvmfPkgX64.fdf: patch does not apply error: patch failed: OvmfPkg/PlatformPei/AmdSev.c:359 error: OvmfPkg/PlatformPei/AmdSev.c: patch does not apply hint: Use 'git am --show-current-patch=diff' to see the failed patch Applying: anolis: OvmfPkg/BaseMemEncryptLib: Save memory encrypt status in reserved memory Patch failed at 0001 anolis: OvmfPkg/BaseMemEncryptLib: Save memory encrypt status in reserved memory 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". error: Bad exit status from /var/tmp/rpm-tmp.fIdCjU (%prep) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.fIdCjU (%prep) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/edk2.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/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 aarch64 --nodeps /builddir/build/SPECS/edk2.spec