has type 'time_t' {aka 'long int'} [-Werror=format=] 312 | printw("%ds",ic->getIdleSeconds()); | ~^ ~~~~~~~~~~~~~~~~~~~~ | | | | int time_t {aka long int} | %ld TextUI.cc:314:34: error: format '%d' expects argument of type 'int', but argument 2 has type 'time_t' {aka 'long int'} [-Werror=format=] 314 | printw("%dm",ic->getIdleSeconds()/60); | ~^ ~~~~~~~~~~~~~~~~~~~~~~~ | | | | int time_t {aka long int} | %ld TextUI.cc:316:34: error: format '%d' expects argument of type 'int', but argument 2 has type 'time_t' {aka 'long int'} [-Werror=format=] 316 | printw("%dh",ic->getIdleSeconds()/3600); | ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~ | | | | int time_t {aka long int} | %ld cc1plus: all warnings being treated as errors make[2]: *** [Makefile:323: TextUI.o] Error 1 make[2]: Leaving directory '/builddir/build/BUILD/tcptrack-1.4.3/src' make[2]: *** Waiting for unfinished jobs.... make[2]: Entering directory '/builddir/build/BUILD/tcptrack-1.4.3/src' g++ -DHAVE_CONFIG_H -I. -I.. -Werror -Wno-deprecated -Wall -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 -c -o TCContainer.o TCContainer.cc make[2]: Leaving directory '/builddir/build/BUILD/tcptrack-1.4.3/src' make[2]: Entering directory '/builddir/build/BUILD/tcptrack-1.4.3/src' g++ -DHAVE_CONFIG_H -I. -I.. -Werror -Wno-deprecated -Wall -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 -c -o PacketBuffer.o PacketBuffer.cc make[2]: Leaving directory '/builddir/build/BUILD/tcptrack-1.4.3/src' make[2]: Entering directory '/builddir/build/BUILD/tcptrack-1.4.3/src' g++ -DHAVE_CONFIG_H -I. -I.. -Werror -Wno-deprecated -Wall -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 -c -o Sniffer.o Sniffer.cc make[2]: Leaving directory '/builddir/build/BUILD/tcptrack-1.4.3/src' make[1]: *** [Makefile:258: all-recursive] Error 1 make: *** [Makefile:196: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.9THIjv (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.9THIjv (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.9/site-packages/mockbuild/util.py", line 600, 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/tcptrack.spec