:3: warning: implicit declaration of function '_papi_hwd_lock'; did you mean '_papi_hwi_lock'? [-Wimplicit-function-declaration] BUILDSTDERR: _papi_hwd_lock( lck ); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: _papi_hwi_lock BUILDSTDERR: ./threads.h: In function '_papi_hwi_unlock': BUILDSTDERR: ./threads.h:81:3: warning: implicit declaration of function '_papi_hwd_unlock'; did you mean '_papi_hwi_unlock'? [-Wimplicit-function-declaration] BUILDSTDERR: _papi_hwd_unlock( lck ); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: _papi_hwi_unlock BUILDSTDERR: In file included from ./papi_internal.h:439, BUILDSTDERR: from components/perf_event_uncore/perf_event_uncore.c:29: BUILDSTDERR: ./threads.h: In function '_papi_hwi_lock': BUILDSTDERR: ./threads.h:67:3: warning: implicit declaration of function '_papi_hwd_lock'; did you mean '_papi_hwi_lock'? [-Wimplicit-function-declaration] BUILDSTDERR: _papi_hwd_lock( lck ); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: _papi_hwi_lock BUILDSTDERR: ./threads.h: In function '_papi_hwi_unlock': BUILDSTDERR: ./threads.h:81:3: warning: implicit declaration of function '_papi_hwd_unlock'; did you mean '_papi_hwi_unlock'? [-Wimplicit-function-declaration] BUILDSTDERR: _papi_hwd_unlock( lck ); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: _papi_hwi_unlock BUILDSTDERR: In file included from components/perf_event/perf_event.c:56: BUILDSTDERR: components/perf_event/perf_helpers.h: In function 'mmap_read_head': BUILDSTDERR: components/perf_event/perf_helpers.h:186:2: warning: implicit declaration of function 'rmb' [-Wimplicit-function-declaration] BUILDSTDERR: rmb(); BUILDSTDERR: ^~~ BUILDSTDERR: make: *** [components/appio/Rules.appio:8: appio.o] Error 1 BUILDSTDERR: make: *** Waiting for unfinished jobs.... BUILDSTDERR: make: *** [components/perf_event/Rules.perf_event:9: pe_libpfm4_events.o] Error 1 BUILDSTDERR: In file included from ./papi_internal.h:120, BUILDSTDERR: from components/perf_event/perf_event.c:38: BUILDSTDERR: components/perf_event/perf_event.c: In function '_pe_dispatch_timer': BUILDSTDERR: ./linux-context.h:42:45: warning: implicit declaration of function 'OVERFLOW_ADDRESS'; did you mean 'GET_OVERFLOW_ADDRESS'? [-Wimplicit-function-declaration] BUILDSTDERR: #define GET_OVERFLOW_ADDRESS(ctx) (caddr_t)(OVERFLOW_ADDRESS(ctx)) BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: components/perf_event/perf_event.c:1929:13: note: in expansion of macro 'GET_OVERFLOW_ADDRESS' BUILDSTDERR: address = GET_OVERFLOW_ADDRESS( hw_context ); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: ./linux-context.h:42:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] BUILDSTDERR: #define GET_OVERFLOW_ADDRESS(ctx) (caddr_t)(OVERFLOW_ADDRESS(ctx)) BUILDSTDERR: ^ BUILDSTDERR: components/perf_event/perf_event.c:1929:13: note: in expansion of macro 'GET_OVERFLOW_ADDRESS' BUILDSTDERR: address = GET_OVERFLOW_ADDRESS( hw_context ); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: make: *** [components/perf_event_uncore/Rules.perf_event_uncore:8: perf_event_uncore.o] Error 1 BUILDSTDERR: make: *** [components/perf_event/Rules.perf_event:6: perf_event.o] Error 1 BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.8Tqaq3 (%build) RPM build errors: BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.8Tqaq3 (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 96, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 626, in do 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