Mock Version: 2.8 Mock Version: 2.8 Mock Version: 2.8 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target loongarch64 --nodeps /builddir/build/SPECS/edk2.spec'], chrootPath='/var/lib/mock/dist-an8-loongarch64-build-55597-27772/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=986gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.iru7pk1y:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--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']unshare_net=TrueprintOutput=False) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.iru7pk1y:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--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', 'e6815c7e57d34e7ca169ab28e0017da6', '-D', '/var/lib/mock/dist-an8-loongarch64-build-55597-27772/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.iru7pk1y:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--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 --target loongarch64 --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'} and shell False warning: Macro expanded in comment on line 17: %{GITCOMMIT} Building target platforms: loongarch64 Building for target loongarch64 Wrote: /builddir/build/SRPMS/edk2-20200602gitca407c7246bf-4.an8.1.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target loongarch64 --nodeps /builddir/build/SPECS/edk2.spec'], chrootPath='/var/lib/mock/dist-an8-loongarch64-build-55597-27772/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=986gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.iru7pk1y:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--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']unshare_net=TrueprintOutput=False) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.iru7pk1y:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--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', 'b2992b5474e24441a3943c4444413c90', '-D', '/var/lib/mock/dist-an8-loongarch64-build-55597-27772/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.iru7pk1y:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--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 --target loongarch64 --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'} and shell False warning: Macro expanded in comment on line 17: %{GITCOMMIT} Building target platforms: loongarch64 Building for target loongarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.R7MbFc + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf edk2-ca407c7246bf + /usr/bin/xz -dc /builddir/build/SOURCES/edk2-ca407c7246bf.tar.xz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd edk2-ca407c7246bf + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + PATCHCOUNT=30 + PATCHLIST=/tmp/lua_tzPmXe + 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-ca407c7246bf base' ++ grep '\.patch$' /tmp/lua_tzPmXe ++ wc -l + COUNT=30 + '[' 30 -ne 30 ']' + '[' 30 -gt 0 ']' ++ cat /tmp/lua_tzPmXe + for pf in `cat $PATCHLIST` + git am /builddir/build/SOURCES/0007-BaseTools-do-not-build-BrotliCompress-RH-only.patch 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/0008-MdeModulePkg-remove-package-private-Brotli-include-p.patch 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/0009-advertise-OpenSSL-on-TianoCore-splash-screen-boot-lo.patch .git/rebase-apply/patch:380: new blank line at EOF. + warning: 1 line adds whitespace errors. Applying: advertise OpenSSL on TianoCore splash screen / boot logo (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/0010-OvmfPkg-increase-max-debug-message-length-to-512-RHE.patch 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-OvmfPkg-QemuVideoDxe-enable-debug-messages-in-VbeShi.patch Applying: OvmfPkg: QemuVideoDxe: enable debug messages in VbeShim (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-add-other-text-resolutions-.patch 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/0013-MdeModulePkg-TerminalDxe-set-xterm-resolution-on-mod.patch 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/0014-OvmfPkg-take-PcdResizeXterm-from-the-QEMU-command-li.patch 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/0015-ArmVirtPkg-take-PcdResizeXterm-from-the-QEMU-command.patch 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/0016-OvmfPkg-allow-exclusion-of-the-shell-from-the-firmwa.patch 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/0017-ArmPlatformPkg-introduce-fixed-PCD-for-early-hello-m.patch 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/0018-ArmPlatformPkg-PrePeiCore-write-early-hello-message-.patch 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/0019-ArmVirtPkg-set-early-hello-message-RH-only.patch 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/0020-OvmfPkg-enable-DEBUG_VERBOSE-RHEL-only.patch 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/0021-OvmfPkg-silence-DEBUG_VERBOSE-0x00400000-in-QemuVide.patch 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/0022-ArmVirtPkg-silence-DEBUG_VERBOSE-0x00400000-in-QemuR.patch 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/0023-OvmfPkg-QemuRamfbDxe-Do-not-report-DXE-failure-on-Aa.patch 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/0024-OvmfPkg-silence-EFI_D_VERBOSE-0x00400000-in-NvmExpre.patch 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/0025-CryptoPkg-OpensslLib-list-RHEL8-specific-OpenSSL-fil.patch 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/0026-OvmfPkg-X86QemuLoadImageLib-handle-EFI_ACCESS_DENIED.patch Applying: OvmfPkg/X86QemuLoadImageLib: handle EFI_ACCESS_DENIED from LoadImage() 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/0027-Revert-OvmfPkg-use-generic-QEMU-image-loader-for-sec.patch Applying: Revert "OvmfPkg: use generic QEMU image loader for secure boot enabled builds" 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-QemuKernelLoaderFsDxe-suppress-error-on-no-k.patch 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/edk2-OvmfPkg-GenericQemuLoadImageLib-log-Not-Found-at-INF.patch Applying: OvmfPkg/GenericQemuLoadImageLib: log "Not Found" at INFO level 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-Tcg2Dxe-suppress-error-on-no-swtpm-in-si.patch 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-UefiCpuPkg-PiSmmCpuDxeSmm-pause-in-WaitForSemaphore-.patch Applying: UefiCpuPkg/PiSmmCpuDxeSmm: pause in WaitForSemaphore() before re-fetch 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-SmmControl2Dxe-negotiate-ICH9_LPC_SMI_F_CPU_.patch Applying: OvmfPkg/SmmControl2Dxe: negotiate ICH9_LPC_SMI_F_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/edk2-OvmfPkg-CpuHotplugSmm-fix-CPU-hotplug-race-just-befo.patch Applying: OvmfPkg/CpuHotplugSmm: fix CPU hotplug race just before SMI broadcast 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-CpuHotplugSmm-fix-CPU-hotplug-race-just-afte.patch Applying: OvmfPkg/CpuHotplugSmm: fix CPU hotplug race just after SMI broadcast 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-CryptoPkg-OpensslLib-Upgrade-OpenSSL-to-1.1.1g.patch Applying: CryptoPkg/OpensslLib: Upgrade OpenSSL to 1.1.1g 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-MdeModulePkg-LzmaCustomDecompressLib-catch-4GB-uncom.patch Applying: MdeModulePkg/LzmaCustomDecompressLib: catch 4GB+ uncompressed buffer sizes Auto packing the repository in background for optimum performance. See "git help gc" for manual housekeeping. + echo 'Applied 30 patches' Applied 30 patches + rm -f /tmp/lua_tzPmXe + cp -a -- /builddir/build/SOURCES/ovmf-whitepaper-c770f8c.txt /builddir/build/SOURCES/ovmf-vars-generator . + cp -a -- /builddir/build/SOURCES/edk2-aarch64-verbose.json /builddir/build/SOURCES/edk2-aarch64.json /builddir/build/SOURCES/edk2-ovmf-sb.json /builddir/build/SOURCES/edk2-ovmf.json . + tar -C CryptoPkg/Library/OpensslLib -a -f /builddir/build/SOURCES/openssl-rhel-bdd048e929dcfcf2f046d74e812e0e3d5fc58504.tar.xz -x + sed -e 's/^-----BEGIN CERTIFICATE-----$/4e32566d-8e9e-4f52-81d3-5bb9715f9727:/' -e '/^-----END CERTIFICATE-----$/d' /builddir/build/SOURCES/RedHatSecureBootPkKek1.pem + chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.4UbM5a + umask 022 + cd /builddir/build/BUILD + cd edk2-ca407c7246bf + export PYTHON_COMMAND=/usr/libexec/platform-python + PYTHON_COMMAND=/usr/libexec/platform-python + source ./edksetup.sh ++ SCRIPTNAME=edksetup.sh ++ RECONFIG=FALSE ++ I=0 ++ '[' 0 -gt 0 ']' ++ '[' 0 -gt 0 ']' ++ SourceEnv ++ SetWorkspace ++ export PYTHONHASHSEED=1 ++ PYTHONHASHSEED=1 ++ '[' -n '' ']' ++ '[' '!' ./edksetup.sh -ef ./edksetup.sh ']' ++ '[' '!' -f BaseTools/BuildEnv ']' ++ export WORKSPACE=/builddir/build/BUILD/edk2-ca407c7246bf ++ WORKSPACE=/builddir/build/BUILD/edk2-ca407c7246bf ++ return 0 ++ SetupEnv ++ '[' -n '' ']' ++ '[' -f /builddir/build/BUILD/edk2-ca407c7246bf/BaseTools/BuildEnv ']' ++ . /builddir/build/BUILD/edk2-ca407c7246bf/BaseTools/BuildEnv +++ ScriptMain +++ SetWorkspace +++ '[' -n /builddir/build/BUILD/edk2-ca407c7246bf ']' +++ return 0 +++ '[' -z /builddir/build/BUILD/edk2-ca407c7246bf ']' +++ RestorePreviousConfiguration +++ '[' -z '' ']' +++ export CONF_PATH=/builddir/build/BUILD/edk2-ca407c7246bf/Conf +++ CONF_PATH=/builddir/build/BUILD/edk2-ca407c7246bf/Conf +++ '[' '!' -d /builddir/build/BUILD/edk2-ca407c7246bf/Conf ']' +++ PREVIOUS_CONF_FILE=/builddir/build/BUILD/edk2-ca407c7246bf/Conf/BuildEnv.sh +++ '[' -e /builddir/build/BUILD/edk2-ca407c7246bf/Conf/BuildEnv.sh ']' +++ SetEdkToolsPath +++ '[' -n '' ']' +++ '[' -e /builddir/build/BUILD/edk2-ca407c7246bf/Conf/EdkTools ']' +++ '[' -e /builddir/build/BUILD/edk2-ca407c7246bf/Conf/BaseToolsSource ']' +++ '[' -e /builddir/build/BUILD/edk2-ca407c7246bf/BaseTools ']' +++ export EDK_TOOLS_PATH=/builddir/build/BUILD/edk2-ca407c7246bf/BaseTools +++ EDK_TOOLS_PATH=/builddir/build/BUILD/edk2-ca407c7246bf/BaseTools +++ return 0 +++ '[' -z /builddir/build/BUILD/edk2-ca407c7246bf/BaseTools ']' +++ AddEdkToolsToPath +++ '[' -z /builddir/build/BUILD/edk2-ca407c7246bf/BaseTools ']' ++++ GetEdkToolsPathBinDirectory +++++ GetBaseToolsBinSubDir ++++++ uname -sm +++++ UNAME_DIRNAME='Linux loongarch64' +++++ UNAME_DIRNAME=Linux-loongarch64 +++++ UNAME_DIRNAME=Linux-loongarch64 +++++ echo Linux-loongarch64 ++++ BIN_SUB_DIR=Linux-loongarch64 ++++ '[' -e /builddir/build/BUILD/edk2-ca407c7246bf/BaseTools/BinWrappers/Linux-loongarch64 ']' ++++ EDK_TOOLS_PATH_BIN=/builddir/build/BUILD/edk2-ca407c7246bf/BaseTools/Bin/Linux-loongarch64 ++++ echo /builddir/build/BUILD/edk2-ca407c7246bf/BaseTools/Bin/Linux-loongarch64 +++ EDK_TOOLS_PATH_BIN=/builddir/build/BUILD/edk2-ca407c7246bf/BaseTools/Bin/Linux-loongarch64 +++ AddDirToStartOfPath /builddir/build/BUILD/edk2-ca407c7246bf/BaseTools/BinWrappers/PosixLike +++ DIRNAME=/builddir/build/BUILD/edk2-ca407c7246bf/BaseTools/BinWrappers/PosixLike +++ PATH=/builddir/build/BUILD/edk2-ca407c7246bf/BaseTools/BinWrappers/PosixLike:/builddir/build/BUILD/edk2-ca407c7246bf/BaseTools/BinWrappers/PosixLike:/builddir/build/BUILD/edk2-ca407c7246bf/BaseTools/BinWrappers/PosixLike:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin +++ PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin +++ PATH=/builddir/build/BUILD/edk2-ca407c7246bf/BaseTools/BinWrappers/PosixLike:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin +++ export PATH +++ AddDirToStartOfPath /builddir/build/BUILD/edk2-ca407c7246bf/BaseTools/Bin/Linux-loongarch64 +++ DIRNAME=/builddir/build/BUILD/edk2-ca407c7246bf/BaseTools/Bin/Linux-loongarch64 +++ PATH=/builddir/build/BUILD/edk2-ca407c7246bf/BaseTools/Bin/Linux-loongarch64:/builddir/build/BUILD/edk2-ca407c7246bf/BaseTools/Bin/Linux-loongarch64:/builddir/build/BUILD/edk2-ca407c7246bf/BaseTools/Bin/Linux-loongarch64:/builddir/build/BUILD/edk2-ca407c7246bf/BaseTools/BinWrappers/PosixLike:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin +++ PATH=/builddir/build/BUILD/edk2-ca407c7246bf/BaseTools/BinWrappers/PosixLike:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin +++ PATH=/builddir/build/BUILD/edk2-ca407c7246bf/BaseTools/Bin/Linux-loongarch64:/builddir/build/BUILD/edk2-ca407c7246bf/BaseTools/BinWrappers/PosixLike:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin +++ export PATH +++ '[' 0 -ne 0 ']' +++ StoreCurrentConfiguration +++ OUTPUT_FILE=/builddir/build/BUILD/edk2-ca407c7246bf/Conf/BuildEnv.sh +++ echo '# Auto-generated by /builddir/build/BUILD/edk2-ca407c7246bf/BaseTools/BuildEnv' +++ GenerateShellCodeToSetVariable WORKSPACE /builddir/build/BUILD/edk2-ca407c7246bf/Conf/BuildEnv.sh +++ VARIABLE=WORKSPACE +++ OUTPUT_FILE=/builddir/build/BUILD/edk2-ca407c7246bf/Conf/BuildEnv.sh +++ VAR_VALUE='echo ${WORKSPACE}' WORKSPACE: /builddir/build/BUILD/edk2-ca407c7246bf EDK_TOOLS_PATH: /builddir/build/BUILD/edk2-ca407c7246bf/BaseTools CONF_PATH: /builddir/build/BUILD/edk2-ca407c7246bf/Conf Copying $EDK_TOOLS_PATH/Conf/build_rule.template to /builddir/build/BUILD/edk2-ca407c7246bf/Conf/build_rule.txt ++++ eval echo '${WORKSPACE}' +++++ echo /builddir/build/BUILD/edk2-ca407c7246bf +++ VAR_VALUE=/builddir/build/BUILD/edk2-ca407c7246bf +++ echo 'if [ -z "$WORKSPACE" ]' +++ echo then +++ echo ' export WORKSPACE=/builddir/build/BUILD/edk2-ca407c7246bf' +++ echo fi +++ GenerateShellCodeToSetVariable EDK_TOOLS_PATH /builddir/build/BUILD/edk2-ca407c7246bf/Conf/BuildEnv.sh +++ VARIABLE=EDK_TOOLS_PATH +++ OUTPUT_FILE=/builddir/build/BUILD/edk2-ca407c7246bf/Conf/BuildEnv.sh +++ VAR_VALUE='echo ${EDK_TOOLS_PATH}' ++++ eval echo '${EDK_TOOLS_PATH}' +++++ echo /builddir/build/BUILD/edk2-ca407c7246bf/BaseTools +++ VAR_VALUE=/builddir/build/BUILD/edk2-ca407c7246bf/BaseTools +++ echo 'if [ -z "$EDK_TOOLS_PATH" ]' +++ echo then +++ echo ' export EDK_TOOLS_PATH=/builddir/build/BUILD/edk2-ca407c7246bf/BaseTools' +++ echo fi +++ GenerateShellCodeToUpdatePath /builddir/build/BUILD/edk2-ca407c7246bf/Conf/BuildEnv.sh +++ OUTPUT_FILE=/builddir/build/BUILD/edk2-ca407c7246bf/Conf/BuildEnv.sh +++ echo 'if [ -e /builddir/build/BUILD/edk2-ca407c7246bf/BaseTools/Bin/Linux-loongarch64 ]' +++ echo then +++ echo ' if [ ${PATH//builddir/build/BUILD/edk2-ca407c7246bf/BaseTools/Bin/Linux-loongarch64/} == $PATH ]' +++ echo ' then' +++ echo ' export PATH=/builddir/build/BUILD/edk2-ca407c7246bf/BaseTools/Bin/Linux-loongarch64:$PATH' +++ echo ' fi' +++ echo fi +++ echo WORKSPACE: /builddir/build/BUILD/edk2-ca407c7246bf +++ echo EDK_TOOLS_PATH: /builddir/build/BUILD/edk2-ca407c7246bf/BaseTools +++ echo CONF_PATH: /builddir/build/BUILD/edk2-ca407c7246bf/Conf +++ CopyTemplateFiles +++ CopySingleTemplateFile build_rule +++ SRC_FILENAME=Conf/build_rule.template +++ DST_FILENAME=/builddir/build/BUILD/edk2-ca407c7246bf/Conf/build_rule.txt +++ '[' -e /builddir/build/BUILD/edk2-ca407c7246bf/Conf/build_rule.txt ']' +++ echo 'Copying $EDK_TOOLS_PATH/Conf/build_rule.template' +++ echo ' to /builddir/build/BUILD/edk2-ca407c7246bf/Conf/build_rule.txt' +++ SRC_FILENAME=/builddir/build/BUILD/edk2-ca407c7246bf/BaseTools/Conf/build_rule.template +++ cp /builddir/build/BUILD/edk2-ca407c7246bf/BaseTools/Conf/build_rule.template /builddir/build/BUILD/edk2-ca407c7246bf/Conf/build_rule.txt Copying $EDK_TOOLS_PATH/Conf/tools_def.template to /builddir/build/BUILD/edk2-ca407c7246bf/Conf/tools_def.txt Copying $EDK_TOOLS_PATH/Conf/target.template to /builddir/build/BUILD/edk2-ca407c7246bf/Conf/target.txt +++ CopySingleTemplateFile tools_def +++ SRC_FILENAME=Conf/tools_def.template +++ DST_FILENAME=/builddir/build/BUILD/edk2-ca407c7246bf/Conf/tools_def.txt +++ '[' -e /builddir/build/BUILD/edk2-ca407c7246bf/Conf/tools_def.txt ']' +++ echo 'Copying $EDK_TOOLS_PATH/Conf/tools_def.template' +++ echo ' to /builddir/build/BUILD/edk2-ca407c7246bf/Conf/tools_def.txt' +++ SRC_FILENAME=/builddir/build/BUILD/edk2-ca407c7246bf/BaseTools/Conf/tools_def.template +++ cp /builddir/build/BUILD/edk2-ca407c7246bf/BaseTools/Conf/tools_def.template /builddir/build/BUILD/edk2-ca407c7246bf/Conf/tools_def.txt +++ CopySingleTemplateFile target +++ SRC_FILENAME=Conf/target.template +++ DST_FILENAME=/builddir/build/BUILD/edk2-ca407c7246bf/Conf/target.txt +++ '[' -e /builddir/build/BUILD/edk2-ca407c7246bf/Conf/target.txt ']' +++ echo 'Copying $EDK_TOOLS_PATH/Conf/target.template' +++ echo ' to /builddir/build/BUILD/edk2-ca407c7246bf/Conf/target.txt' +++ SRC_FILENAME=/builddir/build/BUILD/edk2-ca407c7246bf/BaseTools/Conf/target.template +++ cp /builddir/build/BUILD/edk2-ca407c7246bf/BaseTools/Conf/target.template /builddir/build/BUILD/edk2-ca407c7246bf/Conf/target.txt ++ SetupPython ++ '[' /usr/libexec/platform-python ']' ++ '[' -z ']' ++ command -v /usr/libexec/platform-python ++ return 0 ++ unset SCRIPTNAME RECONFIG ++ return 0 + make -C /builddir/build/BUILD/edk2-ca407c7246bf/BaseTools -j4 'EXTRA_OPTFLAGS=-O2 -g' 'EXTRA_LDFLAGS=-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' make: Entering directory '/builddir/build/BUILD/edk2-ca407c7246bf/BaseTools' make -C Source/C make -C Source/Python make[1]: Entering directory '/builddir/build/BUILD/edk2-ca407c7246bf/BaseTools/Source/C' Attempting to detect HOST_ARCH from 'uname -m': loongarch64 make[1]: Entering directory '/builddir/build/BUILD/edk2-ca407c7246bf/BaseTools/Source/Python' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/builddir/build/BUILD/edk2-ca407c7246bf/BaseTools/Source/Python' Could not detected HOST_ARCH from uname results make[1]: Leaving directory '/builddir/build/BUILD/edk2-ca407c7246bf/BaseTools/Source/C' GNUmakefile:31: *** HOST_ARCH is not defined!. Stop. make: *** [GNUmakefile:19: Source/C] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.4UbM5a (%build) Macro expanded in comment on line 17: %{GITCOMMIT} Bad exit status from /var/tmp/rpm-tmp.4UbM5a (%build) make: Leaving directory '/builddir/build/BUILD/edk2-ca407c7246bf/BaseTools' RPM build errors: Child return code was: 1 EXCEPTION: [Error()] 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 600, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # /usr/bin/systemd-nspawn -q -M b2992b5474e24441a3943c4444413c90 -D /var/lib/mock/dist-an8-loongarch64-build-55597-27772/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.iru7pk1y:/etc/resolv.conf --bind=/dev/btrfs-control --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 --target loongarch64 --nodeps /builddir/build/SPECS/edk2.spec