UILD/efifs-1.7/efifs-1.7 ~/build/BUILD/efifs-1.7 + tar -xf /builddir/build/SOURCES/grub-d7cac52eb21b866ffec66dc8d1319cc0695c94ee.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/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/reiserfs.c patching file grub-core/fs/sfs.c patching file grub-core/fs/squash4.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/minilzo/lzodefs.h 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/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.7 ~/build/BUILD/efifs-1.7/edk2-edk2-stable202008 ~/build/BUILD/efifs-1.7 + pushd edk2-edk2-stable202008 + sed -e /BrotliCompress/d -i BaseTools/Source/C/GNUmakefile + ln -s ../efifs-1.7 EfiFsPkg + popd ~/build/BUILD/efifs-1.7 + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.vcJAkh + umask 022 + cd /builddir/build/BUILD + cd efifs-1.7 ~/build/BUILD/efifs-1.7/edk2-edk2-stable202008 ~/build/BUILD/efifs-1.7 + pushd edk2-edk2-stable202008 + export PYTHON_COMMAND=/usr/bin/python3 + PYTHON_COMMAND=/usr/bin/python3 + /usr/bin/make -O -j4 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/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' 'EXTRA_LDFLAGS=-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld ' /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.7/edk2-edk2-stable202008/BaseTools/Source/C' Attempting to detect HOST_ARCH from 'uname -m': riscv64 Could not detected HOST_ARCH from uname results make[1]: Leaving directory '/builddir/build/BUILD/efifs-1.7/edk2-edk2-stable202008/BaseTools/Source/C' GNUmakefile:31: *** 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.vcJAkh (%build) Bad exit status from /var/tmp/rpm-tmp.vcJAkh (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/mockbuild/trace_decorator.py", line 95, in trace result = func(*args, **kw) File "/usr/lib/python3.8/site-packages/mockbuild/util.py", line 746, 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 --target riscv64 --nodeps /builddir/build/SPECS/efifs.spec