Mock Version: 2.8 Mock Version: 2.8 Mock Version: 2.8 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target loongarch64 --nodeps /builddir/build/SPECS/papi.spec'], chrootPath='/var/lib/mock/dist-an8.7-build-187687-60691/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=986gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --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-12.0.1.an8.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target loongarch64 --nodeps /builddir/build/SPECS/papi.spec'], chrootPath='/var/lib/mock/dist-an8.7-build-187687-60691/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=986gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --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.dnenE9 + 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 #2 (papi-a64fx.patch): + echo 'Patch #2 (papi-a64fx.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .a64fx --fuzz=0 patching file src/papi_events.csv 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 #1000 (1000-papi-anolis-add-loongarch-support.patch): + echo 'Patch #1000 (1000-papi-anolis-add-loongarch-support.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file src/linux-context.h patching file src/linux-lock.h patching file src/linux-timer.c patching file src/mb.h + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.rLSzUy + 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 -j4 sh papi_events_table.sh papi_events.csv > papi_events_table.h Host architecture : Linux with perf_event kernel support and libpfm4 make -C testlib Host CPU component : perf_event 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 Installation DESTDIR: gcc -I. -I.. -O2 -g -g -Wextra -Wall -O1 -O0 -c do_loops.c Installation PREFIX : /usr Installation EPREFIX: /usr Installation INCDIR : /usr/include Installation LIBDIR : /usr/lib64 Installation BINDIR : /usr/bin Installation MANDIR : /usr/share/man Installation DOCDIR : /usr/share/doc/papi Installation DATADIR: /usr/share/papi gcc -E -I/usr/include -DFORTRANUNDERSCORE papi_fwrappers.c > papi_fwrappers_.c 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 gcc -I. -I.. -O2 -g -g -Wextra -Wall -O1 -c clockcore.c 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_lock.h:20, from papi_internal.h:437, from papi_libpfm4_events.c:10: threads.h: In function '_papi_hwi_lock': linux-lock.h:257:86: warning: implicit declaration of function 'rmd'; did you mean 'rmb'? [-Wimplicit-function-declaration] #define _papi_hwd_lock(lck) { rmb(); __raw_spin_lock(&_papi_hwd_lock_data[lck]); rmd(); } ^~~ threads.h:72:3: note: in expansion of macro '_papi_hwd_lock' _papi_hwd_lock( lck ); ^~~~~~~~~~~~~~ In file included from papi_lock.h:20, from papi_internal.h:437, from papi.c:34: threads.h: In function '_papi_hwi_lock': ar rv libtestlib.a test_utils.o ftests_util.o linux-lock.h:257:86: warning: implicit declaration of function 'rmd'; did you mean 'rmb'? [-Wimplicit-function-declaration] #define _papi_hwd_lock(lck) { rmb(); __raw_spin_lock(&_papi_hwd_lock_data[lck]); rmd(); } ^~~ threads.h:72:3: note: in expansion of macro '_papi_hwd_lock' _papi_hwd_lock( lck ); ^~~~~~~~~~~~~~ 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_lock.h:20, from papi_internal.h:437, from papi_internal.c:38: threads.h: In function '_papi_hwi_lock': linux-lock.h:257:86: warning: implicit declaration of function 'rmd'; did you mean 'rmb'? [-Wimplicit-function-declaration] #define _papi_hwd_lock(lck) { rmb(); __raw_spin_lock(&_papi_hwd_lock_data[lck]); rmd(); } ^~~ threads.h:72:3: note: in expansion of macro '_papi_hwd_lock' _papi_hwd_lock( lck ); ^~~~~~~~~~~~~~ In file included from ./papi_lock.h:20, from ./papi_internal.h:437, from high-level/papi_hl.c:27: ./threads.h: In function '_papi_hwi_lock': ./linux-lock.h:257:86: warning: implicit declaration of function 'rmd'; did you mean 'rmb'? [-Wimplicit-function-declaration] #define _papi_hwd_lock(lck) { rmb(); __raw_spin_lock(&_papi_hwd_lock_data[lck]); rmd(); } ^~~ ./threads.h:72:3: note: in expansion of macro '_papi_hwd_lock' _papi_hwd_lock( lck ); ^~~~~~~~~~~~~~ In file included from papi_lock.h:20, from papi_internal.h:437, from extras.c:23: threads.h: In function '_papi_hwi_lock': linux-lock.h:257:86: warning: implicit declaration of function 'rmd'; did you mean 'rmb'? [-Wimplicit-function-declaration] #define _papi_hwd_lock(lck) { rmb(); __raw_spin_lock(&_papi_hwd_lock_data[lck]); rmd(); } ^~~ threads.h:72:3: note: in expansion of macro '_papi_hwd_lock' _papi_hwd_lock( lck ); ^~~~~~~~~~~~~~ In file included from papi_lock.h:20, from papi_internal.h:437, from sw_multiplex.c:130: threads.h: In function '_papi_hwi_lock': linux-lock.h:257:86: warning: implicit declaration of function 'rmd'; did you mean 'rmb'? [-Wimplicit-function-declaration] #define _papi_hwd_lock(lck) { rmb(); __raw_spin_lock(&_papi_hwd_lock_data[lck]); rmd(); } ^~~ threads.h:72:3: note: in expansion of macro '_papi_hwd_lock' _papi_hwd_lock( lck ); ^~~~~~~~~~~~~~ In file included from papi_lock.h:20, from papi_internal.h:437, from threads.c:16: threads.h: In function '_papi_hwi_lock': linux-lock.h:257:86: warning: implicit declaration of function 'rmd'; did you mean 'rmb'? [-Wimplicit-function-declaration] #define _papi_hwd_lock(lck) { rmb(); __raw_spin_lock(&_papi_hwd_lock_data[lck]); rmd(); } ^~~ threads.h:72:3: note: in expansion of macro '_papi_hwd_lock' _papi_hwd_lock( lck ); ^~~~~~~~~~~~~~ In file included from papi_lock.h:20, from papi_internal.h:437, from cpus.c:15: threads.h: In function '_papi_hwi_lock': linux-lock.h:257:86: warning: implicit declaration of function 'rmd'; did you mean 'rmb'? [-Wimplicit-function-declaration] #define _papi_hwd_lock(lck) { rmb(); __raw_spin_lock(&_papi_hwd_lock_data[lck]); rmd(); } ^~~ threads.h:72:3: note: in expansion of macro '_papi_hwd_lock' _papi_hwd_lock( lck ); ^~~~~~~~~~~~~~ In file included from papi_lock.h:20, from papi_internal.h:437, from linux-memory.c:26: threads.h: In function '_papi_hwi_lock': linux-lock.h:257:86: warning: implicit declaration of function 'rmd'; did you mean 'rmb'? [-Wimplicit-function-declaration] #define _papi_hwd_lock(lck) { rmb(); __raw_spin_lock(&_papi_hwd_lock_data[lck]); rmd(); } ^~~ threads.h:72:3: note: in expansion of macro '_papi_hwd_lock' _papi_hwd_lock( lck ); ^~~~~~~~~~~~~~ In file included from papi_lock.h:20, from papi_internal.h:437, from linux-timer.c:14: threads.h: In function '_papi_hwi_lock': linux-lock.h:257:86: warning: implicit declaration of function 'rmd'; did you mean 'rmb'? [-Wimplicit-function-declaration] #define _papi_hwd_lock(lck) { rmb(); __raw_spin_lock(&_papi_hwd_lock_data[lck]); rmd(); } ^~~ threads.h:72:3: note: in expansion of macro '_papi_hwd_lock' _papi_hwd_lock( lck ); ^~~~~~~~~~~~~~ linux-timer.c: In function 'get_cycles': linux-timer.c:260:2: warning: output constraint '=' for operand 1 is not at the beginning __asm__ __volatile__ ("rdtime.d %0, %1" : "=r" (ret), "r=" (rID)); ^~~~~~~ linux-timer.c:260:2: warning: output constraint '=' for operand 1 is not at the beginning linux-timer.c:254:1: warning: output constraint '=' for operand 1 is not at the beginning get_cycles( void ) ^~~~~~~~~~ linux-timer.c:575:1: warning: output constraint '=' for operand 1 is not at the beginning } ^ linux-timer.c:575:1: warning: output constraint '=' for operand 1 is not at the beginning linux-timer.c:575:1: warning: output constraint '=' for operand 1 is not at the beginning linux-timer.c:575:1: warning: output constraint '=' for operand 1 is not at the beginning linux-timer.c:575:1: warning: output constraint '=' for operand 1 is not at the beginning linux-timer.c:575:1: warning: output constraint '=' for operand 1 is not at the beginning linux-timer.c:575:1: warning: output constraint '=' for operand 1 is not at the beginning linux-timer.c: In function '_linux_get_real_cycles': linux-timer.c:329:11: warning: output constraint '=' for operand 1 is not at the beginning retval = get_cycles( ); ^~~~~~~~~~~~~~ linux-timer.c:329:11: warning: output constraint '=' for operand 1 is not at the beginning linux-timer.c:329:11: warning: output constraint '=' for operand 1 is not at the beginning linux-timer.c:575:1: warning: output constraint '=' for operand 1 is not at the beginning } ^ linux-timer.c:575:1: warning: output constraint '=' for operand 1 is not at the beginning linux-timer.c:575:1: warning: output constraint '=' for operand 1 is not at the beginning linux-timer.c:575:1: warning: output constraint '=' for operand 1 is not at the beginning linux-timer.c: In function '_linux_get_real_usec_cycles': linux-timer.c:391:13: warning: output constraint '=' for operand 1 is not at the beginning retval = get_cycles( ) / ^~~~~~~~~~~~~~ linux-timer.c:391:13: warning: output constraint '=' for operand 1 is not at the beginning linux-timer.c:391:13: warning: output constraint '=' for operand 1 is not at the beginning linux-timer.c:575:1: warning: output constraint '=' for operand 1 is not at the beginning } ^ linux-timer.c:575:1: warning: output constraint '=' for operand 1 is not at the beginning linux-timer.c:575:1: warning: output constraint '=' for operand 1 is not at the beginning linux-timer.c:575:1: warning: output constraint '=' for operand 1 is not at the beginning linux-timer.c:575:1: warning: output constraint '=' for operand 1 is not at the beginning linux-timer.c: In function '_linux_get_real_cycles': linux-timer.c:575:1: warning: output constraint '=' for operand 1 is not at the beginning linux-timer.c:319:1: warning: output constraint '=' for operand 1 is not at the beginning _linux_get_real_cycles( void ) ^~~~~~~~~~~~~~~~~~~~~~ linux-timer.c:319:1: warning: output constraint '=' for operand 1 is not at the beginning linux-timer.c:319:1: warning: output constraint '=' for operand 1 is not at the beginning linux-timer.c:319:1: warning: output constraint '=' for operand 1 is not at the beginning linux-timer.c:319:1: warning: output constraint '=' for operand 1 is not at the beginning linux-timer.c:319:1: warning: output constraint '=' for operand 1 is not at the beginning linux-timer.c:260:2: warning: output constraint '=' for operand 1 is not at the beginning __asm__ __volatile__ ("rdtime.d %0, %1" : "=r" (ret), "r=" (rID)); ^~~~~~~ linux-timer.c:260:2: warning: output constraint '=' for operand 1 is not at the beginning linux-timer.c: In function '_linux_get_real_usec_cycles': linux-timer.c:384:1: warning: output constraint '=' for operand 1 is not at the beginning _linux_get_real_usec_cycles( void ) ^~~~~~~~~~~~~~~~~~~~~~~~~~~ linux-timer.c:384:1: warning: output constraint '=' for operand 1 is not at the beginning linux-timer.c:384:1: warning: output constraint '=' for operand 1 is not at the beginning linux-timer.c:384:1: warning: output constraint '=' for operand 1 is not at the beginning linux-timer.c:384:1: warning: output constraint '=' for operand 1 is not at the beginning linux-timer.c:384:1: warning: output constraint '=' for operand 1 is not at the beginning linux-timer.c:260:2: warning: output constraint '=' for operand 1 is not at the beginning __asm__ __volatile__ ("rdtime.d %0, %1" : "=r" (ret), "r=" (rID)); ^~~~~~~ linux-timer.c:260:2: warning: output constraint '=' for operand 1 is not at the beginning In file included from papi_lock.h:20, from papi_internal.h:437, from linux-common.c:18: threads.h: In function '_papi_hwi_lock': linux-lock.h:257:86: warning: implicit declaration of function 'rmd'; did you mean 'rmb'? [-Wimplicit-function-declaration] #define _papi_hwd_lock(lck) { rmb(); __raw_spin_lock(&_papi_hwd_lock_data[lck]); rmd(); } ^~~ threads.h:72:3: note: in expansion of macro '_papi_hwd_lock' _papi_hwd_lock( lck ); ^~~~~~~~~~~~~~ In file included from papi_lock.h:20, from papi_internal.h:437, from papi_preset.c:18: threads.h: In function '_papi_hwi_lock': linux-lock.h:257:86: warning: implicit declaration of function 'rmd'; did you mean 'rmb'? [-Wimplicit-function-declaration] #define _papi_hwd_lock(lck) { rmb(); __raw_spin_lock(&_papi_hwd_lock_data[lck]); rmd(); } ^~~ threads.h:72:3: note: in expansion of macro '_papi_hwd_lock' _papi_hwd_lock( lck ); ^~~~~~~~~~~~~~ In file included from papi_lock.h:20, from papi_internal.h:437, from papi_vector.c:12: threads.h: In function '_papi_hwi_lock': linux-lock.h:257:86: warning: implicit declaration of function 'rmd'; did you mean 'rmb'? [-Wimplicit-function-declaration] #define _papi_hwd_lock(lck) { rmb(); __raw_spin_lock(&_papi_hwd_lock_data[lck]); rmd(); } ^~~ threads.h:72:3: note: in expansion of macro '_papi_hwd_lock' _papi_hwd_lock( lck ); ^~~~~~~~~~~~~~ In file included from papi_lock.h:20, from papi_memory.c:22: threads.h: In function '_papi_hwi_lock': linux-lock.h:257:86: warning: implicit declaration of function 'rmd'; did you mean 'rmb'? [-Wimplicit-function-declaration] #define _papi_hwd_lock(lck) { rmb(); __raw_spin_lock(&_papi_hwd_lock_data[lck]); rmd(); } ^~~ threads.h:72:3: note: in expansion of macro '_papi_hwd_lock' _papi_hwd_lock( lck ); ^~~~~~~~~~~~~~ In file included from ./papi_lock.h:20, from ./papi_internal.h:437, from components/perf_event/perf_event.c:38: ./threads.h: In function '_papi_hwi_lock': ./linux-lock.h:257:86: warning: implicit declaration of function 'rmd'; did you mean 'rmb'? [-Wimplicit-function-declaration] #define _papi_hwd_lock(lck) { rmb(); __raw_spin_lock(&_papi_hwd_lock_data[lck]); rmd(); } ^~~ ./threads.h:72:3: note: in expansion of macro '_papi_hwd_lock' _papi_hwd_lock( lck ); ^~~~~~~~~~~~~~ In file included from ./papi_lock.h:20, from ./papi_internal.h:437, from components/perf_event/pe_libpfm4_events.c:19: ./threads.h: In function '_papi_hwi_lock': ./linux-lock.h:257:86: warning: implicit declaration of function 'rmd'; did you mean 'rmb'? [-Wimplicit-function-declaration] #define _papi_hwd_lock(lck) { rmb(); __raw_spin_lock(&_papi_hwd_lock_data[lck]); rmd(); } ^~~ ./threads.h:72:3: note: in expansion of macro '_papi_hwd_lock' _papi_hwd_lock( lck ); ^~~~~~~~~~~~~~ In file included from ./papi_lock.h:20, from ./papi_internal.h:437, from components/perf_event_uncore/perf_event_uncore.c:29: ./threads.h: In function '_papi_hwi_lock': ./linux-lock.h:257:86: warning: implicit declaration of function 'rmd'; did you mean 'rmb'? [-Wimplicit-function-declaration] #define _papi_hwd_lock(lck) { rmb(); __raw_spin_lock(&_papi_hwd_lock_data[lck]); rmd(); } ^~~ ./threads.h:72:3: note: in expansion of macro '_papi_hwd_lock' _papi_hwd_lock( lck ); ^~~~~~~~~~~~~~ In file included from ./papi_lock.h:20, from ./papi_internal.h:437, from components/appio/appio.c:40: ./threads.h: In function '_papi_hwi_lock': ./linux-lock.h:257:86: warning: implicit declaration of function 'rmd'; did you mean 'rmb'? [-Wimplicit-function-declaration] #define _papi_hwd_lock(lck) { rmb(); __raw_spin_lock(&_papi_hwd_lock_data[lck]); rmd(); } ^~~ ./threads.h:72:3: note: in expansion of macro '_papi_hwd_lock' _papi_hwd_lock( lck ); ^~~~~~~~~~~~~~ In file included from ./papi_lock.h:20, from ./papi_internal.h:437, from components/coretemp/linux-coretemp.c:5: ./threads.h: In function '_papi_hwi_lock': ./linux-lock.h:257:86: warning: implicit declaration of function 'rmd'; did you mean 'rmb'? [-Wimplicit-function-declaration] #define _papi_hwd_lock(lck) { rmb(); __raw_spin_lock(&_papi_hwd_lock_data[lck]); rmd(); } ^~~ ./threads.h:72:3: note: in expansion of macro '_papi_hwd_lock' _papi_hwd_lock( lck ); ^~~~~~~~~~~~~~ components/coretemp/linux-coretemp.c: In function 'generateEventList.constprop': components/coretemp/linux-coretemp.c:139:44: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 128 [-Wformat-truncation=] snprintf(filename, PAPI_MAX_STR_LEN, "%s/name",path); ^~ ~~~~ components/coretemp/linux-coretemp.c:139:6: note: 'snprintf' output between 6 and 4101 bytes into a destination of size 128 snprintf(filename, PAPI_MAX_STR_LEN, "%s/name",path); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ components/coretemp/linux-coretemp.c:164:45: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 128 [-Wformat-truncation=] snprintf(filename, PAPI_MAX_STR_LEN, "%s/in%d_label", ^~ path,i); ~~~~ components/coretemp/linux-coretemp.c:164:44: note: directive argument in the range [0, 32] snprintf(filename, PAPI_MAX_STR_LEN, "%s/in%d_label", ^~~~~~~~~~~~~~~ components/coretemp/linux-coretemp.c:164:7: note: 'snprintf' output between 11 and 4107 bytes into a destination of size 128 snprintf(filename, PAPI_MAX_STR_LEN, "%s/in%d_label", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ path,i); ~~~~~~~ components/coretemp/linux-coretemp.c:178:45: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 128 [-Wformat-truncation=] snprintf(filename, PAPI_MAX_STR_LEN, "%s/in%d_input", ^~ path,i); ~~~~ components/coretemp/linux-coretemp.c:178:44: note: directive argument in the range [0, 32] snprintf(filename, PAPI_MAX_STR_LEN, "%s/in%d_input", ^~~~~~~~~~~~~~~ components/coretemp/linux-coretemp.c:178:7: note: 'snprintf' output between 11 and 4107 bytes into a destination of size 128 snprintf(filename, PAPI_MAX_STR_LEN, "%s/in%d_input", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ path,i); ~~~~~~~ components/coretemp/linux-coretemp.c:192:54: warning: ' module, label ' directive output may be truncated writing 15 bytes into a region of size between 0 and 126 [-Wformat-truncation=] snprintf(description, PAPI_MAX_STR_LEN, "%s, %s module, label %s", ^~~~~~~~~~~~~~~ components/coretemp/linux-coretemp.c:192:7: note: 'snprintf' output between 18 and 207 bytes into a destination of size 128 snprintf(description, PAPI_MAX_STR_LEN, "%s, %s module, label %s", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ units,modulename, ~~~~~~~~~~~~~~~~~ location); ~~~~~~~~~ components/coretemp/linux-coretemp.c:211:45: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 128 [-Wformat-truncation=] snprintf(filename, PAPI_MAX_STR_LEN, "%s/temp%d_label", ^~ path,i); ~~~~ components/coretemp/linux-coretemp.c:211:44: note: directive argument in the range [0, 32] snprintf(filename, PAPI_MAX_STR_LEN, "%s/temp%d_label", ^~~~~~~~~~~~~~~~~ components/coretemp/linux-coretemp.c:211:7: note: 'snprintf' output between 13 and 4109 bytes into a destination of size 128 snprintf(filename, PAPI_MAX_STR_LEN, "%s/temp%d_label", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ path,i); ~~~~~~~ components/coretemp/linux-coretemp.c:225:45: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 128 [-Wformat-truncation=] snprintf(filename, PAPI_MAX_STR_LEN, "%s/temp%d_input", ^~ path,i); ~~~~ components/coretemp/linux-coretemp.c:225:44: note: directive argument in the range [0, 32] snprintf(filename, PAPI_MAX_STR_LEN, "%s/temp%d_input", ^~~~~~~~~~~~~~~~~ components/coretemp/linux-coretemp.c:225:7: note: 'snprintf' output between 13 and 4109 bytes into a destination of size 128 snprintf(filename, PAPI_MAX_STR_LEN, "%s/temp%d_input", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ path,i); ~~~~~~~ components/coretemp/linux-coretemp.c:240:54: warning: ' module, label ' directive output may be truncated writing 15 bytes into a region of size between 0 and 126 [-Wformat-truncation=] snprintf(description, PAPI_MAX_STR_LEN, "%s, %s module, label %s", ^~~~~~~~~~~~~~~ components/coretemp/linux-coretemp.c:240:7: note: 'snprintf' output between 18 and 207 bytes into a destination of size 128 snprintf(description, PAPI_MAX_STR_LEN, "%s, %s module, label %s", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ units,modulename, ~~~~~~~~~~~~~~~~~ location); ~~~~~~~~~ components/coretemp/linux-coretemp.c:258:45: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 128 [-Wformat-truncation=] snprintf(filename, PAPI_MAX_STR_LEN, "%s/fan%d_label", ^~ path,i); ~~~~ components/coretemp/linux-coretemp.c:258:44: note: directive argument in the range [0, 32] snprintf(filename, PAPI_MAX_STR_LEN, "%s/fan%d_label", ^~~~~~~~~~~~~~~~ components/coretemp/linux-coretemp.c:258:7: note: 'snprintf' output between 12 and 4108 bytes into a destination of size 128 snprintf(filename, PAPI_MAX_STR_LEN, "%s/fan%d_label", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ path,i); ~~~~~~~ components/coretemp/linux-coretemp.c:293:54: warning: ' module, label ' directive output may be truncated writing 15 bytes into a region of size between 0 and 126 [-Wformat-truncation=] snprintf(description, PAPI_MAX_STR_LEN, "%s, %s module, label %s", ^~~~~~~~~~~~~~~ components/coretemp/linux-coretemp.c:293:7: note: 'snprintf' output between 18 and 207 bytes into a destination of size 128 snprintf(description, PAPI_MAX_STR_LEN, "%s, %s module, label %s", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ units,modulename, ~~~~~~~~~~~~~~~~~ location); ~~~~~~~~~ In file included from ./papi_lock.h:20, from ./papi_internal.h:437, from components/example/example.c:22: ./threads.h: In function '_papi_hwi_lock': ./linux-lock.h:257:86: warning: implicit declaration of function 'rmd'; did you mean 'rmb'? [-Wimplicit-function-declaration] #define _papi_hwd_lock(lck) { rmb(); __raw_spin_lock(&_papi_hwd_lock_data[lck]); rmd(); } ^~~ ./threads.h:72:3: note: in expansion of macro '_papi_hwd_lock' _papi_hwd_lock( lck ); ^~~~~~~~~~~~~~ In file included from ./papi_lock.h:20, from ./papi_internal.h:437, from components/infiniband/linux-infiniband.c:37: ./threads.h: In function '_papi_hwi_lock': ./linux-lock.h:257:86: warning: implicit declaration of function 'rmd'; did you mean 'rmb'? [-Wimplicit-function-declaration] #define _papi_hwd_lock(lck) { rmb(); __raw_spin_lock(&_papi_hwd_lock_data[lck]); rmd(); } ^~~ ./threads.h:72:3: note: in expansion of macro '_papi_hwd_lock' _papi_hwd_lock( lck ); ^~~~~~~~~~~~~~ components/infiniband/linux-infiniband.c: In function '_infiniband_ntv_code_to_info': components/infiniband/linux-infiniband.c:924:9: warning: 'strncpy' specified bound depends on the length of the source argument [-Wstringop-overflow=] strncpy(info->symbol, infiniband_native_events[index].name, len); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ components/infiniband/linux-infiniband.c:922:28: note: length computed here unsigned int len = strlen(infiniband_native_events[index].name); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ components/infiniband/linux-infiniband.c:931:9: warning: 'strncpy' specified bound depends on the length of the source argument [-Wstringop-overflow=] strncpy(info->long_descr, infiniband_native_events[index].description, len); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ components/infiniband/linux-infiniband.c:929:28: note: length computed here unsigned int len = strlen(infiniband_native_events[index].description); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ components/infiniband/linux-infiniband.c: In function 'read_ib_counter_value': components/infiniband/linux-infiniband.c:566:46: warning: 'snprintf' output may be truncated before the last format character [-Wformat-truncation=] snprintf(ev_file, sizeof(ev_file), "%s/%s", ^ components/infiniband/linux-infiniband.c:566:5: note: 'snprintf' output 2 or more bytes (assuming 4097) into a destination of size 4096 snprintf(ev_file, sizeof(ev_file), "%s/%s", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ counters_path, iter->file_name); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./papi_lock.h:20, from ./papi_internal.h:437, from components/lmsensors/linux-lmsensors.c:40: ./threads.h: In function '_papi_hwi_lock': ./linux-lock.h:257:86: warning: implicit declaration of function 'rmd'; did you mean 'rmb'? [-Wimplicit-function-declaration] #define _papi_hwd_lock(lck) { rmb(); __raw_spin_lock(&_papi_hwd_lock_data[lck]); rmd(); } ^~~ ./threads.h:72:3: note: in expansion of macro '_papi_hwd_lock' _papi_hwd_lock( lck ); ^~~~~~~~~~~~~~ In file included from ./papi_lock.h:20, from ./papi_internal.h:437, from components/lustre/linux-lustre.c:25: ./threads.h: In function '_papi_hwi_lock': ./linux-lock.h:257:86: warning: implicit declaration of function 'rmd'; did you mean 'rmb'? [-Wimplicit-function-declaration] #define _papi_hwd_lock(lck) { rmb(); __raw_spin_lock(&_papi_hwd_lock_data[lck]); rmd(); } ^~~ ./threads.h:72:3: note: in expansion of macro '_papi_hwd_lock' _papi_hwd_lock( lck ); ^~~~~~~~~~~~~~ components/lustre/linux-lustre.c: In function 'init_lustre_counters': components/lustre/linux-lustre.c:281:38: warning: '/' directive output may be truncated writing 1 byte into a region of size between 0 and 4095 [-Wformat-truncation=] snprintf( path, PATH_MAX - 1, "%s/%s/stats", lustre_dir, ^ components/lustre/linux-lustre.c:281:5: note: 'snprintf' output between 8 and 4358 bytes into a destination of size 4095 snprintf( path, PATH_MAX - 1, "%s/%s/stats", lustre_dir, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ entry->d_name ); ~~~~~~~~~~~~~~~ components/lustre/linux-lustre.c:315:6: warning: '/' directive output may be truncated writing 1 byte into a region of size between 0 and 4095 [-Wformat-truncation=] "%s/%s/stats", ^ components/lustre/linux-lustre.c:314:4: note: 'snprintf' output between 8 and 4358 bytes into a destination of size 4095 snprintf( path_stats, PATH_MAX - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "%s/%s/stats", ~~~~~~~~~~~~~~ lustre_dir, ~~~~~~~~~~~ entry->d_name ); ~~~~~~~~~~~~~~~ components/lustre/linux-lustre.c:321:6: warning: '/' directive output may be truncated writing 1 byte into a region of size between 0 and 4095 [-Wformat-truncation=] "%s/%s/read_ahead_stats", ^ components/lustre/linux-lustre.c:320:4: note: 'snprintf' output between 19 and 4369 bytes into a destination of size 4095 snprintf( path_readahead, PATH_MAX - 1, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "%s/%s/read_ahead_stats", ~~~~~~~~~~~~~~~~~~~~~~~~~ lustre_dir, ~~~~~~~~~~~ entry->d_name ); ~~~~~~~~~~~~~~~ In file included from ./papi_lock.h:20, from ./papi_internal.h:437, from components/micpower/linux-micpower.c:6: ./threads.h: In function '_papi_hwi_lock': ./linux-lock.h:257:86: warning: implicit declaration of function 'rmd'; did you mean 'rmb'? [-Wimplicit-function-declaration] #define _papi_hwd_lock(lck) { rmb(); __raw_spin_lock(&_papi_hwd_lock_data[lck]); rmd(); } ^~~ ./threads.h:72:3: note: in expansion of macro '_papi_hwd_lock' _papi_hwd_lock( lck ); ^~~~~~~~~~~~~~ components/micpower/linux-micpower.c: In function '_micpower_ntv_code_to_info': components/micpower/linux-micpower.c:453:3: warning: 'strncpy' specified bound 1024 equals destination size [-Wstringop-truncation] strncpy( info->symbol, _micpower_native_events[index].name, sizeof(info->symbol)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ components/micpower/linux-micpower.c:454:3: warning: 'strncpy' specified bound 1024 equals destination size [-Wstringop-truncation] strncpy( info->long_descr, _micpower_native_events[index].description, sizeof(info->long_descr)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./papi_lock.h:20, from ./papi_internal.h:437, from components/mx/linux-mx.c:8: ./threads.h: In function '_papi_hwi_lock': ./linux-lock.h:257:86: warning: implicit declaration of function 'rmd'; did you mean 'rmb'? [-Wimplicit-function-declaration] #define _papi_hwd_lock(lck) { rmb(); __raw_spin_lock(&_papi_hwd_lock_data[lck]); rmd(); } ^~~ ./threads.h:72:3: note: in expansion of macro '_papi_hwd_lock' _papi_hwd_lock( lck ); ^~~~~~~~~~~~~~ In file included from ./papi_lock.h:20, from ./papi_internal.h:437, from components/net/linux-net.c:28: ./threads.h: In function '_papi_hwi_lock': ./linux-lock.h:257:86: warning: implicit declaration of function 'rmd'; did you mean 'rmb'? [-Wimplicit-function-declaration] #define _papi_hwd_lock(lck) { rmb(); __raw_spin_lock(&_papi_hwd_lock_data[lck]); rmd(); } ^~~ ./threads.h:72:3: note: in expansion of macro '_papi_hwd_lock' _papi_hwd_lock( lck ); ^~~~~~~~~~~~~~ In function '_net_init_component.part.2', inlined from '_net_init_component' at components/net/linux-net.c:299:1: components/net/linux-net.c:327:9: warning: 'strncpy' output may be truncated copying 127 bytes from a string of length 127 [-Wstringop-truncation] strncpy(_net_native_events[i].name, t->name, PAPI_MAX_STR_LEN-1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ components/net/linux-net.c:329:9: warning: 'strncpy' output may be truncated copying 127 bytes from a string of length 127 [-Wstringop-truncation] strncpy(_net_native_events[i].description, t->description, PAPI_MAX_STR_LEN-1); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./papi_lock.h:20, from ./papi_internal.h:437, from components/pcp/linux-pcp.c:29: ./threads.h: In function '_papi_hwi_lock': ./linux-lock.h:257:86: warning: implicit declaration of function 'rmd'; did you mean 'rmb'? [-Wimplicit-function-declaration] #define _papi_hwd_lock(lck) { rmb(); __raw_spin_lock(&_papi_hwd_lock_data[lck]); rmd(); } ^~~ ./threads.h:72:3: note: in expansion of macro '_papi_hwd_lock' _papi_hwd_lock( lck ); ^~~~~~~~~~~~~~ components/pcp/linux-pcp.c: In function '_pcp_init_component': components/pcp/linux-pcp.c:1007:71: warning: '%s' directive output may be truncated writing up to 127 bytes into a region of size 93 [-Wformat-truncation=] snprintf(reason, rLen, "Unexpected value type fetched for %s. %i vs %i. Possible version incompatibiity.\n", ^~ components/pcp/linux-pcp.c:1007:13: note: 'snprintf' output between 78 and 225 bytes into a destination of size 127 snprintf(reason, rLen, "Unexpected value type fetched for %s. %i vs %i. Possible version incompatibiity.\n", ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pcp_event_info[i].name, pcp_event_info[i].valType, pB->vtype); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ components/pcp/linux-pcp.c:870:69: warning: '%s' directive output may be truncated writing up to 511 bytes into a region of size 90 [-Wformat-truncation=] snprintf(reason, rLen, "Cannot connect to PM Daemon on host \"%s\".\n " ^~ "(Ensure this machine has Performance Co-Pilot installed.)\n", hostname); ~~~~~~~~ components/pcp/linux-pcp.c:870:7: note: 'snprintf' output between 100 and 611 bytes into a destination of size 127 snprintf(reason, rLen, "Cannot connect to PM Daemon on host \"%s\".\n " ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "(Ensure this machine has Performance Co-Pilot installed.)\n", hostname); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from ./papi_lock.h:20, from ./papi_internal.h:437, from components/rapl/linux-rapl.c:28: ./threads.h: In function '_papi_hwi_lock': ./linux-lock.h:257:86: warning: implicit declaration of function 'rmd'; did you mean 'rmb'? [-Wimplicit-function-declaration] #define _papi_hwd_lock(lck) { rmb(); __raw_spin_lock(&_papi_hwd_lock_data[lck]); rmd(); } ^~~ ./threads.h:72:3: note: in expansion of macro '_papi_hwd_lock' _papi_hwd_lock( lck ); ^~~~~~~~~~~~~~ In file included from ./papi_lock.h:20, from ./papi_internal.h:437, from components/stealtime/linux-stealtime.c:17: ./threads.h: In function '_papi_hwi_lock': ./linux-lock.h:257:86: warning: implicit declaration of function 'rmd'; did you mean 'rmb'? [-Wimplicit-function-declaration] #define _papi_hwd_lock(lck) { rmb(); __raw_spin_lock(&_papi_hwd_lock_data[lck]); rmd(); } ^~~ ./threads.h:72:3: note: in expansion of macro '_papi_hwd_lock' _papi_hwd_lock( lck ); ^~~~~~~~~~~~~~ + test '' '!=' '' ln -sf libpapi.so.6.0.0.0 libpapi.so ln -sf libpapi.so.6.0.0.0 libpapi.so.6.0 make -C utils make -C validation_tests make -C ftests make[1]: Entering directory '/builddir/build/BUILD/papi-6.0.0/src/utils' gcc -O2 -g -g -Wextra -Wall -O2 -I../testlib -I.. -I. -c papi_avail.c gcc -I../testlib -I.. -I. -O2 -g -g -Wextra -Wall -O2 -c print_header.c make[1]: Entering directory '/builddir/build/BUILD/papi-6.0.0/src/validation_tests' gcc -O2 -g -g -Wextra -Wall -O2 -I../testlib -I.. -I. -c fp_validation_hl.c make[1]: Entering directory '/builddir/build/BUILD/papi-6.0.0/src/ftests' gfortran -I../testlib -I. -I.. -O2 -g -g -Wextra -Wall -ffixed-line-length-132 -O1 strtest.F ../testlib/libtestlib.a ../libpapi.so.6.0.0.0 -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 -o strtest gcc -I../testlib -I.. -I. -O2 -g -g -Wextra -Wall -O2 -c flops_testcode.c gcc -O2 -g -g -Wextra -Wall -O2 -I../testlib -I.. -I. -c cycles_validation.c gcc -I../testlib -I.. -I. -O2 -g -g -Wextra -Wall -O2 -c display_error.c gcc -O2 -g -g -Wextra -Wall -O2 -I../testlib -I.. -I. -c papi_mem_info.c gcc -I../testlib -I.. -I. -O2 -g -g -Wextra -Wall -O2 -c instructions_testcode.c gcc -O2 -g -g -Wextra -Wall -O2 -I../testlib -I.. -I. -c flops_validation.c ../libpapi.so.6.0.0.0: undefined reference to `rmd' collect2: error: ld returned 1 exit status make[1]: *** [Makefile.recipies:35: strtest] Error 1 make[1]: Leaving directory '/builddir/build/BUILD/papi-6.0.0/src/ftests' make: *** [Makefile.inc:247: ftests] Error 2 make: *** Waiting for unfinished jobs.... gcc -O2 -g -g -Wextra -Wall -O2 -I../testlib -I.. -I. -c papi_cost.c gcc -I../testlib -I.. -I. -O2 -g -g -Wextra -Wall -O2 -c branches_testcode.c gcc -O2 -g -g -Wextra -Wall -O2 -I../testlib -I.. -I. -c papi_br_cn.c gcc -I../testlib -I.. -I. -O2 -g -g -Wextra -Wall -O2 -c cost_utils.c gcc -O2 -g -g -Wextra -Wall -O2 -I../testlib -I.. -I. -c papi_clockres.c gcc -O2 -g -g -Wextra -Wall -O2 -I../testlib -I.. -I. -c papi_br_ins.c gcc -O2 -g -g -Wextra -Wall -O2 -I../testlib -I.. -I. -c papi_br_msp.c gcc -O2 -g -g -Wextra -Wall -O2 -I../testlib -I.. -I. -c papi_br_ntk.c gcc -O2 -g -g -Wextra -Wall -O2 -I../testlib -I.. -I. -c papi_native_avail.c gcc -O2 -g -g -Wextra -Wall -O2 -I../testlib -I.. -I. -c papi_command_line.c gcc -O2 -g -g -Wextra -Wall -O2 -I../testlib -I.. -I. -c papi_br_prc.c gcc -O2 -g -g -Wextra -Wall -O2 -I../testlib -I.. -I. -c papi_event_chooser.c gcc -O2 -g -g -Wextra -Wall -O2 -I../testlib -I.. -I. -c papi_br_tkn.c gcc -O2 -g -g -Wextra -Wall -O2 -I../testlib -I.. -I. -c papi_br_ucn.c gcc -O2 -g -g -Wextra -Wall -O2 -I../testlib -I.. -I. -c papi_dp_ops.c gcc -O2 -g -g -Wextra -Wall -O2 -I../testlib -I.. -I. -c papi_decode.c gcc -O2 -g -g -Wextra -Wall -O2 -I../testlib -I.. -I. -c papi_xml_event_info.c gcc -O2 -g -g -Wextra -Wall -O2 -I../testlib -I.. -I. -c papi_fp_ops.c gcc -O2 -g -g -Wextra -Wall -O2 -I../testlib -I.. -I. -c papi_version.c gcc -O2 -g -g -Wextra -Wall -O2 -I../testlib -I.. -I. -c papi_sp_ops.c gcc -O2 -g -g -Wextra -Wall -O2 -I../testlib -I.. -I. -c papi_hw_int.c gcc -O2 -g -g -Wextra -Wall -O2 -I../testlib -I.. -I. -c papi_multiplex_cost.c gcc -O2 -g -g -Wextra -Wall -O2 -I../testlib -I.. -I. -c papi_component_avail.c gcc -O2 -g -g -Wextra -Wall -O2 -I../testlib -I.. -I. -c papi_l1_dca.c gcc -I../testlib -I.. -I. -O2 -g -g -Wextra -Wall -O2 -c cache_testcode.c gcc -O2 -g -g -Wextra -Wall -O2 -I../testlib -I.. -I. -c papi_error_codes.c gcc -I../testlib -I.. -I. -O2 -g -g -Wextra -Wall -O2 -c matrix_multiply.c gcc -O2 -g -g -Wextra -Wall -O2 -I../testlib -I.. -I. -c papi_l1_dcm.c gcc -I../testlib -I.. -I. -O2 -g -g -Wextra -Wall -O2 -c cache_helper.c gcc -o papi_avail papi_avail.o print_header.o ../libpapi.so.6.0.0.0 -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 ../libpapi.so.6.0.0.0: undefined reference to `rmd' collect2: error: ld returned 1 exit status make[1]: *** [Makefile:19: papi_avail] Error 1 make[1]: *** Waiting for unfinished jobs.... gcc -O2 -g -g -Wextra -Wall -O2 -I../testlib -I.. -I. -c papi_l2_dca.c gcc -O2 -g -g -Wextra -Wall -O2 -I../testlib -I.. -I. -c papi_l2_dcm.c gcc -O2 -g -g -Wextra -Wall -O2 -I../testlib -I.. -I. -c papi_l2_dcr.c gcc -O2 -g -g -Wextra -Wall -O2 -I../testlib -I.. -I. -c papi_l2_dcw.c gcc -O2 -g -g -Wextra -Wall -O2 -I../testlib -I.. -I. -c papi_ld_ins.c gcc -O2 -g -g -Wextra -Wall -O2 -I../testlib -I.. -I. -c papi_sr_ins.c make[1]: Leaving directory '/builddir/build/BUILD/papi-6.0.0/src/utils' gcc -O2 -g -g -Wextra -Wall -O2 -I../testlib -I.. -I. -c papi_ref_cyc.c make: *** [Makefile.inc:238: utils] Error 2 gcc -O2 -g -g -Wextra -Wall -O2 -I../testlib -I.. -I. -c papi_tot_cyc.c gcc -O2 -g -g -Wextra -Wall -O2 -I../testlib -I.. -I. -c papi_tot_ins.c gcc -o fp_validation_hl fp_validation_hl.o ../testlib/libtestlib.a flops_testcode.o ../libpapi.so.6.0.0.0 -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 -lrt -lpthread gcc -o cycles_validation cycles_validation.o ../testlib/libtestlib.a display_error.o instructions_testcode.o ../libpapi.so.6.0.0.0 -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 -lrt ../libpapi.so.6.0.0.0: undefined reference to `rmd' collect2: error: ld returned 1 exit status make[1]: *** [Makefile.recipies:42: fp_validation_hl] Error 1 make[1]: *** Waiting for unfinished jobs.... ../libpapi.so.6.0.0.0: undefined reference to `rmd' collect2: error: ld returned 1 exit status make[1]: *** [Makefile.recipies:45: cycles_validation] Error 1 make[1]: Leaving directory '/builddir/build/BUILD/papi-6.0.0/src/validation_tests' make: *** [Makefile.inc:241: validation_tests] Error 2 RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.rLSzUy (%build) Bad exit status from /var/tmp/rpm-tmp.rLSzUy (%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 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/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 loongarch64 --nodeps /builddir/build/SPECS/papi.spec