Mock Version: 3.5 Mock Version: 3.5 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target loongarch64 --nodeps /builddir/build/SPECS/papi.spec'], chrootPath='/var/lib/mock/dist-an8.9-build-392327-72076/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=976gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target loongarch64 --nodeps /builddir/build/SPECS/papi.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: loongarch64 Building for target loongarch64 Wrote: /builddir/build/SRPMS/papi-6.0.0-16.an8.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/papi.spec'], chrootPath='/var/lib/mock/dist-an8.9-build-392327-72076/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=976gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/papi.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: loongarch64 Building for target loongarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.HaHsKr + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf papi-6.0.0 + /usr/bin/gzip -dc /builddir/build/SOURCES/papi-6.0.0-noiozone.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd papi-6.0.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #1 (papi-python3.patch):' Patch #1 (papi-python3.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .python3 --fuzz=0 patching file src/high-level/scripts/papi_hl_output_writer.py Patch #4 (papi-config.patch): + echo 'Patch #4 (papi-config.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file src/configure.in patching file src/configure.in patching file src/configure.in Hunk #2 succeeded at 1767 (offset -2 lines). Hunk #3 succeeded at 1862 (offset -2 lines). patching file src/ctests/Makefile.recipies patching file src/ctests/Makefile.target.in patching file src/utils/Makefile patching file src/utils/Makefile.target.in patching file src/utils/papi_native_avail.c patching file src/configure.in Hunk #1 succeeded at 1765 (offset -2 lines). patching file src/utils/papi_native_avail.c Patch #5 (papi-nostatic.patch): + echo 'Patch #5 (papi-nostatic.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file src/Rules.pfm4_pe Patch #6 (papi-lto.patch): + echo 'Patch #6 (papi-lto.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file src/validation_tests/instructions_testcode.c Patch #7 (papi-rhbz1923967.patch): + echo 'Patch #7 (papi-rhbz1923967.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file src/papi_events.csv Patch #21 (papi-arm64fastread.patch): + echo 'Patch #21 (papi-arm64fastread.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file src/components/perf_event/perf_event.c Hunk #1 succeeded at 676 (offset -6 lines). Hunk #2 succeeded at 735 (offset -6 lines). Hunk #3 succeeded at 748 (offset -6 lines). Hunk #4 succeeded at 1057 (offset -6 lines). Hunk #5 succeeded at 1137 (offset -6 lines). Hunk #6 succeeded at 1458 (offset -6 lines). Hunk #7 succeeded at 2321 (offset -6 lines). Hunk #8 succeeded at 2352 (offset -6 lines). Hunk #9 succeeded at 2368 (offset -6 lines). patching file src/components/perf_event/perf_event_lib.h patching file src/components/perf_event/perf_helpers.h patching file src/components/perf_event/perf_helpers.h patching file src/components/perf_event/perf_helpers.h patching file src/components/perf_event/perf_helpers.h Patch #31 (papi-701eventupdate.patch): + echo 'Patch #31 (papi-701eventupdate.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file src/papi_events.csv patching file src/papi_events.csv patching file src/papi_events.csv patching file src/papi_events.csv patching file src/papi_events.csv patching file src/papi_events.csv patching file src/papi_events.csv patching file src/papi_events.csv patching file src/papi_events.csv patching file src/papi_events.csv patching file src/papi_events.csv patching file src/papi_events.csv patching file src/papi_events.csv Hunk #1 succeeded at 1961 (offset 27 lines). patching file src/papi_events.csv Hunk #1 succeeded at 1962 (offset 27 lines). patching file src/papi_events.csv patching file src/papi_events.csv patching file src/papi_events.csv patching file src/papi_events.csv patching file src/papi_events.csv Patch #40 (papi-thread_init.patch): + echo 'Patch #40 (papi-thread_init.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file src/papi.c patching file src/papi_internal.c patching file src/papi_internal.h Patch #41 (papi-71eventupdate.patch): + echo 'Patch #41 (papi-71eventupdate.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file src/papi_events.csv patching file src/papi_events.csv patching file src/papi_events.csv patching file src/papi_events.csv patching file src/papi_events.csv patching file src/papi_events.csv + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.4rjQP5 + umask 022 + cd /builddir/build/BUILD + cd papi-6.0.0 + export PAPI_INFINIBAND_UMAD_ROOT=/usr + PAPI_INFINIBAND_UMAD_ROOT=/usr + export PAPI_LMSENSORS_ROOT=/usr + PAPI_LMSENSORS_ROOT=/usr + export PAPI_PCP_ROOT=/usr + PAPI_PCP_ROOT=/usr + cd src + autoconf + CFLAGS='-O2 -g' + export CFLAGS + CXXFLAGS='-O2 -g' + export CXXFLAGS + FFLAGS='-O2 -g -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + '[' 1 = 1 ']' +++ dirname ./configure ++ find . -name config.guess -o -name config.sub + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' ']' ++ find . -name ltmain.sh + ./configure --build=loongarch64-Anolis-linux --host=loongarch64-Anolis-linux --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-perf-events --with-pfm-incdir=/usr/include --with-pfm-libdir=/usr/lib64 --with-static-lib=no --with-shared-lib=yes --with-shlib --with-shlib-tools '--with-components=appio coretemp example infiniband lmsensors lustre micpower mx net pcp rapl stealtime' configure: WARNING: unrecognized options: --disable-dependency-tracking, --with-shlib checking for architecture... loongarch64 checking for OS... linux checking for OS version... 4.19.190-6.5.an8.loongarch64 checking for perf_event workaround level... autodetect checking for if MIC should be used... no checking for loongarch64-Anolis-linux-xlc... no checking for loongarch64-Anolis-linux-icc... no checking for loongarch64-Anolis-linux-gcc... no checking for loongarch64-Anolis-linux-cc... no checking for xlc... no checking for icc... no checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for loongarch64-Anolis-linux-xlf... no checking for loongarch64-Anolis-linux-ifort... no checking for loongarch64-Anolis-linux-gfortran... no checking for loongarch64-Anolis-linux-f95... no checking for loongarch64-Anolis-linux-f90... no checking for loongarch64-Anolis-linux-f77... no checking for xlf... no checking for ifort... no checking for gfortran... gfortran checking whether we are using the GNU Fortran 77 compiler... yes checking whether gfortran accepts -g... yes checking for mpicc... no checking for gawk... gawk checking how to run the C preprocessor... gcc -E checking whether ln -s works... yes checking whether make sets $(MAKE)... yes checking for loongarch64-Anolis-linux-ranlib... no checking for ranlib... ranlib checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking whether it is safe to define __EXTENSIONS__... yes checking for ANSI C header files... (cached) yes checking for inline... inline checking whether time.h and sys/time.h may both be included... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking c_asm.h usability... no checking c_asm.h presence... no checking for c_asm.h... no checking intrinsics.h usability... no checking intrinsics.h presence... no checking for intrinsics.h... no checking mach/mach_time.h usability... no checking mach/mach_time.h presence... no checking for mach/mach_time.h... no checking sched.h usability... yes checking sched.h presence... yes checking for sched.h... yes checking for gethrtime... no checking for read_real_time... no checking for time_base_to_time... no checking for clock_gettime... yes checking for mach_absolute_time... no checking for sched_getcpu... yes checking for timer_create and timer_*ettime symbols in base system... not found checking for timer_create and timer_*ettime symbols in -lrt... found checking for dlopen and dlerror symbols in base system... not found checking for dlopen and dlerror symbols in -ldl... found checking for debug build... checking for -Wno-override-init... 1 checking for CPU type... checking for ffsll... yes checking for working gettid... no checking for working syscall(SYS_gettid)... yes checking for working MMTIMER... no checking for working CLOCK_REALTIME_HR POSIX 1b timer... no checking for working CLOCK_REALTIME POSIX 1b timer... yes checking for which real time clock to use... clock_realtime checking for working __thread... yes checking for high performance thread local storage... __thread checking for working CLOCK_THREAD_CPUTIME_ID POSIX 1b timer... yes checking for which virtual timer to use... clock_thread_cputime_id checking for static user preset events... no checking for static PAPI preset events... yes checking for whether to build static library... no checking for whether to build shared library... yes checking for static compile of tests and utilities... no checking for linking with papi shared library of tests and utilities... yes checking for /sys/class/perfctr... no checking for /dev/perfctr... no checking for /sys/kernel/perfmon/version... no checking for /proc/perfmon... no checking for /proc/sys/kernel/perf_event_paranoid... yes checking for /usr/include/perfmon/perf_event.h... yes checking for pfm_initialize in -lpfm... yes checking perfmon/pfmlib.h usability... yes checking perfmon/pfmlib.h presence... yes checking for perfmon/pfmlib.h... yes checking for pfm_get_event_description... no checking for pfmlib_reg_t.reg_evt_idx... no checking for pfmlib_output_param_t.pfp_pmd_count... no checking for pfm_msg_t.type... no checking platform... linux-pe checking for components to build... perf_event perf_event_uncore appio coretemp example infiniband lmsensors lustre micpower mx net pcp rapl stealtime checking for PAPI event CSV filename to use... papi_events.csv configure: Compiling genpapifdef with gcc configure: Generating fpapi.h configure: Generating f77papi.h configure: Generating f90papi.h configure: Rules.pfm4_pe will be included in the generated Makefile configure: creating ./config.status config.status: creating Makefile config.status: creating papi.pc config.status: creating components/Makefile_comp_tests.target config.status: creating testlib/Makefile.target config.status: creating utils/Makefile.target config.status: creating ctests/Makefile.target config.status: creating ftests/Makefile.target config.status: creating validation_tests/Makefile.target config.status: creating config.h configure: WARNING: unrecognized options: --disable-dependency-tracking, --with-shlib + DBG= + make -j16 sh papi_events_table.sh papi_events.csv > papi_events_table.h Host architecture : Linux with perf_event kernel support and libpfm4 Host CPU component : perf_event make -C testlib Installation DESTDIR: Installation PREFIX : /usr make[1]: Entering directory '/builddir/build/BUILD/papi-6.0.0/src/testlib' gcc -I. -I.. -O2 -g -g -Wextra -Wall -O1 -c test_utils.c gfortran -I. -I.. -O2 -g -g -Wextra -Wall -O2 -g -I/usr/lib64/gfortran/modules -Dlinux -ffixed-line-length-132 -c ftests_util.F gcc -I. -I.. -O2 -g -g -Wextra -Wall -O1 -O0 -c do_loops.c Installation EPREFIX: /usr gcc -I. -I.. -O2 -g -g -Wextra -Wall -O1 -c clockcore.c gcc -E -I/usr/include -DFORTRANUNDERSCORE papi_fwrappers.c > papi_fwrappers_.c Installation INCDIR : /usr/include gcc -E -I/usr/include -DFORTRANDOUBLEUNDERSCORE papi_fwrappers.c > papi_fwrappers__.c gcc -E -I/usr/include -DFORTRANCAPS papi_fwrappers.c > upper_PAPI_FWRAPPERS.c Installation LIBDIR : /usr/lib64 Installation BINDIR : /usr/bin Installation MANDIR : /usr/share/man Installation DOCDIR : /usr/share/doc/papi Installation DATADIR: /usr/share/papi rm -f libpapi.so.6.0.0.0 libpapi.so libpapi.so.6.0 gcc -fPIC -DPIC -shared -Wl,-soname -Wl,libpapi.so.6.0 -Xlinker "-rpath" -Xlinker "/usr/lib64" -DPAPI_NO_MEMORY_MANAGEMENT -DSTATIC_PAPI_EVENTS_TABLE -DUSE_PERFEVENT_RDPMC=1 -DPEINCLUDE=\"/usr/include/perfmon/perf_event.h\" -D_REENTRANT -D_GNU_SOURCE -DUSE_COMPILER_TLS -fvisibility=hidden -I. -O2 -g -g -Wextra -Wall -I/usr/include -I/usr/include/sensors -g -DPAPI_LMSENSORS_MAIN=\"\" -I/usr/include -I/usr/include/pcp -g -DPAPI_PCP_MAIN=\"\" -DOSLOCK=\"linux-lock.h\" -DOSCONTEXT=\"linux-context.h\" -O2 papi_libpfm4_events.c papi.c papi_internal.c high-level/papi_hl.c extras.c sw_multiplex.c papi_fwrappers.c papi_fwrappers_.c papi_fwrappers__.c upper_PAPI_FWRAPPERS.c threads.c cpus.c linux-memory.c linux-timer.c linux-common.c papi_preset.c papi_vector.c papi_memory.c components/perf_event/perf_event.c components/perf_event/pe_libpfm4_events.c components/perf_event_uncore/perf_event_uncore.c components/appio/appio.c components/coretemp/linux-coretemp.c components/example/example.c components/infiniband/linux-infiniband.c components/lmsensors/linux-lmsensors.c components/lustre/linux-lustre.c components/micpower/linux-micpower.c components/mx/linux-mx.c components/net/linux-net.c components/pcp/linux-pcp.c components/rapl/linux-rapl.c components/stealtime/linux-stealtime.c -o libpapi.so.6.0.0.0 -Bdynamic -L/usr/lib64 -lpfm -ldl -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-rpath-link,/builddir/build/BUILD/papi-6.0.0/src/libpfm4/lib -ldl -g -ldl -g In file included from papi_internal.h:119, from papi_libpfm4_events.c:10: linux-context.h:41:2: error: #error "OVERFLOW_ADDRESS() undefined!" #error "OVERFLOW_ADDRESS() undefined!" ^~~~~ In file included from linux-lock.h:4, from papi_lock.h:20, from papi_internal.h:437, from papi_libpfm4_events.c:10: mb.h:64:2: error: #error Need to define rmb for this architecture! #error Need to define rmb for this architecture! ^~~~~ mb.h:65:2: error: #error See the kernel source directory: tools/perf/perf.h file #error See the kernel source directory: tools/perf/perf.h file ^~~~~ In file included from papi_lock.h:20, from papi_internal.h:437, from papi_libpfm4_events.c:10: linux-lock.h:232:2: error: #error "_papi_hwd_lock/unlock undefined!" #error "_papi_hwd_lock/unlock undefined!" ^~~~~ In file included from papi_internal.h:438, from papi_libpfm4_events.c:10: threads.h: In function '_papi_hwi_lock': threads.h:72:3: warning: implicit declaration of function '_papi_hwd_lock'; did you mean '_papi_hwi_lock'? [-Wimplicit-function-declaration] _papi_hwd_lock( lck ); ^~~~~~~~~~~~~~ _papi_hwi_lock threads.h: In function '_papi_hwi_unlock': threads.h:86:3: warning: implicit declaration of function '_papi_hwd_unlock'; did you mean '_papi_hwi_unlock'? [-Wimplicit-function-declaration] _papi_hwd_unlock( lck ); ^~~~~~~~~~~~~~~~ _papi_hwi_unlock In file included from papi_internal.h:119, from papi.c:34: linux-context.h:41:2: error: #error "OVERFLOW_ADDRESS() undefined!" #error "OVERFLOW_ADDRESS() undefined!" ^~~~~ In file included from linux-lock.h:4, from papi_lock.h:20, from papi_internal.h:437, from papi.c:34: mb.h:64:2: error: #error Need to define rmb for this architecture! #error Need to define rmb for this architecture! ^~~~~ mb.h:65:2: error: #error See the kernel source directory: tools/perf/perf.h file #error See the kernel source directory: tools/perf/perf.h file ^~~~~ In file included from papi_lock.h:20, from papi_internal.h:437, from papi.c:34: linux-lock.h:232:2: error: #error "_papi_hwd_lock/unlock undefined!" #error "_papi_hwd_lock/unlock undefined!" ^~~~~ In file included from papi_internal.h:438, from papi.c:34: threads.h: In function '_papi_hwi_lock': threads.h:72:3: warning: implicit declaration of function '_papi_hwd_lock'; did you mean '_papi_hwi_lock'? [-Wimplicit-function-declaration] _papi_hwd_lock( lck ); ^~~~~~~~~~~~~~ _papi_hwi_lock threads.h: In function '_papi_hwi_unlock': threads.h:86:3: warning: implicit declaration of function '_papi_hwd_unlock'; did you mean '_papi_hwi_unlock'? [-Wimplicit-function-declaration] _papi_hwd_unlock( lck ); ^~~~~~~~~~~~~~~~ _papi_hwi_unlock In file included from papi_internal.h:119, from papi_internal.c:38: linux-context.h:41:2: error: #error "OVERFLOW_ADDRESS() undefined!" #error "OVERFLOW_ADDRESS() undefined!" ^~~~~ In file included from linux-lock.h:4, from papi_lock.h:20, from papi_internal.h:437, from papi_internal.c:38: mb.h:64:2: error: #error Need to define rmb for this architecture! #error Need to define rmb for this architecture! ^~~~~ mb.h:65:2: error: #error See the kernel source directory: tools/perf/perf.h file #error See the kernel source directory: tools/perf/perf.h file ^~~~~ In file included from papi_lock.h:20, from papi_internal.h:437, from papi_internal.c:38: linux-lock.h:232:2: error: #error "_papi_hwd_lock/unlock undefined!" #error "_papi_hwd_lock/unlock undefined!" ^~~~~ In file included from papi_internal.h:438, from papi_internal.c:38: threads.h: In function '_papi_hwi_lock': threads.h:72:3: warning: implicit declaration of function '_papi_hwd_lock'; did you mean '_papi_hwi_lock'? [-Wimplicit-function-declaration] _papi_hwd_lock( lck ); ^~~~~~~~~~~~~~ _papi_hwi_lock threads.h: In function '_papi_hwi_unlock': threads.h:86:3: warning: implicit declaration of function '_papi_hwd_unlock'; did you mean '_papi_hwi_unlock'? [-Wimplicit-function-declaration] _papi_hwd_unlock( lck ); ^~~~~~~~~~~~~~~~ _papi_hwi_unlock ar rv libtestlib.a test_utils.o ftests_util.o ar: creating libtestlib.a a - test_utils.o a - ftests_util.o make[1]: Leaving directory '/builddir/build/BUILD/papi-6.0.0/src/testlib' In file included from ./papi_internal.h:119, from high-level/papi_hl.c:27: ./linux-context.h:41:2: error: #error "OVERFLOW_ADDRESS() undefined!" #error "OVERFLOW_ADDRESS() undefined!" ^~~~~ In file included from ./linux-lock.h:4, from ./papi_lock.h:20, from ./papi_internal.h:437, from high-level/papi_hl.c:27: ./mb.h:64:2: error: #error Need to define rmb for this architecture! #error Need to define rmb for this architecture! ^~~~~ ./mb.h:65:2: error: #error See the kernel source directory: tools/perf/perf.h file #error See the kernel source directory: tools/perf/perf.h file ^~~~~ In file included from ./papi_lock.h:20, from ./papi_internal.h:437, from high-level/papi_hl.c:27: ./linux-lock.h:232:2: error: #error "_papi_hwd_lock/unlock undefined!" #error "_papi_hwd_lock/unlock undefined!" ^~~~~ In file included from ./papi_internal.h:438, from high-level/papi_hl.c:27: ./threads.h: In function '_papi_hwi_lock': ./threads.h:72:3: warning: implicit declaration of function '_papi_hwd_lock'; did you mean '_papi_hwi_lock'? [-Wimplicit-function-declaration] _papi_hwd_lock( lck ); ^~~~~~~~~~~~~~ _papi_hwi_lock ./threads.h: In function '_papi_hwi_unlock': ./threads.h:86:3: warning: implicit declaration of function '_papi_hwd_unlock'; did you mean '_papi_hwi_unlock'? [-Wimplicit-function-declaration] _papi_hwd_unlock( lck ); ^~~~~~~~~~~~~~~~ _papi_hwi_unlock In file included from papi_internal.h:119, from extras.c:23: linux-context.h:41:2: error: #error "OVERFLOW_ADDRESS() undefined!" #error "OVERFLOW_ADDRESS() undefined!" ^~~~~ In file included from linux-lock.h:4, from papi_lock.h:20, from papi_internal.h:437, from extras.c:23: mb.h:64:2: error: #error Need to define rmb for this architecture! #error Need to define rmb for this architecture! ^~~~~ mb.h:65:2: error: #error See the kernel source directory: tools/perf/perf.h file #error See the kernel source directory: tools/perf/perf.h file ^~~~~ In file included from papi_lock.h:20, from papi_internal.h:437, from extras.c:23: linux-lock.h:232:2: error: #error "_papi_hwd_lock/unlock undefined!" #error "_papi_hwd_lock/unlock undefined!" ^~~~~ In file included from papi_internal.h:438, from extras.c:23: threads.h: In function '_papi_hwi_lock': threads.h:72:3: warning: implicit declaration of function '_papi_hwd_lock'; did you mean '_papi_hwi_lock'? [-Wimplicit-function-declaration] _papi_hwd_lock( lck ); ^~~~~~~~~~~~~~ _papi_hwi_lock threads.h: In function '_papi_hwi_unlock': threads.h:86:3: warning: implicit declaration of function '_papi_hwd_unlock'; did you mean '_papi_hwi_unlock'? [-Wimplicit-function-declaration] _papi_hwd_unlock( lck ); ^~~~~~~~~~~~~~~~ _papi_hwi_unlock In file included from papi_internal.h:119, from sw_multiplex.c:130: linux-context.h:41:2: error: #error "OVERFLOW_ADDRESS() undefined!" #error "OVERFLOW_ADDRESS() undefined!" ^~~~~ In file included from linux-lock.h:4, from papi_lock.h:20, from papi_internal.h:437, from sw_multiplex.c:130: mb.h:64:2: error: #error Need to define rmb for this architecture! #error Need to define rmb for this architecture! ^~~~~ mb.h:65:2: error: #error See the kernel source directory: tools/perf/perf.h file #error See the kernel source directory: tools/perf/perf.h file ^~~~~ In file included from papi_lock.h:20, from papi_internal.h:437, from sw_multiplex.c:130: linux-lock.h:232:2: error: #error "_papi_hwd_lock/unlock undefined!" #error "_papi_hwd_lock/unlock undefined!" ^~~~~ In file included from papi_internal.h:438, from sw_multiplex.c:130: threads.h: In function '_papi_hwi_lock': threads.h:72:3: warning: implicit declaration of function '_papi_hwd_lock'; did you mean '_papi_hwi_lock'? [-Wimplicit-function-declaration] _papi_hwd_lock( lck ); ^~~~~~~~~~~~~~ _papi_hwi_lock threads.h: In function '_papi_hwi_unlock': threads.h:86:3: warning: implicit declaration of function '_papi_hwd_unlock'; did you mean '_papi_hwi_unlock'? [-Wimplicit-function-declaration] _papi_hwd_unlock( lck ); ^~~~~~~~~~~~~~~~ _papi_hwi_unlock In file included from papi_internal.h:119, from threads.c:16: linux-context.h:41:2: error: #error "OVERFLOW_ADDRESS() undefined!" #error "OVERFLOW_ADDRESS() undefined!" ^~~~~ In file included from linux-lock.h:4, from papi_lock.h:20, from papi_internal.h:437, from threads.c:16: mb.h:64:2: error: #error Need to define rmb for this architecture! #error Need to define rmb for this architecture! ^~~~~ mb.h:65:2: error: #error See the kernel source directory: tools/perf/perf.h file #error See the kernel source directory: tools/perf/perf.h file ^~~~~ In file included from papi_lock.h:20, from papi_internal.h:437, from threads.c:16: linux-lock.h:232:2: error: #error "_papi_hwd_lock/unlock undefined!" #error "_papi_hwd_lock/unlock undefined!" ^~~~~ In file included from papi_internal.h:438, from threads.c:16: threads.h: In function '_papi_hwi_lock': threads.h:72:3: warning: implicit declaration of function '_papi_hwd_lock'; did you mean '_papi_hwi_lock'? [-Wimplicit-function-declaration] _papi_hwd_lock( lck ); ^~~~~~~~~~~~~~ _papi_hwi_lock threads.h: In function '_papi_hwi_unlock': threads.h:86:3: warning: implicit declaration of function '_papi_hwd_unlock'; did you mean '_papi_hwi_unlock'? [-Wimplicit-function-declaration] _papi_hwd_unlock( lck ); ^~~~~~~~~~~~~~~~ _papi_hwi_unlock In file included from papi_internal.h:119, from cpus.c:15: linux-context.h:41:2: error: #error "OVERFLOW_ADDRESS() undefined!" #error "OVERFLOW_ADDRESS() undefined!" ^~~~~ In file included from linux-lock.h:4, from papi_lock.h:20, from papi_internal.h:437, from cpus.c:15: mb.h:64:2: error: #error Need to define rmb for this architecture! #error Need to define rmb for this architecture! ^~~~~ mb.h:65:2: error: #error See the kernel source directory: tools/perf/perf.h file #error See the kernel source directory: tools/perf/perf.h file ^~~~~ In file included from papi_lock.h:20, from papi_internal.h:437, from cpus.c:15: linux-lock.h:232:2: error: #error "_papi_hwd_lock/unlock undefined!" #error "_papi_hwd_lock/unlock undefined!" ^~~~~ In file included from papi_internal.h:438, from cpus.c:15: threads.h: In function '_papi_hwi_lock': threads.h:72:3: warning: implicit declaration of function '_papi_hwd_lock'; did you mean '_papi_hwi_lock'? [-Wimplicit-function-declaration] _papi_hwd_lock( lck ); ^~~~~~~~~~~~~~ _papi_hwi_lock threads.h: In function '_papi_hwi_unlock': threads.h:86:3: warning: implicit declaration of function '_papi_hwd_unlock'; did you mean '_papi_hwi_unlock'? [-Wimplicit-function-declaration] _papi_hwd_unlock( lck ); ^~~~~~~~~~~~~~~~ _papi_hwi_unlock In file included from papi_internal.h:119, from linux-memory.c:26: linux-context.h:41:2: error: #error "OVERFLOW_ADDRESS() undefined!" #error "OVERFLOW_ADDRESS() undefined!" ^~~~~ In file included from linux-lock.h:4, from papi_lock.h:20, from papi_internal.h:437, from linux-memory.c:26: mb.h:64:2: error: #error Need to define rmb for this architecture! #error Need to define rmb for this architecture! ^~~~~ mb.h:65:2: error: #error See the kernel source directory: tools/perf/perf.h file #error See the kernel source directory: tools/perf/perf.h file ^~~~~ In file included from papi_lock.h:20, from papi_internal.h:437, from linux-memory.c:26: linux-lock.h:232:2: error: #error "_papi_hwd_lock/unlock undefined!" #error "_papi_hwd_lock/unlock undefined!" ^~~~~ In file included from papi_internal.h:438, from linux-memory.c:26: threads.h: In function '_papi_hwi_lock': threads.h:72:3: warning: implicit declaration of function '_papi_hwd_lock'; did you mean '_papi_hwi_lock'? [-Wimplicit-function-declaration] _papi_hwd_lock( lck ); ^~~~~~~~~~~~~~ _papi_hwi_lock threads.h: In function '_papi_hwi_unlock': threads.h:86:3: warning: implicit declaration of function '_papi_hwd_unlock'; did you mean '_papi_hwi_unlock'? [-Wimplicit-function-declaration] _papi_hwd_unlock( lck ); ^~~~~~~~~~~~~~~~ _papi_hwi_unlock In file included from papi_internal.h:119, from linux-timer.c:14: linux-context.h:41:2: error: #error "OVERFLOW_ADDRESS() undefined!" #error "OVERFLOW_ADDRESS() undefined!" ^~~~~ In file included from linux-lock.h:4, from papi_lock.h:20, from papi_internal.h:437, from linux-timer.c:14: mb.h:64:2: error: #error Need to define rmb for this architecture! #error Need to define rmb for this architecture! ^~~~~ mb.h:65:2: error: #error See the kernel source directory: tools/perf/perf.h file #error See the kernel source directory: tools/perf/perf.h file ^~~~~ In file included from papi_lock.h:20, from papi_internal.h:437, from linux-timer.c:14: linux-lock.h:232:2: error: #error "_papi_hwd_lock/unlock undefined!" #error "_papi_hwd_lock/unlock undefined!" ^~~~~ In file included from papi_internal.h:438, from linux-timer.c:14: threads.h: In function '_papi_hwi_lock': threads.h:72:3: warning: implicit declaration of function '_papi_hwd_lock'; did you mean '_papi_hwi_lock'? [-Wimplicit-function-declaration] _papi_hwd_lock( lck ); ^~~~~~~~~~~~~~ _papi_hwi_lock threads.h: In function '_papi_hwi_unlock': threads.h:86:3: warning: implicit declaration of function '_papi_hwd_unlock'; did you mean '_papi_hwi_unlock'? [-Wimplicit-function-declaration] _papi_hwd_unlock( lck ); ^~~~~~~~~~~~~~~~ _papi_hwi_unlock linux-timer.c: In function '_linux_get_real_cycles': linux-timer.c:312:11: warning: implicit declaration of function 'get_cycles' [-Wimplicit-function-declaration] retval = get_cycles( ); ^~~~~~~~~~ In file included from papi_internal.h:119, from linux-common.c:18: linux-context.h:41:2: error: #error "OVERFLOW_ADDRESS() undefined!" #error "OVERFLOW_ADDRESS() undefined!" ^~~~~ In file included from linux-lock.h:4, from papi_lock.h:20, from papi_internal.h:437, from linux-common.c:18: mb.h:64:2: error: #error Need to define rmb for this architecture! #error Need to define rmb for this architecture! ^~~~~ mb.h:65:2: error: #error See the kernel source directory: tools/perf/perf.h file #error See the kernel source directory: tools/perf/perf.h file ^~~~~ In file included from papi_lock.h:20, from papi_internal.h:437, from linux-common.c:18: linux-lock.h:232:2: error: #error "_papi_hwd_lock/unlock undefined!" #error "_papi_hwd_lock/unlock undefined!" ^~~~~ In file included from papi_internal.h:438, from linux-common.c:18: threads.h: In function '_papi_hwi_lock': threads.h:72:3: warning: implicit declaration of function '_papi_hwd_lock'; did you mean '_papi_hwi_lock'? [-Wimplicit-function-declaration] _papi_hwd_lock( lck ); ^~~~~~~~~~~~~~ _papi_hwi_lock threads.h: In function '_papi_hwi_unlock': threads.h:86:3: warning: implicit declaration of function '_papi_hwd_unlock'; did you mean '_papi_hwi_unlock'? [-Wimplicit-function-declaration] _papi_hwd_unlock( lck ); ^~~~~~~~~~~~~~~~ _papi_hwi_unlock In file included from papi_internal.h:119, from papi_preset.c:18: linux-context.h:41:2: error: #error "OVERFLOW_ADDRESS() undefined!" #error "OVERFLOW_ADDRESS() undefined!" ^~~~~ In file included from linux-lock.h:4, from papi_lock.h:20, from papi_internal.h:437, from papi_preset.c:18: mb.h:64:2: error: #error Need to define rmb for this architecture! #error Need to define rmb for this architecture! ^~~~~ mb.h:65:2: error: #error See the kernel source directory: tools/perf/perf.h file #error See the kernel source directory: tools/perf/perf.h file ^~~~~ In file included from papi_lock.h:20, from papi_internal.h:437, from papi_preset.c:18: linux-lock.h:232:2: error: #error "_papi_hwd_lock/unlock undefined!" #error "_papi_hwd_lock/unlock undefined!" ^~~~~ In file included from papi_internal.h:438, from papi_preset.c:18: threads.h: In function '_papi_hwi_lock': threads.h:72:3: warning: implicit declaration of function '_papi_hwd_lock'; did you mean '_papi_hwi_lock'? [-Wimplicit-function-declaration] _papi_hwd_lock( lck ); ^~~~~~~~~~~~~~ _papi_hwi_lock threads.h: In function '_papi_hwi_unlock': threads.h:86:3: warning: implicit declaration of function '_papi_hwd_unlock'; did you mean '_papi_hwi_unlock'? [-Wimplicit-function-declaration] _papi_hwd_unlock( lck ); ^~~~~~~~~~~~~~~~ _papi_hwi_unlock In file included from papi_internal.h:119, from papi_vector.c:12: linux-context.h:41:2: error: #error "OVERFLOW_ADDRESS() undefined!" #error "OVERFLOW_ADDRESS() undefined!" ^~~~~ In file included from linux-lock.h:4, from papi_lock.h:20, from papi_internal.h:437, from papi_vector.c:12: mb.h:64:2: error: #error Need to define rmb for this architecture! #error Need to define rmb for this architecture! ^~~~~ mb.h:65:2: error: #error See the kernel source directory: tools/perf/perf.h file #error See the kernel source directory: tools/perf/perf.h file ^~~~~ In file included from papi_lock.h:20, from papi_internal.h:437, from papi_vector.c:12: linux-lock.h:232:2: error: #error "_papi_hwd_lock/unlock undefined!" #error "_papi_hwd_lock/unlock undefined!" ^~~~~ In file included from papi_internal.h:438, from papi_vector.c:12: threads.h: In function '_papi_hwi_lock': threads.h:72:3: warning: implicit declaration of function '_papi_hwd_lock'; did you mean '_papi_hwi_lock'? [-Wimplicit-function-declaration] _papi_hwd_lock( lck ); ^~~~~~~~~~~~~~ _papi_hwi_lock threads.h: In function '_papi_hwi_unlock': threads.h:86:3: warning: implicit declaration of function '_papi_hwd_unlock'; did you mean '_papi_hwi_unlock'? [-Wimplicit-function-declaration] _papi_hwd_unlock( lck ); ^~~~~~~~~~~~~~~~ _papi_hwi_unlock In file included from linux-lock.h:4, from papi_lock.h:20, from papi_memory.c:22: mb.h:64:2: error: #error Need to define rmb for this architecture! #error Need to define rmb for this architecture! ^~~~~ mb.h:65:2: error: #error See the kernel source directory: tools/perf/perf.h file #error See the kernel source directory: tools/perf/perf.h file ^~~~~ In file included from papi_lock.h:20, from papi_memory.c:22: linux-lock.h:232:2: error: #error "_papi_hwd_lock/unlock undefined!" #error "_papi_hwd_lock/unlock undefined!" ^~~~~ In file included from papi_internal.h:119, from papi_memory.c:24: linux-context.h:41:2: error: #error "OVERFLOW_ADDRESS() undefined!" #error "OVERFLOW_ADDRESS() undefined!" ^~~~~ In file included from papi_internal.h:438, from papi_memory.c:24: threads.h: In function '_papi_hwi_lock': threads.h:72:3: warning: implicit declaration of function '_papi_hwd_lock'; did you mean '_papi_hwi_lock'? [-Wimplicit-function-declaration] _papi_hwd_lock( lck ); ^~~~~~~~~~~~~~ _papi_hwi_lock threads.h: In function '_papi_hwi_unlock': threads.h:86:3: warning: implicit declaration of function '_papi_hwd_unlock'; did you mean '_papi_hwi_unlock'? [-Wimplicit-function-declaration] _papi_hwd_unlock( lck ); ^~~~~~~~~~~~~~~~ _papi_hwi_unlock In file included from ./papi_internal.h:119, from components/perf_event/perf_event.c:38: ./linux-context.h:41:2: error: #error "OVERFLOW_ADDRESS() undefined!" #error "OVERFLOW_ADDRESS() undefined!" ^~~~~ In file included from ./linux-lock.h:4, from ./papi_lock.h:20, from ./papi_internal.h:437, from components/perf_event/perf_event.c:38: ./mb.h:64:2: error: #error Need to define rmb for this architecture! #error Need to define rmb for this architecture! ^~~~~ ./mb.h:65:2: error: #error See the kernel source directory: tools/perf/perf.h file #error See the kernel source directory: tools/perf/perf.h file ^~~~~ In file included from ./papi_lock.h:20, from ./papi_internal.h:437, from components/perf_event/perf_event.c:38: ./linux-lock.h:232:2: error: #error "_papi_hwd_lock/unlock undefined!" #error "_papi_hwd_lock/unlock undefined!" ^~~~~ In file included from ./papi_internal.h:438, from components/perf_event/perf_event.c:38: ./threads.h: In function '_papi_hwi_lock': ./threads.h:72:3: warning: implicit declaration of function '_papi_hwd_lock'; did you mean '_papi_hwi_lock'? [-Wimplicit-function-declaration] _papi_hwd_lock( lck ); ^~~~~~~~~~~~~~ _papi_hwi_lock ./threads.h: In function '_papi_hwi_unlock': ./threads.h:86:3: warning: implicit declaration of function '_papi_hwd_unlock'; did you mean '_papi_hwi_unlock'? [-Wimplicit-function-declaration] _papi_hwd_unlock( lck ); ^~~~~~~~~~~~~~~~ _papi_hwi_unlock In file included from components/perf_event/perf_event.c:56: components/perf_event/perf_helpers.h: In function 'mmap_read_head': components/perf_event/perf_helpers.h:432:2: warning: implicit declaration of function 'rmb' [-Wimplicit-function-declaration] rmb(); ^~~ In file included from ./papi_internal.h:119, from components/perf_event/perf_event.c:38: components/perf_event/perf_event.c: In function '_pe_dispatch_timer': ./linux-context.h:44:45: warning: implicit declaration of function 'OVERFLOW_ADDRESS'; did you mean 'GET_OVERFLOW_ADDRESS'? [-Wimplicit-function-declaration] #define GET_OVERFLOW_ADDRESS(ctx) (caddr_t)(OVERFLOW_ADDRESS(ctx)) ^~~~~~~~~~~~~~~~ components/perf_event/perf_event.c:1993:13: note: in expansion of macro 'GET_OVERFLOW_ADDRESS' address = GET_OVERFLOW_ADDRESS( hw_context ); ^~~~~~~~~~~~~~~~~~~~ ./linux-context.h:44:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] #define GET_OVERFLOW_ADDRESS(ctx) (caddr_t)(OVERFLOW_ADDRESS(ctx)) ^ components/perf_event/perf_event.c:1993:13: note: in expansion of macro 'GET_OVERFLOW_ADDRESS' address = GET_OVERFLOW_ADDRESS( hw_context ); ^~~~~~~~~~~~~~~~~~~~ In file included from ./papi_internal.h:119, from components/perf_event/pe_libpfm4_events.c:19: ./linux-context.h:41:2: error: #error "OVERFLOW_ADDRESS() undefined!" #error "OVERFLOW_ADDRESS() undefined!" ^~~~~ In file included from ./linux-lock.h:4, from ./papi_lock.h:20, from ./papi_internal.h:437, from components/perf_event/pe_libpfm4_events.c:19: ./mb.h:64:2: error: #error Need to define rmb for this architecture! #error Need to define rmb for this architecture! ^~~~~ ./mb.h:65:2: error: #error See the kernel source directory: tools/perf/perf.h file #error See the kernel source directory: tools/perf/perf.h file ^~~~~ In file included from ./papi_lock.h:20, from ./papi_internal.h:437, from components/perf_event/pe_libpfm4_events.c:19: ./linux-lock.h:232:2: error: #error "_papi_hwd_lock/unlock undefined!" #error "_papi_hwd_lock/unlock undefined!" ^~~~~ In file included from ./papi_internal.h:438, from components/perf_event/pe_libpfm4_events.c:19: ./threads.h: In function '_papi_hwi_lock': ./threads.h:72:3: warning: implicit declaration of function '_papi_hwd_lock'; did you mean '_papi_hwi_lock'? [-Wimplicit-function-declaration] _papi_hwd_lock( lck ); ^~~~~~~~~~~~~~ _papi_hwi_lock ./threads.h: In function '_papi_hwi_unlock': ./threads.h:86:3: warning: implicit declaration of function '_papi_hwd_unlock'; did you mean '_papi_hwi_unlock'? [-Wimplicit-function-declaration] _papi_hwd_unlock( lck ); ^~~~~~~~~~~~~~~~ _papi_hwi_unlock In file included from ./papi_internal.h:119, from components/perf_event_uncore/perf_event_uncore.c:29: ./linux-context.h:41:2: error: #error "OVERFLOW_ADDRESS() undefined!" #error "OVERFLOW_ADDRESS() undefined!" ^~~~~ In file included from ./linux-lock.h:4, from ./papi_lock.h:20, from ./papi_internal.h:437, from components/perf_event_uncore/perf_event_uncore.c:29: ./mb.h:64:2: error: #error Need to define rmb for this architecture! #error Need to define rmb for this architecture! ^~~~~ ./mb.h:65:2: error: #error See the kernel source directory: tools/perf/perf.h file #error See the kernel source directory: tools/perf/perf.h file ^~~~~ In file included from ./papi_lock.h:20, from ./papi_internal.h:437, from components/perf_event_uncore/perf_event_uncore.c:29: ./linux-lock.h:232:2: error: #error "_papi_hwd_lock/unlock undefined!" #error "_papi_hwd_lock/unlock undefined!" ^~~~~ In file included from ./papi_internal.h:438, from components/perf_event_uncore/perf_event_uncore.c:29: ./threads.h: In function '_papi_hwi_lock': ./threads.h:72:3: warning: implicit declaration of function '_papi_hwd_lock'; did you mean '_papi_hwi_lock'? [-Wimplicit-function-declaration] _papi_hwd_lock( lck ); ^~~~~~~~~~~~~~ _papi_hwi_lock ./threads.h: In function '_papi_hwi_unlock': ./threads.h:86:3: warning: implicit declaration of function '_papi_hwd_unlock'; did you mean '_papi_hwi_unlock'? [-Wimplicit-function-declaration] _papi_hwd_unlock( lck ); ^~~~~~~~~~~~~~~~ _papi_hwi_unlock In file included from ./papi_internal.h:119, from components/appio/appio.c:40: ./linux-context.h:41:2: error: #error "OVERFLOW_ADDRESS() undefined!" #error "OVERFLOW_ADDRESS() undefined!" ^~~~~ In file included from ./linux-lock.h:4, from ./papi_lock.h:20, from ./papi_internal.h:437, from components/appio/appio.c:40: ./mb.h:64:2: error: #error Need to define rmb for this architecture! #error Need to define rmb for this architecture! ^~~~~ ./mb.h:65:2: error: #error See the kernel source directory: tools/perf/perf.h file #error See the kernel source directory: tools/perf/perf.h file ^~~~~ In file included from ./papi_lock.h:20, from ./papi_internal.h:437, from components/appio/appio.c:40: ./linux-lock.h:232:2: error: #error "_papi_hwd_lock/unlock undefined!" #error "_papi_hwd_lock/unlock undefined!" ^~~~~ In file included from ./papi_internal.h:438, from components/appio/appio.c:40: ./threads.h: In function '_papi_hwi_lock': ./threads.h:72:3: warning: implicit declaration of function '_papi_hwd_lock'; did you mean '_papi_hwi_lock'? [-Wimplicit-function-declaration] _papi_hwd_lock( lck ); ^~~~~~~~~~~~~~ _papi_hwi_lock ./threads.h: In function '_papi_hwi_unlock': ./threads.h:86:3: warning: implicit declaration of function '_papi_hwd_unlock'; did you mean '_papi_hwi_unlock'? [-Wimplicit-function-declaration] _papi_hwd_unlock( lck ); ^~~~~~~~~~~~~~~~ _papi_hwi_unlock In file included from ./papi_internal.h:119, from components/coretemp/linux-coretemp.c:5: ./linux-context.h:41:2: error: #error "OVERFLOW_ADDRESS() undefined!" #error "OVERFLOW_ADDRESS() undefined!" ^~~~~ In file included from ./linux-lock.h:4, from ./papi_lock.h:20, from ./papi_internal.h:437, from components/coretemp/linux-coretemp.c:5: ./mb.h:64:2: error: #error Need to define rmb for this architecture! #error Need to define rmb for this architecture! ^~~~~ ./mb.h:65:2: error: #error See the kernel source directory: tools/perf/perf.h file #error See the kernel source directory: tools/perf/perf.h file ^~~~~ In file included from ./papi_lock.h:20, from ./papi_internal.h:437, from components/coretemp/linux-coretemp.c:5: ./linux-lock.h:232:2: error: #error "_papi_hwd_lock/unlock undefined!" #error "_papi_hwd_lock/unlock undefined!" ^~~~~ In file included from ./papi_internal.h:438, from components/coretemp/linux-coretemp.c:5: ./threads.h: In function '_papi_hwi_lock': ./threads.h:72:3: warning: implicit declaration of function '_papi_hwd_lock'; did you mean '_papi_hwi_lock'? [-Wimplicit-function-declaration] _papi_hwd_lock( lck ); ^~~~~~~~~~~~~~ _papi_hwi_lock ./threads.h: In function '_papi_hwi_unlock': ./threads.h:86:3: warning: implicit declaration of function '_papi_hwd_unlock'; did you mean '_papi_hwi_unlock'? [-Wimplicit-function-declaration] _papi_hwd_unlock( lck ); ^~~~~~~~~~~~~~~~ _papi_hwi_unlock In file included from ./papi_internal.h:119, from components/example/example.c:22: ./linux-context.h:41:2: error: #error "OVERFLOW_ADDRESS() undefined!" #error "OVERFLOW_ADDRESS() undefined!" ^~~~~ In file included from ./linux-lock.h:4, from ./papi_lock.h:20, from ./papi_internal.h:437, from components/example/example.c:22: ./mb.h:64:2: error: #error Need to define rmb for this architecture! #error Need to define rmb for this architecture! ^~~~~ ./mb.h:65:2: error: #error See the kernel source directory: tools/perf/perf.h file #error See the kernel source directory: tools/perf/perf.h file ^~~~~ In file included from ./papi_lock.h:20, from ./papi_internal.h:437, from components/example/example.c:22: ./linux-lock.h:232:2: error: #error "_papi_hwd_lock/unlock undefined!" #error "_papi_hwd_lock/unlock undefined!" ^~~~~ In file included from ./papi_internal.h:438, from components/example/example.c:22: ./threads.h: In function '_papi_hwi_lock': ./threads.h:72:3: warning: implicit declaration of function '_papi_hwd_lock'; did you mean '_papi_hwi_lock'? [-Wimplicit-function-declaration] _papi_hwd_lock( lck ); ^~~~~~~~~~~~~~ _papi_hwi_lock ./threads.h: In function '_papi_hwi_unlock': ./threads.h:86:3: warning: implicit declaration of function '_papi_hwd_unlock'; did you mean '_papi_hwi_unlock'? [-Wimplicit-function-declaration] _papi_hwd_unlock( lck ); ^~~~~~~~~~~~~~~~ _papi_hwi_unlock In file included from ./papi_internal.h:119, from components/infiniband/linux-infiniband.c:37: ./linux-context.h:41:2: error: #error "OVERFLOW_ADDRESS() undefined!" #error "OVERFLOW_ADDRESS() undefined!" ^~~~~ In file included from ./linux-lock.h:4, from ./papi_lock.h:20, from ./papi_internal.h:437, from components/infiniband/linux-infiniband.c:37: ./mb.h:64:2: error: #error Need to define rmb for this architecture! #error Need to define rmb for this architecture! ^~~~~ ./mb.h:65:2: error: #error See the kernel source directory: tools/perf/perf.h file #error See the kernel source directory: tools/perf/perf.h file ^~~~~ In file included from ./papi_lock.h:20, from ./papi_internal.h:437, from components/infiniband/linux-infiniband.c:37: ./linux-lock.h:232:2: error: #error "_papi_hwd_lock/unlock undefined!" #error "_papi_hwd_lock/unlock undefined!" ^~~~~ In file included from ./papi_internal.h:438, from components/infiniband/linux-infiniband.c:37: ./threads.h: In function '_papi_hwi_lock': ./threads.h:72:3: warning: implicit declaration of function '_papi_hwd_lock'; did you mean '_papi_hwi_lock'? [-Wimplicit-function-declaration] _papi_hwd_lock( lck ); ^~~~~~~~~~~~~~ _papi_hwi_lock ./threads.h: In function '_papi_hwi_unlock': ./threads.h:86:3: warning: implicit declaration of function '_papi_hwd_unlock'; did you mean '_papi_hwi_unlock'? [-Wimplicit-function-declaration] _papi_hwd_unlock( lck ); ^~~~~~~~~~~~~~~~ _papi_hwi_unlock In file included from ./papi_internal.h:119, from components/lmsensors/linux-lmsensors.c:40: ./linux-context.h:41:2: error: #error "OVERFLOW_ADDRESS() undefined!" #error "OVERFLOW_ADDRESS() undefined!" ^~~~~ In file included from ./linux-lock.h:4, from ./papi_lock.h:20, from ./papi_internal.h:437, from components/lmsensors/linux-lmsensors.c:40: ./mb.h:64:2: error: #error Need to define rmb for this architecture! #error Need to define rmb for this architecture! ^~~~~ ./mb.h:65:2: error: #error See the kernel source directory: tools/perf/perf.h file #error See the kernel source directory: tools/perf/perf.h file ^~~~~ In file included from ./papi_lock.h:20, from ./papi_internal.h:437, from components/lmsensors/linux-lmsensors.c:40: ./linux-lock.h:232:2: error: #error "_papi_hwd_lock/unlock undefined!" #error "_papi_hwd_lock/unlock undefined!" ^~~~~ In file included from ./papi_internal.h:438, from components/lmsensors/linux-lmsensors.c:40: ./threads.h: In function '_papi_hwi_lock': ./threads.h:72:3: warning: implicit declaration of function '_papi_hwd_lock'; did you mean '_papi_hwi_lock'? [-Wimplicit-function-declaration] _papi_hwd_lock( lck ); ^~~~~~~~~~~~~~ _papi_hwi_lock ./threads.h: In function '_papi_hwi_unlock': ./threads.h:86:3: warning: implicit declaration of function '_papi_hwd_unlock'; did you mean '_papi_hwi_unlock'? [-Wimplicit-function-declaration] _papi_hwd_unlock( lck ); ^~~~~~~~~~~~~~~~ _papi_hwi_unlock In file included from ./papi_internal.h:119, from components/lustre/linux-lustre.c:25: ./linux-context.h:41:2: error: #error "OVERFLOW_ADDRESS() undefined!" #error "OVERFLOW_ADDRESS() undefined!" ^~~~~ In file included from ./linux-lock.h:4, from ./papi_lock.h:20, from ./papi_internal.h:437, from components/lustre/linux-lustre.c:25: ./mb.h:64:2: error: #error Need to define rmb for this architecture! #error Need to define rmb for this architecture! ^~~~~ ./mb.h:65:2: error: #error See the kernel source directory: tools/perf/perf.h file #error See the kernel source directory: tools/perf/perf.h file ^~~~~ In file included from ./papi_lock.h:20, from ./papi_internal.h:437, from components/lustre/linux-lustre.c:25: ./linux-lock.h:232:2: error: #error "_papi_hwd_lock/unlock undefined!" #error "_papi_hwd_lock/unlock undefined!" ^~~~~ In file included from ./papi_internal.h:438, from components/lustre/linux-lustre.c:25: ./threads.h: In function '_papi_hwi_lock': ./threads.h:72:3: warning: implicit declaration of function '_papi_hwd_lock'; did you mean '_papi_hwi_lock'? [-Wimplicit-function-declaration] _papi_hwd_lock( lck ); ^~~~~~~~~~~~~~ _papi_hwi_lock ./threads.h: In function '_papi_hwi_unlock': ./threads.h:86:3: warning: implicit declaration of function '_papi_hwd_unlock'; did you mean '_papi_hwi_unlock'? [-Wimplicit-function-declaration] _papi_hwd_unlock( lck ); ^~~~~~~~~~~~~~~~ _papi_hwi_unlock In file included from ./papi_internal.h:119, from components/micpower/linux-micpower.c:6: ./linux-context.h:41:2: error: #error "OVERFLOW_ADDRESS() undefined!" #error "OVERFLOW_ADDRESS() undefined!" ^~~~~ In file included from ./linux-lock.h:4, from ./papi_lock.h:20, from ./papi_internal.h:437, from components/micpower/linux-micpower.c:6: ./mb.h:64:2: error: #error Need to define rmb for this architecture! #error Need to define rmb for this architecture! ^~~~~ ./mb.h:65:2: error: #error See the kernel source directory: tools/perf/perf.h file #error See the kernel source directory: tools/perf/perf.h file ^~~~~ In file included from ./papi_lock.h:20, from ./papi_internal.h:437, from components/micpower/linux-micpower.c:6: ./linux-lock.h:232:2: error: #error "_papi_hwd_lock/unlock undefined!" #error "_papi_hwd_lock/unlock undefined!" ^~~~~ In file included from ./papi_internal.h:438, from components/micpower/linux-micpower.c:6: ./threads.h: In function '_papi_hwi_lock': ./threads.h:72:3: warning: implicit declaration of function '_papi_hwd_lock'; did you mean '_papi_hwi_lock'? [-Wimplicit-function-declaration] _papi_hwd_lock( lck ); ^~~~~~~~~~~~~~ _papi_hwi_lock ./threads.h: In function '_papi_hwi_unlock': ./threads.h:86:3: warning: implicit declaration of function '_papi_hwd_unlock'; did you mean '_papi_hwi_unlock'? [-Wimplicit-function-declaration] _papi_hwd_unlock( lck ); ^~~~~~~~~~~~~~~~ _papi_hwi_unlock In file included from ./papi_internal.h:119, from components/mx/linux-mx.c:8: ./linux-context.h:41:2: error: #error "OVERFLOW_ADDRESS() undefined!" #error "OVERFLOW_ADDRESS() undefined!" ^~~~~ In file included from ./linux-lock.h:4, from ./papi_lock.h:20, from ./papi_internal.h:437, from components/mx/linux-mx.c:8: ./mb.h:64:2: error: #error Need to define rmb for this architecture! #error Need to define rmb for this architecture! ^~~~~ ./mb.h:65:2: error: #error See the kernel source directory: tools/perf/perf.h file #error See the kernel source directory: tools/perf/perf.h file ^~~~~ In file included from ./papi_lock.h:20, from ./papi_internal.h:437, from components/mx/linux-mx.c:8: ./linux-lock.h:232:2: error: #error "_papi_hwd_lock/unlock undefined!" #error "_papi_hwd_lock/unlock undefined!" ^~~~~ In file included from ./papi_internal.h:438, from components/mx/linux-mx.c:8: ./threads.h: In function '_papi_hwi_lock': ./threads.h:72:3: warning: implicit declaration of function '_papi_hwd_lock'; did you mean '_papi_hwi_lock'? [-Wimplicit-function-declaration] _papi_hwd_lock( lck ); ^~~~~~~~~~~~~~ _papi_hwi_lock ./threads.h: In function '_papi_hwi_unlock': ./threads.h:86:3: warning: implicit declaration of function '_papi_hwd_unlock'; did you mean '_papi_hwi_unlock'? [-Wimplicit-function-declaration] _papi_hwd_unlock( lck ); ^~~~~~~~~~~~~~~~ _papi_hwi_unlock In file included from ./papi_internal.h:119, from components/net/linux-net.c:28: ./linux-context.h:41:2: error: #error "OVERFLOW_ADDRESS() undefined!" #error "OVERFLOW_ADDRESS() undefined!" ^~~~~ In file included from ./linux-lock.h:4, from ./papi_lock.h:20, from ./papi_internal.h:437, from components/net/linux-net.c:28: ./mb.h:64:2: error: #error Need to define rmb for this architecture! #error Need to define rmb for this architecture! ^~~~~ ./mb.h:65:2: error: #error See the kernel source directory: tools/perf/perf.h file #error See the kernel source directory: tools/perf/perf.h file ^~~~~ In file included from ./papi_lock.h:20, from ./papi_internal.h:437, from components/net/linux-net.c:28: ./linux-lock.h:232:2: error: #error "_papi_hwd_lock/unlock undefined!" #error "_papi_hwd_lock/unlock undefined!" ^~~~~ In file included from ./papi_internal.h:438, from components/net/linux-net.c:28: ./threads.h: In function '_papi_hwi_lock': ./threads.h:72:3: warning: implicit declaration of function '_papi_hwd_lock'; did you mean '_papi_hwi_lock'? [-Wimplicit-function-declaration] _papi_hwd_lock( lck ); ^~~~~~~~~~~~~~ _papi_hwi_lock ./threads.h: In function '_papi_hwi_unlock': ./threads.h:86:3: warning: implicit declaration of function '_papi_hwd_unlock'; did you mean '_papi_hwi_unlock'? [-Wimplicit-function-declaration] _papi_hwd_unlock( lck ); ^~~~~~~~~~~~~~~~ _papi_hwi_unlock In file included from ./papi_internal.h:119, from components/pcp/linux-pcp.c:29: ./linux-context.h:41:2: error: #error "OVERFLOW_ADDRESS() undefined!" #error "OVERFLOW_ADDRESS() undefined!" ^~~~~ In file included from ./linux-lock.h:4, from ./papi_lock.h:20, from ./papi_internal.h:437, from components/pcp/linux-pcp.c:29: ./mb.h:64:2: error: #error Need to define rmb for this architecture! #error Need to define rmb for this architecture! ^~~~~ ./mb.h:65:2: error: #error See the kernel source directory: tools/perf/perf.h file #error See the kernel source directory: tools/perf/perf.h file ^~~~~ In file included from ./papi_lock.h:20, from ./papi_internal.h:437, from components/pcp/linux-pcp.c:29: ./linux-lock.h:232:2: error: #error "_papi_hwd_lock/unlock undefined!" #error "_papi_hwd_lock/unlock undefined!" ^~~~~ In file included from ./papi_internal.h:438, from components/pcp/linux-pcp.c:29: ./threads.h: In function '_papi_hwi_lock': ./threads.h:72:3: warning: implicit declaration of function '_papi_hwd_lock'; did you mean '_papi_hwi_lock'? [-Wimplicit-function-declaration] _papi_hwd_lock( lck ); ^~~~~~~~~~~~~~ _papi_hwi_lock ./threads.h: In function '_papi_hwi_unlock': ./threads.h:86:3: warning: implicit declaration of function '_papi_hwd_unlock'; did you mean '_papi_hwi_unlock'? [-Wimplicit-function-declaration] _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!" #error "OVERFLOW_ADDRESS() undefined!" ^~~~~ In file included from ./linux-lock.h:4, from ./papi_lock.h:20, from ./papi_internal.h:437, from components/rapl/linux-rapl.c:28: ./mb.h:64:2: error: #error Need to define rmb for this architecture! #error Need to define rmb for this architecture! ^~~~~ ./mb.h:65:2: error: #error See the kernel source directory: tools/perf/perf.h file #error See the kernel source directory: tools/perf/perf.h file ^~~~~ In file included from ./papi_lock.h:20, from ./papi_internal.h:437, from components/rapl/linux-rapl.c:28: ./linux-lock.h:232:2: error: #error "_papi_hwd_lock/unlock undefined!" #error "_papi_hwd_lock/unlock undefined!" ^~~~~ In file included from ./papi_internal.h:438, from components/rapl/linux-rapl.c:28: ./threads.h: In function '_papi_hwi_lock': ./threads.h:72:3: warning: implicit declaration of function '_papi_hwd_lock'; did you mean '_papi_hwi_lock'? [-Wimplicit-function-declaration] _papi_hwd_lock( lck ); ^~~~~~~~~~~~~~ _papi_hwi_lock ./threads.h: In function '_papi_hwi_unlock': ./threads.h:86:3: warning: implicit declaration of function '_papi_hwd_unlock'; did you mean '_papi_hwi_unlock'? [-Wimplicit-function-declaration] _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!" #error "OVERFLOW_ADDRESS() undefined!" ^~~~~ In file included from ./linux-lock.h:4, from ./papi_lock.h:20, from ./papi_internal.h:437, from components/stealtime/linux-stealtime.c:17: ./mb.h:64:2: error: #error Need to define rmb for this architecture! #error Need to define rmb for this architecture! ^~~~~ ./mb.h:65:2: error: #error See the kernel source directory: tools/perf/perf.h file #error See the kernel source directory: tools/perf/perf.h file ^~~~~ In file included from ./papi_lock.h:20, from ./papi_internal.h:437, from components/stealtime/linux-stealtime.c:17: ./linux-lock.h:232:2: error: #error "_papi_hwd_lock/unlock undefined!" #error "_papi_hwd_lock/unlock undefined!" ^~~~~ In file included from ./papi_internal.h:438, from components/stealtime/linux-stealtime.c:17: ./threads.h: In function '_papi_hwi_lock': ./threads.h:72:3: warning: implicit declaration of function '_papi_hwd_lock'; did you mean '_papi_hwi_lock'? [-Wimplicit-function-declaration] _papi_hwd_lock( lck ); ^~~~~~~~~~~~~~ _papi_hwi_lock ./threads.h: In function '_papi_hwi_unlock': ./threads.h:86:3: warning: implicit declaration of function '_papi_hwd_unlock'; did you mean '_papi_hwi_unlock'? [-Wimplicit-function-declaration] _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.4rjQP5 (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.4rjQP5 (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/papi.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 598, 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 --noclean --target loongarch64 --nodeps /builddir/build/SPECS/papi.spec