-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -std=c++11 -Wall -Wextra -Wshadow -pedantic -pedantic-errors -fstrict-aliasing -Wno-deprecated-declarations -Wstrict-aliasing -DNDEBUG -Werror -Wno-deprecated -fPIC -MD -MT src/CMakeFiles/benchmark.dir/sysinfo.cc.o -MF src/CMakeFiles/benchmark.dir/sysinfo.cc.o.d -o src/CMakeFiles/benchmark.dir/sysinfo.cc.o -c ../src/sysinfo.cc In file included from ../src/sysinfo.cc:62: ../src/cycleclock.h:171:2: error: #error You need to define CycleTimer for your OS and CPU 171 | #error You need to define CycleTimer for your OS and CPU | ^~~~~ ../src/cycleclock.h: In function 'int64_t benchmark::cycleclock::Now()': ../src/cycleclock.h:173:1: error: no return statement in function returning non-void [-Werror=return-type] 173 | } | ^ cc1plus: all warnings being treated as errors [16/23] /usr/bin/c++ -DHAVE_POSIX_REGEX -DHAVE_STD_REGEX -DHAVE_STEADY_CLOCK -Dbenchmark_EXPORTS -I../include -I../src -I../src/../include -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 -std=c++11 -Wall -Wextra -Wshadow -pedantic -pedantic-errors -fstrict-aliasing -Wno-deprecated-declarations -Wstrict-aliasing -DNDEBUG -Werror -Wno-deprecated -fPIC -MD -MT src/CMakeFiles/benchmark.dir/string_util.cc.o -MF src/CMakeFiles/benchmark.dir/string_util.cc.o.d -o src/CMakeFiles/benchmark.dir/string_util.cc.o -c ../src/string_util.cc [17/23] /usr/bin/c++ -DHAVE_POSIX_REGEX -DHAVE_STD_REGEX -DHAVE_STEADY_CLOCK -Dbenchmark_EXPORTS -I../include -I../src -I../src/../include -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 -std=c++11 -Wall -Wextra -Wshadow -pedantic -pedantic-errors -fstrict-aliasing -Wno-deprecated-declarations -Wstrict-aliasing -DNDEBUG -Werror -Wno-deprecated -fPIC -MD -MT src/CMakeFiles/benchmark.dir/statistics.cc.o -MF src/CMakeFiles/benchmark.dir/statistics.cc.o.d -o src/CMakeFiles/benchmark.dir/statistics.cc.o -c ../src/statistics.cc [18/23] /usr/bin/c++ -DHAVE_POSIX_REGEX -DHAVE_STD_REGEX -DHAVE_STEADY_CLOCK -Dbenchmark_EXPORTS -I../include -I../src -I../src/../include -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 -std=c++11 -Wall -Wextra -Wshadow -pedantic -pedantic-errors -fstrict-aliasing -Wno-deprecated-declarations -Wstrict-aliasing -DNDEBUG -Werror -Wno-deprecated -fPIC -MD -MT src/CMakeFiles/benchmark.dir/benchmark_register.cc.o -MF src/CMakeFiles/benchmark.dir/benchmark_register.cc.o.d -o src/CMakeFiles/benchmark.dir/benchmark_register.cc.o -c ../src/benchmark_register.cc ninja: build stopped: subcommand failed. error: Bad exit status from /var/tmp/rpm-tmp.Eash1F (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.Eash1F (%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/google-benchmark.spec