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 loongarch64 --nodeps /builddir/build/SPECS/efifs.spec'], chrootPath='/home/lib/ocmock/dist-oc9-epol-build-140181-79709/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=981gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target loongarch64 --nodeps /builddir/build/SPECS/efifs.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: loongarch64 Building for target loongarch64 Wrote: /builddir/build/SRPMS/efifs-1.9-2.oc9.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/efifs.spec'], chrootPath='/home/lib/ocmock/dist-oc9-epol-build-140181-79709/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=981gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/efifs.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: loongarch64 Building for target loongarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.KItkQM + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf efifs-1.9 + /usr/bin/mkdir -p efifs-1.9 + cd efifs-1.9 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/efifs-1.9.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/edk2-stable202205.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + cp -p /builddir/build/SOURCES/efifs-enable.sh . ~/build/BUILD/efifs-1.9/efifs-1.9 ~/build/BUILD/efifs-1.9 + pushd efifs-1.9 + tar -xf /builddir/build/SOURCES/grub-d9b4638c50b16d4722e66d334e2c1a674b4a45cc.tar.gz --strip-components=1 --directory grub + cd grub + patch -Np1 -i ../0001-GRUB-fixes.patch patching file grub-core/fs/affs.c patching file grub-core/fs/bfs.c patching file grub-core/fs/btrfs.c patching file grub-core/fs/cbfs.c patching file grub-core/fs/cpio_common.c patching file grub-core/fs/f2fs.c patching file grub-core/fs/fat.c patching file grub-core/fs/hfs.c patching file grub-core/fs/hfsplus.c patching file grub-core/fs/hfspluscomp.c patching file grub-core/fs/iso9660.c patching file grub-core/fs/jfs.c patching file grub-core/fs/nilfs2.c patching file grub-core/fs/ntfs.c patching file grub-core/fs/proc.c patching file grub-core/fs/reiserfs.c patching file grub-core/fs/sfs.c patching file grub-core/fs/squash4.c patching file grub-core/fs/tar.c patching file grub-core/fs/udf.c patching file grub-core/fs/ufs.c patching file grub-core/fs/xfs.c patching file grub-core/fs/zfs/zfs.c patching file grub-core/fs/zfs/zfs_lz4.c patching file grub-core/kern/misc.c patching file grub-core/lib/posix_wrap/limits.h patching file grub-core/lib/xzembed/xz_config.h patching file grub-core/lib/xzembed/xz_dec_lzma2.c patching file grub-core/lib/xzembed/xz_stream.h patching file include/grub/arm64/types.h patching file include/grub/btrfs.h patching file include/grub/disk.h patching file include/grub/exfat.h patching file include/grub/fat.h patching file include/grub/hfs.h patching file include/grub/hfsplus.h patching file include/grub/misc.h patching file include/grub/ntfs.h patching file include/grub/safemath.h patching file include/grub/term.h patching file include/grub/types.h patching file include/grub/unicode.h patching file include/grub/x86_64/types.h patching file include/grub/zfs/zap_leaf.h patching file include/grub/zfs/zio.h + popd ~/build/BUILD/efifs-1.9 ~/build/BUILD/efifs-1.9/edk2-edk2-stable202205 ~/build/BUILD/efifs-1.9 + pushd edk2-edk2-stable202205 + sed -e /BrotliCompress/d -i BaseTools/Source/C/GNUmakefile + ln -s ../efifs-1.9 EfiFsPkg + popd + RPM_EC=0 ~/build/BUILD/efifs-1.9 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.OYRUKq ~/build/BUILD/efifs-1.9/edk2-edk2-stable202205 ~/build/BUILD/efifs-1.9 + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd efifs-1.9 + pushd edk2-edk2-stable202205 + export PYTHON_COMMAND=/usr/bin/python3 + PYTHON_COMMAND=/usr/bin/python3 + /usr/bin/make -O -j32 V=1 VERBOSE=1 -C BaseTools 'EXTRA_OPTFLAGS=-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -fasynchronous-unwind-tables -fstack-clash-protection' 'EXTRA_LDFLAGS=-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' /usr/bin/make -C Source/C /usr/bin/make -C Source/Python make[1]: Nothing to be done for 'all'. make[1]: Entering directory '/builddir/build/BUILD/efifs-1.9/edk2-edk2-stable202205/BaseTools/Source/C' Attempting to detect HOST_ARCH from 'uname -m': loongarch64 Could not detected HOST_ARCH from uname results make[1]: Leaving directory '/builddir/build/BUILD/efifs-1.9/edk2-edk2-stable202205/BaseTools/Source/C' GNUmakefile:34: *** HOST_ARCH is not defined!. Stop. make: *** [GNUmakefile:19: Source/C] Error 2 RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.OYRUKq (%build) Bad exit status from /var/tmp/rpm-tmp.OYRUKq (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/efifs.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.10/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 loongarch64 --nodeps /builddir/build/SPECS/efifs.spec