Mock Version: 4.1 Mock Version: 4.1 Mock Version: 4.1 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/libtar.spec'], chrootPath='/var/lib/mock/dist-oc9-build-50486-14595/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=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/libtar.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'} and shell False Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/libtar-1.2.20-3.oc9.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/libtar.spec'], chrootPath='/var/lib/mock/dist-oc9-build-50486-14595/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=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/libtar.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'} and shell False Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.ylzm8J + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf libtar-v1.2.20 + /usr/bin/gzip -dc /builddir/build/SOURCES/libtar-v1.2.20.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd libtar-v1.2.20 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cat /builddir/build/SOURCES/libtar-1.2.11-missing-protos.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/bin/cat /builddir/build/SOURCES/libtar-1.2.11-mem-deref.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/bin/cat /builddir/build/SOURCES/libtar-1.2.20-fix-resource-leaks.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/bin/cat /builddir/build/SOURCES/libtar-1.2.11-bz729009.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/bin/cat /builddir/build/SOURCES/libtar-1.2.20-no-static-buffer.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/bin/cat /builddir/build/SOURCES/libtar-1.2.20-static-analysis.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + sed -i 's/-rpath $(libdir)/-rpath $(libdir) -version-number 1:2:20/' lib/Makefile.in + autoreconf -iv autoreconf: export WARNINGS= autoreconf: Entering directory '.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal -I autoconf autoreconf: configure.ac: tracing autoreconf: running: libtoolize --copy libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'autoconf'. libtoolize: copying file 'autoconf/ltmain.sh' libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'autoconf'. libtoolize: copying file 'autoconf/libtool.m4' libtoolize: copying file 'autoconf/ltoptions.m4' libtoolize: copying file 'autoconf/ltsugar.m4' libtoolize: copying file 'autoconf/ltversion.m4' libtoolize: copying file 'autoconf/lt~obsolete.m4' autoreconf: configure.ac: not using Intltool autoreconf: configure.ac: not using Gtkdoc autoreconf: running: aclocal -I autoconf autoreconf: running: /usr/bin/autoconf configure.ac:31: warning: AC_LINK_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS ./lib/autoconf/specific.m4:364: AC_USE_SYSTEM_EXTENSIONS is expanded from... configure.ac:31: the top level configure.ac:33: warning: The macro `AC_PROG_LIBTOOL' is obsolete. configure.ac:33: You should run autoupdate. autoconf/libtool.m4:100: AC_PROG_LIBTOOL is expanded from... configure.ac:33: the top level configure.ac:41: warning: The macro `AC_TRY_COMPILE' is obsolete. configure.ac:41: You should run autoupdate. ./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from... lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:699: AS_IF is expanded from... ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from... autoconf/ax_tls.m4:46: AX_TLS is expanded from... configure.ac:41: the top level configure.ac:53: warning: The macro `AC_HEADER_STDC' is obsolete. configure.ac:53: You should run autoupdate. ./lib/autoconf/headers.m4:704: AC_HEADER_STDC is expanded from... configure.ac:53: the top level configure.ac:99: warning: The macro `AC_TRY_RUN' is obsolete. configure.ac:99: You should run autoupdate. ./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from... lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:699: AS_IF is expanded from... ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from... ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from... compat/module.ac:26: COMPAT_FUNC_BASENAME is expanded from... configure.ac:99: the top level configure.ac:100: warning: The macro `AC_TRY_RUN' is obsolete. configure.ac:100: You should run autoupdate. ./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from... lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:699: AS_IF is expanded from... ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from... ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from... compat/module.ac:80: COMPAT_FUNC_DIRNAME is expanded from... configure.ac:100: the top level configure.ac:104: warning: The macro `AC_TRY_RUN' is obsolete. configure.ac:104: You should run autoupdate. ./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from... lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from... lib/m4sugar/m4sh.m4:699: AS_IF is expanded from... ./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from... ./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from... compat/module.ac:244: COMPAT_FUNC_SNPRINTF is expanded from... configure.ac:104: the top level autoreconf: running: /usr/bin/autoheader autoreconf: running: automake --add-missing --copy --no-force configure.ac:19: installing 'autoconf/compile' configure.ac:33: installing 'autoconf/config.guess' configure.ac:33: installing 'autoconf/config.sub' configure.ac:13: installing 'autoconf/install-sh' configure.ac:13: installing 'autoconf/missing' Makefile.am: installing './INSTALL' autoreconf: Leaving directory '.' + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.NjTQLP + 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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -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 -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -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 -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -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/OpenCloudOS/OpenCloudOS-hardened-ld -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 libtar-v1.2.20 + '[' '-flto=auto -ffat-lto-objectsx' '!=' x ']' ++ find . -type f -name configure -print + for file in $(find . -type f -name configure -print) + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\) = /__attribute__ ((used)) char (*f) () = /g' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed -r --in-place=.backup 's/^char \(\*f\) \(\);/__attribute__ ((used)) char (*f) ();/g' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed -r --in-place=.backup 's/^char \$2 \(\);/__attribute__ ((used)) char \$2 ();/g' ./configure + diff -u ./configure.backup ./configure --- ./configure.backup 2023-09-21 00:29:00.891510070 +0800 +++ ./configure 2023-09-21 00:29:01.582507762 +0800 @@ -1688,7 +1688,7 @@ #ifdef __cplusplus extern "C" #endif -char $2 (); +__attribute__ ((used)) char $2 (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ + /usr/bin/sed --in-place=.backup '1{$!N;$!N};$!N;s/int x = 1;\nint y = 0;\nint z;\nint nan;/volatile int x = 1; volatile int y = 0; volatile int z, nan;/;P;D' ./configure + diff -u ./configure.backup ./configure + mv ./configure.backup ./configure + /usr/bin/sed --in-place=.backup 's#^lt_cv_sys_global_symbol_to_cdecl=.*#lt_cv_sys_global_symbol_to_cdecl="sed -n -e '\''s/^T .* \\(.*\\)$/extern int \\1();/p'\'' -e '\''s/^$symcode* .* \\(.*\\)$/extern char \\1;/p'\''"#' ./configure + diff -u ./configure.backup ./configure --- ./configure.backup 2023-09-21 00:29:01.582507762 +0800 +++ ./configure 2023-09-21 00:29:01.600507702 +0800 @@ -8381,7 +8381,7 @@ # Transform an extracted symbol line into a proper C declaration. # Some systems (esp. on ia64) link data and code symbols differently, # so use this general approach. -lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" $lt_cdecl_hook\ " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" @@ -16206,7 +16206,7 @@ compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' -lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' + '[' 1 = 1 ']' +++ dirname ./configure ++ find . -name config.guess -o -name config.sub + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./autoconf/config.guess + '[' -f /usr/lib/rpm/OpenCloudOS/config.guess ']' + /usr/bin/rm -f ./autoconf/config.guess ++ basename ./autoconf/config.guess + /usr/bin/cp -fv /usr/lib/rpm/OpenCloudOS/config.guess ./autoconf/config.guess '/usr/lib/rpm/OpenCloudOS/config.guess' -> './autoconf/config.guess' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./autoconf/config.sub + '[' -f /usr/lib/rpm/OpenCloudOS/config.sub ']' + /usr/bin/rm -f ./autoconf/config.sub ++ basename ./autoconf/config.sub + /usr/bin/cp -fv /usr/lib/rpm/OpenCloudOS/config.sub ./autoconf/config.sub '/usr/lib/rpm/OpenCloudOS/config.sub' -> './autoconf/config.sub' + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld' ']' ++ find . -name ltmain.sh + for i in $(find . -name ltmain.sh) + /usr/bin/sed -i.backup -e 's~compiler_flags=$~compiler_flags="-Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld"~' ./autoconf/ltmain.sh + ./configure --build=x86_64-opencloudos-linux-gnu --host=x86_64-opencloudos-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --disable-static configure: loading site script /usr/share/config.site checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a race-free mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking for epkg... no checking for mkencap... no checking whether make supports the include directive... yes (GNU style) checking for x86_64-opencloudos-linux-gnu-gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether the compiler supports GNU C... yes checking whether gcc accepts -g... yes checking for gcc option to enable C11 features... none needed checking whether gcc understands -c and -o together... yes checking dependency style of gcc... none checking for strlcpy... no checking for strsep... yes checking for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.h... yes checking for unistd.h... yes checking for wchar.h... yes checking for minix/config.h... no checking whether it is safe to define __EXTENSIONS__... yes checking whether _XOPEN_SOURCE should be defined... no checking for x86_64-opencloudos-linux-gnu-gcc... (cached) gcc checking whether the compiler supports GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to enable C11 features... (cached) none needed checking whether gcc understands -c and -o together... (cached) yes checking dependency style of gcc... (cached) none checking build system type... x86_64-opencloudos-linux-gnu checking host system type... x86_64-opencloudos-linux-gnu checking how to print strings... printf checking for a sed that does not truncate output... /usr/bin/sed checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for fgrep... /usr/bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking how to convert x86_64-opencloudos-linux-gnu file names to x86_64-opencloudos-linux-gnu format... func_convert_file_noop checking how to convert x86_64-opencloudos-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for x86_64-opencloudos-linux-gnu-file... no checking for file... file checking for x86_64-opencloudos-linux-gnu-objdump... no checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for x86_64-opencloudos-linux-gnu-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for x86_64-opencloudos-linux-gnu-ar... no checking for ar... ar checking for archiver @FILE support... @ checking for x86_64-opencloudos-linux-gnu-strip... no checking for strip... strip checking for x86_64-opencloudos-linux-gnu-ranlib... no checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ./configure: line 8387: -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^[ABCDGIRSTW][ABCDGIRSTW]* .* \(.*\)$/extern char \1;/p': No such file or directory ok checking for sysroot... no checking for a working dd... /usr/bin/dd checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1 checking for x86_64-opencloudos-linux-gnu-mt... no checking for mt... no checking if : is a manifest tool... no checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking whether ln -s works... yes checking whether make sets $(MAKE)... (cached) yes checking for an ANSI C-conforming const... yes checking for thread local storage (TLS) class... __thread checking for egrep... (cached) /usr/bin/grep -E checking for unistd.h... (cached) yes checking for sys/mkdev.h... no checking for sys/sysmacros.h... yes checking for major_t... no checking for minor_t... no checking for dev_t... yes checking for socklen_t... yes checking for uint64_t... yes checking for mode_t... yes checking for off_t... yes checking for size_t... yes checking how to run the C preprocessor... gcc -E checking for uid_t in sys/types.h... yes checking for nlink_t... yes checking for libgen.h... yes checking for working basename... no checking for libgen.h... (cached) yes checking for working dirname... no checking for fnmatch.h... yes checking for working POSIX fnmatch... yes checking for lchown... yes checking whether makedev expects three arguments... no checking for working snprintf... yes checking for strdup... yes checking for strftime... yes checking for strlcpy... (cached) no checking for strmode... no checking for strsep... (cached) yes checking for gzread in -lz... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating listhash/libtar_listhash.h config.status: creating listhash/libtar_list.c config.status: creating listhash/libtar_hash.c config.status: creating listhash/libtar_list_new.3 config.status: creating listhash/libtar_hash_new.3 config.status: creating Makefile config.status: creating lib/Makefile config.status: creating libtar/Makefile config.status: creating doc/Makefile config.status: creating config.h config.status: executing depfiles commands config.status: executing libtool commands + /usr/bin/make -O -j32 V=1 VERBOSE=1 /usr/bin/make all-recursive Making all in lib make[2]: Entering directory '/builddir/build/BUILD/libtar-v1.2.20/lib' /bin/sh ../libtool --mode=compile gcc -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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I. -I.. -I. -I../compat -I../listhash -c -o strlcpy.lo ../compat/strlcpy.c libtool: compile: gcc -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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I. -I.. -I. -I../compat -I../listhash -c ../compat/strlcpy.c -fPIC -DPIC -o .libs/strlcpy.o make[2]: Leaving directory '/builddir/build/BUILD/libtar-v1.2.20/lib' make[2]: Entering directory '/builddir/build/BUILD/libtar-v1.2.20/lib' /bin/sh ../libtool --mode=compile gcc -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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I. -I.. -I. -I../compat -I../listhash -c -o dirname.lo ../compat/dirname.c libtool: compile: gcc -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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I. -I.. -I. -I../compat -I../listhash -c ../compat/dirname.c -fPIC -DPIC -o .libs/dirname.o make[2]: Leaving directory '/builddir/build/BUILD/libtar-v1.2.20/lib' ../compat/dirname.c:31:13: warning: 'rcsid' defined but not used [-Wunused-variable] 31 | static char rcsid[] = "$OpenBSD: dirname.c,v 1.4 1999/05/30 17:10:30 espie Exp $"; | ^~~~~ make[2]: Entering directory '/builddir/build/BUILD/libtar-v1.2.20/lib' /bin/sh ../libtool --mode=compile gcc -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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I. -I.. -I. -I../compat -I../listhash -c -o basename.lo ../compat/basename.c libtool: compile: gcc -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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I. -I.. -I. -I../compat -I../listhash -c ../compat/basename.c -fPIC -DPIC -o .libs/basename.o make[2]: Leaving directory '/builddir/build/BUILD/libtar-v1.2.20/lib' ../compat/basename.c:31:13: warning: 'rcsid' defined but not used [-Wunused-variable] 31 | static char rcsid[] = "$OpenBSD: basename.c,v 1.4 1999/05/30 17:10:30 espie Exp $"; | ^~~~~ make[2]: Entering directory '/builddir/build/BUILD/libtar-v1.2.20/lib' /bin/sh ../libtool --mode=compile gcc -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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I. -I.. -I. -I../compat -I../listhash -c -o strmode.lo ../compat/strmode.c libtool: compile: gcc -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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I. -I.. -I. -I../compat -I../listhash -c ../compat/strmode.c -fPIC -DPIC -o .libs/strmode.o make[2]: Leaving directory '/builddir/build/BUILD/libtar-v1.2.20/lib' make[2]: Entering directory '/builddir/build/BUILD/libtar-v1.2.20/lib' /bin/sh ../libtool --mode=compile gcc -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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I. -I.. -I. -I../compat -I../listhash -c -o handle.lo handle.c libtool: compile: gcc -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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I. -I.. -I. -I../compat -I../listhash -c handle.c -fPIC -DPIC -o .libs/handle.o make[2]: Leaving directory '/builddir/build/BUILD/libtar-v1.2.20/lib' handle.c: In function 'tar_init': handle.c:47:24: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 47 | (*t)->pathname = pathname; | ^ make[2]: Entering directory '/builddir/build/BUILD/libtar-v1.2.20/lib' /bin/sh ../libtool --mode=compile gcc -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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I. -I.. -I. -I../compat -I../listhash -c -o decode.lo decode.c libtool: compile: gcc -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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I. -I.. -I. -I../compat -I../listhash -c decode.c -fPIC -DPIC -o .libs/decode.o make[2]: Leaving directory '/builddir/build/BUILD/libtar-v1.2.20/lib' make[2]: Entering directory '/builddir/build/BUILD/libtar-v1.2.20/lib' /bin/sh ../libtool --mode=compile gcc -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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I. -I.. -I. -I../compat -I../listhash -c -o wrapper.lo wrapper.c libtool: compile: gcc -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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I. -I.. -I. -I../compat -I../listhash -c wrapper.c -fPIC -DPIC -o .libs/wrapper.o make[2]: Leaving directory '/builddir/build/BUILD/libtar-v1.2.20/lib' make[2]: Entering directory '/builddir/build/BUILD/libtar-v1.2.20/lib' /bin/sh ../libtool --mode=compile gcc -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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I. -I.. -I. -I../compat -I../listhash -c -o libtar_hash.lo ../listhash/libtar_hash.c libtool: compile: gcc -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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I. -I.. -I. -I../compat -I../listhash -c ../listhash/libtar_hash.c -fPIC -DPIC -o .libs/libtar_hash.o make[2]: Leaving directory '/builddir/build/BUILD/libtar-v1.2.20/lib' make[2]: Entering directory '/builddir/build/BUILD/libtar-v1.2.20/lib' /bin/sh ../libtool --mode=compile gcc -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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I. -I.. -I. -I../compat -I../listhash -c -o output.lo output.c libtool: compile: gcc -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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I. -I.. -I. -I../compat -I../listhash -c output.c -fPIC -DPIC -o .libs/output.o make[2]: Leaving directory '/builddir/build/BUILD/libtar-v1.2.20/lib' make[2]: Entering directory '/builddir/build/BUILD/libtar-v1.2.20/lib' /bin/sh ../libtool --mode=compile gcc -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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I. -I.. -I. -I../compat -I../listhash -c -o append.lo append.c libtool: compile: gcc -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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I. -I.. -I. -I../compat -I../listhash -c append.c -fPIC -DPIC -o .libs/append.o make[2]: Leaving directory '/builddir/build/BUILD/libtar-v1.2.20/lib' make[2]: Entering directory '/builddir/build/BUILD/libtar-v1.2.20/lib' /bin/sh ../libtool --mode=compile gcc -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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I. -I.. -I. -I../compat -I../listhash -c -o util.lo util.c libtool: compile: gcc -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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I. -I.. -I. -I../compat -I../listhash -c util.c -fPIC -DPIC -o .libs/util.o make[2]: Leaving directory '/builddir/build/BUILD/libtar-v1.2.20/lib' util.c: In function 'int_to_oct_nonull': util.c:159:33: warning: field width specifier '*' expects argument of type 'int', but argument 4 has type 'size_t' {aka 'long unsigned int'} [-Wformat=] 159 | snprintf(oct, octlen, "%*lo", octlen - 1, (unsigned long)num); | ~^~~ ~~~~~~~~~~ | | | | int size_t {aka long unsigned int} make[2]: Entering directory '/builddir/build/BUILD/libtar-v1.2.20/lib' /bin/sh ../libtool --mode=compile gcc -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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I. -I.. -I. -I../compat -I../listhash -c -o libtar_list.lo ../listhash/libtar_list.c libtool: compile: gcc -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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I. -I.. -I. -I../compat -I../listhash -c ../listhash/libtar_list.c -fPIC -DPIC -o .libs/libtar_list.o make[2]: Leaving directory '/builddir/build/BUILD/libtar-v1.2.20/lib' make[2]: Entering directory '/builddir/build/BUILD/libtar-v1.2.20/lib' /bin/sh ../libtool --mode=compile gcc -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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I. -I.. -I. -I../compat -I../listhash -c -o block.lo block.c libtool: compile: gcc -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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I. -I.. -I. -I../compat -I../listhash -c block.c -fPIC -DPIC -o .libs/block.o make[2]: Leaving directory '/builddir/build/BUILD/libtar-v1.2.20/lib' block.c: In function 'th_write': block.c:308:17: warning: 'strncpy' specified bound 512 equals destination size [-Wstringop-truncation] 308 | strncpy(buf, ptr, T_BLOCKSIZE); | ^ block.c:359:17: warning: 'strncpy' specified bound 512 equals destination size [-Wstringop-truncation] 359 | strncpy(buf, ptr, T_BLOCKSIZE); | ^ encode.c: In function 'th_finish': encode.c:42:17: warning: 'strncpy' output truncated before terminating nul copying 2 bytes from a string of the same length [-Wstringop-truncation] 42 | strncpy(t->th_buf.version, TVERSION, TVERSLEN); | ^ encode.c:37:17: warning: 'strncpy' output truncated before terminating nul copying 6 bytes from a string of the same length [-Wstringop-truncation] 37 | strncpy(t->th_buf.magic, "ustar ", 6); | ^ encode.c: In function 'th_set_path': encode.c:91:17: warning: 'strncpy' specified bound 100 equals destination size [-Wstringop-truncation] 91 | strncpy(t->th_buf.name, t->th_buf.gnu_longname, T_NAMELEN); | ^ In file included from ./internal.h:16, from encode.c:13: encode.c: In function 'th_set_device': ./libtar.h:283:35: warning: '%*lo' directive output may be truncated writing between 6 and 11 bytes into a region of size 8 [-Wformat-truncation=] 283 | snprintf((oct), (octlen), "%*lo ", (octlen) - 2, (unsigned long)(num)) | ^~~~~~~ ./libtar.h:283:36: note: format string is defined here 283 | snprintf((oct), (octlen), "%*lo ", (octlen) - 2, (unsigned long)(num)) | ^~~~ ./libtar.h:283:35: note: directive argument in the range [0, 4294967295] 283 | snprintf((oct), (octlen), "%*lo ", (octlen) - 2, (unsigned long)(num)) | ^~~~~~~ In file included from /usr/include/stdio.h:894, from encode.c:15: In function 'snprintf', inlined from 'th_set_device' at encode.c:151:2: /usr/include/bits/stdio2.h:71:10: note: '__snprintf_chk' output between 8 and 13 bytes into a destination of size 8 71 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 72 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 73 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ encode.c: In function 'th_set_device': ./libtar.h:283:35: warning: '%*lo' directive output may be truncated writing between 6 and 11 bytes into a region of size 8 [-Wformat-truncation=] 283 | snprintf((oct), (octlen), "%*lo ", (octlen) - 2, (unsigned long)(num)) | ^~~~~~~ ./libtar.h:283:36: note: format string is defined here 283 | snprintf((oct), (octlen), "%*lo ", (octlen) - 2, (unsigned long)(num)) | ^~~~ ./libtar.h:283:35: note: directive argument in the range [0, 4294967295] 283 | snprintf((oct), (octlen), "%*lo ", (octlen) - 2, (unsigned long)(num)) | ^~~~~~~ In function 'snprintf', inlined from 'th_set_device' at encode.c:152:2: /usr/include/bits/stdio2.h:71:10: note: '__snprintf_chk' output between 8 and 13 bytes into a destination of size 8 71 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 72 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 73 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ encode.c: In function 'th_set_user': ./libtar.h:283:35: warning: '%*lo' directive output may be truncated writing between 6 and 11 bytes into a region of size 8 [-Wformat-truncation=] 283 | snprintf((oct), (octlen), "%*lo ", (octlen) - 2, (unsigned long)(num)) | ^~~~~~~ ./libtar.h:283:36: note: format string is defined here 283 | snprintf((oct), (octlen), "%*lo ", (octlen) - 2, (unsigned long)(num)) | ^~~~ ./libtar.h:283:35: note: directive argument in the range [0, 4294967295] 283 | snprintf((oct), (octlen), "%*lo ", (octlen) - 2, (unsigned long)(num)) | ^~~~~~~ In function 'snprintf', inlined from 'th_set_user' at encode.c:166:2: /usr/include/bits/stdio2.h:71:10: note: '__snprintf_chk' output between 8 and 13 bytes into a destination of size 8 71 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 72 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 73 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ encode.c: In function 'th_set_group': ./libtar.h:283:35: warning: '%*lo' directive output may be truncated writing between 6 and 11 bytes into a region of size 8 [-Wformat-truncation=] 283 | snprintf((oct), (octlen), "%*lo ", (octlen) - 2, (unsigned long)(num)) | ^~~~~~~ ./libtar.h:283:36: note: format string is defined here 283 | snprintf((oct), (octlen), "%*lo ", (octlen) - 2, (unsigned long)(num)) | ^~~~ ./libtar.h:283:35: note: directive argument in the range [0, 4294967295] 283 | snprintf((oct), (octlen), "%*lo ", (octlen) - 2, (unsigned long)(num)) | ^~~~~~~ In function 'snprintf', inlined from 'th_set_group' at encode.c:180:2: /usr/include/bits/stdio2.h:71:10: note: '__snprintf_chk' output between 8 and 13 bytes into a destination of size 8 71 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 72 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 73 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ encode.c: In function 'th_set_mode': ./libtar.h:283:35: warning: '%*lo' directive output may be truncated writing between 6 and 11 bytes into a region of size 8 [-Wformat-truncation=] 283 | snprintf((oct), (octlen), "%*lo ", (octlen) - 2, (unsigned long)(num)) | ^~~~~~~ ./libtar.h:283:36: note: format string is defined here 283 | snprintf((oct), (octlen), "%*lo ", (octlen) - 2, (unsigned long)(num)) | ^~~~ ./libtar.h:283:35: note: directive argument in the range [0, 4294967295] 283 | snprintf((oct), (octlen), "%*lo ", (octlen) - 2, (unsigned long)(num)) | ^~~~~~~ In function 'snprintf', inlined from 'th_set_mode' at encode.c:193:2: /usr/include/bits/stdio2.h:71:10: note: '__snprintf_chk' output between 8 and 13 bytes into a destination of size 8 71 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 72 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 73 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ make[2]: Entering directory '/builddir/build/BUILD/libtar-v1.2.20/lib' /bin/sh ../libtool --mode=compile gcc -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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I. -I.. -I. -I../compat -I../listhash -c -o encode.lo encode.c libtool: compile: gcc -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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I. -I.. -I. -I../compat -I../listhash -c encode.c -fPIC -DPIC -o .libs/encode.o make[2]: Leaving directory '/builddir/build/BUILD/libtar-v1.2.20/lib' make[2]: Entering directory '/builddir/build/BUILD/libtar-v1.2.20/lib' /bin/sh ../libtool --mode=compile gcc -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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I. -I.. -I. -I../compat -I../listhash -c -o extract.lo extract.c libtool: compile: gcc -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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I. -I.. -I. -I../compat -I../listhash -c extract.c -fPIC -DPIC -o .libs/extract.o make[2]: Leaving directory '/builddir/build/BUILD/libtar-v1.2.20/lib' extract.c: In function 'tar_extract_regfile': extract.c:160:15: warning: variable 'gid' set but not used [-Wunused-but-set-variable] 160 | gid_t gid; | ^~~ extract.c:159:15: warning: variable 'uid' set but not used [-Wunused-but-set-variable] 159 | uid_t uid; | ^~~ extract.c:157:16: warning: variable 'mode' set but not used [-Wunused-but-set-variable] 157 | mode_t mode; | ^~~~ make[2]: Entering directory '/builddir/build/BUILD/libtar-v1.2.20/lib' /bin/sh ../libtool --mode=link gcc -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/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1 -o libtar.la append.lo block.lo decode.lo encode.lo extract.lo handle.lo libtar_hash.lo libtar_list.lo output.lo util.lo wrapper.lo strlcpy.lo basename.lo dirname.lo strmode.lo -rpath /usr/lib64 -version-number 1:2:20 libtool: link: gcc -shared -fPIC -DPIC .libs/append.o .libs/block.o .libs/decode.o .libs/encode.o .libs/extract.o .libs/handle.o .libs/libtar_hash.o .libs/libtar_list.o .libs/output.o .libs/util.o .libs/wrapper.o .libs/strlcpy.o .libs/basename.o .libs/dirname.o .libs/strmode.o -Wl,-z,now -specs=/usr/lib/rpm/TencentOS/TencentOS-hardened-ld -O2 -flto=auto -g -grecord-gcc-switches -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1 -Wl,-soname -Wl,libtar.so.1 -o .libs/libtar.so.1.2.20 make[2]: Leaving directory '/builddir/build/BUILD/libtar-v1.2.20/lib' gcc: fatal error: cannot read spec file '/usr/lib/rpm/TencentOS/TencentOS-hardened-ld': No such file or directory compilation terminated. make[2]: *** [Makefile:79: libtar.la] Error 1 make[1]: *** [Makefile:449: all-recursive] Error 1 make: *** [Makefile:365: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.NjTQLP (%build) Bad exit status from /var/tmp/rpm-tmp.NjTQLP (%build) RPM build errors: Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/libtar.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 597, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/libtar.spec