'_papi_hwi_unlock': ./threads.h:86:17: warning: implicit declaration of function '_papi_hwd_unlock'; did you mean '_papi_hwi_unlock'? [-Wimplicit-function-declaration] 86 | _papi_hwd_unlock( lck ); | ^~~~~~~~~~~~~~~~ | _papi_hwi_unlock In file included from ./papi_internal.h:119, from components/rapl/linux-rapl.c:28: ./linux-context.h:41:2: error: #error "OVERFLOW_ADDRESS() undefined!" 41 | #error "OVERFLOW_ADDRESS() undefined!" | ^~~~~ In file included from ./linux-lock.h:4, from ./papi_lock.h:20, from ./papi_internal.h:437: ./mb.h:64:2: error: #error Need to define rmb for this architecture! 64 | #error Need to define rmb for this architecture! | ^~~~~ ./mb.h:65:2: error: #error See the kernel source directory: tools/perf/perf.h file 65 | #error See the kernel source directory: tools/perf/perf.h file | ^~~~~ ./linux-lock.h:232:2: error: #error "_papi_hwd_lock/unlock undefined!" 232 | #error "_papi_hwd_lock/unlock undefined!" | ^~~~~ In file included from ./papi_internal.h:438: ./threads.h: In function '_papi_hwi_lock': ./threads.h:72:17: warning: implicit declaration of function '_papi_hwd_lock'; did you mean '_papi_hwi_lock'? [-Wimplicit-function-declaration] 72 | _papi_hwd_lock( lck ); | ^~~~~~~~~~~~~~ | _papi_hwi_lock ./threads.h: In function '_papi_hwi_unlock': ./threads.h:86:17: warning: implicit declaration of function '_papi_hwd_unlock'; did you mean '_papi_hwi_unlock'? [-Wimplicit-function-declaration] 86 | _papi_hwd_unlock( lck ); | ^~~~~~~~~~~~~~~~ | _papi_hwi_unlock In file included from ./papi_internal.h:119, from components/stealtime/linux-stealtime.c:17: ./linux-context.h:41:2: error: #error "OVERFLOW_ADDRESS() undefined!" 41 | #error "OVERFLOW_ADDRESS() undefined!" | ^~~~~ In file included from ./linux-lock.h:4, from ./papi_lock.h:20, from ./papi_internal.h:437: ./mb.h:64:2: error: #error Need to define rmb for this architecture! 64 | #error Need to define rmb for this architecture! | ^~~~~ ./mb.h:65:2: error: #error See the kernel source directory: tools/perf/perf.h file 65 | #error See the kernel source directory: tools/perf/perf.h file | ^~~~~ ./linux-lock.h:232:2: error: #error "_papi_hwd_lock/unlock undefined!" 232 | #error "_papi_hwd_lock/unlock undefined!" | ^~~~~ In file included from ./papi_internal.h:438: ./threads.h: In function '_papi_hwi_lock': ./threads.h:72:17: warning: implicit declaration of function '_papi_hwd_lock'; did you mean '_papi_hwi_lock'? [-Wimplicit-function-declaration] 72 | _papi_hwd_lock( lck ); | ^~~~~~~~~~~~~~ | _papi_hwi_lock ./threads.h: In function '_papi_hwi_unlock': ./threads.h:86:17: warning: implicit declaration of function '_papi_hwd_unlock'; did you mean '_papi_hwi_unlock'? [-Wimplicit-function-declaration] 86 | _papi_hwd_unlock( lck ); | ^~~~~~~~~~~~~~~~ | _papi_hwi_unlock make: *** [Makefile.inc:68: libpapi.so.6.0.0.0] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.7nJnb7 (%build) Bad exit status from /var/tmp/rpm-tmp.7nJnb7 (%build) RPM build errors: 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/papi.spec