Mock Version: 1.4.14 Mock Version: 1.4.14 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/coreboot-utils.spec'], chrootPath='/var/lib/mock/f31-build-92517-32352/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': 'en_US.UTF-8'}shell=Falselogger=timeout=345600uid=986gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/coreboot-utils.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': 'en_US.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1548892800 Wrote: /builddir/build/SRPMS/coreboot-utils-4.8-4.fc31.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/coreboot-utils.spec'], chrootPath='/var/lib/mock/f31-build-92517-32352/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': 'en_US.UTF-8'}shell=Falselogger=timeout=345600uid=986gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/coreboot-utils.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': 'en_US.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1548892800 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.xgEmkG + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf coreboot-4.8 + /usr/bin/xz -dc /builddir/build/SOURCES/coreboot-4.8.tar.xz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd coreboot-4.8 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 BUILDSTDERR: ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.HOJ9eG + umask 022 + cd /builddir/build/BUILD + cd coreboot-4.8 + make -j4 'CFLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' -C util/romcc romcc BUILDSTDERR: romcc.c: In function 'string_constant': BUILDSTDERR: romcc.c:10786:7: warning: 'ptr' may be used uninitialized in this function [-Wmaybe-uninitialized] BUILDSTDERR: 10786 | *ptr = '\0'; BUILDSTDERR: | ~~~~~^~~~~~ BUILDSTDERR: romcc.c: In function 'compile': BUILDSTDERR: romcc.c:3645:20: warning: '"' directive writing 1 byte into a region of size between 0 and 29 [-Wformat-overflow=] BUILDSTDERR: 3645 | sprintf(buf, "\"%s\"", scratch); BUILDSTDERR: | ^~ BUILDSTDERR: In file included from /usr/include/stdio.h:867, BUILDSTDERR: from romcc.c:14: BUILDSTDERR: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 3 and 32 bytes into a destination of size 30 BUILDSTDERR: 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: 37 | __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: romcc.c:3649:20: warning: '"' directive writing 1 byte into a region of size between 0 and 29 [-Wformat-overflow=] BUILDSTDERR: 3649 | sprintf(buf, "\"%s\"", scratch); BUILDSTDERR: | ^~ BUILDSTDERR: In file included from /usr/include/stdio.h:867, BUILDSTDERR: from romcc.c:14: BUILDSTDERR: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 3 and 32 bytes into a destination of size 30 BUILDSTDERR: 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: 37 | __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + make -j4 'CFLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' -C util/cbmem + make -j4 'CFLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' -C util/ifdfake + make -j4 'CFLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I../../src/commonlib/include' -C util/ifdtool + make -j4 'CFLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' -C util/cbfstool BUILDSTDERR: /builddir/build/BUILD/coreboot-4.8/src/commonlib/lz4_wrapper.c: In function 'LZ4_copy8': BUILDSTDERR: /builddir/build/BUILD/coreboot-4.8/src/commonlib/lz4_wrapper.c:75:26: error: cast discards 'const' qualifier from pointer target type [-Werror=cast-qual] BUILDSTDERR: 75 | ((uint8_t *)dst)[i] = ((uint8_t *)src)[i]; BUILDSTDERR: | ^ BUILDSTDERR: cc1: all warnings being treated as errors BUILDSTDERR: make: *** [Makefile.inc:130: /builddir/build/BUILD/coreboot-4.8/util/cbfstool/lz4_wrapper.o] Error 1 BUILDSTDERR: make: *** Waiting for unfinished jobs.... BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.HOJ9eG (%build) make: Entering directory '/builddir/build/BUILD/coreboot-4.8/util/romcc' gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection romcc.c -o romcc make: Leaving directory '/builddir/build/BUILD/coreboot-4.8/util/romcc' make: Entering directory '/builddir/build/BUILD/coreboot-4.8/util/cbmem' cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I . -I ../../src/commonlib/include -c -o cbmem.o cbmem.c cc cbmem.o -o cbmem make: Leaving directory '/builddir/build/BUILD/coreboot-4.8/util/cbmem' make: Entering directory '/builddir/build/BUILD/coreboot-4.8/util/ifdfake' cc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c -o ifdfake.o ifdfake.c cc -o ifdfake ifdfake.o make: Leaving directory '/builddir/build/BUILD/coreboot-4.8/util/ifdfake' make: Entering directory '/builddir/build/BUILD/coreboot-4.8/util/ifdtool' gcc -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I../../src/commonlib/include -c -o ifdtool.o ifdtool.c gcc -o ifdtool ifdtool.o make: Leaving directory '/builddir/build/BUILD/coreboot-4.8/util/ifdtool' make: Entering directory '/builddir/build/BUILD/coreboot-4.8/util/cbfstool' HOSTCC cbfstool/cbfstool.o HOSTCC cbfstool/common.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/fit.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 HOSTCC cbfstool/lzma.o make: Leaving directory '/builddir/build/BUILD/coreboot-4.8/util/cbfstool' RPM build errors: BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.HOJ9eG (%build) 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 700, 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/coreboot-utils.spec