Mock Version: 3.5 Mock Version: 3.5 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/sysstat.spec'], chrootPath='/var/lib/mock/dist-an23-build-191462-60791/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=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/sysstat.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 setting SOURCE_DATE_EPOCH=1668124800 Wrote: /builddir/build/SRPMS/sysstat-10.1.5-20.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/sysstat.spec'], chrootPath='/var/lib/mock/dist-an23-build-191462-60791/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=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/sysstat.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 setting SOURCE_DATE_EPOCH=1668124800 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.5QNKFe + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf sysstat-10.1.5 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/sysstat-10.1.5.tar.bz2 + STATUS=0 + '[' 0 -ne 0 ']' + cd sysstat-10.1.5 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (sysstat-10.0.0-makefile.patch):' Patch #0 (sysstat-10.0.0-makefile.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .ls --fuzz=0 patching file Makefile.in Hunk #1 succeeded at 206 (offset 10 lines). Patch #1 (sysstat-10.1.5-overwrite-sa.patch): + echo 'Patch #1 (sysstat-10.1.5-overwrite-sa.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .overwrite-sa --fuzz=0 patching file sa1.in Patch #2 (sysstat-10.1.5-sa2-xz.patch): + echo 'Patch #2 (sysstat-10.1.5-sa2-xz.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .sa2-xz --fuzz=0 patching file sa2.in Patch #3 (sysstat-10.1.5-dyn-tick.patch): + echo 'Patch #3 (sysstat-10.1.5-dyn-tick.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .dyn-tick --fuzz=0 patching file common.c Patch #4 (sysstat-10.1.5-sysstat-5.patch): + echo 'Patch #4 (sysstat-10.1.5-sysstat-5.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .sysstat-5 --fuzz=0 patching file man/sysstat.in Patch #5 (sysstat-10.1.5-zip-conf.patch): + echo 'Patch #5 (sysstat-10.1.5-zip-conf.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .zip-conf --fuzz=0 patching file sysstat.sysconfig.in Patch #6 (sysstat-10.1.5-single-cpu-cifs.patch): + echo 'Patch #6 (sysstat-10.1.5-single-cpu-cifs.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .single-cpu-cifs --fuzz=0 patching file cifsiostat.c patching file nfsiostat.c Patch #7 (sysstat-10.1.5-elapsed-time.patch): + echo 'Patch #7 (sysstat-10.1.5-elapsed-time.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .elapsed-time --fuzz=0 patching file man/iostat.in patching file man/sar.in Patch #8 (sysstat-10.1.5-pids-prealloc.patch): + echo 'Patch #8 (sysstat-10.1.5-pids-prealloc.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .pids-prealloc --fuzz=0 patching file pidstat.c patching file pidstat.h Patch #9 (sysstat-10.1.5-max-cpus.patch): + echo 'Patch #9 (sysstat-10.1.5-max-cpus.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .max-cpus --fuzz=0 patching file common.h Patch #10 (sysstat-10.1.5-max-name-len.patch): + echo 'Patch #10 (sysstat-10.1.5-max-name-len.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .max-name-len --fuzz=0 patching file common.h patching file iostat.c Patch #11 (sysstat-10.1.5-int-handler.patch): + echo 'Patch #11 (sysstat-10.1.5-int-handler.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .int-handler --fuzz=0 patching file sadc.c Patch #12 (sysstat-10.1.5-nfsiostat.patch): + echo 'Patch #12 (sysstat-10.1.5-nfsiostat.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .nfsiostat --fuzz=0 patching file configure patching file configure.in patching file Makefile.in patching file man/nfsiostat.in patching file man/nfsiostat-sysstat.in patching file nfsiostat.c patching file nfsiostat.h patching file nfsiostat-sysstat.c patching file nfsiostat-sysstat.h Patch #13 (sysstat-10.1.5-tapestat.patch): + echo 'Patch #13 (sysstat-10.1.5-tapestat.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .tapestat --fuzz=0 patching file Makefile.in patching file man/tapestat.1 patching file tapestat.c patching file tapestat.h Patch #14 (0001-sar-make-buffers-that-hold-timestamps-bigger.patch): + echo 'Patch #14 (0001-sar-make-buffers-that-hold-timestamps-bigger.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .korean --fuzz=0 patching file sa.h patching file sar.c Patch #15 (0001-pidstat-Display-stats-since-boot-time-for-a-list-of-.patch): + echo 'Patch #15 (0001-pidstat-Display-stats-since-boot-time-for-a-list-of-.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .pidstat --fuzz=0 patching file pidstat.c Patch #16 (0001-sar-Improve-cpuinfo-read-for-POWER-architecture.patch): + echo 'Patch #16 (0001-sar-Improve-cpuinfo-read-for-POWER-architecture.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .power --fuzz=0 patching file rd_stats.c Patch #17 (0001-Added-filesystems-statistics-to-sar-part-1-Basic-def.patch): + echo 'Patch #17 (0001-Added-filesystems-statistics-to-sar-part-1-Basic-def.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file activity.c patching file json_stats.c patching file json_stats.h patching file pr_stats.c patching file pr_stats.h patching file rd_stats.h patching file rndr_stats.c patching file rndr_stats.h patching file sa.h patching file sa_common.c patching file sa_wrap.c patching file sar.c patching file xml_stats.c patching file xml_stats.h Patch #18 (0002-Filesystems-statistics-for-sar-part-2-Read-statistic.patch): + echo 'Patch #18 (0002-Filesystems-statistics-for-sar-part-2-Read-statistic.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file rd_stats.c patching file rd_stats.h patching file sa_wrap.c Patch #19 (0003-Filesystems-statistics-for-sar-part-3-Display-statis.patch): + echo 'Patch #19 (0003-Filesystems-statistics-for-sar-part-3-Display-statis.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file pr_stats.c Patch #20 (0004-Filesystems-statistics-part-4-ppc-and-db-output-form.patch): + echo 'Patch #20 (0004-Filesystems-statistics-part-4-ppc-and-db-output-form.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file activity.c patching file rndr_stats.c patching file rndr_stats.h Patch #21 (0005-Filesystems-statistics-part-5-JSON-output-format.patch): + echo 'Patch #21 (0005-Filesystems-statistics-part-5-JSON-output-format.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file json_stats.c Patch #22 (0006-Filesystems-statistics-part-6-XML-output-format.patch): + echo 'Patch #22 (0006-Filesystems-statistics-part-6-XML-output-format.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file sadf.h patching file xml/sysstat-2.16.dtd (renamed from xml/sysstat-2.15.dtd) patching file xml/sysstat.xsd patching file xml_stats.c Patch #23 (0007-Filesystems-statistics-part-7-Documentation-updates.patch): + echo 'Patch #23 (0007-Filesystems-statistics-part-7-Documentation-updates.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file man/sar.in Patch #24 (0008-Filesystems-stats-Display-unmounted-filesystems-in-s.patch): + echo 'Patch #24 (0008-Filesystems-stats-Display-unmounted-filesystems-in-s.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file pr_stats.c Patch #25 (0009-Handle-octal-codes-in-filesystems-mount-point-names.patch): + echo 'Patch #25 (0009-Handle-octal-codes-in-filesystems-mount-point-names.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file rd_stats.c patching file rd_stats.h Patch #26 (0010-Collect-filesystems-stats-only-when-sadc-option-S-XD.patch): + echo 'Patch #26 (0010-Collect-filesystems-stats-only-when-sadc-option-S-XD.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file activity.c patching file man/sadc.in patching file man/sar.in patching file sa.h patching file sadc.c Patch #27 (0011-Small-fix-for-sar-A-in-sar-manual-page.patch): + echo 'Patch #27 (0011-Small-fix-for-sar-A-in-sar-manual-page.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file man/sar.in Patch #28 (0012-Add-option-to-display-mountpoint-names-instead-of-fi.patch): + echo 'Patch #28 (0012-Add-option-to-display-mountpoint-names-instead-of-fi.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file man/sar.in patching file pr_stats.c patching file rd_stats.c patching file rd_stats.h patching file sa.h patching file sa_common.c patching file sar.c Patch #29 (0013-Revise-sar-usage-messages-to-be-F-MOUNT-rather-than-.patch): + echo 'Patch #29 (0013-Revise-sar-usage-messages-to-be-F-MOUNT-rather-than-.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file sar.c Patch #30 (0014-Use-statvfs-instead-of-statfs-system-call.patch): + echo 'Patch #30 (0014-Use-statvfs-instead-of-statfs-system-call.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file rd_stats.c Patch #31 (0015-Fix-issue-48-sar-skips-long-filesystem-names.patch): + echo 'Patch #31 (0015-Fix-issue-48-sar-skips-long-filesystem-names.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file rd_stats.c Patch #32 (0016-Fix-issue-48-for-good-sar-skips-long-filesystem-name.patch): + echo 'Patch #32 (0016-Fix-issue-48-for-good-sar-skips-long-filesystem-name.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file rd_stats.c Patch #33 (0017-Use-proper-length-for-mountp-string.patch): + echo 'Patch #33 (0017-Use-proper-length-for-mountp-string.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file rd_stats.c Patch #34 (0018-Replace-strcpy-with-strncpy-to-avoid-buffer-overflow.patch): + echo 'Patch #34 (0018-Replace-strcpy-with-strncpy-to-avoid-buffer-overflow.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file cifsiostat.c patching file ioconf.c patching file iostat.c patching file rd_stats.c patching file sa_common.c Patch #35 (0019-Cast-variables-to-target-type-before-use.patch): + echo 'Patch #35 (0019-Cast-variables-to-target-type-before-use.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file rd_stats.c Patch #36 (0020-Fix-162-sadc-crashes-on-a-mtab-file-with-really-long.patch): + echo 'Patch #36 (0020-Fix-162-sadc-crashes-on-a-mtab-file-with-really-long.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file rd_stats.c Patch #37 (0021-Increase-maximum-fs-name-length-to-128.patch): + echo 'Patch #37 (0021-Increase-maximum-fs-name-length-to-128.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file rd_stats.h Patch #38 (0001-sadc-Add-a-f-flag-to-force-fdatasync-use.patch): + echo 'Patch #38 (0001-sadc-Add-a-f-flag-to-force-fdatasync-use.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file man/sadc.in patching file sa.h Hunk #1 succeeded at 89 (offset 1 line). Hunk #2 succeeded at 106 (offset 1 line). patching file sadc.c Hunk #2 succeeded at 1001 (offset 10 lines). Hunk #3 succeeded at 1096 (offset 10 lines). Patch #39 (0001-avoiding-triggering-automounts-bug-1670060.patch): + echo 'Patch #39 (0001-avoiding-triggering-automounts-bug-1670060.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file sadc.c Hunk #1 succeeded at 293 (offset 10 lines). Patch #40 (0001-ignoring-autofs-as-real-filesystem-by-counting-numbe.patch): + echo 'Patch #40 (0001-ignoring-autofs-as-real-filesystem-by-counting-numbe.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file rd_stats.c Patch #41 (0001-man-use-correct-preposition.patch): + echo 'Patch #41 (0001-man-use-correct-preposition.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file man/sar.in Patch #42 (0001-pidstat-Now-handle-processes-with-spaces-in-their-na.patch): + echo 'Patch #42 (0001-pidstat-Now-handle-processes-with-spaces-in-their-na.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file pidstat.c Hunk #2 succeeded at 328 (offset 20 lines). Hunk #3 succeeded at 340 (offset 20 lines). Patch #43 (0001-sadc-Fix-segfault-that-may-happen-when-appending-dat.patch): + echo 'Patch #43 (0001-sadc-Fix-segfault-that-may-happen-when-appending-dat.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file sadc.c + iconv -f windows-1252 -t utf8 CREDITS + mv CREDITS.aux CREDITS + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.KjAIOg + 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 -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 -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/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 sysstat-10.1.5 + 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 -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 -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/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 + '[' '-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-01-03 17:44:39.405717374 +0800 +++ ./configure 2023-01-03 17:44:39.452718789 +0800 @@ -1863,7 +1863,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 + mv ./configure.backup ./configure + '[' 1 = 1 ']' +++ dirname ./configure ++ find . -name config.guess -o -name config.sub + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld' ']' ++ find . -name ltmain.sh + /usr/lib/rpm/anolis/fix-dlsearch-path-in-libtool . lib64 + ./configure --build=x86_64-Anolis-linux --host=x86_64-Anolis-linux --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 sa_lib_dir=/usr/lib64/sa history=28 compressafter=31 --disable-man-group configure: WARNING: unrecognized options: --disable-dependency-tracking . Check programs: . checking for x86_64-Anolis-linux-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 we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking whether it is safe to define __EXTENSIONS__... yes checking whether ln -s works... yes checking for chmod... chmod checking for chown... chown checking for ar... ar checking for install... install checking for msgfmt... msgfmt checking for xgettext... xgettext checking for msgmerge... msgmerge checking for bzip2... bzip2 checking for cp... /bin/cp checking for chkconfig... no checking for pkg-config... pkg-config checking for systemctl... /bin/systemctl . Check header files: . checking for ANSI C header files... (cached) yes checking for dirent.h that defines DIR... yes checking for library containing opendir... none required checking ctype.h usability... yes checking ctype.h presence... yes checking for ctype.h... yes checking errno.h usability... yes checking errno.h presence... yes checking for errno.h... yes checking libintl.h usability... yes checking libintl.h presence... yes checking for libintl.h... yes checking locale.h usability... yes checking locale.h presence... yes checking for locale.h... yes checking net/if.h usability... yes checking net/if.h presence... yes checking for net/if.h... yes checking regex.h usability... yes checking regex.h presence... yes checking for regex.h... yes checking signal.h usability... yes checking signal.h presence... yes checking for signal.h... yes checking stdio.h usability... yes checking stdio.h presence... yes checking for stdio.h... yes checking sys/file.h usability... yes checking sys/file.h presence... yes checking for sys/file.h... yes checking sys/ioctl.h usability... yes checking sys/ioctl.h presence... yes checking for sys/ioctl.h... yes checking for sys/stat.h... (cached) yes . Check typedefs, structures and compiler characteristics: . checking return type of signal handlers... void checking for size_t... yes checking for off_t... yes . Check library functions: . checking for strchr... yes checking for strcspn... yes checking for strspn... yes checking for strstr... yes checking for sensors support... yes checking for sensors_get_detected_chips in -lsensors... yes checking for sensors lib... yes . Check system services: . checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... no . Check configuration: . checking run-commands directory... /etc/rc.d checking sadc directory... /usr/lib64/sa INFO: Directory /usr/lib64/sa will be created during installation stage. checking system activity directory... /var/log/sa INFO: Directory /var/log/sa will be created during installation stage. checking sysstat configuration directory... /etc/sysconfig checking National Language Support... yes checking whether sa2 should process data file of the day before... no checking number of daily data files to keep... 28 checking number of days after which data files are compressed... 31 checking group for manual pages... man checking whether man_group variable should be ignored... yes checking whether manual pages should be compressed... no checking whether isag script should be installed... no checking whether system activity directory should be cleaned... no checking whether cron should start sar automatically... no checking whether documentation should be installed... yes checking whether object files should be stripped... yes . Now create files: . configure: creating ./config.status config.status: creating sa1 config.status: creating sa2 config.status: creating cron/crontab config.status: creating sysstat.sysconfig config.status: creating version.h config.status: creating sysconfig.h config.status: creating cron/sysstat.cron.daily config.status: creating cron/sysstat.cron.hourly config.status: creating cron/sysstat.crond config.status: creating cron/sysstat.crond.sample.in config.status: creating sysstat config.status: creating sysstat.service config.status: creating man/sa1.8 config.status: creating man/sa2.8 config.status: creating man/sadc.8 config.status: creating man/sadf.1 config.status: creating man/sar.1 config.status: creating man/sysstat.5 config.status: creating man/iostat.1 config.status: creating man/cifsiostat.1 config.status: creating man/nfsiostat-sysstat.1 config.status: creating contrib/isag/isag config.status: creating Makefile configure: WARNING: unrecognized options: --disable-dependency-tracking Sysstat version: 10.1.5 Installation prefix: /usr rc directory: /etc/rc.d Init directory: /etc/rc.d/init.d Systemd unit dir: /usr/lib/systemd/system Configuration directory: /etc/sysconfig Man pages directory: /usr/share/man Compiler: gcc Compiler flags: -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 + /usr/bin/sed -i 's/SADC_OPTIONS=""/SADC_OPTIONS="-S DISK"/' sysstat.sysconfig + 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 -DSADC_PATH=\"/usr/lib64/sa/sadc\"' + make '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 -DSADC_PATH=\"/usr/lib64/sa/sadc\"' LFLAGS= -j80 gcc -o sadc.o -c -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 -DSADC_PATH=\"/usr/lib64/sa/sadc\" -DSA_DIR=\"/var/log/sa\" -DSADC_PATH=\"/usr/lib64/sa/sadc\" -DHAVE_SENSORS -DUSE_NLS -DPACKAGE=\"sysstat\" -DLOCALEDIR=\"/usr/share/locale\" sadc.c gcc -o act_sadc.o -c -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 -DSADC_PATH=\"/usr/lib64/sa/sadc\" -DSOURCE_SADC -DSA_DIR=\"/var/log/sa\" -DSADC_PATH=\"/usr/lib64/sa/sadc\" -DHAVE_SENSORS -DUSE_NLS -DPACKAGE=\"sysstat\" -DLOCALEDIR=\"/usr/share/locale\" activity.c gcc -o sa_wrap.o -c -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 -DSADC_PATH=\"/usr/lib64/sa/sadc\" -DSA_DIR=\"/var/log/sa\" -DSADC_PATH=\"/usr/lib64/sa/sadc\" -DHAVE_SENSORS -DUSE_NLS -DPACKAGE=\"sysstat\" -DLOCALEDIR=\"/usr/share/locale\" sa_wrap.c gcc -o sa_common.o -c -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 -DSADC_PATH=\"/usr/lib64/sa/sadc\" -DSA_DIR=\"/var/log/sa\" -DSADC_PATH=\"/usr/lib64/sa/sadc\" -DHAVE_SENSORS -DUSE_NLS -DPACKAGE=\"sysstat\" -DLOCALEDIR=\"/usr/share/locale\" sa_common.c gcc -o rd_stats.o -c -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 -DSADC_PATH=\"/usr/lib64/sa/sadc\" -DSA_DIR=\"/var/log/sa\" -DSADC_PATH=\"/usr/lib64/sa/sadc\" -DHAVE_SENSORS -DUSE_NLS -DPACKAGE=\"sysstat\" -DLOCALEDIR=\"/usr/share/locale\" rd_stats.c gcc -o rd_sensors.o -c -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 -DSADC_PATH=\"/usr/lib64/sa/sadc\" -DSA_DIR=\"/var/log/sa\" -DSADC_PATH=\"/usr/lib64/sa/sadc\" -DHAVE_SENSORS -DUSE_NLS -DPACKAGE=\"sysstat\" -DLOCALEDIR=\"/usr/share/locale\" rd_sensors.c gcc -o common.o -c -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 -DSADC_PATH=\"/usr/lib64/sa/sadc\" -DSA_DIR=\"/var/log/sa\" -DSADC_PATH=\"/usr/lib64/sa/sadc\" -DHAVE_SENSORS -DUSE_NLS -DPACKAGE=\"sysstat\" -DLOCALEDIR=\"/usr/share/locale\" common.c gcc -o ioconf.o -c -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 -DSADC_PATH=\"/usr/lib64/sa/sadc\" -DSA_DIR=\"/var/log/sa\" -DSADC_PATH=\"/usr/lib64/sa/sadc\" -DHAVE_SENSORS -DUSE_NLS -DPACKAGE=\"sysstat\" -DLOCALEDIR=\"/usr/share/locale\" ioconf.c gcc -o sar.o -c -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 -DSADC_PATH=\"/usr/lib64/sa/sadc\" -DSA_DIR=\"/var/log/sa\" -DSADC_PATH=\"/usr/lib64/sa/sadc\" -DHAVE_SENSORS -DUSE_NLS -DPACKAGE=\"sysstat\" -DLOCALEDIR=\"/usr/share/locale\" sar.c gcc -o act_sar.o -c -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 -DSADC_PATH=\"/usr/lib64/sa/sadc\" -DSOURCE_SAR -DSA_DIR=\"/var/log/sa\" -DSADC_PATH=\"/usr/lib64/sa/sadc\" -DHAVE_SENSORS -DUSE_NLS -DPACKAGE=\"sysstat\" -DLOCALEDIR=\"/usr/share/locale\" activity.c gcc -o pr_stats.o -c -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 -DSADC_PATH=\"/usr/lib64/sa/sadc\" -DSA_DIR=\"/var/log/sa\" -DSADC_PATH=\"/usr/lib64/sa/sadc\" -DHAVE_SENSORS -DUSE_NLS -DPACKAGE=\"sysstat\" -DLOCALEDIR=\"/usr/share/locale\" pr_stats.c gcc -o sadf.o -c -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 -DSADC_PATH=\"/usr/lib64/sa/sadc\" -DSA_DIR=\"/var/log/sa\" -DSADC_PATH=\"/usr/lib64/sa/sadc\" -DHAVE_SENSORS -DUSE_NLS -DPACKAGE=\"sysstat\" -DLOCALEDIR=\"/usr/share/locale\" sadf.c gcc -o act_sadf.o -c -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 -DSADC_PATH=\"/usr/lib64/sa/sadc\" -DSOURCE_SADF -DSA_DIR=\"/var/log/sa\" -DSADC_PATH=\"/usr/lib64/sa/sadc\" -DHAVE_SENSORS -DUSE_NLS -DPACKAGE=\"sysstat\" -DLOCALEDIR=\"/usr/share/locale\" activity.c gcc -o format.o -c -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 -DSADC_PATH=\"/usr/lib64/sa/sadc\" -DSA_DIR=\"/var/log/sa\" -DSADC_PATH=\"/usr/lib64/sa/sadc\" -DHAVE_SENSORS -DUSE_NLS -DPACKAGE=\"sysstat\" -DLOCALEDIR=\"/usr/share/locale\" format.c gcc -o sadf_misc.o -c -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 -DSADC_PATH=\"/usr/lib64/sa/sadc\" -DSA_DIR=\"/var/log/sa\" -DSADC_PATH=\"/usr/lib64/sa/sadc\" -DHAVE_SENSORS -DUSE_NLS -DPACKAGE=\"sysstat\" -DLOCALEDIR=\"/usr/share/locale\" sadf_misc.c gcc -o rndr_stats.o -c -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 -DSADC_PATH=\"/usr/lib64/sa/sadc\" -DSA_DIR=\"/var/log/sa\" -DSADC_PATH=\"/usr/lib64/sa/sadc\" -DHAVE_SENSORS -DUSE_NLS -DPACKAGE=\"sysstat\" -DLOCALEDIR=\"/usr/share/locale\" rndr_stats.c gcc -o xml_stats.o -c -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 -DSADC_PATH=\"/usr/lib64/sa/sadc\" -DSA_DIR=\"/var/log/sa\" -DSADC_PATH=\"/usr/lib64/sa/sadc\" -DHAVE_SENSORS -DUSE_NLS -DPACKAGE=\"sysstat\" -DLOCALEDIR=\"/usr/share/locale\" xml_stats.c gcc -o json_stats.o -c -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 -DSADC_PATH=\"/usr/lib64/sa/sadc\" -DSA_DIR=\"/var/log/sa\" -DSADC_PATH=\"/usr/lib64/sa/sadc\" -DHAVE_SENSORS -DUSE_NLS -DPACKAGE=\"sysstat\" -DLOCALEDIR=\"/usr/share/locale\" json_stats.c gcc -o iostat.o -c -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 -DSADC_PATH=\"/usr/lib64/sa/sadc\" -DSA_DIR=\"/var/log/sa\" -DSADC_PATH=\"/usr/lib64/sa/sadc\" -DHAVE_SENSORS -DUSE_NLS -DPACKAGE=\"sysstat\" -DLOCALEDIR=\"/usr/share/locale\" iostat.c gcc -o tapestat.o -c -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 -DSADC_PATH=\"/usr/lib64/sa/sadc\" -DSA_DIR=\"/var/log/sa\" -DSADC_PATH=\"/usr/lib64/sa/sadc\" -DHAVE_SENSORS -DUSE_NLS -DPACKAGE=\"sysstat\" -DLOCALEDIR=\"/usr/share/locale\" tapestat.c gcc -o mpstat.o -c -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 -DSADC_PATH=\"/usr/lib64/sa/sadc\" -DSA_DIR=\"/var/log/sa\" -DSADC_PATH=\"/usr/lib64/sa/sadc\" -DHAVE_SENSORS -DUSE_NLS -DPACKAGE=\"sysstat\" -DLOCALEDIR=\"/usr/share/locale\" mpstat.c gcc -o pidstat.o -c -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 -DSADC_PATH=\"/usr/lib64/sa/sadc\" -DSA_DIR=\"/var/log/sa\" -DSADC_PATH=\"/usr/lib64/sa/sadc\" -DHAVE_SENSORS -DUSE_NLS -DPACKAGE=\"sysstat\" -DLOCALEDIR=\"/usr/share/locale\" pidstat.c gcc -o nfsiostat-sysstat.o -c -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 -DSADC_PATH=\"/usr/lib64/sa/sadc\" -DSA_DIR=\"/var/log/sa\" -DSADC_PATH=\"/usr/lib64/sa/sadc\" -DHAVE_SENSORS -DUSE_NLS -DPACKAGE=\"sysstat\" -DLOCALEDIR=\"/usr/share/locale\" nfsiostat-sysstat.c gcc -o cifsiostat.o -c -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 -DSADC_PATH=\"/usr/lib64/sa/sadc\" -DSA_DIR=\"/var/log/sa\" -DSADC_PATH=\"/usr/lib64/sa/sadc\" -DHAVE_SENSORS -DUSE_NLS -DPACKAGE=\"sysstat\" -DLOCALEDIR=\"/usr/share/locale\" cifsiostat.c msgfmt -o nls/af.gmo nls/af.po msgfmt -o nls/cs.gmo nls/cs.po msgfmt -o nls/da.gmo nls/da.po msgfmt -o nls/de.gmo nls/de.po msgfmt -o nls/eo.gmo nls/eo.po msgfmt -o nls/es.gmo nls/es.po msgfmt -o nls/eu.gmo nls/eu.po msgfmt -o nls/fi.gmo nls/fi.po msgfmt -o nls/fr.gmo nls/fr.po msgfmt -o nls/hr.gmo nls/hr.po msgfmt -o nls/id.gmo nls/id.po msgfmt -o nls/it.gmo nls/it.po msgfmt -o nls/ja.gmo nls/ja.po msgfmt -o nls/ky.gmo nls/ky.po msgfmt -o nls/lv.gmo nls/lv.po msgfmt -o nls/mt.gmo nls/mt.po msgfmt -o nls/nb.gmo nls/nb.po msgfmt -o nls/nl.gmo nls/nl.po msgfmt -o nls/nn.gmo nls/nn.po msgfmt -o nls/pl.gmo nls/pl.po msgfmt -o nls/pt.gmo nls/pt.po msgfmt -o nls/pt_BR.gmo nls/pt_BR.po msgfmt -o nls/ro.gmo nls/ro.po msgfmt -o nls/ru.gmo nls/ru.po msgfmt -o nls/sk.gmo nls/sk.po msgfmt -o nls/sr.gmo nls/sr.po msgfmt -o nls/sv.gmo nls/sv.po msgfmt -o nls/uk.gmo nls/uk.po msgfmt -o nls/vi.gmo nls/vi.po msgfmt -o nls/zh_CN.gmo nls/zh_CN.po msgfmt -o nls/zh_TW.gmo nls/zh_TW.po ioconf.c: In function 'transform_devmapname': ioconf.c:506:36: error: called object 'major' is not a function or function pointer 506 | dm_major = major(aux.st_rdev); | ^~~~~ ioconf.c:482:41: note: declared here 482 | char *transform_devmapname(unsigned int major, unsigned int minor) | ~~~~~~~~~~~~~^~~~~ ioconf.c:507:36: error: called object 'minor' is not a function or function pointer 507 | dm_minor = minor(aux.st_rdev); | ^~~~~ ioconf.c:482:61: note: declared here 482 | char *transform_devmapname(unsigned int major, unsigned int minor) | ~~~~~~~~~~~~~^~~~~ make: *** [Makefile:158: ioconf.o] Error 1 make: *** Waiting for unfinished jobs.... In file included from sa.h:11, from sa_common.c:34: sa_common.c: In function 'allocate_structures': sa_common.c:85:91: warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context] 85 | SREALLOC(act[i]->buf[j], void, act[i]->msize * act[i]->nr * act[i]->nr2); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ common.h:93:45: note: in definition of macro 'SREALLOC' 93 | if (SIZE) { \ | ^~~~ In file included from sa.h:11, from sadc.c:37: sadc.c: In function 'sa_sys_init': sadc.c:317:82: warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context] 317 | SREALLOC(act[i]->_buf0, void, act[i]->msize * act[i]->nr * act[i]->nr2); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ common.h:93:45: note: in definition of macro 'SREALLOC' 93 | if (SIZE) { \ | ^~~~ sa_common.c: In function 'check_file_actlst': sa_common.c:1134:73: warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context] 1134 | SREALLOC(*file_actlst, struct file_activity, FILE_ACTIVITY_SIZE * file_hdr->sa_nr_act); common.h:93:45: note: in definition of macro 'SREALLOC' 93 | if (SIZE) { \ | ^~~~ sadc.c: In function 'open_ofile': sadc.c:837:87: warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context] 837 | (size_t) act[p]->msize * (size_t) act[p]->nr * (size_t) act[p]->nr2); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ common.h:93:45: note: in definition of macro 'SREALLOC' 93 | if (SIZE) { \ | ^~~~ pidstat.c: In function 'read_proc_pid_stat': pidstat.c:366:21: warning: use of assignment suppression and length modifier together in gnu_scanf format [-Wformat=] 366 | "%*s %*d %*d %*d %*d %*d %*u %lu %lu" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ rd_stats.c: In function 'read_loadavg': rd_stats.c:299:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 299 | fscanf(fp, "%d.%d %d.%d %d.%d %ld/%d %*d\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 300 | &load_tmp[0], &st_queue->load_avg_1, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 301 | &load_tmp[1], &st_queue->load_avg_5, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 302 | &load_tmp[2], &st_queue->load_avg_15, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 303 | &st_queue->nr_running, | ~~~~~~~~~~~~~~~~~~~~~~ 304 | &st_queue->nr_threads); | ~~~~~~~~~~~~~~~~~~~~~~ rd_stats.c: In function 'read_kernel_tables': rd_stats.c:682:17: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 682 | fscanf(fp, "%*d %u", | ^~~~~~~~~~~~~~~~~~~~ 683 | &st_ktables->dentry_stat); | ~~~~~~~~~~~~~~~~~~~~~~~~~ rd_stats.c:689:17: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 689 | fscanf(fp, "%u %u", | ^~~~~~~~~~~~~~~~~~~ 690 | &st_ktables->file_used, &parm); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ rd_stats.c:701:17: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 701 | fscanf(fp, "%u %u", | ^~~~~~~~~~~~~~~~~~~ 702 | &st_ktables->inode_used, &parm); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ rd_stats.c:713:17: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 713 | fscanf(fp, "%u", | ^~~~~~~~~~~~~~~~ 714 | &st_ktables->pty_nr); | ~~~~~~~~~~~~~~~~~~~~ rd_stats.c: In function 'read_usb_stats': rd_stats.c:1813:17: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 1813 | fscanf(fp, "%x", | ^~~~~~~~~~~~~~~~ 1814 | &st_pwr_usb->vendor_id); | ~~~~~~~~~~~~~~~~~~~~~~~ rd_stats.c:1822:17: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 1822 | fscanf(fp, "%x", | ^~~~~~~~~~~~~~~~ 1823 | &st_pwr_usb->product_id); | ~~~~~~~~~~~~~~~~~~~~~~~~ rd_stats.c:1831:17: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 1831 | fscanf(fp, "%u", | ^~~~~~~~~~~~~~~~ 1832 | &st_pwr_usb->bmaxpower); | ~~~~~~~~~~~~~~~~~~~~~~~ rd_stats.c:1840:17: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 1840 | fgets(st_pwr_usb->manufacturer, MAX_MANUF_LEN - 1, fp); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ rd_stats.c:1852:17: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 1852 | fgets(st_pwr_usb->product, MAX_PROD_LEN - 1, fp); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ common.c: In function 'get_dev_part_nr': common.c:214:49: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size between 0 and 1023 [-Wformat-truncation=] 214 | snprintf(line, MAX_PF_NAME, "%s/%s/%s", dfile, drd->d_name, S_STAT); | ^~ In file included from /usr/include/stdio.h:906, from common.c:22: In function 'snprintf', inlined from 'get_dev_part_nr' at common.c:214:3: /usr/include/bits/stdio2.h:54:10: note: '__snprintf_chk' output between 7 and 1285 bytes into a destination of size 1024 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ json_stats.c: In function 'json_print_cpu_stats': json_stats.c:145:49: warning: '%d' directive writing between 1 and 10 bytes into a region of size 8 [-Wformat-overflow=] 145 | sprintf(cpuno, "%d", i - 1); | ^~ json_stats.c:145:48: note: directive argument in the range [0, 2147483645] 145 | sprintf(cpuno, "%d", i - 1); | ^~~~ In file included from /usr/include/stdio.h:906, from json_stats.c:22: In function 'sprintf', inlined from 'json_print_cpu_stats' at json_stats.c:145:5: /usr/include/bits/stdio2.h:30:10: note: '__sprintf_chk' output between 2 and 11 bytes into a destination of size 8 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ xml_stats.c: In function 'xml_print_cpu_stats': xml_stats.c:136:49: warning: '%d' directive writing between 1 and 10 bytes into a region of size 8 [-Wformat-overflow=] 136 | sprintf(cpuno, "%d", i - 1); | ^~ xml_stats.c:136:48: note: directive argument in the range [0, 2147483645] 136 | sprintf(cpuno, "%d", i - 1); | ^~~~ In file included from /usr/include/stdio.h:906, from xml_stats.c:22: In function 'sprintf', inlined from 'xml_print_cpu_stats' at xml_stats.c:136:5: /usr/include/bits/stdio2.h:30:10: note: '__sprintf_chk' output between 2 and 11 bytes into a destination of size 8 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:535, from sar.c:23: In function 'strcpy', inlined from 'write_stats_avg' at sar.c:405:2: /usr/include/bits/string_fortified.h:79:10: warning: 'strcpy' accessing 1 byte at offsets [0, 64] and [0, 128] may overlap 1 byte at offset 0 [-Wrestrict] 79 | return __builtin___strcpy_chk (__dest, __src, __glibc_objsize (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xml_stats.c: In function 'xml_print_irq_stats': xml_stats.c:323:49: warning: '%d' directive writing between 1 and 10 bytes into a region of size 8 [-Wformat-overflow=] 323 | sprintf(irqno, "%d", i - 1); | ^~ xml_stats.c:323:48: note: directive argument in the range [0, 2147483645] 323 | sprintf(irqno, "%d", i - 1); | ^~~~ In function 'sprintf', inlined from 'xml_print_irq_stats' at xml_stats.c:323:5: /usr/include/bits/stdio2.h:30:10: note: '__sprintf_chk' output between 2 and 11 bytes into a destination of size 8 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ json_stats.c: In function 'json_print_irq_stats': json_stats.c:334:49: warning: '%d' directive writing between 1 and 10 bytes into a region of size 8 [-Wformat-overflow=] 334 | sprintf(irqno, "%d", i - 1); | ^~ json_stats.c:334:48: note: directive argument in the range [0, 2147483645] 334 | sprintf(irqno, "%d", i - 1); | ^~~~ In function 'sprintf', inlined from 'json_print_irq_stats' at json_stats.c:334:5: /usr/include/bits/stdio2.h:30:10: note: '__sprintf_chk' output between 2 and 11 bytes into a destination of size 8 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ sadf.c: In function 'write_mech_stats': sadf.c:499:42: warning: '__snprintf_chk' output may be truncated before the last format character [-Wformat-truncation=] 499 | snprintf(temp, 80, "%s%s ", pre, cur_date); | ^ In file included from /usr/include/stdio.h:906, from sadf.c:22: In function 'snprintf', inlined from 'write_mech_stats' at sadf.c:499:3: /usr/include/bits/stdio2.h:54:10: note: '__snprintf_chk' output 2 or more bytes (assuming 81) into a destination of size 80 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ common.c: In function 'get_persistent_name_path': common.c:728:31: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 19 [-Wformat-truncation=] 728 | snprintf(dir, 32, "%s-%s", DEV_DISK_BY, type); | ^~ ...... 752 | snprintf(path, PATH_MAX, "%s/%s", | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 753 | get_persistent_type_dir(persistent_name_type), name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'snprintf', inlined from 'get_persistent_type_dir' at common.c:728:2, inlined from 'get_persistent_name_path' at common.c:752:2: /usr/include/bits/stdio2.h:54:10: note: '__snprintf_chk' output between 14 and 269 bytes into a destination of size 32 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ iostat.c: In function 'read_sysfs_dlist_part_stat': iostat.c:575:53: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size between 0 and 1023 [-Wformat-truncation=] 575 | snprintf(filename, MAX_PF_NAME, "%s/%s/%s", dfile, drd->d_name, S_STAT); | ^~ In file included from /usr/include/stdio.h:906, from iostat.c:22: In function 'snprintf', inlined from 'read_sysfs_dlist_part_stat' at iostat.c:575:3: /usr/include/bits/stdio2.h:54:10: note: '__snprintf_chk' output between 7 and 1285 bytes into a destination of size 1024 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ common.c: In function 'get_persistent_names': common.c:728:31: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 19 [-Wformat-truncation=] 728 | snprintf(dir, 32, "%s-%s", DEV_DISK_BY, type); | ^~ ...... 778 | dir = get_persistent_type_dir(persistent_name_type); | ~~~~~~~~~~~~~~~~~~~~ In function 'snprintf', inlined from 'get_persistent_type_dir' at common.c:728:2, inlined from 'get_persistent_names' at common.c:778:8: /usr/include/bits/stdio2.h:54:10: note: '__snprintf_chk' output between 14 and 269 bytes into a destination of size 32 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ sa_common.c: In function 'check_net_dev_reg': sa_common.c:552:41: warning: 'strncpy' output may be truncated copying 15 bytes from a string of length 15 [-Wstringop-truncation] 552 | strncpy(sndp->interface, sndc->interface, MAX_IFACE_LEN - 1); | ^ sa_common.c:577:9: warning: 'strncpy' output may be truncated copying 15 bytes from a string of length 15 [-Wstringop-truncation] 577 | strncpy(sndp->interface, sndc->interface, MAX_IFACE_LEN - 1); | ^ common.c: In function 'get_persistent_name_from_pretty': common.c:728:31: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 19 [-Wformat-truncation=] 728 | snprintf(dir, 32, "%s-%s", DEV_DISK_BY, type); | ^~ ...... 752 | snprintf(path, PATH_MAX, "%s/%s", | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 753 | get_persistent_type_dir(persistent_name_type), name); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'snprintf', inlined from 'get_persistent_type_dir' at common.c:728:2, inlined from 'get_persistent_name_path' at common.c:752:2, inlined from 'get_persistent_name_from_pretty' at common.c:853:10: /usr/include/bits/stdio2.h:54:10: note: '__snprintf_chk' output between 14 and 269 bytes into a destination of size 32 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ sa_common.c: In function 'check_net_edev_reg': sa_common.c:628:33: warning: 'strncpy' output may be truncated copying 15 bytes from a string of length 15 [-Wstringop-truncation] 628 | strncpy(snedp->interface, snedc->interface, MAX_IFACE_LEN - 1); | ^ sa_common.c:652:9: warning: 'strncpy' output may be truncated copying 15 bytes from a string of length 15 [-Wstringop-truncation] 652 | strncpy(snedp->interface, snedc->interface, MAX_IFACE_LEN - 1); | ^ xml_stats.c: In function 'xml_print_pwr_cpufreq_stats': xml_stats.c:1680:49: warning: '%d' directive writing between 1 and 10 bytes into a region of size 8 [-Wformat-overflow=] 1680 | sprintf(cpuno, "%d", i - 1); | ^~ xml_stats.c:1680:48: note: directive argument in the range [0, 2147483645] 1680 | sprintf(cpuno, "%d", i - 1); | ^~~~ In function 'sprintf', inlined from 'xml_print_pwr_cpufreq_stats' at xml_stats.c:1680:5: /usr/include/bits/stdio2.h:30:10: note: '__sprintf_chk' output between 2 and 11 bytes into a destination of size 8 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ json_stats.c: In function 'json_print_pwr_cpufreq_stats': json_stats.c:1726:49: warning: '%d' directive writing between 1 and 10 bytes into a region of size 8 [-Wformat-overflow=] 1726 | sprintf(cpuno, "%d", i - 1); | ^~ json_stats.c:1726:48: note: directive argument in the range [0, 2147483645] 1726 | sprintf(cpuno, "%d", i - 1); | ^~~~ In function 'sprintf', inlined from 'json_print_pwr_cpufreq_stats' at json_stats.c:1726:5: /usr/include/bits/stdio2.h:30:10: note: '__sprintf_chk' output between 2 and 11 bytes into a destination of size 8 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ xml_stats.c: In function 'xml_print_pwr_wghfreq_stats': xml_stats.c:1924:49: warning: '%d' directive writing between 1 and 10 bytes into a region of size 8 [-Wformat-overflow=] 1924 | sprintf(cpuno, "%d", i - 1); | ^~ xml_stats.c:1924:48: note: directive argument in the range [0, 2147483645] 1924 | sprintf(cpuno, "%d", i - 1); | ^~~~ In function 'sprintf', inlined from 'xml_print_pwr_wghfreq_stats' at xml_stats.c:1924:5: /usr/include/bits/stdio2.h:30:10: note: '__sprintf_chk' output between 2 and 11 bytes into a destination of size 8 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ json_stats.c: In function 'json_print_pwr_wghfreq_stats': json_stats.c:2002:49: warning: '%d' directive writing between 1 and 10 bytes into a region of size 8 [-Wformat-overflow=] 2002 | sprintf(cpuno, "%d", i - 1); | ^~ json_stats.c:2002:48: note: directive argument in the range [0, 2147483645] 2002 | sprintf(cpuno, "%d", i - 1); | ^~~~ In function 'sprintf', inlined from 'json_print_pwr_wghfreq_stats' at json_stats.c:2002:5: /usr/include/bits/stdio2.h:30:10: note: '__sprintf_chk' output between 2 and 11 bytes into a destination of size 8 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ error: Bad exit status from /var/tmp/rpm-tmp.KjAIOg (%build) Bad exit status from /var/tmp/rpm-tmp.KjAIOg (%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/sysstat.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 598, 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/sysstat.spec