5 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:872, 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:6535, 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: '__builtin___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 -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 g++ -O2 -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/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; | ^~~~~~~~~~~ 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.H1CXfD (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.H1CXfD (%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