pm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I../../src/commonlib/include -I../cbfstool/flashmap -include ../../src/commonlib/include/commonlib/compiler.h -c -o fmap.o ../cbfstool/flashmap/fmap.c gcc -O2 -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 -I../../src/commonlib/include -I../cbfstool/flashmap -include ../../src/commonlib/include/commonlib/compiler.h -c -o kv_pair.o ../cbfstool/flashmap/kv_pair.c gcc -O2 -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 -I../../src/commonlib/include -I../cbfstool/flashmap -include ../../src/commonlib/include/commonlib/compiler.h -c -o valstr.o ../cbfstool/flashmap/valstr.c gcc -o ifdtool ifdtool.o fmap.o kv_pair.o valstr.o make: Leaving directory '/builddir/build/BUILD/coreboot-4.11/util/ifdtool' + make -j4 'CFLAGS=-O2 -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' -C util/cbfstool make: Entering directory '/builddir/build/BUILD/coreboot-4.11/util/cbfstool' HOSTCC cbfstool/common.o HOSTCC cbfstool/cbfstool.o HOSTCC cbfstool/cbfs_image.o HOSTCC cbfstool/cbfs-mkstage.o HOSTCC cbfstool/cbfs-mkpayload.o HOSTCC cbfstool/elfheaders.o HOSTCC cbfstool/rmodule.o HOSTCC cbfstool/xdr.o HOSTCC cbfstool/partitioned_file.o HOSTCC cbfstool/cbfs.o HOSTCC cbfstool/fsp_relocate.o HOSTCC cbfstool/mem_pool.o HOSTCC cbfstool/region.o HOSTCC cbfstool/2sha_utility.o HOSTCC cbfstool/2sha1.o HOSTCC cbfstool/2sha256.o HOSTCC cbfstool/2sha512.o HOSTCC cbfstool/fmap.o HOSTCC cbfstool/kv_pair.o HOSTCC cbfstool/valstr.o HOSTCC cbfstool/linux_trampoline.o HOSTCC cbfstool/cbfs-payload-linux.o HOSTCC cbfstool/compress.o HOSTCC cbfstool/lz4.o HOSTCC cbfstool/lz4hc.o HOSTCC cbfstool/lz4frame.o HOSTCC cbfstool/xxhash.o HOSTCC cbfstool/lz4_wrapper.o /builddir/build/BUILD/coreboot-4.11/src/commonlib/lz4_wrapper.c: In function 'LZ4_copy8': /builddir/build/BUILD/coreboot-4.11/src/commonlib/lz4_wrapper.c:74:26: error: cast discards 'const' qualifier from pointer target type [-Werror=cast-qual] 74 | ((uint8_t *)dst)[i] = ((uint8_t *)src)[i]; | ^ HOSTCC cbfstool/lzma.o cc1: all warnings being treated as errors make: *** [Makefile.inc:164: /builddir/build/BUILD/coreboot-4.11/util/cbfstool/lz4_wrapper.o] Error 1 make: *** Waiting for unfinished jobs.... make: Leaving directory '/builddir/build/BUILD/coreboot-4.11/util/cbfstool' error: Bad exit status from /var/tmp/rpm-tmp.FUiJTV (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.FUiJTV (%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/coreboot-utils.spec