Mock Version: 1.4.21 Mock Version: 1.4.21 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/foremost.spec'], chrootPath='/var/lib/mock/f33-build-135448-41717/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=432000uid=987gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/foremost.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=1580947200 Wrote: /builddir/build/SRPMS/foremost-1.5.7-24.fc33.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/foremost.spec'], chrootPath='/var/lib/mock/f33-build-135448-41717/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=432000uid=987gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/foremost.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=1580947200 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.rbfbR5 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf foremost-1.5.7 + /usr/bin/gzip -dc /builddir/build/SOURCES/foremost-1.5.7.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd foremost-1.5.7 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/patch -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/foremost-broken-jpeg.patch + /usr/bin/cat /builddir/build/SOURCES/foremost-fix-permission-timestamp.patch + /usr/bin/patch -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/patch -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/foremost-1.5.7-format-security.patch + /usr/bin/cat /builddir/build/SOURCES/foremost-1.5.7-gcc10.patch + /usr/bin/patch -s --fuzz=0 --no-backup-if-mismatch + sed -i 's!/usr/local/etc/foremost.conf!/etc/foremost.conf!' config.c + sed -i 's|^RAW_FLAGS =.*|RAW_FLAGS = -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|' Makefile + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.A5Exl9 + umask 022 + cd /builddir/build/BUILD + cd foremost-1.5.7 + make -j4 CONF=/etc V=1 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 -DVERSION=\"1.5.7\" -D__UNIX -D__LINUX -DLARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c main.c 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 -DVERSION=\"1.5.7\" -D__UNIX -D__LINUX -DLARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c state.c 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 -DVERSION=\"1.5.7\" -D__UNIX -D__LINUX -DLARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c helpers.c 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 -DVERSION=\"1.5.7\" -D__UNIX -D__LINUX -DLARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c config.c config.c: In function 'translate': config.c:27:6: warning: value computed is not used [-Wunused-value] 27 | *rd++; | ^~~~~ config.c:32:6: warning: value computed is not used [-Wunused-value] 32 | *rd++; | ^~~~~ config.c:37:6: warning: value computed is not used [-Wunused-value] 37 | *rd++; | ^~~~~ config.c:42:6: warning: value computed is not used [-Wunused-value] 42 | *rd++; | ^~~~~ config.c:47:6: warning: value computed is not used [-Wunused-value] 47 | *rd++; | ^~~~~ config.c:52:6: warning: value computed is not used [-Wunused-value] 52 | *rd++; | ^~~~~ config.c:57:6: warning: value computed is not used [-Wunused-value] 57 | *rd++; | ^~~~~ state.c: In function 'set_config_file': state.c:78:2: warning: ignoring return value of 'realpath' declared with attribute 'warn_unused_result' [-Wunused-result] 78 | realpath(fn, temp); | ^~~~~~~~~~~~~~~~~~ state.c: In function 'set_output_directory': state.c:99:2: warning: ignoring return value of 'realpath' declared with attribute 'warn_unused_result' [-Wunused-result] 99 | realpath(fn, temp); | ^~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:495, from main.h:38, from state.c:3: In function 'strncpy', inlined from 'set_input_file' at state.c:209:2: /usr/include/bits/string_fortified.h:106:10: warning: '__builtin_strncpy' specified bound depends on the length of the source argument [-Wstringop-overflow=] 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ state.c: In function 'set_input_file': state.c:209:35: note: length computed here 209 | strncpy(s->input_file, filename, strlen(filename) + 1); | ^~~~~~~~~~~~~~~~ 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 -DVERSION=\"1.5.7\" -D__UNIX -D__LINUX -DLARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c cli.c 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 -DVERSION=\"1.5.7\" -D__UNIX -D__LINUX -DLARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c engine.c 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 -DVERSION=\"1.5.7\" -D__UNIX -D__LINUX -DLARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c dir.c 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 -DVERSION=\"1.5.7\" -D__UNIX -D__LINUX -DLARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c extract.c engine.c: In function 'search_chunk': engine.c:319:17: warning: variable 'current_pos' set but not used [-Wunused-but-set-variable] 319 | unsigned char *current_pos = NULL; | ^~~~~~~~~~~ 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 -DVERSION=\"1.5.7\" -D__UNIX -D__LINUX -DLARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c api.c extract.c: In function 'extract_htm': extract.c:557:17: warning: variable 'currentpos' set but not used [-Wunused-but-set-variable] 557 | unsigned char *currentpos = NULL; | ^~~~~~~~~~ extract.c: In function 'extract_wmv': extract.c:1158:14: warning: variable 'fileObjHeaderSize' set but not used [-Wunused-but-set-variable] 1158 | u_int64_t fileObjHeaderSize = 0; | ^~~~~~~~~~~~~~~~~ extract.c:1151:17: warning: variable 'currentpos' set but not used [-Wunused-but-set-variable] 1151 | unsigned char *currentpos = NULL; | ^~~~~~~~~~ extract.c: In function 'extract_gif': extract.c:1405:17: warning: variable 'currentpos' set but not used [-Wunused-but-set-variable] 1405 | unsigned char *currentpos = foundat; | ^~~~~~~~~~ extract.c: In function 'extract_jpeg': extract.c:1825:17: warning: variable 'currentpos' set but not used [-Wunused-but-set-variable] 1825 | unsigned char *currentpos = NULL; | ^~~~~~~~~~ extract.c: In function 'extract_exe': extract.c:2115:15: warning: variable 'align' set but not used [-Wunused-but-set-variable] 2115 | unsigned int align = 0; | ^~~~~ extract.c:2111:15: warning: variable 'size_of_headers' set but not used [-Wunused-but-set-variable] 2111 | unsigned int size_of_headers = 0; | ^~~~~~~~~~~~~~~ extract.c:2109:15: warning: variable 'sizeofimage' set but not used [-Wunused-but-set-variable] 2109 | unsigned int sizeofimage = 0; | ^~~~~~~~~~~ extract.c:2106:15: warning: variable 'rva' set but not used [-Wunused-but-set-variable] 2106 | unsigned int rva = 0; | ^~~ extract.c:2105:15: warning: variable 'SizeOfUninitializedData' set but not used [-Wunused-but-set-variable] 2105 | unsigned int SizeOfUninitializedData = 0; | ^~~~~~~~~~~~~~~~~~~~~~~ extract.c:2104:15: warning: variable 'SizeOfInitializedData' set but not used [-Wunused-but-set-variable] 2104 | unsigned int SizeOfInitializedData = 0; | ^~~~~~~~~~~~~~~~~~~~~ extract.c:2103:15: warning: variable 'SizeOfCode' set but not used [-Wunused-but-set-variable] 2103 | unsigned int SizeOfCode = 0; | ^~~~~~~~~~ extract.c: In function 'extract_rar': extract.c:2276:13: warning: variable 'file_size' set but not used [-Wunused-but-set-variable] 2276 | u_int64_t file_size = 0; | ^~~~~~~~~ api.c: In function 'dump_dirent': api.c:482:10: warning: variable 'unknown' set but not used [-Wunused-but-set-variable] 482 | short unknown; | ^~~~~~~ extract.c: In function 'extract_exe': extract.c:2144:29: warning: ':' directive writing 1 byte into a region of size between 0 and 16 [-Wformat-overflow=] 2144 | "%02d/%02d/%04d %02d:%02d:%02d", | ^ In file included from /usr/include/stdio.h:871, from main.h:33, from extract.c:16: /usr/include/bits/stdio2.h:36:10: note: '__builtin___sprintf_chk' output between 20 and 72 bytes into a destination of size 32 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 -DVERSION=\"1.5.7\" -D__UNIX -D__LINUX -DLARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 main.o state.o helpers.o config.o cli.o engine.o dir.o extract.o api.o -o foremost + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.6je8W6 + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/foremost-1.5.7-24.fc33.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/foremost-1.5.7-24.fc33.riscv64 ++ dirname /builddir/build/BUILDROOT/foremost-1.5.7-24.fc33.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/foremost-1.5.7-24.fc33.riscv64 + cd foremost-1.5.7 + chmod 0644 CHANGES Makefile README api.c api.o cli.c cli.o config.c config.o dir.c dir.o engine.c engine.o extract.c extract.h extract.o foremost foremost.8.gz foremost.conf helpers.c helpers.o main.c main.h main.o ole.h state.c state.o + mkdir -p /builddir/build/BUILDROOT/foremost-1.5.7-24.fc33.riscv64/usr/bin + mkdir -p /builddir/build/BUILDROOT/foremost-1.5.7-24.fc33.riscv64/usr/share/man/man8 + mkdir -p /builddir/build/BUILDROOT/foremost-1.5.7-24.fc33.riscv64/etc + make install BIN=/builddir/build/BUILDROOT/foremost-1.5.7-24.fc33.riscv64/usr/bin MAN=/builddir/build/BUILDROOT/foremost-1.5.7-24.fc33.riscv64/usr/share/man/man8 CONF=/builddir/build/BUILDROOT/foremost-1.5.7-24.fc33.riscv64/etc install -p -m 755 foremost /builddir/build/BUILDROOT/foremost-1.5.7-24.fc33.riscv64/usr/bin install -p -m 644 foremost.8.gz /builddir/build/BUILDROOT/foremost-1.5.7-24.fc33.riscv64/usr/share/man/man8 install -p -m 644 foremost.conf /builddir/build/BUILDROOT/foremost-1.5.7-24.fc33.riscv64/etc + /usr/lib/rpm/find-debuginfo.sh -j4 --strict-build-id -m -i --build-id-seed 1.5.7-24.fc33 --unique-debug-suffix -1.5.7-24.fc33.riscv64 --unique-debug-src-base foremost-1.5.7-24.fc33.riscv64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/foremost-1.5.7 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/foremost-1.5.7-24.fc33.riscv64/usr/bin/foremost extracting debug info from /builddir/build/BUILDROOT/foremost-1.5.7-24.fc33.riscv64/usr/bin/foremost original debug info size: 304kB, size after compression: 284kB /usr/lib/rpm/sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match. 326 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/redhat/brp-python-bytecompile /usr/bin/python 1 0 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs Processing files: foremost-1.5.7-24.fc33.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.PxRLga + umask 022 + cd /builddir/build/BUILD + cd foremost-1.5.7 + DOCDIR=/builddir/build/BUILDROOT/foremost-1.5.7-24.fc33.riscv64/usr/share/doc/foremost + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/foremost-1.5.7-24.fc33.riscv64/usr/share/doc/foremost + cp -pr README /builddir/build/BUILDROOT/foremost-1.5.7-24.fc33.riscv64/usr/share/doc/foremost + cp -pr CHANGES /builddir/build/BUILDROOT/foremost-1.5.7-24.fc33.riscv64/usr/share/doc/foremost + RPM_EC=0 ++ jobs -p + exit 0 Provides: config(foremost) = 1.5.7-24.fc33 foremost = 1.5.7-24.fc33 foremost(riscv-64) = 1.5.7-24.fc33 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: ld-linux-riscv64-lp64d.so.1()(64bit) ld-linux-riscv64-lp64d.so.1(GLIBC_2.27)(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.27)(64bit) rtld(GNU_HASH) Processing files: foremost-debugsource-1.5.7-24.fc33.riscv64 Provides: foremost-debugsource = 1.5.7-24.fc33 foremost-debugsource(riscv-64) = 1.5.7-24.fc33 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: foremost-debuginfo-1.5.7-24.fc33.riscv64 Provides: debuginfo(build-id) = c24f03d8893113de4665e6a4085bc61f1a2e839e foremost-debuginfo = 1.5.7-24.fc33 foremost-debuginfo(riscv-64) = 1.5.7-24.fc33 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: foremost-debugsource(riscv-64) = 1.5.7-24.fc33 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/foremost-1.5.7-24.fc33.riscv64 Wrote: /builddir/build/RPMS/foremost-1.5.7-24.fc33.riscv64.rpm Wrote: /builddir/build/RPMS/foremost-debugsource-1.5.7-24.fc33.riscv64.rpm Wrote: /builddir/build/RPMS/foremost-debuginfo-1.5.7-24.fc33.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.QyUcP6 + umask 022 + cd /builddir/build/BUILD + cd foremost-1.5.7 + /usr/bin/rm -rf /builddir/build/BUILDROOT/foremost-1.5.7-24.fc33.riscv64 + RPM_EC=0 ++ jobs -p + exit 0 Child return code was: 0