-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c -o RKDevice.o RKDevice.cpp make[1]: Leaving directory '/builddir/build/BUILD/rkdeveloptool-1.3' make[1]: Entering directory '/builddir/build/BUILD/rkdeveloptool-1.3' g++ -DHAVE_CONFIG_H -I. -I./cfg -Wall -Werror -Wextra -Wreturn-type -fno-strict-aliasing -D_FILE_OFFSET_BITS=64 -D_LARGE_FILE -I/usr/include/libusb-1.0 -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 -c -o RKLog.o RKLog.cpp make[1]: Leaving directory '/builddir/build/BUILD/rkdeveloptool-1.3' make[1]: Entering directory '/builddir/build/BUILD/rkdeveloptool-1.3' g++ -DHAVE_CONFIG_H -I. -I./cfg -Wall -Werror -Wextra -Wreturn-type -fno-strict-aliasing -D_FILE_OFFSET_BITS=64 -D_LARGE_FILE -I/usr/include/libusb-1.0 -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 -c -o RKScan.o RKScan.cpp make[1]: Leaving directory '/builddir/build/BUILD/rkdeveloptool-1.3' make[1]: Entering directory '/builddir/build/BUILD/rkdeveloptool-1.3' g++ -DHAVE_CONFIG_H -I. -I./cfg -Wall -Werror -Wextra -Wreturn-type -fno-strict-aliasing -D_FILE_OFFSET_BITS=64 -D_LARGE_FILE -I/usr/include/libusb-1.0 -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 -c -o main.o main.cpp make[1]: Leaving directory '/builddir/build/BUILD/rkdeveloptool-1.3' main.cpp: In function 'bool _Z9mergeBootv.part.0()': main.cpp:1542:36: error: '%s' directive output may be truncated writing up to 557 bytes into a region of size 5 [-Werror=format-truncation=] 1542 | snprintf(buffer, sizeof(buffer), "%s", chip); | ^~ ...... 1583 | chipType = convertChipType(chip + 2); | ~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:871, from DefineHeader.h:3, from main.cpp:11: /usr/include/bits/stdio2.h:67:35: note: '__builtin_snprintf' output between 1 and 558 bytes into a destination of size 5 67 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1plus: all warnings being treated as errors make[1]: *** [Makefile:475: main.o] Error 1 make: *** [Makefile:491: all-recursive] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.0kbz30 (%build) RPM build errors: Macro expanded in comment on line 9: %{name}-%{version}/ 081d237ad5bf | xz > ~/%{name}-%{version}.tar.xz Macro expanded in comment on line 11: %{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz Bad exit status from /var/tmp/rpm-tmp.0kbz30 (%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/rkdeveloptool.spec