Mock Version: 1.4.15 Mock Version: 1.4.15 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target ppc64le --nodeps /builddir/build/SPECS/acpitool.spec'], chrootPath='/var/lib/mock/f31-build-16371607-1171481/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=172800uid=1000gid=425user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target ppc64le --nodeps /builddir/build/SPECS/acpitool.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: ppc64le Building for target ppc64le Wrote: /builddir/build/SRPMS/acpitool-0.5.1-21.fc31.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target ppc64le --nodeps /builddir/build/SPECS/acpitool.spec'], chrootPath='/var/lib/mock/f31-build-16371607-1171481/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=172800uid=1000gid=425user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target ppc64le --nodeps /builddir/build/SPECS/acpitool.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: ppc64le Building for target ppc64le Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.IyjFtS + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf acpitool-0.5.1 + /usr/bin/bzip2 -dc /builddir/build/SOURCES/acpitool-0.5.1.tar.bz2 + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd acpitool-0.5.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . Patch #0 (ac_adapter.patch): + echo 'Patch #0 (ac_adapter.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .ac_adapter --fuzz=0 patching file src/ac_adapter.cpp Patch #1 (battery.patch): + echo 'Patch #1 (battery.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .battery --fuzz=0 patching file src/acpitool.h patching file src/battery.cpp Patch #2 (kernel3.patch): + echo 'Patch #2 (kernel3.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .kernel3 --fuzz=0 patching file src/acpitool.cpp Patch #3 (wakeup.patch): + echo 'Patch #3 (wakeup.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .wakeup --fuzz=0 patching file src/acpitool.cpp Patch #4 (var-line.patch): + echo 'Patch #4 (var-line.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .var-line --fuzz=0 patching file src/acpitool.cpp Patch #5 (typos.patch): + echo 'Patch #5 (typos.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .typos --fuzz=0 patching file man/acpitool.1 Patch #6 (cleanup.patch): + echo 'Patch #6 (cleanup.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .cleanup --fuzz=0 patching file src/ac_adapter.cpp patching file src/acpitool.cpp patching file src/asus.cpp patching file src/battery.cpp patching file src/cpu.cpp patching file src/thinkpad.cpp patching file src/toshiba.cpp Patch #7 (cache-size.patch): + echo 'Patch #7 (cache-size.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .cache-size --fuzz=0 patching file src/cpu.cpp + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.zfTftQ + umask 022 + cd /builddir/build/BUILD + cd acpitool-0.5.1 + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + '[' 1 = 1 ']' BUILDSTDERR: +++ dirname ./configure BUILDSTDERR: ++ find . -name config.guess -o -name config.sub + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) BUILDSTDERR: ++ basename ./config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./config.guess BUILDSTDERR: ++ basename ./config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./config.guess '/usr/lib/rpm/redhat/config.guess' -> './config.guess' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) BUILDSTDERR: ++ basename ./config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./config.sub BUILDSTDERR: ++ basename ./config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./config.sub '/usr/lib/rpm/redhat/config.sub' -> './config.sub' + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' ']' BUILDSTDERR: ++ find . -name ltmain.sh + ./configure --build=ppc64le-redhat-linux-gnu --host=ppc64le-redhat-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 checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking build system type... powerpc64le-redhat-linux-gnu checking host system type... powerpc64le-redhat-linux-gnu checking for ppc64le-redhat-linux-gnu-g++... no checking for ppc64le-redhat-linux-gnu-c++... no checking for ppc64le-redhat-linux-gnu-gpp... no checking for ppc64le-redhat-linux-gnu-aCC... no checking for ppc64le-redhat-linux-gnu-CC... no checking for ppc64le-redhat-linux-gnu-cxx... no checking for ppc64le-redhat-linux-gnu-cc++... no checking for ppc64le-redhat-linux-gnu-cl.exe... no checking for ppc64le-redhat-linux-gnu-FCC... no checking for ppc64le-redhat-linux-gnu-KCC... no checking for ppc64le-redhat-linux-gnu-RCC... no checking for ppc64le-redhat-linux-gnu-xlC_r... no checking for ppc64le-redhat-linux-gnu-xlC... no checking for g++... g++ checking for C++ compiler default output file name... a.out checking whether the C++ compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for style of include used by make... GNU checking dependency style of g++... none checking for ppc64le-redhat-linux-gnu-gcc... no checking for gcc... gcc 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 dependency style of gcc... none checking for dirent.h that defines DIR... yes checking for library containing opendir... none required 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 for unistd.h... (cached) yes checking for an ANSI C-conforming const... yes checking whether closedir returns void... no checking for strdup... yes checking for memset... yes checking for strtol... yes checking for a BSD-compatible install... /usr/bin/install -c configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating man/Makefile config.status: creating config.h config.status: executing depfiles commands +-----------------------------------------------------------------------------------+ | Run make && make install when the configure script has finished without problems. | +-----------------------------------------------------------------------------------+ + make -j4 make all-recursive make[1]: Entering directory '/builddir/build/BUILD/acpitool-0.5.1' Making all in src make[2]: Entering directory '/builddir/build/BUILD/acpitool-0.5.1/src' g++ -DHAVE_CONFIG_H -I. -I. -I.. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -c -o main.o main.cpp g++ -DHAVE_CONFIG_H -I. -I. -I.. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -c -o acpitool.o acpitool.cpp g++ -DHAVE_CONFIG_H -I. -I. -I.. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -c -o ac_adapter.o ac_adapter.cpp g++ -DHAVE_CONFIG_H -I. -I. -I.. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -c -o toshiba.o toshiba.cpp BUILDSTDERR: ac_adapter.cpp: In function 'int Do_AC_Info(int)': BUILDSTDERR: ac_adapter.cpp:54:27: warning: unused variable 'str' [-Wunused-variable] BUILDSTDERR: 54 | char filename[4][50], str[40]; BUILDSTDERR: | ^~~ BUILDSTDERR: ac_adapter.cpp: In function 'int Do_AC_Info_Sys()': BUILDSTDERR: ac_adapter.cpp:227:31: warning: format '%[^ BUILDSTDERR: ' expects a matching 'char*' argument [-Wformat=] BUILDSTDERR: 227 | sscanf(str, "%[^=]s %*s %[^\n]", attr); BUILDSTDERR: | ~~~^~ BUILDSTDERR: | | BUILDSTDERR: | char* BUILDSTDERR: ac_adapter.cpp:228:38: warning: format '%[^ BUILDSTDERR: ' expects a matching 'char*' argument [-Wformat=] BUILDSTDERR: 228 | sscanf(str, "%*[^=] %*c %s %[^\n]",temp); BUILDSTDERR: | ~~~^~ BUILDSTDERR: | | BUILDSTDERR: | char* BUILDSTDERR: ac_adapter.cpp:155:23: warning: unused variable 'start' [-Wunused-variable] BUILDSTDERR: 155 | int ac_count = 0, start = 0, findex = 0; BUILDSTDERR: | ^~~~~ BUILDSTDERR: acpitool.cpp: In function 'int Do_Thermal_Info(int, int)': BUILDSTDERR: acpitool.cpp:328:9: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 328 | fgets(str, 120, fp); BUILDSTDERR: | ~~~~~^~~~~~~~~~~~~~ BUILDSTDERR: ac_adapter.cpp:185:13: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 185 | fscanf(temp_fp, "%s", str); BUILDSTDERR: | ~~~~~~^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: ac_adapter.cpp:221:12: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 221 | fgets(str, 100, power_fp); BUILDSTDERR: | ~~~~~^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: ac_adapter.cpp:178:42: warning: '%s' directive writing up to 255 bytes into a region of size 76 [-Wformat-overflow=] BUILDSTDERR: 178 | sprintf(temp, "/sys/class/power_supply/%s/type", name); BUILDSTDERR: | ^~ BUILDSTDERR: In file included from /usr/include/stdio.h:867, BUILDSTDERR: from /usr/include/c++/9/cstdio:42, BUILDSTDERR: from /usr/include/c++/9/ext/string_conversions.h:43, BUILDSTDERR: from /usr/include/c++/9/bits/basic_string.h:6493, BUILDSTDERR: from /usr/include/c++/9/string:55, BUILDSTDERR: from /usr/include/c++/9/bits/locale_classes.h:40, BUILDSTDERR: from /usr/include/c++/9/bits/ios_base.h:41, BUILDSTDERR: from /usr/include/c++/9/ios:42, BUILDSTDERR: from /usr/include/c++/9/ostream:38, BUILDSTDERR: from /usr/include/c++/9/iostream:39, BUILDSTDERR: from ac_adapter.cpp:35: BUILDSTDERR: /usr/include/bits/stdio2.h:36:34: note: '__builtin___sprintf_chk' output between 30 and 285 bytes into a destination of size 100 BUILDSTDERR: 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: 37 | __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/string.h:494, BUILDSTDERR: from /usr/include/c++/9/cstring:42, BUILDSTDERR: from acpitool.cpp:33: BUILDSTDERR: In function 'char* strncpy(char*, const char*, size_t)', BUILDSTDERR: inlined from 'int Has_ACPI(char*)' at acpitool.cpp:100:13: BUILDSTDERR: /usr/include/bits/string_fortified.h:106:34: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' output may be truncated copying 8 bytes from a string of length 49 [-Wstringop-truncation] BUILDSTDERR: 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -DHAVE_CONFIG_H -I. -I. -I.. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -c -o asus.o asus.cpp g++ -DHAVE_CONFIG_H -I. -I. -I.. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -c -o thinkpad.o thinkpad.cpp g++ -DHAVE_CONFIG_H -I. -I. -I.. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -c -o cpu.o cpu.cpp BUILDSTDERR: acpitool.cpp: In function 'int Do_Thermal_Info(int, int)': BUILDSTDERR: acpitool.cpp:259:76: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 231 [-Wformat-truncation=] BUILDSTDERR: 259 | snprintf(tmp_fname, sizeof (tmp_fname) - 1, "/proc/acpi/thermal_zone/%s/state", name); BUILDSTDERR: | ^~ BUILDSTDERR: In file included from /usr/include/stdio.h:867, BUILDSTDERR: from /usr/include/c++/9/cstdio:42, BUILDSTDERR: from /usr/include/c++/9/ext/string_conversions.h:43, BUILDSTDERR: from /usr/include/c++/9/bits/basic_string.h:6493, BUILDSTDERR: from /usr/include/c++/9/string:55, BUILDSTDERR: from /usr/include/c++/9/bits/locale_classes.h:40, BUILDSTDERR: from /usr/include/c++/9/bits/ios_base.h:41, BUILDSTDERR: from /usr/include/c++/9/ios:42, BUILDSTDERR: from /usr/include/c++/9/ostream:38, BUILDSTDERR: from /usr/include/c++/9/iostream:39, BUILDSTDERR: from acpitool.cpp:37: BUILDSTDERR: /usr/include/bits/stdio2.h:67:35: note: '__builtin___snprintf_chk' output between 31 and 286 bytes into a destination of size 255 BUILDSTDERR: 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: 68 | __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: acpitool.cpp:262:76: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 231 [-Wformat-truncation=] BUILDSTDERR: 262 | snprintf(tmp_fname, sizeof (tmp_fname) - 1, "/proc/acpi/thermal_zone/%s/temperature", name); BUILDSTDERR: | ^~ BUILDSTDERR: In file included from /usr/include/stdio.h:867, BUILDSTDERR: from /usr/include/c++/9/cstdio:42, BUILDSTDERR: from /usr/include/c++/9/ext/string_conversions.h:43, BUILDSTDERR: from /usr/include/c++/9/bits/basic_string.h:6493, BUILDSTDERR: from /usr/include/c++/9/string:55, BUILDSTDERR: from /usr/include/c++/9/bits/locale_classes.h:40, BUILDSTDERR: from /usr/include/c++/9/bits/ios_base.h:41, BUILDSTDERR: from /usr/include/c++/9/ios:42, BUILDSTDERR: from /usr/include/c++/9/ostream:38, BUILDSTDERR: from /usr/include/c++/9/iostream:39, BUILDSTDERR: from acpitool.cpp:37: BUILDSTDERR: /usr/include/bits/stdio2.h:67:35: note: '__builtin___snprintf_chk' output between 37 and 292 bytes into a destination of size 255 BUILDSTDERR: 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: 68 | __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: acpitool.cpp:265:76: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 231 [-Wformat-truncation=] BUILDSTDERR: 265 | snprintf(tmp_fname, sizeof (tmp_fname) - 1, "/proc/acpi/thermal_zone/%s/trip_points", name); BUILDSTDERR: | ^~ BUILDSTDERR: In file included from /usr/include/stdio.h:867, BUILDSTDERR: from /usr/include/c++/9/cstdio:42, BUILDSTDERR: from /usr/include/c++/9/ext/string_conversions.h:43, BUILDSTDERR: from /usr/include/c++/9/bits/basic_string.h:6493, BUILDSTDERR: from /usr/include/c++/9/string:55, BUILDSTDERR: from /usr/include/c++/9/bits/locale_classes.h:40, BUILDSTDERR: from /usr/include/c++/9/bits/ios_base.h:41, BUILDSTDERR: from /usr/include/c++/9/ios:42, BUILDSTDERR: from /usr/include/c++/9/ostream:38, BUILDSTDERR: from /usr/include/c++/9/iostream:39, BUILDSTDERR: from acpitool.cpp:37: BUILDSTDERR: /usr/include/bits/stdio2.h:67:35: note: '__builtin___snprintf_chk' output between 37 and 292 bytes into a destination of size 255 BUILDSTDERR: 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: 68 | __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: cpu.cpp: In function 'int Show_CPU_Info()': BUILDSTDERR: cpu.cpp:56:16: warning: variable 'bm_activity' set but not used [-Wunused-but-set-variable] BUILDSTDERR: 56 | long long int bm_activity; BUILDSTDERR: | ^~~~~~~~~~~ BUILDSTDERR: cpu.cpp:65:31: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 65 | for(int t=0; t<4; t++) fgets(str, 299, cpuinfo_fp); // skip 4 lines // BUILDSTDERR: | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: cpu.cpp:66:8: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 66 | fgets(str, 299, cpuinfo_fp); BUILDSTDERR: | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: cpu.cpp:70:8: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 70 | fgets(str, 299, cpuinfo_fp); BUILDSTDERR: | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: cpu.cpp:71:8: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 71 | fgets(str, 299, cpuinfo_fp); BUILDSTDERR: | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: cpu.cpp:82:8: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 82 | fgets(str, 299, cpuinfo_fp); BUILDSTDERR: | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: cpu.cpp:83:8: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 83 | fgets(str, 299, cpuinfo_fp); BUILDSTDERR: | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: cpu.cpp:88:31: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 88 | for(int t=0; t<5; t++) fgets(str, 299, cpuinfo_fp); // we can skip at least 5 lines to reach Bogomips line// BUILDSTDERR: | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: cpu.cpp:92:12: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 92 | fgets(str, 299, cpuinfo_fp); // different for Amd64, Opteron, Core Duo, P4 with Ht, ... // BUILDSTDERR: | ~~~~~^~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: cpu.cpp:215:10: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 215 | fgets(str, 100, power_fp); // active state BUILDSTDERR: | ~~~~~^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: cpu.cpp:222:10: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 222 | fgets(str, 100, power_fp); // max_cstate BUILDSTDERR: | ~~~~~^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: cpu.cpp:231:10: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 231 | fgets(str, 100, power_fp); // bus master activity BUILDSTDERR: | ~~~~~^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: cpu.cpp:238:10: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 238 | fgets(str, 100, power_fp); // states (line contains no information) BUILDSTDERR: | ~~~~~^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: cpu.cpp:241:11: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 241 | fgets(str, 130, power_fp); // cstate Cx BUILDSTDERR: | ~~~~~^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: cpu.cpp:287:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 287 | fgets(str, 100, throt_fp); // active state BUILDSTDERR: | ~~~~~^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: cpu.cpp:291:14: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 291 | fgets(str, 100, throt_fp); BUILDSTDERR: | ~~~~~^~~~~~~~~~~~~~~~~~~~ g++ -DHAVE_CONFIG_H -I. -I. -I.. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -c -o battery.o battery.cpp g++ -DHAVE_CONFIG_H -I. -I. -I.. -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -c -o freq.o freq.cpp BUILDSTDERR: battery.cpp: In function 'int Do_Battery_Stuff(int, int, int)': BUILDSTDERR: battery.cpp:69:23: warning: variable 'Use_Sys' set but not used [-Wunused-but-set-variable] BUILDSTDERR: 69 | int Use_Proc = 0, Use_Sys = 0; BUILDSTDERR: | ^~~~~~~ BUILDSTDERR: battery.cpp: In function 'int Get_Battery_Info_from_Sys(int, Battery_Info*, int)': BUILDSTDERR: battery.cpp:577:13: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 577 | fscanf(temp_fp, "%s", str); BUILDSTDERR: | ~~~~~~^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: battery.cpp:658:8: warning: ignoring return value of 'char* fgets(char*, int, FILE*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 658 | fgets(str, 100, power_fp); BUILDSTDERR: | ~~~~~^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: battery.cpp: In function 'int Count_Batteries_SysFS()': BUILDSTDERR: battery.cpp:848:9: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 848 | fscanf(powertype_fp, "%s", str); BUILDSTDERR: | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: freq.cpp: In function 'int Get_Min_Freq()': BUILDSTDERR: freq.cpp:97:9: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 97 | fscanf(freqinfo_fp, "%s", str); BUILDSTDERR: | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: freq.cpp: In function 'int Get_Max_Freq()': BUILDSTDERR: freq.cpp:121:9: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 121 | fscanf(freqinfo_fp, "%s", str); BUILDSTDERR: | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: freq.cpp: In function 'int Get_Current_Freq()': BUILDSTDERR: freq.cpp:144:9: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 144 | fscanf(freqinfo_fp, "%s", str); BUILDSTDERR: | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: freq.cpp: In function 'int Get_Governor(char*)': BUILDSTDERR: freq.cpp:166:9: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 166 | fscanf(freqinfo_fp, "%s", str); BUILDSTDERR: | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: freq.cpp: In function 'int Get_Driver(char*)': BUILDSTDERR: freq.cpp:189:9: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 189 | fscanf(freqinfo_fp, "%s", str); BUILDSTDERR: | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/string.h:494, BUILDSTDERR: from /usr/include/c++/9/cstring:42, BUILDSTDERR: from battery.cpp:35: BUILDSTDERR: In function 'char* strncpy(char*, const char*, size_t)', BUILDSTDERR: inlined from 'int Get_Battery_Info_from_Sys(int, Battery_Info*, int)' at battery.cpp:644:9: BUILDSTDERR: /usr/include/bits/string_fortified.h:106:34: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' output truncated before terminating nul copying 7 bytes from a string of the same length [-Wstringop-truncation] BUILDSTDERR: 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In function 'char* strncpy(char*, const char*, size_t)', BUILDSTDERR: inlined from 'int Get_Battery_Info_from_Sys(int, Battery_Info*, int)' at battery.cpp:640:9: BUILDSTDERR: /usr/include/bits/string_fortified.h:106:34: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' output truncated before terminating nul copying 7 bytes from a string of the same length [-Wstringop-truncation] BUILDSTDERR: 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In function 'char* strncpy(char*, const char*, size_t)', BUILDSTDERR: inlined from 'int Get_Battery_Info_from_Sys(int, Battery_Info*, int)' at battery.cpp:641:9: BUILDSTDERR: /usr/include/bits/string_fortified.h:106:34: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' output truncated before terminating nul copying 7 bytes from a string of the same length [-Wstringop-truncation] BUILDSTDERR: 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In function 'char* strncpy(char*, const char*, size_t)', BUILDSTDERR: inlined from 'int Get_Battery_Info_from_Sys(int, Battery_Info*, int)' at battery.cpp:642:9: BUILDSTDERR: /usr/include/bits/string_fortified.h:106:34: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' output truncated before terminating nul copying 7 bytes from a string of the same length [-Wstringop-truncation] BUILDSTDERR: 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In function 'char* strncpy(char*, const char*, size_t)', BUILDSTDERR: inlined from 'int Get_Battery_Info_from_Sys(int, Battery_Info*, int)' at battery.cpp:643:9: BUILDSTDERR: /usr/include/bits/string_fortified.h:106:34: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' output truncated before terminating nul copying 7 bytes from a string of the same length [-Wstringop-truncation] BUILDSTDERR: 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In function 'char* strncpy(char*, const char*, size_t)', BUILDSTDERR: inlined from 'int Get_Battery_Info_from_Sys(int, Battery_Info*, int)' at battery.cpp:645:9: BUILDSTDERR: /usr/include/bits/string_fortified.h:106:34: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' output truncated before terminating nul copying 7 bytes from a string of the same length [-Wstringop-truncation] BUILDSTDERR: 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In function 'char* strncpy(char*, const char*, size_t)', BUILDSTDERR: inlined from 'int Get_Battery_Info_from_Sys(int, Battery_Info*, int)' at battery.cpp:646:9: BUILDSTDERR: /usr/include/bits/string_fortified.h:106:34: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' output truncated before terminating nul copying 7 bytes from a string of the same length [-Wstringop-truncation] BUILDSTDERR: 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In function 'char* strncpy(char*, const char*, size_t)', BUILDSTDERR: inlined from 'int Get_Battery_Info_from_Sys(int, Battery_Info*, int)' at battery.cpp:647:9: BUILDSTDERR: /usr/include/bits/string_fortified.h:106:34: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' output truncated before terminating nul copying 7 bytes from a string of the same length [-Wstringop-truncation] BUILDSTDERR: 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In function 'char* strncpy(char*, const char*, size_t)', BUILDSTDERR: inlined from 'int Get_Battery_Info_from_Sys(int, Battery_Info*, int)' at battery.cpp:648:9: BUILDSTDERR: /usr/include/bits/string_fortified.h:106:34: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' output truncated before terminating nul copying 7 bytes from a string of the same length [-Wstringop-truncation] BUILDSTDERR: 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In function 'char* strncpy(char*, const char*, size_t)', BUILDSTDERR: inlined from 'int Get_Battery_Info_from_Sys(int, Battery_Info*, int)' at battery.cpp:649:9: BUILDSTDERR: /usr/include/bits/string_fortified.h:106:34: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' output truncated before terminating nul copying 7 bytes from a string of the same length [-Wstringop-truncation] BUILDSTDERR: 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In function 'char* strncpy(char*, const char*, size_t)', BUILDSTDERR: inlined from 'int Get_Battery_Info_from_Sys(int, Battery_Info*, int)' at battery.cpp:650:9: BUILDSTDERR: /usr/include/bits/string_fortified.h:106:34: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' output truncated before terminating nul copying 7 bytes from a string of the same length [-Wstringop-truncation] BUILDSTDERR: 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: battery.cpp: In function 'int Get_Battery_Info_from_Sys(int, Battery_Info*, int)': BUILDSTDERR: battery.cpp:569:42: warning: '%s' directive writing up to 255 bytes into a region of size 76 [-Wformat-overflow=] BUILDSTDERR: 569 | sprintf(temp, "/sys/class/power_supply/%s/type", name); BUILDSTDERR: | ^~ BUILDSTDERR: In file included from /usr/include/stdio.h:867, BUILDSTDERR: from /usr/include/c++/9/cstdio:42, BUILDSTDERR: from /usr/include/c++/9/ext/string_conversions.h:43, BUILDSTDERR: from /usr/include/c++/9/bits/basic_string.h:6493, BUILDSTDERR: from /usr/include/c++/9/string:55, BUILDSTDERR: from /usr/include/c++/9/bits/locale_classes.h:40, BUILDSTDERR: from /usr/include/c++/9/bits/ios_base.h:41, BUILDSTDERR: from /usr/include/c++/9/ios:42, BUILDSTDERR: from /usr/include/c++/9/ostream:38, BUILDSTDERR: from /usr/include/c++/9/iostream:39, BUILDSTDERR: from battery.cpp:38: BUILDSTDERR: /usr/include/bits/stdio2.h:36:34: note: '__builtin___sprintf_chk' output between 30 and 285 bytes into a destination of size 100 BUILDSTDERR: 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: 37 | __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/string.h:494, BUILDSTDERR: from /usr/include/c++/9/cstring:42, BUILDSTDERR: from battery.cpp:35: BUILDSTDERR: In function 'char* strncpy(char*, const char*, size_t)', BUILDSTDERR: inlined from 'int Get_Battery_Info_from_Sys(int, Battery_Info*, int)' at battery.cpp:715:11: BUILDSTDERR: /usr/include/bits/string_fortified.h:106:34: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' output may be truncated copying 12 bytes from a string of length 99 [-Wstringop-truncation] BUILDSTDERR: 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In function 'char* strncpy(char*, const char*, size_t)', BUILDSTDERR: inlined from 'int Get_Battery_Info_from_Sys(int, Battery_Info*, int)' at battery.cpp:712:11: BUILDSTDERR: /usr/include/bits/string_fortified.h:106:34: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' output may be truncated copying 12 bytes from a string of length 99 [-Wstringop-truncation] BUILDSTDERR: 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In function 'char* strncpy(char*, const char*, size_t)', BUILDSTDERR: inlined from 'int Get_Battery_Info_from_Sys(int, Battery_Info*, int)' at battery.cpp:709:11: BUILDSTDERR: /usr/include/bits/string_fortified.h:106:34: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' output may be truncated copying 9 bytes from a string of length 99 [-Wstringop-truncation] BUILDSTDERR: 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In function 'char* strncpy(char*, const char*, size_t)', BUILDSTDERR: inlined from 'int Get_Battery_Info_from_Sys(int, Battery_Info*, int)' at battery.cpp:704:11: BUILDSTDERR: /usr/include/bits/string_fortified.h:106:34: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' output may be truncated copying 9 bytes from a string of length 99 [-Wstringop-truncation] BUILDSTDERR: 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In function 'char* strncpy(char*, const char*, size_t)', BUILDSTDERR: inlined from 'int Get_Battery_Info_from_Sys(int, Battery_Info*, int)' at battery.cpp:699:11: BUILDSTDERR: /usr/include/bits/string_fortified.h:106:34: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' output may be truncated copying 9 bytes from a string of length 99 [-Wstringop-truncation] BUILDSTDERR: 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In function 'char* strncpy(char*, const char*, size_t)', BUILDSTDERR: inlined from 'int Get_Battery_Info_from_Sys(int, Battery_Info*, int)' at battery.cpp:694:11: BUILDSTDERR: /usr/include/bits/string_fortified.h:106:34: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' output may be truncated copying 12 bytes from a string of length 99 [-Wstringop-truncation] BUILDSTDERR: 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In function 'char* strncpy(char*, const char*, size_t)', BUILDSTDERR: inlined from 'int Get_Battery_Info_from_Sys(int, Battery_Info*, int)' at battery.cpp:689:11: BUILDSTDERR: /usr/include/bits/string_fortified.h:106:34: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' output may be truncated copying 12 bytes from a string of length 99 [-Wstringop-truncation] BUILDSTDERR: 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In function 'char* strncpy(char*, const char*, size_t)', BUILDSTDERR: inlined from 'int Get_Battery_Info_from_Sys(int, Battery_Info*, int)' at battery.cpp:684:11: BUILDSTDERR: /usr/include/bits/string_fortified.h:106:34: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' output may be truncated copying 12 bytes from a string of length 99 [-Wstringop-truncation] BUILDSTDERR: 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In function 'char* strncpy(char*, const char*, size_t)', BUILDSTDERR: inlined from 'int Get_Battery_Info_from_Sys(int, Battery_Info*, int)' at battery.cpp:679:11: BUILDSTDERR: /usr/include/bits/string_fortified.h:106:34: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' output may be truncated copying 9 bytes from a string of length 99 [-Wstringop-truncation] BUILDSTDERR: 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In function 'char* strncpy(char*, const char*, size_t)', BUILDSTDERR: inlined from 'int Get_Battery_Info_from_Sys(int, Battery_Info*, int)' at battery.cpp:673:19: BUILDSTDERR: /usr/include/bits/string_fortified.h:106:34: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' output may be truncated copying 12 bytes from a string of length 99 [-Wstringop-truncation] BUILDSTDERR: 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In function 'char* strncpy(char*, const char*, size_t)', BUILDSTDERR: inlined from 'int Get_Battery_Info_from_Sys(int, Battery_Info*, int)' at battery.cpp:668:15: BUILDSTDERR: /usr/include/bits/string_fortified.h:106:34: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' output may be truncated copying 12 bytes from a string of length 99 [-Wstringop-truncation] BUILDSTDERR: 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In function 'char* strncpy(char*, const char*, size_t)', BUILDSTDERR: inlined from 'int Get_Battery_Info_from_Sys(int, Battery_Info*, int)' at battery.cpp:665:11: BUILDSTDERR: /usr/include/bits/string_fortified.h:106:34: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' output may be truncated copying 12 bytes from a string of length 99 [-Wstringop-truncation] BUILDSTDERR: 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In function 'char* strncpy(char*, const char*, size_t)', BUILDSTDERR: inlined from 'int Get_Battery_Info_from_Sys(int, Battery_Info*, int)' at battery.cpp:662:15: BUILDSTDERR: /usr/include/bits/string_fortified.h:106:34: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' output may be truncated copying 12 bytes from a string of length 99 [-Wstringop-truncation] BUILDSTDERR: 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In function 'char* strncpy(char*, const char*, size_t)', BUILDSTDERR: inlined from 'int Get_Battery_Info_from_Sys(int, Battery_Info*, int)' at battery.cpp:734:9: BUILDSTDERR: /usr/include/bits/string_fortified.h:106:34: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' output may be truncated copying 9 bytes from a string of length 99 [-Wstringop-truncation] BUILDSTDERR: 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In function 'char* strncpy(char*, const char*, size_t)', BUILDSTDERR: inlined from 'int Get_Battery_Info_from_Proc(int, Battery_Info*, int)' at battery.cpp:507:64: BUILDSTDERR: /usr/include/bits/string_fortified.h:106:34: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' output truncated before terminating nul copying 7 bytes from a string of the same length [-Wstringop-truncation] BUILDSTDERR: 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In function 'char* strncpy(char*, const char*, size_t)', BUILDSTDERR: inlined from 'int Get_Battery_Info_from_Proc(int, Battery_Info*, int)' at battery.cpp:516:67: BUILDSTDERR: /usr/include/bits/string_fortified.h:106:34: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' output truncated before terminating nul copying 7 bytes from a string of the same length [-Wstringop-truncation] BUILDSTDERR: 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In function 'char* strncpy(char*, const char*, size_t)', BUILDSTDERR: inlined from 'int Get_Battery_Info_from_Proc(int, Battery_Info*, int)' at battery.cpp:506:13: BUILDSTDERR: /usr/include/bits/string_fortified.h:106:34: warning: 'char* __builtin_strncpy(char*, const char*, long unsigned int)' specified bound 12 equals destination size [-Wstringop-truncation] BUILDSTDERR: 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o acpitool main.o acpitool.o ac_adapter.o toshiba.o asus.o thinkpad.o cpu.o battery.o freq.o make[2]: Leaving directory '/builddir/build/BUILD/acpitool-0.5.1/src' Making all in man make[2]: Entering directory '/builddir/build/BUILD/acpitool-0.5.1/man' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/builddir/build/BUILD/acpitool-0.5.1/man' make[2]: Entering directory '/builddir/build/BUILD/acpitool-0.5.1' make[2]: Nothing to be done for 'all-am'. make[2]: Leaving directory '/builddir/build/BUILD/acpitool-0.5.1' make[1]: Leaving directory '/builddir/build/BUILD/acpitool-0.5.1' + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.kcoM2Q + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/acpitool-0.5.1-21.fc31.ppc64le '!=' / ']' + rm -rf /builddir/build/BUILDROOT/acpitool-0.5.1-21.fc31.ppc64le BUILDSTDERR: ++ dirname /builddir/build/BUILDROOT/acpitool-0.5.1-21.fc31.ppc64le + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/acpitool-0.5.1-21.fc31.ppc64le + cd acpitool-0.5.1 + rm -fr /builddir/build/BUILDROOT/acpitool-0.5.1-21.fc31.ppc64le + make install DESTDIR=/builddir/build/BUILDROOT/acpitool-0.5.1-21.fc31.ppc64le Making install in src make[1]: Entering directory '/builddir/build/BUILD/acpitool-0.5.1/src' make[2]: Entering directory '/builddir/build/BUILD/acpitool-0.5.1/src' test -z "/usr/bin" || mkdir -p -- "/builddir/build/BUILDROOT/acpitool-0.5.1-21.fc31.ppc64le/usr/bin" /usr/bin/install -c 'acpitool' '/builddir/build/BUILDROOT/acpitool-0.5.1-21.fc31.ppc64le/usr/bin/acpitool' make[2]: Nothing to be done for 'install-data-am'. make[2]: Leaving directory '/builddir/build/BUILD/acpitool-0.5.1/src' make[1]: Leaving directory '/builddir/build/BUILD/acpitool-0.5.1/src' Making install in man make[1]: Entering directory '/builddir/build/BUILD/acpitool-0.5.1/man' make[2]: Entering directory '/builddir/build/BUILD/acpitool-0.5.1/man' make[2]: Nothing to be done for 'install-exec-am'. test -z "/usr/share/man/man1" || mkdir -p -- "/builddir/build/BUILDROOT/acpitool-0.5.1-21.fc31.ppc64le/usr/share/man/man1" /usr/bin/install -c -m 644 './acpitool.1' '/builddir/build/BUILDROOT/acpitool-0.5.1-21.fc31.ppc64le/usr/share/man/man1/acpitool.1' make[2]: Leaving directory '/builddir/build/BUILD/acpitool-0.5.1/man' make[1]: Leaving directory '/builddir/build/BUILD/acpitool-0.5.1/man' make[1]: Entering directory '/builddir/build/BUILD/acpitool-0.5.1' make[2]: Entering directory '/builddir/build/BUILD/acpitool-0.5.1' make[2]: Nothing to be done for 'install-exec-am'. make[2]: Nothing to be done for 'install-data-am'. make[2]: Leaving directory '/builddir/build/BUILD/acpitool-0.5.1' make[1]: Leaving directory '/builddir/build/BUILD/acpitool-0.5.1' + /usr/lib/rpm/find-debuginfo.sh -j4 --strict-build-id -m -i --build-id-seed 0.5.1-21.fc31 --unique-debug-suffix -0.5.1-21.fc31.ppc64le --unique-debug-src-base acpitool-0.5.1-21.fc31.ppc64le --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/acpitool-0.5.1 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/acpitool-0.5.1-21.fc31.ppc64le/usr/bin/acpitool extracting debug info from /builddir/build/BUILDROOT/acpitool-0.5.1-21.fc31.ppc64le/usr/bin/acpitool /usr/lib/rpm/sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match. BUILDSTDERR: 215 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 0 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs Processing files: acpitool-0.5.1-21.fc31.ppc64le Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.iuJUdS + umask 022 + cd /builddir/build/BUILD + cd acpitool-0.5.1 + DOCDIR=/builddir/build/BUILDROOT/acpitool-0.5.1-21.fc31.ppc64le/usr/share/doc/acpitool + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/acpitool-0.5.1-21.fc31.ppc64le/usr/share/doc/acpitool + cp -pr AUTHORS /builddir/build/BUILDROOT/acpitool-0.5.1-21.fc31.ppc64le/usr/share/doc/acpitool + cp -pr ChangeLog /builddir/build/BUILDROOT/acpitool-0.5.1-21.fc31.ppc64le/usr/share/doc/acpitool + cp -pr COPYING /builddir/build/BUILDROOT/acpitool-0.5.1-21.fc31.ppc64le/usr/share/doc/acpitool + cp -pr INSTALL /builddir/build/BUILDROOT/acpitool-0.5.1-21.fc31.ppc64le/usr/share/doc/acpitool + cp -pr README /builddir/build/BUILDROOT/acpitool-0.5.1-21.fc31.ppc64le/usr/share/doc/acpitool + cp -pr TODO /builddir/build/BUILDROOT/acpitool-0.5.1-21.fc31.ppc64le/usr/share/doc/acpitool + exit 0 Provides: acpitool = 0.5.1-21.fc31 acpitool(ppc-64) = 0.5.1-21.fc31 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: libc.so.6()(64bit) libc.so.6(GLIBC_2.17)(64bit) libgcc_s.so.1()(64bit) libgcc_s.so.1(GCC_3.0)(64bit) libstdc++.so.6()(64bit) libstdc++.so.6(CXXABI_1.3)(64bit) libstdc++.so.6(CXXABI_1.3.9)(64bit) libstdc++.so.6(GLIBCXX_3.4)(64bit) libstdc++.so.6(GLIBCXX_3.4.11)(64bit) libstdc++.so.6(GLIBCXX_3.4.21)(64bit) libstdc++.so.6(GLIBCXX_3.4.9)(64bit) rtld(GNU_HASH) Processing files: acpitool-debugsource-0.5.1-21.fc31.ppc64le Provides: acpitool-debugsource = 0.5.1-21.fc31 acpitool-debugsource(ppc-64) = 0.5.1-21.fc31 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: acpitool-debuginfo-0.5.1-21.fc31.ppc64le Provides: acpitool-debuginfo = 0.5.1-21.fc31 acpitool-debuginfo(ppc-64) = 0.5.1-21.fc31 debuginfo(build-id) = fdf7957ea9e885578e5e5a514310383d00b7e8ed Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: acpitool-debugsource(ppc-64) = 0.5.1-21.fc31 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/acpitool-0.5.1-21.fc31.ppc64le Wrote: /builddir/build/RPMS/acpitool-0.5.1-21.fc31.ppc64le.rpm Wrote: /builddir/build/RPMS/acpitool-debugsource-0.5.1-21.fc31.ppc64le.rpm Wrote: /builddir/build/RPMS/acpitool-debuginfo-0.5.1-21.fc31.ppc64le.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.sx5tlT + umask 022 + cd /builddir/build/BUILD + cd acpitool-0.5.1 + /usr/bin/rm -rf /builddir/build/BUILDROOT/acpitool-0.5.1-21.fc31.ppc64le + exit 0 Child return code was: 0