Mock Version: 1.4.9 Mock Version: 1.4.9 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/xosview.spec'], chrootPath='/var/lib/mock/f29-build-14826-6850/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=345600uid=998gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=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 Wrote: /builddir/build/SRPMS/xosview-1.20-2.fc29.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/xosview.spec'], chrootPath='/var/lib/mock/f29-build-14826-6850/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=345600uid=998gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=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 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.RXFPhw + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf xosview-1.20 + /usr/bin/gzip -dc /builddir/build/SOURCES/xosview-1.20.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd xosview-1.20 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . Patch #0 (xosview-1.11-app-def.patch): + echo 'Patch #0 (xosview-1.11-app-def.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file Xrm.cc + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.EEkwy0 + umask 022 + cd /builddir/build/BUILD + cd xosview-1.20 + make -j4 'OPTFLAGS=-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 -fasynchronous-unwind-tables -fstack-clash-protection' 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 -fasynchronous-unwind-tables -fstack-clash-protection -I. -MMD -Ilinux/ -c -o Host.o Host.cc g++ -Wno-write-strings -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 -fasynchronous-unwind-tables -fstack-clash-protection -I. -MMD -Ilinux/ -c -o Xrm.o Xrm.cc 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 -fasynchronous-unwind-tables -fstack-clash-protection -I. -MMD -Ilinux/ -c -o bitfieldmeter.o bitfieldmeter.cc 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 -fasynchronous-unwind-tables -fstack-clash-protection -I. -MMD -Ilinux/ -c -o bitmeter.o bitmeter.cc BUILDSTDERR: Xrm.cc: In member function 'const char* Xrm::getResource(const char*) const': BUILDSTDERR: Xrm.cc:89:25: warning: '__builtin___snprintf_chk' output may be truncated before the last format character [-Wformat-truncation=] BUILDSTDERR: snprintf(fcn, 1024, "%s.%s", fcn_lower, rname); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: In file included from /usr/include/stdio.h:861, BUILDSTDERR: from /usr/include/c++/8/cstdio:42, BUILDSTDERR: from /usr/include/c++/8/ext/string_conversions.h:43, BUILDSTDERR: from /usr/include/c++/8/bits/basic_string.h:6361, BUILDSTDERR: from /usr/include/c++/8/string:52, BUILDSTDERR: from /usr/include/c++/8/bits/locale_classes.h:40, BUILDSTDERR: from /usr/include/c++/8/bits/ios_base.h:41, BUILDSTDERR: from /usr/include/c++/8/ios:42, BUILDSTDERR: from /usr/include/c++/8/ostream:38, BUILDSTDERR: from /usr/include/c++/8/iostream:39, BUILDSTDERR: from Xrm.h:12, BUILDSTDERR: from Xrm.cc:7: BUILDSTDERR: /usr/include/bits/stdio2.h:67:35: note: '__builtin___snprintf_chk' output 2 or more bytes (assuming 1025) into a destination of size 1024 BUILDSTDERR: return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ awk -f defresources.awk Xdefaults > defaultstring.cc 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 -fasynchronous-unwind-tables -fstack-clash-protection -I. -MMD -Ilinux/ -c -o fieldmeter.o fieldmeter.cc 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 -fasynchronous-unwind-tables -fstack-clash-protection -I. -MMD -Ilinux/ -c -o fieldmeterdecay.o fieldmeterdecay.cc 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 -fasynchronous-unwind-tables -fstack-clash-protection -I. -MMD -Ilinux/ -c -o fieldmetergraph.o fieldmetergraph.cc 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 -fasynchronous-unwind-tables -fstack-clash-protection -I. -MMD -Ilinux/ -c -o llist.o llist.cc BUILDSTDERR: llist.cc: In member function 'int LList::restore(int, FILE*)': BUILDSTDERR: 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] BUILDSTDERR: fread ( &i, sizeof ( int ), 1, fp ); 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 -fasynchronous-unwind-tables -fstack-clash-protection -I. -MMD -Ilinux/ -c -o main.o main.cc 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 -fasynchronous-unwind-tables -fstack-clash-protection -I. -MMD -Ilinux/ -c -o meter.o meter.cc 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 -fasynchronous-unwind-tables -fstack-clash-protection -I. -MMD -Ilinux/ -c -o xosview.o xosview.cc 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 -fasynchronous-unwind-tables -fstack-clash-protection -I. -MMD -Ilinux/ -c -o xwin.o xwin.cc 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 -fasynchronous-unwind-tables -fstack-clash-protection -I. -MMD -Ilinux/ -c -o sensorfieldmeter.o sensorfieldmeter.cc 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 -fasynchronous-unwind-tables -fstack-clash-protection -I. -MMD -Ilinux/ -c -o linux/MeterMaker.o linux/MeterMaker.cc BUILDSTDERR: xosview.cc: In member function 'const char* XOSView::winname()': BUILDSTDERR: xosview.cc:260:24: warning: '%s' directive output may be truncated writing up to 99 bytes into a region of size 92 [-Wformat-truncation=] BUILDSTDERR: snprintf( name, 100, "%s%s", NAME, host); BUILDSTDERR: ^~~~~~ ~~~~ BUILDSTDERR: In file included from /usr/include/stdio.h:861, BUILDSTDERR: from /usr/include/c++/8/cstdio:42, BUILDSTDERR: from /usr/include/c++/8/ext/string_conversions.h:43, BUILDSTDERR: from /usr/include/c++/8/bits/basic_string.h:6361, BUILDSTDERR: from /usr/include/c++/8/string:52, BUILDSTDERR: from /usr/include/c++/8/bits/locale_classes.h:40, BUILDSTDERR: from /usr/include/c++/8/bits/ios_base.h:41, BUILDSTDERR: from /usr/include/c++/8/ios:42, BUILDSTDERR: from /usr/include/c++/8/ostream:38, BUILDSTDERR: from /usr/include/c++/8/iostream:39, BUILDSTDERR: from Xrm.h:12, BUILDSTDERR: from xwin.h:4, BUILDSTDERR: from xosview.h:10, BUILDSTDERR: from xosview.cc:7: BUILDSTDERR: /usr/include/bits/stdio2.h:67:35: note: '__builtin___snprintf_chk' output between 9 and 108 bytes into a destination of size 100 BUILDSTDERR: return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: __bos (__s), __fmt, __va_arg_pack ()); 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 -fasynchronous-unwind-tables -fstack-clash-protection -I. -MMD -Ilinux/ -c -o linux/btrymeter.o linux/btrymeter.cc 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 -fasynchronous-unwind-tables -fstack-clash-protection -I. -MMD -Ilinux/ -c -o linux/cpumeter.o linux/cpumeter.cc 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 -fasynchronous-unwind-tables -fstack-clash-protection -I. -MMD -Ilinux/ -c -o linux/diskmeter.o linux/diskmeter.cc BUILDSTDERR: linux/MeterMaker.cc: In member function 'void MeterMaker::makeMeters()': BUILDSTDERR: linux/MeterMaker.cc:217:23: warning: '%d' directive output may be truncated writing between 1 and 10 bytes into a region of size 9 [-Wformat-truncation=] BUILDSTDERR: snprintf(s, 16, "lmstemp%d", i); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: linux/MeterMaker.cc:217:23: note: directive argument in the range [1, 2147483647] BUILDSTDERR: In file included from /usr/include/stdio.h:861, BUILDSTDERR: from ./llist.h:10, BUILDSTDERR: from ./pllist.h:10, BUILDSTDERR: from linux/MeterMaker.h:10, BUILDSTDERR: from linux/MeterMaker.cc:7: BUILDSTDERR: /usr/include/bits/stdio2.h:67:35: note: '__builtin___snprintf_chk' output between 9 and 18 bytes into a destination of size 16 BUILDSTDERR: return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: linux/MeterMaker.cc:221:23: warning: '%d' directive output may be truncated writing between 1 and 10 bytes into a region of size 9 [-Wformat-truncation=] BUILDSTDERR: snprintf(s, 16, "lmshigh%d", i); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: linux/MeterMaker.cc:221:23: note: directive argument in the range [1, 2147483647] BUILDSTDERR: In file included from /usr/include/stdio.h:861, BUILDSTDERR: from ./llist.h:10, BUILDSTDERR: from ./pllist.h:10, BUILDSTDERR: from linux/MeterMaker.h:10, BUILDSTDERR: from linux/MeterMaker.cc:7: BUILDSTDERR: /usr/include/bits/stdio2.h:67:35: note: '__builtin___snprintf_chk' output between 9 and 18 bytes into a destination of size 16 BUILDSTDERR: return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: linux/MeterMaker.cc:223:23: warning: '__builtin___snprintf_chk' output may be truncated before the last format character [-Wformat-truncation=] BUILDSTDERR: snprintf(s, 16, "lmslow%d", i); BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/stdio.h:861, BUILDSTDERR: from ./llist.h:10, BUILDSTDERR: from ./pllist.h:10, BUILDSTDERR: from linux/MeterMaker.h:10, BUILDSTDERR: from linux/MeterMaker.cc:7: BUILDSTDERR: /usr/include/bits/stdio2.h:67:35: note: '__builtin___snprintf_chk' output between 8 and 17 bytes into a destination of size 16 BUILDSTDERR: return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: linux/MeterMaker.cc:225:23: warning: '%d' directive output may be truncated writing between 1 and 10 bytes into a region of size 9 [-Wformat-truncation=] BUILDSTDERR: snprintf(s, 16, "lmsname%d", i); BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: linux/MeterMaker.cc:225:23: note: directive argument in the range [1, 2147483647] BUILDSTDERR: In file included from /usr/include/stdio.h:861, BUILDSTDERR: from ./llist.h:10, BUILDSTDERR: from ./pllist.h:10, BUILDSTDERR: from linux/MeterMaker.h:10, BUILDSTDERR: from linux/MeterMaker.cc:7: BUILDSTDERR: /usr/include/bits/stdio2.h:67:35: note: '__builtin___snprintf_chk' output between 9 and 18 bytes into a destination of size 16 BUILDSTDERR: return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: linux/MeterMaker.cc:227:23: warning: '%d' directive output may be truncated writing between 1 and 10 bytes into a region of size 4 [-Wformat-truncation=] BUILDSTDERR: snprintf(s, 16, "lmstempLabel%d", i); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: linux/MeterMaker.cc:227:23: note: directive argument in the range [1, 2147483647] BUILDSTDERR: In file included from /usr/include/stdio.h:861, BUILDSTDERR: from ./llist.h:10, BUILDSTDERR: from ./pllist.h:10, BUILDSTDERR: from linux/MeterMaker.h:10, BUILDSTDERR: from linux/MeterMaker.cc:7: BUILDSTDERR: /usr/include/bits/stdio2.h:67:35: note: '__builtin___snprintf_chk' output between 14 and 23 bytes into a destination of size 16 BUILDSTDERR: return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: linux/MeterMaker.cc:240:23: warning: '%d' directive output may be truncated writing between 1 and 10 bytes into a region of size 8 [-Wformat-truncation=] BUILDSTDERR: snprintf(s, 16, "acpitemp%d", i); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: linux/MeterMaker.cc:240:23: note: directive argument in the range [1, 2147483647] BUILDSTDERR: In file included from /usr/include/stdio.h:861, BUILDSTDERR: from ./llist.h:10, BUILDSTDERR: from ./pllist.h:10, BUILDSTDERR: from linux/MeterMaker.h:10, BUILDSTDERR: from linux/MeterMaker.cc:7: BUILDSTDERR: /usr/include/bits/stdio2.h:67:35: note: '__builtin___snprintf_chk' output between 10 and 19 bytes into a destination of size 16 BUILDSTDERR: return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: linux/MeterMaker.cc:244:23: warning: '%d' directive output may be truncated writing between 1 and 10 bytes into a region of size 8 [-Wformat-truncation=] BUILDSTDERR: snprintf(s, 16, "acpihigh%d", i); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: linux/MeterMaker.cc:244:23: note: directive argument in the range [1, 2147483647] BUILDSTDERR: In file included from /usr/include/stdio.h:861, BUILDSTDERR: from ./llist.h:10, BUILDSTDERR: from ./pllist.h:10, BUILDSTDERR: from linux/MeterMaker.h:10, BUILDSTDERR: from linux/MeterMaker.cc:7: BUILDSTDERR: /usr/include/bits/stdio2.h:67:35: note: '__builtin___snprintf_chk' output between 10 and 19 bytes into a destination of size 16 BUILDSTDERR: return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: linux/MeterMaker.cc:248:23: warning: '%d' directive output may be truncated writing between 1 and 10 bytes into a region of size 3 [-Wformat-truncation=] BUILDSTDERR: snprintf(s, 16, "acpitempLabel%d", i); BUILDSTDERR: ^~~~~~~~~~~~~~~~~ BUILDSTDERR: linux/MeterMaker.cc:248:23: note: directive argument in the range [1, 2147483647] BUILDSTDERR: In file included from /usr/include/stdio.h:861, BUILDSTDERR: from ./llist.h:10, BUILDSTDERR: from ./pllist.h:10, BUILDSTDERR: from linux/MeterMaker.h:10, BUILDSTDERR: from linux/MeterMaker.cc:7: BUILDSTDERR: /usr/include/bits/stdio2.h:67:35: note: '__builtin___snprintf_chk' output between 15 and 24 bytes into a destination of size 16 BUILDSTDERR: return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: linux/btrymeter.cc: In static member function 'static bool BtryMeter::has_syspower()': BUILDSTDERR: linux/btrymeter.cc:128:27: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 56 [-Wformat-truncation=] BUILDSTDERR: snprintf(dirname, 80, "%s/%s", SYSPOWERDIR, dp->d_name); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: In file included from /usr/include/stdio.h:861, BUILDSTDERR: from /usr/include/c++/8/cstdio:42, BUILDSTDERR: from /usr/include/c++/8/ext/string_conversions.h:43, BUILDSTDERR: from /usr/include/c++/8/bits/basic_string.h:6361, BUILDSTDERR: from /usr/include/c++/8/string:52, BUILDSTDERR: from /usr/include/c++/8/bits/locale_classes.h:40, BUILDSTDERR: from /usr/include/c++/8/bits/ios_base.h:41, BUILDSTDERR: from /usr/include/c++/8/ios:42, BUILDSTDERR: from /usr/include/c++/8/ostream:38, BUILDSTDERR: from /usr/include/c++/8/iostream:39, BUILDSTDERR: from ./Xrm.h:12, BUILDSTDERR: from ./xwin.h:4, BUILDSTDERR: from ./xosview.h:10, BUILDSTDERR: from ./meter.h:10, BUILDSTDERR: from ./fieldmeter.h:10, BUILDSTDERR: from linux/btrymeter.h:10, BUILDSTDERR: from linux/btrymeter.cc:7: BUILDSTDERR: /usr/include/bits/stdio2.h:67:35: note: '__builtin___snprintf_chk' output between 25 and 280 bytes into a destination of size 80 BUILDSTDERR: return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: linux/btrymeter.cc:130:23: warning: '%s' directive output may be truncated writing 5 bytes into a region of size between 0 and 79 [-Wformat-truncation=] BUILDSTDERR: snprintf(f, 80, "%s/%s", dirname, "/type"); BUILDSTDERR: ^~~~~~~ ~~~~~~~ BUILDSTDERR: In file included from /usr/include/stdio.h:861, BUILDSTDERR: from /usr/include/c++/8/cstdio:42, BUILDSTDERR: from /usr/include/c++/8/ext/string_conversions.h:43, BUILDSTDERR: from /usr/include/c++/8/bits/basic_string.h:6361, BUILDSTDERR: from /usr/include/c++/8/string:52, BUILDSTDERR: from /usr/include/c++/8/bits/locale_classes.h:40, BUILDSTDERR: from /usr/include/c++/8/bits/ios_base.h:41, BUILDSTDERR: from /usr/include/c++/8/ios:42, BUILDSTDERR: from /usr/include/c++/8/ostream:38, BUILDSTDERR: from /usr/include/c++/8/iostream:39, BUILDSTDERR: from ./Xrm.h:12, BUILDSTDERR: from ./xwin.h:4, BUILDSTDERR: from ./xosview.h:10, BUILDSTDERR: from ./meter.h:10, BUILDSTDERR: from ./fieldmeter.h:10, BUILDSTDERR: from linux/btrymeter.h:10, BUILDSTDERR: from linux/btrymeter.cc:7: BUILDSTDERR: /usr/include/bits/stdio2.h:67:35: note: '__builtin___snprintf_chk' output between 7 and 86 bytes into a destination of size 80 BUILDSTDERR: return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: __bos (__s), __fmt, __va_arg_pack ()); 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 -fasynchronous-unwind-tables -fstack-clash-protection -I. -MMD -Ilinux/ -c -o linux/intmeter.o linux/intmeter.cc 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 -fasynchronous-unwind-tables -fstack-clash-protection -I. -MMD -Ilinux/ -c -o linux/intratemeter.o linux/intratemeter.cc 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 -fasynchronous-unwind-tables -fstack-clash-protection -I. -MMD -Ilinux/ -c -o linux/lmstemp.o linux/lmstemp.cc 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 -fasynchronous-unwind-tables -fstack-clash-protection -I. -MMD -Ilinux/ -c -o linux/loadmeter.o linux/loadmeter.cc 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 -fasynchronous-unwind-tables -fstack-clash-protection -I. -MMD -Ilinux/ -c -o linux/memmeter.o linux/memmeter.cc 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 -fasynchronous-unwind-tables -fstack-clash-protection -I. -MMD -Ilinux/ -c -o linux/netmeter.o linux/netmeter.cc 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 -fasynchronous-unwind-tables -fstack-clash-protection -I. -MMD -Ilinux/ -c -o linux/nfsmeter.o linux/nfsmeter.cc 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 -fasynchronous-unwind-tables -fstack-clash-protection -I. -MMD -Ilinux/ -c -o linux/pagemeter.o linux/pagemeter.cc BUILDSTDERR: linux/netmeter.cc: In member function 'void NetMeter::getSysStats(long long unsigned int&, long long unsigned int&)': BUILDSTDERR: linux/netmeter.cc:140:29: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 113 [-Wformat-truncation=] BUILDSTDERR: snprintf(filename, 128, "%s/%s/statistics/rx_bytes", SYSCLASSNET, ent->d_name); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/stdio.h:861, BUILDSTDERR: from /usr/include/c++/8/cstdio:42, BUILDSTDERR: from /usr/include/c++/8/ext/string_conversions.h:43, BUILDSTDERR: from /usr/include/c++/8/bits/basic_string.h:6361, BUILDSTDERR: from /usr/include/c++/8/string:52, BUILDSTDERR: from /usr/include/c++/8/bits/locale_classes.h:40, BUILDSTDERR: from /usr/include/c++/8/bits/ios_base.h:41, BUILDSTDERR: from /usr/include/c++/8/ios:42, BUILDSTDERR: from /usr/include/c++/8/ostream:38, BUILDSTDERR: from /usr/include/c++/8/iostream:39, BUILDSTDERR: from ./Xrm.h:12, BUILDSTDERR: from ./xwin.h:4, BUILDSTDERR: from ./xosview.h:10, BUILDSTDERR: from ./meter.h:10, BUILDSTDERR: from ./fieldmeter.h:10, BUILDSTDERR: from ./fieldmeterdecay.h:19, BUILDSTDERR: from ./fieldmetergraph.h:15, BUILDSTDERR: from linux/netmeter.h:10, BUILDSTDERR: from linux/netmeter.cc:10: BUILDSTDERR: /usr/include/bits/stdio2.h:67:35: note: '__builtin___snprintf_chk' output between 36 and 291 bytes into a destination of size 128 BUILDSTDERR: return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: linux/netmeter.cc:143:29: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 113 [-Wformat-truncation=] BUILDSTDERR: snprintf(filename, 128, "%s/%s/statistics/tx_bytes", SYSCLASSNET, ent->d_name); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: In file included from /usr/include/stdio.h:861, BUILDSTDERR: from /usr/include/c++/8/cstdio:42, BUILDSTDERR: from /usr/include/c++/8/ext/string_conversions.h:43, BUILDSTDERR: from /usr/include/c++/8/bits/basic_string.h:6361, BUILDSTDERR: from /usr/include/c++/8/string:52, BUILDSTDERR: from /usr/include/c++/8/bits/locale_classes.h:40, BUILDSTDERR: from /usr/include/c++/8/bits/ios_base.h:41, BUILDSTDERR: from /usr/include/c++/8/ios:42, BUILDSTDERR: from /usr/include/c++/8/ostream:38, BUILDSTDERR: from /usr/include/c++/8/iostream:39, BUILDSTDERR: from ./Xrm.h:12, BUILDSTDERR: from ./xwin.h:4, BUILDSTDERR: from ./xosview.h:10, BUILDSTDERR: from ./meter.h:10, BUILDSTDERR: from ./fieldmeter.h:10, BUILDSTDERR: from ./fieldmeterdecay.h:19, BUILDSTDERR: from ./fieldmetergraph.h:15, BUILDSTDERR: from linux/netmeter.h:10, BUILDSTDERR: from linux/netmeter.cc:10: BUILDSTDERR: /usr/include/bits/stdio2.h:67:35: note: '__builtin___snprintf_chk' output between 36 and 291 bytes into a destination of size 128 BUILDSTDERR: return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: linux/nfsmeter.cc: In member function 'virtual void NFSDStats::checkevent()': BUILDSTDERR: linux/nfsmeter.cc:96:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] BUILDSTDERR: if (t < 0) BUILDSTDERR: ^~ BUILDSTDERR: linux/nfsmeter.cc:99:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' BUILDSTDERR: maxpackets_ = MAX(netcnt, calls) - _lastNetCnt; BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: linux/nfsmeter.cc: In member function 'virtual void NFSStats::checkevent()': BUILDSTDERR: linux/nfsmeter.cc:178:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] BUILDSTDERR: if (t < 0) BUILDSTDERR: ^~ BUILDSTDERR: linux/nfsmeter.cc:181:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' BUILDSTDERR: maxpackets_ = calls - _lastcalls; 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 -fasynchronous-unwind-tables -fstack-clash-protection -I. -MMD -Ilinux/ -c -o linux/raidmeter.o linux/raidmeter.cc 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 -fasynchronous-unwind-tables -fstack-clash-protection -I. -MMD -Ilinux/ -c -o linux/serialmeter.o linux/serialmeter.cc 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 -fasynchronous-unwind-tables -fstack-clash-protection -I. -MMD -Ilinux/ -c -o linux/swapmeter.o linux/swapmeter.cc BUILDSTDERR: linux/serialmeter.cc:34:10: fatal error: sys/io.h: No such file or directory BUILDSTDERR: #include BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: compilation terminated. BUILDSTDERR: make: *** [: linux/serialmeter.o] Error 1 BUILDSTDERR: make: *** Waiting for unfinished jobs.... BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.EEkwy0 (%build) BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.EEkwy0 (%build) RPM build errors: Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 96, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 626, in do 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