Mock Version: 5.5 Mock Version: 5.5 Mock Version: 5.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/unrar.spec'], chrootPath='/var/lib/mock/dist-an23-dde-build-394881-71812/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=86400uid=990gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.reo9pzec:/etc/resolv.conf', '--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']unshare_net=TrueprintOutput=False) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.reo9pzec:/etc/resolv.conf', '--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', '16d67c52ad7141f398d8b300937508a8', '-D', '/var/lib/mock/dist-an23-dde-build-394881-71812/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.reo9pzec:/etc/resolv.conf', '--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', '--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 x86_64 --nodeps /builddir/build/SPECS/unrar.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: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1724976000 Wrote: /builddir/build/SRPMS/unrar-5.9.4-1.3.an23.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/unrar.spec'], chrootPath='/var/lib/mock/dist-an23-dde-build-394881-71812/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=86400uid=990gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.reo9pzec:/etc/resolv.conf', '--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']unshare_net=TrueprintOutput=False) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.reo9pzec:/etc/resolv.conf', '--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', 'd4a044572e6741b984657d5e15545bae', '-D', '/var/lib/mock/dist-an23-dde-build-394881-71812/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.reo9pzec:/etc/resolv.conf', '--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', '--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 x86_64 --nodeps /builddir/build/SPECS/unrar.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: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1724976000 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.rCgmeV + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf unrar + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/unrarsrc-5.9.4.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd unrar + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/unrar-5.9.4-build.patch + /usr/bin/patch -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/CVE-2022-48579.patch + /usr/bin/patch -s --fuzz=0 --no-backup-if-mismatch -f + cp -p /builddir/build/SOURCES/unrar.1 . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.Q7JppI + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd unrar + /usr/bin/make -O -j80 V=1 VERBOSE=1 -f makefile unrar CXX=g++ 'CXXFLAGS=-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC' 'LDFLAGS=-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 -pthread' STRIP=: g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c isnt.cpp g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c resource.cpp g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c getbits.cpp g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c encname.cpp g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c crc.cpp g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c secpassword.cpp g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c headers.cpp headers.cpp: In member function 'FileHeader& FileHeader::operator=(FileHeader&)': headers.cpp:43:9: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'struct FileHeader' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 43 | memcpy(this,&hd,sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ In file included from rar.hpp:28, from headers.cpp:1: headers.hpp:175:8: note: 'struct FileHeader' declared here 175 | struct FileHeader:BlockHeader | ^~~~~~~~~~ g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c rar.cpp g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c find.cpp g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c system.cpp g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c filcreat.cpp g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c strlist.cpp g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c rawread.cpp g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c rdwrfn.cpp rdwrfn.cpp: In member function 'int ComprDataIO::UnpRead(byte*, size_t)': rdwrfn.cpp:122:36: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 122 | (ReadSize==0 || Decryption && (TotalRead & CRYPT_BLOCK_MASK) != 0) ) | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c sha256.cpp g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c filefn.cpp filefn.cpp: In function 'bool CreatePath(const wchar*, bool)': filefn.cpp:57:15: warning: comparison of integer expressions of different signedness: 'long int' and 'long unsigned int' [-Wsign-compare] 57 | if (s-Path>=ASIZE(DirName)) g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c global.cpp g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c strfn.cpp strfn.cpp: In function 'bool IsAlpha(int)': strfn.cpp:195:18: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 195 | return ch>='A' && ch<='Z' || ch>='a' && ch<='z'; | ~~~~~~~~^~~~~~~~~~ g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c unicode.cpp g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c smallfn.cpp g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c file.cpp file.cpp: In destructor 'virtual File::~File()': file.cpp:26:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 26 | if (hFile!=FILE_BAD_HANDLE && !SkipClose) | ^ file.cpp: In member function 'bool File::Create(const wchar*, uint)': file.cpp:179:8: warning: unused variable 'ShareRead' [-Wunused-variable] 179 | bool ShareRead=(Mode & FMF_SHAREREAD)!=0 || File::OpenShared; | ^~~~~~~~~ file.cpp: In member function 'bool File::Write(const void*, size_t)': file.cpp:336:20: warning: comparison of integer expressions of different signedness: 'ssize_t' {aka 'long int'} and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 336 | Success=Written==Size; | ~~~~~~~^~~~~~ file.cpp:357:20: warning: comparison of integer expressions of different signedness: 'ssize_t' {aka 'long int'} and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 357 | if (Written0) | ~~~~~~~^~~~~ file.cpp: In member function 'virtual int File::Read(void*, size_t)': file.cpp:383:10: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 383 | if (AllowExceptions) | ^ file.cpp: In member function 'virtual int64 File::Tell()': file.cpp:515:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 515 | if (hFile==FILE_BAD_HANDLE) | ^ g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c extract.cpp extract.cpp: In member function 'void CmdExtract::DoExtract()': extract.cpp:76:8: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 76 | if (!Cmd->DisableDone) | ^ extract.cpp: In member function 'EXTRACT_ARC_CODE CmdExtract::ExtractArchive()': extract.cpp:211:8: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 211 | if (!ExtractCurrentFile(Arc,Size,Repeat)) | ^ extract.cpp: In member function 'bool CmdExtract::ExtractCurrentFile(Archive&, size_t, bool&)': extract.cpp:242:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 242 | if (HeaderSize==0) | ^ extract.cpp:269:8: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 269 | if (HeaderType==HEAD_ENDARC) | ^ extract.cpp:365:40: error: 'RedirName' was not declared in this scope 365 | SlashToNative(Arc.FileHead.RedirName,RedirName,ASIZE(RedirName)); | ^~~~~~~~~ extract.cpp:376:32: warning: comparison of integer expressions of different signedness: 'uint' {aka 'unsigned int'} and 'int' [-Wsign-compare] 376 | if (Cmd->VersionControl-1==Version) | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ extract.cpp:598:10: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 598 | if (Command!='I') | ^ extract.cpp:662:14: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 662 | if (FileCreateMode && *NameExisting!=0) // *NameExisting can be 0 in case of excessive -ap switch. | ^ extract.cpp:668:9: warning: this 'else' clause does not guard... [-Wmisleading-indentation] 668 | else | ^~~~ extract.cpp:695:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' 695 | if (!LinkSuccess || Arc.Format==RARFMT15 && !FileCreateMode) | ^~ extract.cpp:695:52: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 695 | if (!LinkSuccess || Arc.Format==RARFMT15 && !FileCreateMode) | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ extract.cpp:707:12: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 707 | if (!Arc.FileHead.SplitBefore) | ^ extract.cpp:783:82: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 783 | (!LinkEntry || SetAttrOnly || Arc.FileHead.RedirType==FSREDIR_FILECOPY && LinkSuccess) && | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ extract.cpp:794:66: warning: comparison of integer expressions of different signedness: 'int64' {aka 'long int'} and 'uint64' {aka 'long unsigned int'} [-Wsign-compare] 794 | if (Preallocated>0 && (BrokenFile || DataIO.CurUnpWrite!=Preallocated)) | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ extract.cpp:832:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 832 | if (!ExtrFile) | ^ make: *** [makefile:132: extract.o] Error 1 make: *** Waiting for unfinished jobs.... g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c options.cpp options.cpp: In destructor 'RAROptions::~RAROptions()': options.cpp:13:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class RAROptions' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 13 | memset(this,0,sizeof(RAROptions)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from rar.hpp:24, from options.cpp:1: options.hpp:86:7: note: 'class RAROptions' declared here 86 | class RAROptions | ^~~~~~~~~~ options.cpp: In member function 'void RAROptions::Init()': options.cpp:19:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class RAROptions' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 19 | memset(this,0,sizeof(RAROptions)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ options.hpp:86:7: note: 'class RAROptions' declared here 86 | class RAROptions | ^~~~~~~~~~ g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c volume.cpp volume.cpp: In function 'bool MergeArchive(Archive&, ComprDataIO*, bool, wchar)': volume.cpp:22:25: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 22 | hd->UnpVer>=20 && hd->FileHash.CRC32!=0xffffffff; | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c pathfn.cpp pathfn.cpp: In function 'wchar* ConvertPath(const wchar*, wchar*, size_t)': pathfn.cpp:36:12: warning: unused variable 'SlashCount' [-Wunused-variable] 36 | uint SlashCount=0; | ^~~~~~~~~~ pathfn.cpp:35:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 35 | if (IsPathDiv(s[0]) && IsPathDiv(s[1])) | ^~ pathfn.cpp:37:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 37 | for (const wchar *t=s+2;*t!=0;t++) | ^~~ pathfn.cpp:38:32: error: 'SlashCount' was not declared in this scope 38 | if (IsPathDiv(*t) && ++SlashCount==2) | ^~~~~~~~~~ pathfn.cpp:44:25: error: 's' was not declared in this scope 44 | for (const wchar *t=s;*t!=0;t++) | ^ pathfn.cpp:50:9: error: 's' was not declared in this scope 50 | if (s==DestPtr) | ^ pathfn.cpp:51:7: error: break statement not within loop or switch 51 | break; | ^~~~~ pathfn.cpp:52:13: error: 's' was not declared in this scope 52 | DestPtr=s; | ^ pathfn.cpp:53:3: warning: no return statement in function returning non-void [-Wreturn-type] 53 | } | ^ pathfn.cpp: At global scope: pathfn.cpp:56:3: error: expected unqualified-id before 'if' 56 | if (DestPtr[0]=='.' && DestPtr[1]=='.' && DestPtr[2]==0) | ^~ pathfn.cpp:59:3: error: expected unqualified-id before 'if' 59 | if (DestPath!=NULL) | ^~ pathfn.cpp:67:3: error: expected unqualified-id before 'return' 67 | return (wchar *)DestPtr; | ^~~~~~ pathfn.cpp:68:1: error: expected declaration before '}' token 68 | } | ^ pathfn.cpp: In function 'void MakeNameUsable(char*, bool)': pathfn.cpp:453:64: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 453 | if (strchr(Extended ? "?*<>|\"":"?*",*s)!=NULL || Extended && (byte)*s<32) | ~~~~~~~~~^~~~~~~~~~~~~~ pathfn.cpp: In function 'void MakeNameUsable(wchar*, bool)': pathfn.cpp:474:66: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 474 | if (wcschr(Extended ? L"?*<>|\"":L"?*",*s)!=NULL || Extended && (uint)*s<32) | ~~~~~~~~~^~~~~~~~~~~~~~ pathfn.cpp: In function 'void GenArcName(wchar*, size_t, const wchar*, uint, bool&)': pathfn.cpp:757:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 757 | if (StartWeekDay<0) | ^ make: *** [makefile:132: pathfn.o] Error 1 g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c rarvm.cpp rarvm.cpp: In member function 'bool RarVM::ExecuteStandardFilter(VM_StandardFilters)': rarvm.cpp:124:9: warning: enumeration value 'VMSF_NONE' not handled in switch [-Wswitch] 124 | switch(FilterType) | ^ g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c match.cpp match.cpp: In function 'bool CmpName(const wchar*, const wchar*, int)': match.cpp:51:8: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 51 | if (CmpMode==MATCH_SUBPATH || CmpMode==MATCH_WILDSUBPATH) | ^ g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c sha1.cpp g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c threadpool.cpp g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c timefn.cpp timefn.cpp: In member function 'void RarTime::SetIsoText(const wchar*)': timefn.cpp:253:19: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 253 | if (FieldPosHSType==HSYS_UNKNOWN) | ^ arcread.cpp:1402:29: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 1402 | if (*s=='/' || *s=='\\' && Format!=RARFMT50) | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~ arcread.cpp: In member function 'bool Archive::ReadSubData(Array*, File*, bool)': arcread.cpp:1458:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 1458 | if (SubHead.Encrypted) | ^ g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c archive.cpp In file included from archive.cpp:3: arccmt.cpp: In member function 'bool Archive::DoGetComment(Array*)': arccmt.cpp:53:24: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 53 | if (Format==RARFMT14 && MainHead.PackComment || Format!=RARFMT14 && CommHead.Method!=0x30) | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ archive.cpp: In static member function 'static RARFORMAT Archive::IsSignature(const byte*, size_t)': archive.cpp:102:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 102 | if (Size>=1 && D[0]==0x52) | ^ archive.cpp: In member function 'bool Archive::IsArchive(bool)': archive.cpp:206:46: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 206 | StartFound=Type==HEAD_MAIN || SilentOpen && Type==HEAD_CRYPT; | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ arccmt.cpp: At global scope: arccmt.cpp:1:13: warning: 'bool IsAnsiEscComment(const wchar*, size_t)' declared 'static' but never defined [-Wunused-function] 1 | static bool IsAnsiEscComment(const wchar *Data,size_t Size); | ^~~~~~~~~~~~~~~~ g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c cmddata.cpp In file included from cmddata.cpp:3: cmdfilter.cpp: In member function 'bool CommandData::TimeCheck(RarTime&, RarTime&, RarTime&)': cmdfilter.cpp:196:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 196 | if (FileMtimeBefore.IsSet()) // Filter present. | ^ cmdfilter.cpp:206:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 206 | if (FileMtimeAfter.IsSet()) // Filter present. | ^ cmdfilter.cpp:216:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 216 | if (FileCtimeBefore.IsSet()) // Filter present. | ^ cmdfilter.cpp:226:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 226 | if (FileCtimeAfter.IsSet()) // Filter present. | ^ cmdfilter.cpp:236:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 236 | if (FileAtimeBefore.IsSet()) // Filter present. | ^ cmdfilter.cpp:246:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 246 | if (FileAtimeAfter.IsSet()) // Filter present. | ^ cmdfilter.cpp: In member function 'int CommandData::IsProcessFile(FileHeader&, bool*, int, bool, wchar*, uint)': cmdfilter.cpp:288:61: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 288 | if ((FileHead.FileAttr & ExclFileAttr)!=0 || FileHead.Dir && ExclDir) | ~~~~~~~~~~~~~^~~~~~~~~~ cmdfilter.cpp:290:37: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 290 | if (InclAttrSet && (!FileHead.Dir && (FileHead.FileAttr & InclFileAttr)==0 || | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cmddata.cpp: In member function 'void CommandData::ProcessSwitch(const wchar*)': cmddata.cpp:780:18: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 780 | if (!AlreadyBad) | ^ cmddata.cpp: In member function 'void CommandData::ProcessCommand()': cmddata.cpp:909:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 909 | if (Command[0]!=0 && Command[1]!=0 && wcschr(SingleCharCommands,Command[0])!=NULL || *ArcName==0) | ^ g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c recvol.cpp In file included from recvol.cpp:3: recvol3.cpp: In function 'bool IsNewStyleRev(const wchar*)': recvol3.cpp:93:8: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 93 | if (!IsDigit(*Ext)) | ^ recvol3.cpp: In member function 'bool RecVolumes3::Restore(RAROptions*, const wchar*, bool)': recvol3.cpp:231:25: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 231 | if (RecVolNumber!=0 && RecVolNumber!=P[1] || FileNumber!=0 && FileNumber!=P[2]) | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ In file included from recvol.cpp:4: recvol5.cpp: In member function 'bool RecVolumes5::Restore(RAROptions*, const wchar*, bool)': recvol5.cpp:382:19: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 382 | if (ReadSize!=RecBufferSize) | ~~~~~~~~^~~~~~~~~~~~~~~ In file included from rar.hpp:13, from recvol.cpp:1: rardefs.hpp:4:24: warning: comparison of integer expressions of different signedness: 'int' and 'uint64' {aka 'long unsigned int'} [-Wsign-compare] 4 | #define Min(x,y) (((x)<(y)) ? (x):(y)) | ~~~^~~~ recvol5.cpp:399:34: note: in expansion of macro 'Min' 399 | size_t WriteSize=(size_t)Min(MaxRead,Item->FileSize); | ^~~ g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c unpack.cpp In file included from unpack.cpp:3: model.cpp: In member function 'int ModelPPM::DecodeChar()': coder.cpp:23:45: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 23 | while ((low^(low+range))BlockHeader.TablePresent && !TablesRead5) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ unpack50mt.cpp:207:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 207 | if (!CurData->LargeBlock && !ProcessDecoded(*CurData) || | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ unpack50mt.cpp: In member function 'void Unpack::UnpackDecode(UnpackThreadData&)': unpack50mt.cpp:318:65: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 318 | if (D.Inp.InAddr>BlockBorder || D.Inp.InAddr==BlockBorder && | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 319 | D.Inp.InBit>=D.BlockHeader.BlockBitSize) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unpack50mt.cpp:325:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 325 | if ((D.Inp.InAddr>=DataBorder) && !D.NoDataLeft || D.Inp.InAddr>=D.DataSize) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ unpack50mt.cpp: In member function 'bool Unpack::UnpackLargeBlock(UnpackThreadData&)': unpack50mt.cpp:549:65: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 549 | if (D.Inp.InAddr>BlockBorder || D.Inp.InAddr==BlockBorder && | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 550 | D.Inp.InBit>=D.BlockHeader.BlockBitSize) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unpack50mt.cpp:556:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 556 | if ((D.Inp.InAddr>=DataBorder) && !D.NoDataLeft || D.Inp.InAddr>=D.DataSize) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ In file included from unpack.cpp:11: unpack15.cpp: In member function 'void Unpack::LongLZ()': unpack15.cpp:295:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 295 | if (Length!=1 && Length!=4) | ^ unpack15.cpp:309:42: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 309 | if (OldAvr3 > 0xb0 || AvrPlc >= 0x2a00 && OldAvr2 < 0x40) | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ In file included from unpack.cpp:12: unpack20.cpp: In member function 'void Unpack::ReadLastTables()': unpack20.cpp:259:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 259 | if (ReadTop>=Inp.InAddr+5) | ^ In file included from unpack.cpp:14: unpack30.cpp: In member function 'void Unpack::Unpack29(bool)': unpack30.cpp:30:19: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 30 | for (int I=0;IParentFilter]->Prg; | ^~~~~~~~~ unpack30.cpp:561:29: warning: unused variable 'ParentPrg' [-Wunused-variable] 561 | VM_PreparedProgram *ParentPrg=&Filters30[flt->ParentFilter]->Prg; | ^~~~~~~~~ In file included from unpack.cpp:15: unpack50.cpp: In member function 'void Unpack::Unpack5(bool)': unpack50.cpp:30:73: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 30 | Inp.InAddr==BlockHeader.BlockStart+BlockHeader.BlockSize-1 && | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 31 | Inp.InBit>=BlockHeader.BlockBitSize) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unpack50.cpp:129:10: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 129 | if (LastLength!=0) | ^ unpack50.cpp: In member function 'void Unpack::UnpWriteBuf()': unpack50.cpp:393:21: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 393 | WrPtr!=UnpPtr && ((WrPtr-UnpPtr)&MaxWinMask)<((WriteBorder-UnpPtr)&MaxWinMask)) | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unpack.cpp: In member function 'void Unpack::Init(size_t, bool)': unpack.cpp:107:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 107 | if (NewWindow==NULL) | ^ RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.Q7JppI (%build) Bad exit status from /var/tmp/rpm-tmp.Q7JppI (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # /usr/bin/systemd-nspawn -q -M d4a044572e6741b984657d5e15545bae -D /var/lib/mock/dist-an23-dde-build-394881-71812/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.reo9pzec:/etc/resolv.conf --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 --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 x86_64 --nodeps /builddir/build/SPECS/unrar.spec\'\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 612, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (cmd_pretty(command, env), output), child.returncode) mockbuild.exception.Error: Command failed: # /usr/bin/systemd-nspawn -q -M d4a044572e6741b984657d5e15545bae -D /var/lib/mock/dist-an23-dde-build-394881-71812/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.reo9pzec:/etc/resolv.conf --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 --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 x86_64 --nodeps /builddir/build/SPECS/unrar.spec'