rub-core -I.. -I../.. -I../../include -I../include -I../../grub-core/lib/libgcrypt-grub/src/ -I../../grub-core/lib/posix_wrap -fno-strict-aliasing -g -pipe -Wall -Werror=format-security -Wp,-D_GLIBCXX_ASSERTIONS -grecord-gcc-switches -fstack-clash-protection -Wall -W -Wshadow -Wpointer-arith -Wundef -Wchar-subscripts -Wcomment -Wdeprecated-declarations -Wdisabled-optimization -Wdiv-by-zero -Wfloat-equal -Wformat-extra-args -Wformat-security -Wformat-y2k -Wimplicit -Wimplicit-function-declaration -Wimplicit-int -Wmain -Wmissing-braces -Wmissing-format-attribute -Wmultichar -Wparentheses -Wreturn-type -Wsequence-point -Wshadow -Wsign-compare -Wswitch -Wtrigraphs -Wunknown-pragmas -Wunused -Wunused-function -Wunused-label -Wunused-parameter -Wunused-value -Wunused-variable -Wwrite-strings -Wnested-externs -Wstrict-prototypes -g -Wredundant-decls -Wmissing-prototypes -Wmissing-declarations -Wcast-align -Wextra -Wattributes -Wendif-labels -Winit-self -Wint-to-pointer-cast -Winvalid-pch -Wmissing-field-initializers -Wnonnull -Woverflow -Wvla -Wpointer-to-int-cast -Wstrict-aliasing -Wvariadic-macros -Wvolatile-register-var -Wpointer-sign -Wmissing-include-dirs -Wmissing-prototypes -Wmissing-declarations -Wformat=2 -freg-struct-return -fno-dwarf2-cfi-asm -fno-asynchronous-unwind-tables -fno-unwind-tables -mcmodel=medany -fno-stack-protector -Wtrampolines -Wextra -Werror=trampolines -fno-trampolines -ffreestanding -fno-builtin -Wno-redundant-decls -c -o normal_module-unidata.o `test -f 'unidata.c' || echo '../../grub-core/'`unidata.c BUILDSTDERR: ../../grub-core/loader/efi/chainloader.c:320:2: error: #error this architecture is not supported by grub2 BUILDSTDERR: 320 | #error this architecture is not supported by grub2 BUILDSTDERR: | ^~~~~ BUILDSTDERR: ../../grub-core/loader/efi/chainloader.c:323:1: error: expected expression before 'static' BUILDSTDERR: 323 | static grub_efi_status_t BUILDSTDERR: | ^~~~~~ BUILDSTDERR: ../../grub-core/loader/efi/chainloader.c: In function 'handle_image': BUILDSTDERR: ../../grub-core/loader/efi/chainloader.c:746:20: warning: implicit declaration of function 'relocate_coff' [-Wimplicit-function-declaration] BUILDSTDERR: 746 | efi_status = relocate_coff (&context, reloc_section, data, BUILDSTDERR: | ^~~~~~~~~~~~~ BUILDSTDERR: ../../grub-core/loader/efi/chainloader.c:746:20: warning: nested extern declaration of 'relocate_coff' [-Wnested-externs] BUILDSTDERR: At top level: BUILDSTDERR: ../../grub-core/loader/efi/chainloader.c:300:1: warning: 'image_is_64_bit' defined but not used [-Wunused-function] BUILDSTDERR: 300 | image_is_64_bit (grub_pe_header_t *pe_hdr) BUILDSTDERR: | ^~~~~~~~~~~~~~~ BUILDSTDERR: make[3]: *** [Makefile:35016: loader/efi/chain_module-chainloader.o] Error 1 BUILDSTDERR: make[3]: *** Waiting for unfinished jobs.... make[3]: Leaving directory '/builddir/build/BUILD/grub-2.04/grub-riscv64-efi-2.04/grub-core' make[2]: Leaving directory '/builddir/build/BUILD/grub-2.04/grub-riscv64-efi-2.04/grub-core' BUILDSTDERR: make[2]: *** [Makefile:28481: all] Error 2 make[1]: Leaving directory '/builddir/build/BUILD/grub-2.04/grub-riscv64-efi-2.04' BUILDSTDERR: make[1]: *** [Makefile:14269: all-recursive] Error 1 BUILDSTDERR: make: *** [Makefile:5947: all] Error 2 BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.rlq3YF (%build) BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.rlq3YF (%build) RPM build errors: Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.7/site-packages/mockbuild/trace_decorator.py", line 96, in trace result = func(*args, **kw) File "/usr/lib/python3.7/site-packages/mockbuild/util.py", line 636, in do 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/grub2.spec