Mock Version: 6.0 Mock Version: 6.0 Mock Version: 6.0 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-an23.3-build-435004-73067/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'unshare_net=TrueprintOutput=Falsenspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.mrnicvbf:/etc/resolv.conf', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.mrnicvbf:/etc/resolv.conf', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '73832c3361ed43f999181a03c4abf8e2', '-D', '/var/lib/mock/dist-an23.3-build-435004-73067/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.mrnicvbf:/etc/resolv.conf', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', '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', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: aarch64 Building for target aarch64 setting SOURCE_DATE_EPOCH=1747699200 Wrote: /builddir/build/SRPMS/edk2-202402-12.an23.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-an23.3-build-435004-73067/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'unshare_net=TrueprintOutput=Falsenspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.mrnicvbf:/etc/resolv.conf', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.mrnicvbf:/etc/resolv.conf', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '6be942ebcebf4942b40c2346beb30284', '-D', '/var/lib/mock/dist-an23.3-build-435004-73067/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.mrnicvbf:/etc/resolv.conf', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', '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', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: aarch64 Building for target aarch64 setting SOURCE_DATE_EPOCH=1747699200 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.1drRCN + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf edk2-edk2-stable202402 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/edk2-stable202402.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd edk2-edk2-stable202402 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + PATCHCOUNT=26 + PATCHLIST=/tmp/lua_Gyhl3x + 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-edc6681206c1 base' ++ grep '\.patch$' /tmp/lua_Gyhl3x ++ wc -l + COUNT=26 + '[' 26 -ne 26 ']' + '[' 26 -gt 0 ']' ++ cat /tmp/lua_Gyhl3x + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0001-MdePkg-Add-StandardSignatureIsHygonGenuine-in-BaseCp.patch warning: quoted CRLF detected Applying: MdePkg: Add StandardSignatureIsHygonGenuine() in BaseCpuLib + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0002-UefiCpuPkg-LocalApicLib-Exclude-second-SendIpi-seque.patch warning: quoted CRLF detected Applying: UefiCpuPkg/LocalApicLib: Exclude second SendIpi sequence on HYGON hardware + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0003-OvmfPkg-Add-CSV-secure-call-library-on-Hygon-CPU.patch warning: quoted CRLF detected Applying: OvmfPkg: Add CSV secure call library on Hygon CPU + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0004-OvmfPkg-Tcg-Add-CsvLib-for-TpmMmioSevDecryptPei.patch warning: quoted CRLF detected Applying: OvmfPkg/Tcg: Add CsvLib for TpmMmioSevDecryptPei + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0005-OvmfPkg-ResetVector-Support-CSV-in-ResetVector-phase.patch warning: quoted CRLF detected Applying: OvmfPkg/ResetVector: Support CSV in ResetVector phase + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0006-OvmfPkg-PlatformPei-Initialize-CSV-VM-s-memory.patch warning: quoted CRLF detected Applying: OvmfPkg/PlatformPei: Initialize CSV VM's memory + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0007-OvmfPkg-BaseMemcryptSevLib-update-page-status-to-Sec.patch warning: quoted CRLF detected Applying: OvmfPkg/BaseMemcryptSevLib: update page status to Secure Processor for CSV + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0008-OvmfPkg-Add-CsvDxe-driver.patch warning: quoted CRLF detected Applying: OvmfPkg: Add CsvDxe driver + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0009-OvmfPkg-IoMmuDxe-Add-CsvIoMmu-protocol.patch warning: quoted CRLF detected Applying: OvmfPkg/IoMmuDxe: Add CsvIoMmu protocol + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0010-OvmfPkg-Reserve-a-CPUID-table-page-for-CSV-guest.patch warning: quoted CRLF detected Applying: OvmfPkg: Reserve a CPUID table page for CSV guest + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0011-OvmfPkg-Use-classic-mmio-window-for-CSV-guest.patch warning: quoted CRLF detected Applying: OvmfPkg: Use classic mmio window for CSV guest + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0012-OvmfPkg-BaseMemEncryptLib-Detect-SEV-live-migration-.patch warning: quoted CRLF detected Applying: OvmfPkg/BaseMemEncryptLib: Detect SEV live migration feature. + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0013-OvmfPkg-BaseMemEncryptLib-Hypercall-API-for-page-enc.patch warning: quoted CRLF detected Applying: OvmfPkg/BaseMemEncryptLib: Hypercall API for page encryption state change + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0014-OvmfPkg-BaseMemEncryptLib-Invoke-page-encryption-sta.patch warning: quoted CRLF detected Applying: OvmfPkg/BaseMemEncryptLib: Invoke page encryption state change hypercall + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0015-OvmfPkg-VmgExitLib-Encryption-state-change-hypercall.patch warning: quoted CRLF detected Applying: OvmfPkg/VmgExitLib: Encryption state change hypercall support in VC handler + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0016-OvmfPkg-PlatformPei-Mark-SEC-GHCB-page-as-unencrypte.patch warning: quoted CRLF detected Applying: OvmfPkg/PlatformPei: Mark SEC GHCB page as unencrypted via hypercall + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0017-OvmfPkg-AmdSevDxe-Add-support-for-SEV-live-migration.patch warning: quoted CRLF detected Applying: OvmfPkg/AmdSevDxe: Add support for SEV live migration. + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0018-OvmfPkg-BaseMemcryptSevLib-Correct-the-calculation-o.patch warning: quoted CRLF detected Applying: OvmfPkg/BaseMemcryptSevLib: Correct the calculation of page range that notified to hypervisor + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0019-OvmfPkg-BaseMemEncryptLib-Return-SUCCESS-if-not-supp.patch warning: quoted CRLF detected Applying: OvmfPkg/BaseMemEncryptLib: Return SUCCESS if not support SEV live migration + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0020-OvmfPkg-BaseMemEncryptLib-Save-memory-encrypt-status.patch warning: quoted CRLF detected Applying: OvmfPkg/BaseMemEncryptLib: Save memory encrypt status in reserved memory + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0021-OvmfPkg-IoMmuDxe-Implement-SetAttribute-of-CsvIoMmu.patch Applying: OvmfPkg/IoMmuDxe: Implement SetAttribute() of CsvIoMmu + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/1001-Bugfix-for-CVE-2023-45237.patch warning: quoted CRLF detected Applying: NetworkPkg: SECURITY PATCH CVE-2023-45237 + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/1002-Bugfix-for-CVE-2023-45236.patch warning: quoted CRLF detected Applying: NetworkPkg TcpDxe: SECURITY PATCH CVE-2023-45236 + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/1003-OvmfPkg-AmdSev-Support-full-disk-encryption-based-on.patch warning: quoted CRLF detected Applying: OvmfPkg/AmdSev: Support full-disk encryption based on Grub efisecret mod + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/1004-OvmfPkg-AmdSev-Add-missing-module-CsvDxe.patch warning: quoted CRLF detected Applying: OvmfPkg/AmdSev: Add missing module CsvDxe + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/1005-OvmfPkg-AmdSev-Integrate-grub2-x86_64-efi-modules-fr.patch Applying: OvmfPkg/AmdSev: Integrate grub2 x86_64-efi modules from the system path to grub.efi which is used to support Full Disk Encryption + echo 'Applied 26 patches' Applied 26 patches + rm -f /tmp/lua_Gyhl3x + cp -a -- /builddir/build/SOURCES/ovmf-whitepaper-c770f8c.txt . + tar -C CryptoPkg/Library/OpensslLib -a -f /builddir/build/SOURCES/openssl-3.0.12.tar.gz -x + rm -rf CryptoPkg/Library/OpensslLib/openssl + mv CryptoPkg/Library/OpensslLib/openssl-3.0.12 CryptoPkg/Library/OpensslLib/openssl + tar -xf /builddir/build/SOURCES/softfloat-20180726-gitb64af41.tar.xz --strip-components=1 --directory ArmPkg/Library/ArmSoftFloatLib/berkeley-softfloat-3/ + tar -xf /builddir/build/SOURCES/edk2-platforms-7f42d4034c8f.tar.xz --strip-components=1 '*/Drivers' '*/Features' '*/Platform' '*/Silicon' + tar -xf /builddir/build/SOURCES/jansson-2.13.1.tar.bz2 --strip-components=1 --directory RedfishPkg/Library/JsonLib/jansson + tar -C MdeModulePkg/Library/BrotliCustomDecompressLib -a -f /builddir/build/SOURCES/brotli-gitf4153a0.tar.gz -x + tar -C BaseTools/Source/C/BrotliCompress -a -f /builddir/build/SOURCES/brotli-gitf4153a0.tar.gz -x + mkdir -p MdePkg/Library/MipiSysTLib/mipisyst/library/include + mkdir -p CryptoPkg/Library/MbedTlsLib/mbedtls/include + mkdir -p CryptoPkg/Library/MbedTlsLib/mbedtls/include/mbedtls + mkdir -p CryptoPkg/Library/MbedTlsLib/mbedtls/library + chmod -Rf a+rX,u+w,g-w,o-w . + cp -a -- /builddir/build/SOURCES/50-edk2-aarch64.json /builddir/build/SOURCES/51-edk2-aarch64-verbose.json /builddir/build/SOURCES/30-edk2-ovmf-x64-sb-enrolled.json /builddir/build/SOURCES/40-edk2-ovmf-x64-sb.json /builddir/build/SOURCES/50-edk2-ovmf-x64-nosb.json /builddir/build/SOURCES/60-edk2-ovmf-x64-amdsev.json /builddir/build/SOURCES/60-edk2-ovmf-x64-inteltdx.json /builddir/build/SOURCES/50-edk2-loongarch64.json /builddir/build/SOURCES/51-edk2-loongarch64-verbose.json /builddir/build/SOURCES/edk2-build.py /builddir/build/SOURCES/edk2-build . + /usr/bin/patch -p1 -i /builddir/build/SOURCES/0023-Platform-Loongson-Remove-minimium-memory-size-limita.patch patching file Platform/Loongson/LoongArchQemuPkg/Loongson.dec patching file Platform/Loongson/LoongArchQemuPkg/Loongson.dsc patching file Platform/Loongson/LoongArchQemuPkg/PlatformPei/MemDetect.c patching file Platform/Loongson/LoongArchQemuPkg/PlatformPei/PlatformPei.inf + /usr/bin/patch -p1 -i /builddir/build/SOURCES/0024-Platform-Loongson-Modify-loongarch-uefi-firmware-siz.patch patching file Platform/Loongson/LoongArchQemuPkg/Loongson.fdf.inc patching file Platform/Loongson/LoongArchQemuPkg/VarStore.fdf.inc + /usr/bin/patch -p1 -i /builddir/build/SOURCES/fixup-fdt-parse-error.patch patching file Platform/Loongson/LoongArchQemuPkg/Library/SerialPortLib/EarlySerialPortLib16550.c patching file Platform/Loongson/LoongArchQemuPkg/PlatformPei/Platform.c + /usr/bin/patch -p1 -i /builddir/build/SOURCES/edk2-platform-loong64.patch patching file Platform/Loongson/LoongArchQemuPkg/PlatformPei/Platform.c Hunk #1 FAILED at 193 (different line endings). 1 out of 1 hunk FAILED -- saving rejects to file Platform/Loongson/LoongArchQemuPkg/PlatformPei/Platform.c.rej patching file Platform/Loongson/LoongArchQemuPkg/Library/SerialPortLib/EarlySerialPortLib16550.c Hunk #1 FAILED at 155 (different line endings). 1 out of 1 hunk FAILED -- saving rejects to file Platform/Loongson/LoongArchQemuPkg/Library/SerialPortLib/EarlySerialPortLib16550.c.rej error: Bad exit status from /var/tmp/rpm-tmp.1drRCN (%prep) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.1drRCN (%prep) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # /usr/bin/systemd-nspawn -q -M 6be942ebcebf4942b40c2346beb30284 -D /var/lib/mock/dist-an23.3-build-435004-73067/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.mrnicvbf:/etc/resolv.conf --bind=/dev/mapper/control --bind=/dev/fuse --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin \'--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"\' \'--setenv=PS1= \\s-\\v\\$ \' --setenv=LANG=C.UTF-8 --resolv-conf=off 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 610, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (cmd_pretty(command, env), output), child.returncode) mockbuild.exception.Error: Command failed: # /usr/bin/systemd-nspawn -q -M 6be942ebcebf4942b40c2346beb30284 -D /var/lib/mock/dist-an23.3-build-435004-73067/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.mrnicvbf:/etc/resolv.conf --bind=/dev/mapper/control --bind=/dev/fuse --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin '--setenv=PROMPT_COMMAND=printf "\033]0;\007"' '--setenv=PS1= \s-\v\$ ' --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c '/usr/bin/rpmbuild -bb --noclean --target aarch64 --nodeps /builddir/build/SPECS/edk2.spec'