Mock Version: 6.5 Mock Version: 6.5 Mock Version: 6.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target riscv64 --nodeps /builddir/build/SPECS/foremost.spec'], chrootPath='/var/lib/mock/f45-build-9190-399/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': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=995gid=135user='mockbuild'unshare_net=TrueprintOutput=Falsenspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.5rkxlwn1:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.5rkxlwn1:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'f9c0192af94241429f2392f078d17e39', '-D', '/var/lib/mock/f45-build-9190-399/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.5rkxlwn1:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --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': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1784419200 Wrote: /builddir/build/SRPMS/foremost-1.5.7-45.fc45.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/foremost.spec'], chrootPath='/var/lib/mock/f45-build-9190-399/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': 'C.UTF-8'}shell=Falselogger=timeout=864000uid=995gid=135user='mockbuild'unshare_net=TrueprintOutput=Falsenspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.5rkxlwn1:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.5rkxlwn1:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '5530e1d2e4f04ff0a2033f07acf28c08', '-D', '/var/lib/mock/f45-build-9190-399/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.5rkxlwn1:/etc/resolv.conf', '--bind=/dev/btrfs-control', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--console=pipe', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --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': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1784419200 Executing(mkbuilddir): /bin/sh -e /var/tmp/rpm-tmp.BsrlmN Creating(rpmbuild.env): /builddir/build/BUILD/foremost-1.5.7-build/rpmbuild.env RPM_SOURCE_DIR="/builddir/build/SOURCES" RPM_BUILD_DIR="/builddir/build/BUILD/foremost-1.5.7-build" RPM_OPT_FLAGS="-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer" RPM_LD_FLAGS="-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes " RPM_ARCH="riscv64" RPM_OS="linux" RPM_BUILD_NCPUS="8" RPM_SPECPARTS_DIR="/builddir/build/BUILD/foremost-1.5.7-build/SPECPARTS" export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_ARCH RPM_OS RPM_BUILD_NCPUS RPM_SPECPARTS_DIR RPM_LD_FLAGS RPM_DOC_DIR="/usr/share/doc" export RPM_DOC_DIR RPM_PACKAGE_NAME="foremost" RPM_PACKAGE_VERSION="1.5.7" RPM_PACKAGE_RELEASE="45.fc45" export RPM_PACKAGE_NAME RPM_PACKAGE_VERSION RPM_PACKAGE_RELEASE LANG=C.UTF-8 export LANG unset CDPATH DISPLAY ||: unset DEBUGINFOD_URLS ||: unset RPM_CONFIG_DIR ||: RPM_BUILD_ROOT="/builddir/build/BUILD/foremost-1.5.7-build/BUILDROOT" export RPM_BUILD_ROOT PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:/usr/lib64/pkgconfig:/usr/share/pkgconfig" export PKG_CONFIG_PATH CONFIG_SITE=${CONFIG_SITE:-NONE} export CONFIG_SITE Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.QA4B1d + umask 022 + cd /builddir/build/BUILD/foremost-1.5.7-build + cd /builddir/build/BUILD/foremost-1.5.7-build + rm -rf foremost-1.5.7 + /usr/bin/rpmuncompress -x /builddir/build/SOURCES/foremost-1.5.7.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd foremost-1.5.7 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/rpmuncompress /builddir/build/SOURCES/foremost-broken-jpeg.patch + /usr/bin/patch -s --fuzz=0 --no-backup-if-mismatch -f + /usr/bin/rpmuncompress /builddir/build/SOURCES/foremost-fix-permission-timestamp.patch + /usr/bin/patch -s --fuzz=0 --no-backup-if-mismatch -f + /usr/bin/rpmuncompress /builddir/build/SOURCES/foremost-1.5.7-format-security.patch + /usr/bin/patch -s --fuzz=0 --no-backup-if-mismatch -f + /usr/bin/patch -s --fuzz=0 --no-backup-if-mismatch -f + /usr/bin/rpmuncompress /builddir/build/SOURCES/foremost-1.5.7-gcc10.patch + sed -i 's!/usr/local/etc/foremost.conf!/etc/foremost.conf!' config.c + sed -i 's|^RAW_FLAGS =.*|RAW_FLAGS = -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer|' Makefile + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.K85oA8 + umask 022 + cd /builddir/build/BUILD/foremost-1.5.7-build + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd foremost-1.5.7 + make -j8 CONF=/etc V=1 gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DVERSION=\"1.5.7\" -D__UNIX -D__LINUX -DLARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c main.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DVERSION=\"1.5.7\" -D__UNIX -D__LINUX -DLARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c state.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DVERSION=\"1.5.7\" -D__UNIX -D__LINUX -DLARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c helpers.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DVERSION=\"1.5.7\" -D__UNIX -D__LINUX -DLARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c config.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DVERSION=\"1.5.7\" -D__UNIX -D__LINUX -DLARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c cli.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DVERSION=\"1.5.7\" -D__UNIX -D__LINUX -DLARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c engine.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DVERSION=\"1.5.7\" -D__UNIX -D__LINUX -DLARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c dir.c gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DVERSION=\"1.5.7\" -D__UNIX -D__LINUX -DLARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c extract.c extract.c: In function ‘extract_htm’: extract.c:557:26: warning: variable ‘currentpos’ set but not used [-Wunused-but-set-variable=] 557 | unsigned char *currentpos = NULL; | ^~~~~~~~~~ extract.c: In function ‘extract_ole’: extract.c:723:41: warning: variable ‘extrasize’ set but not used [-Wunused-but-set-variable=] 723 | int extrasize = 0; | ^~~~~~~~~ extract.c: In function ‘extract_wmv’: extract.c:1158:41: warning: variable ‘fileObjHeaderSize’ set but not used [-Wunused-but-set-variable=] 1158 | u_int64_t fileObjHeaderSize = 0; | ^~~~~~~~~~~~~~~~~ extract.c:1151:26: 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:26: warning: variable ‘currentpos’ set but not used [-Wunused-but-set-variable=] 1405 | unsigned char *currentpos = foundat; | ^~~~~~~~~~ extract.c: In function ‘extract_mpg’: extract.c:1485:41: warning: variable ‘j’ set but not used [-Wunused-but-set-variable=] 1485 | int j = 0; | ^ extract.c: In function ‘extract_jpeg’: extract.c:1825:26: 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:25: warning: variable ‘align’ set but not used [-Wunused-but-set-variable=] 2115 | unsigned int align = 0; | ^~~~~ extract.c:2111:25: warning: variable ‘size_of_headers’ set but not used [-Wunused-but-set-variable=] 2111 | unsigned int size_of_headers = 0; | ^~~~~~~~~~~~~~~ extract.c:2109:25: warning: variable ‘sizeofimage’ set but not used [-Wunused-but-set-variable=] 2109 | unsigned int sizeofimage = 0; | ^~~~~~~~~~~ extract.c:2106:25: warning: variable ‘rva’ set but not used [-Wunused-but-set-variable=] 2106 | unsigned int rva = 0; | ^~~ extract.c:2105:25: warning: variable ‘SizeOfUninitializedData’ set but not used [-Wunused-but-set-variable=] 2105 | unsigned int SizeOfUninitializedData = 0; | ^~~~~~~~~~~~~~~~~~~~~~~ extract.c:2104:25: warning: variable ‘SizeOfInitializedData’ set but not used [-Wunused-but-set-variable=] 2104 | unsigned int SizeOfInitializedData = 0; | ^~~~~~~~~~~~~~~~~~~~~ extract.c:2103:25: 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:33: warning: variable ‘file_size’ set but not used [-Wunused-but-set-variable=] 2276 | u_int64_t file_size = 0; | ^~~~~~~~~ dir.c: In function ‘write_to_disk’: engine.c: In function ‘search_chunk’: engine.c:319:26: warning: variable ‘current_pos’ set but not used [-Wunused-but-set-variable=] 319 | unsigned char *current_pos = NULL; | ^~~~~~~~~~~ dir.c:327:37: warning: the comparison will always evaluate as ‘false’ for the address of ‘comment’ will never be NULL [-Waddress] 327 | if (needle->comment == NULL) | ^~ In file included from dir.c:3: main.h:343:10: note: ‘comment’ declared here 343 | char comment[MAX_STRING_LENGTH];/*Used for audit*/ | ^~~~~~~ dir.c:387:29: warning: the comparison will always evaluate as ‘false’ for the address of ‘comment’ will never be NULL [-Waddress] 387 | if (needle->comment == NULL) | ^~ main.h:343:10: note: ‘comment’ declared here 343 | char comment[MAX_STRING_LENGTH];/*Used for audit*/ | ^~~~~~~ engine.c: In function ‘user_interrupt’: engine.c:25:9: warning: pointer ‘s’ used after ‘free’ [-Wuse-after-free] 25 | cleanup_output(s); | ^~~~~~~~~~~~~~~~~ engine.c:23:9: note: call to ‘free’ here 23 | free(s); | ^~~~~~~ gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DVERSION=\"1.5.7\" -D__UNIX -D__LINUX -DLARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -c api.c config.c: In function ‘translate’: config.c:27:41: warning: value computed is not used [-Wunused-value] 27 | *rd++; | ^~~~~ config.c:32:41: warning: value computed is not used [-Wunused-value] 32 | *rd++; | ^~~~~ config.c:37:41: warning: value computed is not used [-Wunused-value] 37 | *rd++; | ^~~~~ config.c:42:41: warning: value computed is not used [-Wunused-value] 42 | *rd++; | ^~~~~ config.c:47:41: warning: value computed is not used [-Wunused-value] 47 | *rd++; | ^~~~~ config.c:52:41: warning: value computed is not used [-Wunused-value] 52 | *rd++; | ^~~~~ config.c:57:41: warning: value computed is not used [-Wunused-value] 57 | *rd++; | ^~~~~ state.c: In function ‘set_config_file’: state.c:78:9: 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:9: warning: ignoring return value of ‘realpath’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 99 | realpath(fn, temp); | ^~~~~~~~~~~~~~~~~~ api.c: In function ‘get_dir_info’: api.c:172:30: warning: the comparison will always evaluate as ‘false’ for the address of ‘name’ will never be NULL [-Waddress] 172 | if (dl->name == NULL) | ^~ In file included from api.c:7: ole.h:75:17: note: ‘name’ declared here 75 | char name[64]; | ^~~~ api.c: In function ‘dump_dirent’: api.c:482:33: warning: variable ‘unknown’ set but not used [-Wunused-but-set-variable=] 482 | short unknown; | ^~~~~~~ extract.c: In function ‘extract_exe’: extract.c:2144:50: 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:974, from main.h:33, from extract.c:16: In function ‘sprintf’, inlined from ‘extract_exe’ at extract.c:2143:2: /usr/include/bits/stdio2.h:30:10: note: ‘__builtin___sprintf_chk’ output between 20 and 72 bytes into a destination of size 32 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ gcc -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -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.cYzWwq + umask 022 + cd /builddir/build/BUILD/foremost-1.5.7-build + '[' /builddir/build/BUILD/foremost-1.5.7-build/BUILDROOT '!=' / ']' + rm -rf /builddir/build/BUILD/foremost-1.5.7-build/BUILDROOT ++ dirname /builddir/build/BUILD/foremost-1.5.7-build/BUILDROOT + mkdir -p /builddir/build/BUILD/foremost-1.5.7-build + mkdir /builddir/build/BUILD/foremost-1.5.7-build/BUILDROOT + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -march=rva23u64 -mabi=lp64d -fasynchronous-unwind-tables -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes -Clink-arg=-specs=/usr/lib/rpm/redhat/redhat-package-notes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-hardened-ld-errors -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + 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/BUILD/foremost-1.5.7-build/BUILDROOT/usr/bin + mkdir -p /builddir/build/BUILD/foremost-1.5.7-build/BUILDROOT/usr/share/man/man8 + mkdir -p /builddir/build/BUILD/foremost-1.5.7-build/BUILDROOT/etc + make install BIN=/builddir/build/BUILD/foremost-1.5.7-build/BUILDROOT/usr/bin MAN=/builddir/build/BUILD/foremost-1.5.7-build/BUILDROOT/usr/share/man/man8 CONF=/builddir/build/BUILD/foremost-1.5.7-build/BUILDROOT/etc install -p -m 755 foremost /builddir/build/BUILD/foremost-1.5.7-build/BUILDROOT/usr/bin install -p -m 644 foremost.8.gz /builddir/build/BUILD/foremost-1.5.7-build/BUILDROOT/usr/share/man/man8 install -p -m 644 foremost.conf /builddir/build/BUILD/foremost-1.5.7-build/BUILDROOT/etc + /usr/bin/find-debuginfo -j8 --strict-build-id -m -i --build-id-seed 1.5.7-45.fc45 --unique-debug-suffix -1.5.7-45.fc45.riscv64 --unique-debug-src-base foremost-1.5.7-45.fc45.riscv64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 --remove-section .gnu.build.attributes -S debugsourcefiles.list /builddir/build/BUILD/foremost-1.5.7-build/foremost-1.5.7 find-debuginfo: starting Extracting debug info from 1 files DWARF-compressing 1 files sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match. Creating .debug symlinks for symlinks to ELF files Copying sources found by 'debugedit -l' to /usr/src/debug/foremost-1.5.7-45.fc45.riscv64 find-debuginfo: done + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + COMPRESS='gzip -9 -n' + COMPRESS_EXT=.gz + /usr/lib/rpm/brp-compress + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/redhat/brp-mangle-shebangs + /usr/lib/rpm/brp-remove-la-files + /usr/lib/rpm/redhat/brp-python-rpm-in-distinfo + env /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j8 + /usr/lib/rpm/redhat/brp-python-hardlink + /usr/bin/add-det --brp -j8 /builddir/build/BUILD/foremost-1.5.7-build/BUILDROOT Scanned 14 directories and 16 files, processed 1 inodes, 0 modified (0 replaced + 0 rewritten), 0 unsupported format, 0 errors + /usr/bin/linkdupes --brp /builddir/build/BUILD/foremost-1.5.7-build/BUILDROOT/usr Scanned 12 directories and 15 files, considered 15 files, read 0 files, linked 0 files, 0 errors sum of sizes of linked files: 0 bytes Reading /builddir/build/BUILD/foremost-1.5.7-build/SPECPARTS/rpm-debuginfo.specpart Processing files: foremost-1.5.7-45.fc45.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.QsSP1N + umask 022 + cd /builddir/build/BUILD/foremost-1.5.7-build + cd foremost-1.5.7 + DOCDIR=/builddir/build/BUILD/foremost-1.5.7-build/BUILDROOT/usr/share/doc/foremost + export LC_ALL=C.UTF-8 + LC_ALL=C.UTF-8 + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILD/foremost-1.5.7-build/BUILDROOT/usr/share/doc/foremost + cp -pr /builddir/build/BUILD/foremost-1.5.7-build/foremost-1.5.7/README /builddir/build/BUILD/foremost-1.5.7-build/BUILDROOT/usr/share/doc/foremost + cp -pr /builddir/build/BUILD/foremost-1.5.7-build/foremost-1.5.7/CHANGES /builddir/build/BUILD/foremost-1.5.7-build/BUILDROOT/usr/share/doc/foremost + RPM_EC=0 ++ jobs -p + exit 0 Provides: config(foremost) = 1.5.7-45.fc45 foremost = 1.5.7-45.fc45 foremost(riscv-64) = 1.5.7-45.fc45 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) libc.so.6(GLIBC_2.33)(64bit) libc.so.6(GLIBC_2.34)(64bit) libc.so.6(GLIBC_2.38)(64bit) rtld(GNU_HASH) Processing files: foremost-debugsource-1.5.7-45.fc45.riscv64 Provides: foremost-debugsource = 1.5.7-45.fc45 foremost-debugsource(riscv-64) = 1.5.7-45.fc45 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-45.fc45.riscv64 Provides: debuginfo(build-id) = c8374d147600820f6f0282c460bb6aa1d7326601 foremost-debuginfo = 1.5.7-45.fc45 foremost-debuginfo(riscv-64) = 1.5.7-45.fc45 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-45.fc45 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILD/foremost-1.5.7-build/BUILDROOT Wrote: /builddir/build/RPMS/foremost-1.5.7-45.fc45.riscv64.rpm Wrote: /builddir/build/RPMS/foremost-debuginfo-1.5.7-45.fc45.riscv64.rpm Wrote: /builddir/build/RPMS/foremost-debugsource-1.5.7-45.fc45.riscv64.rpm Child return code was: 0