Mock Version: 1.4.21 Mock Version: 1.4.21 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/xosview.spec'], chrootPath='/var/lib/mock/f33-build-419420-62945/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': 'en_US.UTF-8'}shell=Falselogger=timeout=432000uid=987gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/xosview.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': 'en_US.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1595980800 Wrote: /builddir/build/SRPMS/xosview-1.22-2.fc33.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/xosview.spec'], chrootPath='/var/lib/mock/f33-build-419420-62945/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': 'en_US.UTF-8'}shell=Falselogger=timeout=432000uid=987gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/xosview.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': 'en_US.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1595980800 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.4eMofz + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf xosview-1.22 + /usr/bin/gzip -dc /builddir/build/SOURCES/xosview-1.22.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd xosview-1.22 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cat /builddir/build/SOURCES/xosview-1.11-app-def.patch + /usr/bin/patch -s --fuzz=0 --no-backup-if-mismatch + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.DGkEew + umask 022 + cd /builddir/build/BUILD + cd xosview-1.22 + make -j4 'OPTFLAGS=-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/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I. -MMD -Ilinux/ -c -o Host.o Host.cc g++ -Wno-write-strings -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/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I. -MMD -Ilinux/ -c -o Xrm.o Xrm.cc g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I. -MMD -Ilinux/ -c -o bitfieldmeter.o bitfieldmeter.cc g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I. -MMD -Ilinux/ -c -o bitmeter.o bitmeter.cc In file included from /usr/include/string.h:519, from Xrm.cc:9: In function 'strncpy', inlined from 'Xrm::getResource(char const*) const' at Xrm.cc:82:12: /usr/include/bits/string_fortified.h:91:34: warning: 'strncpy' specified bound 1024 equals destination size [-Wstringop-truncation] 91 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Xrm.cc: In member function 'Xrm::getResource(char const*) const': Xrm.cc:89:31: warning: '__snprintf_chk' output may be truncated before the last format character [-Wformat-truncation=] 89 | snprintf(fcn, 1024, "%s.%s", fcn_lower, rname); | ^ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from /usr/include/c++/10/ext/string_conversions.h:43, from /usr/include/c++/10/bits/basic_string.h:6545, from /usr/include/c++/10/string:55, from /usr/include/c++/10/bits/locale_classes.h:40, from /usr/include/c++/10/bits/ios_base.h:41, from /usr/include/c++/10/ios:42, from /usr/include/c++/10/ostream:38, from /usr/include/c++/10/iostream:39, from Xrm.h:12, from Xrm.cc:7: /usr/include/bits/stdio2.h:70:35: note: '__snprintf_chk' output 2 or more bytes (assuming 1025) into a destination of size 1024 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ awk -f defresources.awk Xdefaults > defaultstring.cc g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I. -MMD -Ilinux/ -c -o fieldmeter.o fieldmeter.cc g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I. -MMD -Ilinux/ -c -o fieldmeterdecay.o fieldmeterdecay.cc g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I. -MMD -Ilinux/ -c -o fieldmetergraph.o fieldmetergraph.cc In file included from /usr/include/string.h:519, from xwin.h:5, from xosview.h:10, from meter.h:10, from bitfieldmeter.h:11, from bitfieldmeter.cc:9: In function 'strncpy', inlined from 'BitFieldMeter::setfieldlegend(char const*)' at bitfieldmeter.cc:367:10: /usr/include/bits/string_fortified.h:91:34: warning: 'strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] 91 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ bitfieldmeter.cc: In member function 'BitFieldMeter::setfieldlegend(char const*)': bitfieldmeter.cc:365:19: note: length computed here 365 | int len = strlen(fieldlegend); | ~~~~~~^~~~~~~~~~~~~ g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I. -MMD -Ilinux/ -c -o llist.o llist.cc llist.cc: In member function 'int LList::restore(int, FILE*)': llist.cc:252:9: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result] 252 | fread ( &i, sizeof ( int ), 1, fp ); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I. -MMD -Ilinux/ -c -o main.o main.cc g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I. -MMD -Ilinux/ -c -o meter.o meter.cc g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I. -MMD -Ilinux/ -c -o xosview.o xosview.cc g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I. -MMD -Ilinux/ -c -o xwin.o xwin.cc g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I. -MMD -Ilinux/ -c -o sensorfieldmeter.o sensorfieldmeter.cc In file included from /usr/include/string.h:519, from xwin.h:5, from xosview.h:10, from meter.h:10, from meter.cc:7: In function 'strncpy', inlined from 'Meter::title(char const*)' at meter.cc:44:10: /usr/include/bits/string_fortified.h:91:34: warning: 'strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] 91 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ meter.cc: In member function 'Meter::title(char const*)': meter.cc:42:19: note: length computed here 42 | int len = strlen(title); | ~~~~~~^~~~~~~ In file included from /usr/include/string.h:519, from xwin.h:5, from xosview.h:10, from meter.h:10, from meter.cc:7: In function 'strncpy', inlined from 'Meter::legend(char const*)' at meter.cc:55:10: /usr/include/bits/string_fortified.h:91:34: warning: 'strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation] 91 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ meter.cc: In member function 'Meter::legend(char const*)': meter.cc:53:19: note: length computed here 53 | int len = strlen(legend); | ~~~~~~^~~~~~~~ g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I. -MMD -Ilinux/ -c -o linux/MeterMaker.o linux/MeterMaker.cc xosview.cc: In member function 'XOSView::winname()': xosview.cc:260:27: warning: '%s' directive output may be truncated writing up to 99 bytes into a region of size 92 [-Wformat-truncation=] 260 | snprintf( name, 100, "%s%s", NAME, host); | ^~ ~~~~ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from /usr/include/c++/10/ext/string_conversions.h:43, from /usr/include/c++/10/bits/basic_string.h:6545, from /usr/include/c++/10/string:55, from /usr/include/c++/10/bits/locale_classes.h:40, from /usr/include/c++/10/bits/ios_base.h:41, from /usr/include/c++/10/ios:42, from /usr/include/c++/10/ostream:38, from /usr/include/c++/10/iostream:39, from Xrm.h:12, from xwin.h:4, from xosview.h:10, from xosview.cc:7: /usr/include/bits/stdio2.h:70:35: note: '__snprintf_chk' output between 9 and 108 bytes into a destination of size 100 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/string.h:519, from xwin.h:5, from xosview.h:10, from xosview.cc:7: In function 'strncpy', inlined from 'XWin::setDisplayName(char const*)' at xwin.h:143:5, inlined from 'XOSView::XOSView(char const*, int, char**)' at xosview.cc:69:18: /usr/include/bits/string_fortified.h:91:34: warning: 'strncpy' specified bound 256 equals destination size [-Wstringop-truncation] 91 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xosview.cc: In member function 'XOSView::XOSView(char const*, int, char**)': xosview.cc:260:27: warning: '%s' directive output may be truncated writing up to 99 bytes into a region of size 92 [-Wformat-truncation=] 260 | snprintf( name, 100, "%s%s", NAME, host); | ^~ ~~~~ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from /usr/include/c++/10/ext/string_conversions.h:43, from /usr/include/c++/10/bits/basic_string.h:6545, from /usr/include/c++/10/string:55, from /usr/include/c++/10/bits/locale_classes.h:40, from /usr/include/c++/10/bits/ios_base.h:41, from /usr/include/c++/10/ios:42, from /usr/include/c++/10/ostream:38, from /usr/include/c++/10/iostream:39, from Xrm.h:12, from xwin.h:4, from xosview.h:10, from xosview.cc:7: /usr/include/bits/stdio2.h:70:35: note: '__snprintf_chk' output between 9 and 108 bytes into a destination of size 100 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xosview.cc:260:27: warning: '%s' directive output may be truncated writing up to 99 bytes into a region of size 92 [-Wformat-truncation=] 260 | snprintf( name, 100, "%s%s", NAME, host); | ^~ ~~~~ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from /usr/include/c++/10/ext/string_conversions.h:43, from /usr/include/c++/10/bits/basic_string.h:6545, from /usr/include/c++/10/string:55, from /usr/include/c++/10/bits/locale_classes.h:40, from /usr/include/c++/10/bits/ios_base.h:41, from /usr/include/c++/10/ios:42, from /usr/include/c++/10/ostream:38, from /usr/include/c++/10/iostream:39, from Xrm.h:12, from xwin.h:4, from xosview.h:10, from xosview.cc:7: /usr/include/bits/stdio2.h:70:35: note: '__snprintf_chk' output between 9 and 108 bytes into a destination of size 100 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I. -MMD -Ilinux/ -c -o linux/btrymeter.o linux/btrymeter.cc g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I. -MMD -Ilinux/ -c -o linux/cpumeter.o linux/cpumeter.cc g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I. -MMD -Ilinux/ -c -o linux/diskmeter.o linux/diskmeter.cc linux/MeterMaker.cc: In member function 'MeterMaker::makeMeters()': linux/MeterMaker.cc:217:31: warning: '%d' directive output may be truncated writing between 1 and 10 bytes into a region of size 9 [-Wformat-truncation=] 217 | snprintf(s, 16, "lmstemp%d", i); | ^~ linux/MeterMaker.cc:217:23: note: directive argument in the range [1, 2147483647] 217 | snprintf(s, 16, "lmstemp%d", i); | ^~~~~~~~~~~ In file included from /usr/include/stdio.h:866, from ./llist.h:10, from ./pllist.h:10, from linux/MeterMaker.h:10, from linux/MeterMaker.cc:7: /usr/include/bits/stdio2.h:70:35: note: '__snprintf_chk' output between 9 and 18 bytes into a destination of size 16 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ linux/MeterMaker.cc:221:31: warning: '%d' directive output may be truncated writing between 1 and 10 bytes into a region of size 9 [-Wformat-truncation=] 221 | snprintf(s, 16, "lmshigh%d", i); | ^~ linux/MeterMaker.cc:221:23: note: directive argument in the range [1, 2147483647] 221 | snprintf(s, 16, "lmshigh%d", i); | ^~~~~~~~~~~ In file included from /usr/include/stdio.h:866, from ./llist.h:10, from ./pllist.h:10, from linux/MeterMaker.h:10, from linux/MeterMaker.cc:7: /usr/include/bits/stdio2.h:70:35: note: '__snprintf_chk' output between 9 and 18 bytes into a destination of size 16 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ linux/MeterMaker.cc:223:32: warning: '__snprintf_chk' output may be truncated before the last format character [-Wformat-truncation=] 223 | snprintf(s, 16, "lmslow%d", i); | ^ In file included from /usr/include/stdio.h:866, from ./llist.h:10, from ./pllist.h:10, from linux/MeterMaker.h:10, from linux/MeterMaker.cc:7: /usr/include/bits/stdio2.h:70:35: note: '__snprintf_chk' output between 8 and 17 bytes into a destination of size 16 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ linux/MeterMaker.cc:225:31: warning: '%d' directive output may be truncated writing between 1 and 10 bytes into a region of size 9 [-Wformat-truncation=] 225 | snprintf(s, 16, "lmsname%d", i); | ^~ linux/MeterMaker.cc:225:23: note: directive argument in the range [1, 2147483647] 225 | snprintf(s, 16, "lmsname%d", i); | ^~~~~~~~~~~ In file included from /usr/include/stdio.h:866, from ./llist.h:10, from ./pllist.h:10, from linux/MeterMaker.h:10, from linux/MeterMaker.cc:7: /usr/include/bits/stdio2.h:70:35: note: '__snprintf_chk' output between 9 and 18 bytes into a destination of size 16 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ linux/MeterMaker.cc:227:36: warning: '%d' directive output may be truncated writing between 1 and 10 bytes into a region of size 4 [-Wformat-truncation=] 227 | snprintf(s, 16, "lmstempLabel%d", i); | ^~ linux/MeterMaker.cc:227:23: note: directive argument in the range [1, 2147483647] 227 | snprintf(s, 16, "lmstempLabel%d", i); | ^~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:866, from ./llist.h:10, from ./pllist.h:10, from linux/MeterMaker.h:10, from linux/MeterMaker.cc:7: /usr/include/bits/stdio2.h:70:35: note: '__snprintf_chk' output between 14 and 23 bytes into a destination of size 16 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ linux/MeterMaker.cc:240:32: warning: '%d' directive output may be truncated writing between 1 and 10 bytes into a region of size 8 [-Wformat-truncation=] 240 | snprintf(s, 16, "acpitemp%d", i); | ^~ linux/MeterMaker.cc:240:23: note: directive argument in the range [1, 2147483647] 240 | snprintf(s, 16, "acpitemp%d", i); | ^~~~~~~~~~~~ In file included from /usr/include/stdio.h:866, from ./llist.h:10, from ./pllist.h:10, from linux/MeterMaker.h:10, from linux/MeterMaker.cc:7: /usr/include/bits/stdio2.h:70:35: note: '__snprintf_chk' output between 10 and 19 bytes into a destination of size 16 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ linux/MeterMaker.cc:244:32: warning: '%d' directive output may be truncated writing between 1 and 10 bytes into a region of size 8 [-Wformat-truncation=] 244 | snprintf(s, 16, "acpihigh%d", i); | ^~ linux/MeterMaker.cc:244:23: note: directive argument in the range [1, 2147483647] 244 | snprintf(s, 16, "acpihigh%d", i); | ^~~~~~~~~~~~ In file included from /usr/include/stdio.h:866, from ./llist.h:10, from ./pllist.h:10, from linux/MeterMaker.h:10, from linux/MeterMaker.cc:7: /usr/include/bits/stdio2.h:70:35: note: '__snprintf_chk' output between 10 and 19 bytes into a destination of size 16 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ linux/MeterMaker.cc:248:37: warning: '%d' directive output may be truncated writing between 1 and 10 bytes into a region of size 3 [-Wformat-truncation=] 248 | snprintf(s, 16, "acpitempLabel%d", i); | ^~ linux/MeterMaker.cc:248:23: note: directive argument in the range [1, 2147483647] 248 | snprintf(s, 16, "acpitempLabel%d", i); | ^~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:866, from ./llist.h:10, from ./pllist.h:10, from linux/MeterMaker.h:10, from linux/MeterMaker.cc:7: /usr/include/bits/stdio2.h:70:35: note: '__snprintf_chk' output between 15 and 24 bytes into a destination of size 16 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I. -MMD -Ilinux/ -c -o linux/intmeter.o linux/intmeter.cc In file included from /usr/include/string.h:519, from ./xwin.h:5, from ./xosview.h:10, from ./meter.h:10, from ./fieldmeter.h:10, from ./fieldmeterdecay.h:19, from ./fieldmetergraph.h:15, from linux/cpumeter.h:10, from linux/cpumeter.cc:7: In function 'strncpy', inlined from 'CPUMeter::toUpper(char const*)' at linux/cpumeter.cc:330:10: /usr/include/bits/string_fortified.h:91:34: warning: 'strncpy' specified bound 4096 equals destination size [-Wstringop-truncation] 91 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ linux/btrymeter.cc: In function 'BtryMeter::has_syspower()': linux/btrymeter.cc:128:31: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 56 [-Wformat-truncation=] 128 | snprintf(dirname, 80, "%s/%s", SYSPOWERDIR, dp->d_name); | ^~ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from /usr/include/c++/10/ext/string_conversions.h:43, from /usr/include/c++/10/bits/basic_string.h:6545, from /usr/include/c++/10/string:55, from /usr/include/c++/10/bits/locale_classes.h:40, from /usr/include/c++/10/bits/ios_base.h:41, from /usr/include/c++/10/ios:42, from /usr/include/c++/10/ostream:38, from /usr/include/c++/10/iostream:39, from ./Xrm.h:12, from ./xwin.h:4, from ./xosview.h:10, from ./meter.h:10, from ./fieldmeter.h:10, from linux/btrymeter.h:10, from linux/btrymeter.cc:7: /usr/include/bits/stdio2.h:70:35: note: '__snprintf_chk' output between 25 and 280 bytes into a destination of size 80 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ linux/btrymeter.cc:130:27: warning: '%s' directive output may be truncated writing 5 bytes into a region of size between 0 and 79 [-Wformat-truncation=] 130 | snprintf(f, 80, "%s/%s", dirname, "/type"); | ^~ ~~~~~~~ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from /usr/include/c++/10/ext/string_conversions.h:43, from /usr/include/c++/10/bits/basic_string.h:6545, from /usr/include/c++/10/string:55, from /usr/include/c++/10/bits/locale_classes.h:40, from /usr/include/c++/10/bits/ios_base.h:41, from /usr/include/c++/10/ios:42, from /usr/include/c++/10/ostream:38, from /usr/include/c++/10/iostream:39, from ./Xrm.h:12, from ./xwin.h:4, from ./xosview.h:10, from ./meter.h:10, from ./fieldmeter.h:10, from linux/btrymeter.h:10, from linux/btrymeter.cc:7: /usr/include/bits/stdio2.h:70:35: note: '__snprintf_chk' output between 7 and 86 bytes into a destination of size 80 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In function 'strncpy', inlined from 'CPUMeter::toUpper(char const*)' at linux/cpumeter.cc:330:10, inlined from 'CPUMeter::CPUMeter(XOSView*, char const*)' at linux/cpumeter.cc:23:89: /usr/include/bits/string_fortified.h:91:34: warning: 'strncpy' specified bound 4096 equals destination size [-Wstringop-truncation] 91 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I. -MMD -Ilinux/ -c -o linux/intratemeter.o linux/intratemeter.cc g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I. -MMD -Ilinux/ -c -o linux/lmstemp.o linux/lmstemp.cc g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I. -MMD -Ilinux/ -c -o linux/loadmeter.o linux/loadmeter.cc g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I. -MMD -Ilinux/ -c -o linux/memmeter.o linux/memmeter.cc g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I. -MMD -Ilinux/ -c -o linux/netmeter.o linux/netmeter.cc g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I. -MMD -Ilinux/ -c -o linux/nfsmeter.o linux/nfsmeter.cc g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I. -MMD -Ilinux/ -c -o linux/pagemeter.o linux/pagemeter.cc linux/netmeter.cc: In member function 'NetMeter::getSysStats(unsigned long long&, unsigned long long&)': linux/netmeter.cc:140:33: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 113 [-Wformat-truncation=] 140 | snprintf(filename, 128, "%s/%s/statistics/rx_bytes", SYSCLASSNET, ent->d_name); | ^~ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from /usr/include/c++/10/ext/string_conversions.h:43, from /usr/include/c++/10/bits/basic_string.h:6545, from /usr/include/c++/10/string:55, from /usr/include/c++/10/bits/locale_classes.h:40, from /usr/include/c++/10/bits/ios_base.h:41, from /usr/include/c++/10/ios:42, from /usr/include/c++/10/ostream:38, from /usr/include/c++/10/iostream:39, from ./Xrm.h:12, from ./xwin.h:4, from ./xosview.h:10, from ./meter.h:10, from ./fieldmeter.h:10, from ./fieldmeterdecay.h:19, from ./fieldmetergraph.h:15, from linux/netmeter.h:10, from linux/netmeter.cc:10: /usr/include/bits/stdio2.h:70:35: note: '__snprintf_chk' output between 36 and 291 bytes into a destination of size 128 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ linux/netmeter.cc:143:33: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 113 [-Wformat-truncation=] 143 | snprintf(filename, 128, "%s/%s/statistics/tx_bytes", SYSCLASSNET, ent->d_name); | ^~ In file included from /usr/include/stdio.h:866, from /usr/include/c++/10/cstdio:42, from /usr/include/c++/10/ext/string_conversions.h:43, from /usr/include/c++/10/bits/basic_string.h:6545, from /usr/include/c++/10/string:55, from /usr/include/c++/10/bits/locale_classes.h:40, from /usr/include/c++/10/bits/ios_base.h:41, from /usr/include/c++/10/ios:42, from /usr/include/c++/10/ostream:38, from /usr/include/c++/10/iostream:39, from ./Xrm.h:12, from ./xwin.h:4, from ./xosview.h:10, from ./meter.h:10, from ./fieldmeter.h:10, from ./fieldmeterdecay.h:19, from ./fieldmetergraph.h:15, from linux/netmeter.h:10, from linux/netmeter.cc:10: /usr/include/bits/stdio2.h:70:35: note: '__snprintf_chk' output between 36 and 291 bytes into a destination of size 128 70 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 71 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I. -MMD -Ilinux/ -c -o linux/raidmeter.o linux/raidmeter.cc linux/nfsmeter.cc: In member function 'virtual void NFSDStats::checkevent()': linux/nfsmeter.cc:96:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 96 | if (t < 0) | ^~ linux/nfsmeter.cc:99:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 99 | maxpackets_ = MAX(netcnt, calls) - _lastNetCnt; | ^~~~~~~~~~~ linux/nfsmeter.cc: In member function 'virtual void NFSStats::checkevent()': linux/nfsmeter.cc:178:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 178 | if (t < 0) | ^~ linux/nfsmeter.cc:181:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 181 | maxpackets_ = calls - _lastcalls; | ^~~~~~~~~~~ g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I. -MMD -Ilinux/ -c -o linux/serialmeter.o linux/serialmeter.cc linux/serialmeter.cc:34:10: fatal error: sys/io.h: No such file or directory 34 | #include | ^~~~~~~~~~ compilation terminated. make: *** [: linux/serialmeter.o] Error 1 make: *** Waiting for unfinished jobs.... error: Bad exit status from /var/tmp/rpm-tmp.DGkEew (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.DGkEew (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/mockbuild/trace_decorator.py", line 95, in trace result = func(*args, **kw) File "/usr/lib/python3.8/site-packages/mockbuild/util.py", line 746, 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 --target riscv64 --nodeps /builddir/build/SPECS/xosview.spec