Mock Version: 1.4.9 Mock Version: 1.4.9 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/papi.spec'], chrootPath='/var/lib/mock/f29-build-6559-1609/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': 'en_US.UTF-8', 'http_proxy': 'http://192.168.0.254:3128', 'https_proxy': 'http://192.168.0.254:3128'}shell=Falselogger=timeout=345600uid=998gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --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': 'en_US.UTF-8', 'http_proxy': 'http://192.168.0.254:3128', 'https_proxy': 'http://192.168.0.254:3128'} and shell False Building target platforms: riscv64 Building for target riscv64 Wrote: /builddir/build/SRPMS/papi-5.6.0-6.fc29.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/papi.spec'], chrootPath='/var/lib/mock/f29-build-6559-1609/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': 'en_US.UTF-8', 'http_proxy': 'http://192.168.0.254:3128', 'https_proxy': 'http://192.168.0.254:3128'}shell=Falselogger=timeout=345600uid=998gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --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': 'en_US.UTF-8', 'http_proxy': 'http://192.168.0.254:3128', 'https_proxy': 'http://192.168.0.254:3128'} and shell False Building target platforms: riscv64 Building for target riscv64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.NiTZ1a + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf papi-5.6.0 + /usr/bin/gzip -dc /builddir/build/SOURCES/papi-5.6.0.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd papi-5.6.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #1 (papi-ldflags.patch):' Patch #1 (papi-ldflags.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .ldflags --fuzz=0 patching file src/components/Makefile_comp_tests.target.in patching file src/components/perf_event_uncore/tests/Makefile patching file src/ctests/Makefile.recipies patching file src/ctests/Makefile.target.in patching file src/ftests/Makefile.target.in patching file src/utils/Makefile.target.in patching file src/validation_tests/Makefile.target.in + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.8Tqaq3 + umask 022 + cd /builddir/build/BUILD + cd papi-5.6.0 + cd src + autoconf + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -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 ']' BUILDSTDERR: +++ dirname ./configure BUILDSTDERR: ++ find . -name config.guess -o -name config.sub + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' ']' BUILDSTDERR: ++ find . -name ltmain.sh + ./configure --build=riscv64-koji-linux-gnu --host=riscv64-koji-linux-gnu --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=yes --with-shared-lib=yes --with-shlib --with-shlib-tools '--with-components=appio coretemp example infiniband lmsensors lustre micpower mx net rapl stealtime' BUILDSTDERR: configure: WARNING: unrecognized options: --disable-dependency-tracking, --with-shlib checking for architecture... riscv64 checking for OS... linux checking for OS version... 4.15.0-00044-g2b0aa1de45f6 checking for perf_event workaround level... autodetect checking for if MIC should be used... no checking for riscv64-koji-linux-gnu-xlc... no checking for riscv64-koji-linux-gnu-icc... no checking for riscv64-koji-linux-gnu-gcc... no checking for riscv64-koji-linux-gnu-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 riscv64-koji-linux-gnu-xlf... no checking for riscv64-koji-linux-gnu-ifort... no checking for riscv64-koji-linux-gnu-gfortran... no checking for riscv64-koji-linux-gnu-f95... no checking for riscv64-koji-linux-gnu-f90... no checking for riscv64-koji-linux-gnu-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 riscv64-koji-linux-gnu-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 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... yes 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... no 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 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 BUILDSTDERR: configure: WARNING: unrecognized options: --disable-dependency-tracking, --with-shlib + pushd components ~/build/BUILD/papi-5.6.0/src/components ~/build/BUILD/papi-5.6.0/src ~/build/BUILD/papi-5.6.0/src/components/infiniband_umad ~/build/BUILD/papi-5.6.0/src/components ~/build/BUILD/papi-5.6.0/src + pushd infiniband_umad + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -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 ']' BUILDSTDERR: +++ dirname ./configure BUILDSTDERR: ++ find . -name config.guess -o -name config.sub + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' ']' BUILDSTDERR: ++ find . -name ltmain.sh + ./configure --build=riscv64-koji-linux-gnu --host=riscv64-koji-linux-gnu --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 checking for riscv64-koji-linux-gnu-gcc... no checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... 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 ANSI C... none needed checking for infiniband/umad.h... yes checking for umad_init in -libumad... yes checking for infiniband/mad.h... yes checking for madrpc_init in -libmad... yes configure: creating ./config.status config.status: creating Makefile.infiniband_umad + popd ~/build/BUILD/papi-5.6.0/src/components ~/build/BUILD/papi-5.6.0/src ~/build/BUILD/papi-5.6.0/src/components/lmsensors ~/build/BUILD/papi-5.6.0/src/components ~/build/BUILD/papi-5.6.0/src + pushd lmsensors + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -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 ']' BUILDSTDERR: +++ dirname ./configure BUILDSTDERR: ++ find . -name config.guess -o -name config.sub + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' ']' BUILDSTDERR: ++ find . -name ltmain.sh + ./configure --build=riscv64-koji-linux-gnu --host=riscv64-koji-linux-gnu --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-sensors_incdir=/usr/include/sensors --with-sensors_libdir=/usr/lib64 BUILDSTDERR: configure: WARNING: unrecognized options: --disable-dependency-tracking, --with-sensors_libdir checking for riscv64-koji-linux-gnu-gcc... 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 sensors.h... yes configure: creating ./config.status config.status: creating Makefile.lmsensors BUILDSTDERR: configure: WARNING: unrecognized options: --disable-dependency-tracking, --with-sensors_libdir + popd ~/build/BUILD/papi-5.6.0/src/components ~/build/BUILD/papi-5.6.0/src ~/build/BUILD/papi-5.6.0/src + popd + 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 Host CPU component : perf_event ar xv /usr/lib64/libpfm.a ar xv /usr/lib64/libpfm.a Installation DESTDIR: x - pfmlib_common.o x - pfmlib_perf_event_pmu.o x - pfmlib_perf_event.o x - pfmlib_perf_event_raw.o gcc -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 -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -g -Wextra -Wall -I/usr/include/sensors -DOSLOCK=\"linux-lock.h\" -DOSCONTEXT=\"linux-context.h\" -O2 -c components/perf_event/perf_event.c -o perf_event.o Installation PREFIX : /usr x - pfmlib_common.o x - pfmlib_perf_event_pmu.o x - pfmlib_perf_event.o x - pfmlib_perf_event_raw.o gcc -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 -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -g -Wextra -Wall -I/usr/include/sensors -DOSLOCK=\"linux-lock.h\" -DOSCONTEXT=\"linux-context.h\" -O2 -c components/perf_event/pe_libpfm4_events.c -o pe_libpfm4_events.o Installation EPREFIX: /usr gcc -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 -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -g -Wextra -Wall -I/usr/include/sensors -DOSLOCK=\"linux-lock.h\" -DOSCONTEXT=\"linux-context.h\" -O2 -Icomponents/perf_event/ -c components/perf_event_uncore/perf_event_uncore.c -o perf_event_uncore.o 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 -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 -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -g -Wextra -Wall -I/usr/include/sensors -DOSLOCK=\"linux-lock.h\" -DOSCONTEXT=\"linux-context.h\" -O2 -c components/appio/appio.c -o appio.o BUILDSTDERR: In file included from ./papi_internal.h:120, BUILDSTDERR: from components/perf_event/pe_libpfm4_events.c:19: BUILDSTDERR: ./linux-context.h:39:2: error: #error "OVERFLOW_ADDRESS() undefined!" BUILDSTDERR: #error "OVERFLOW_ADDRESS() undefined!" BUILDSTDERR: ^~~~~ BUILDSTDERR: In file included from ./linux-lock.h:4, BUILDSTDERR: from ./papi_lock.h:20, BUILDSTDERR: from ./papi_internal.h:438, BUILDSTDERR: from components/perf_event/pe_libpfm4_events.c:19: BUILDSTDERR: ./mb.h:64:2: error: #error Need to define rmb for this architecture! BUILDSTDERR: #error Need to define rmb for this architecture! BUILDSTDERR: ^~~~~ BUILDSTDERR: ./mb.h:65:2: error: #error See the kernel source directory: tools/perf/perf.h file BUILDSTDERR: #error See the kernel source directory: tools/perf/perf.h file BUILDSTDERR: ^~~~~ BUILDSTDERR: In file included from ./papi_lock.h:20, BUILDSTDERR: from ./papi_internal.h:438, BUILDSTDERR: from components/perf_event/pe_libpfm4_events.c:19: BUILDSTDERR: ./linux-lock.h:228:2: error: #error "_papi_hwd_lock/unlock undefined!" BUILDSTDERR: #error "_papi_hwd_lock/unlock undefined!" BUILDSTDERR: ^~~~~ BUILDSTDERR: In file included from ./papi_internal.h:439, BUILDSTDERR: from components/perf_event/pe_libpfm4_events.c:19: BUILDSTDERR: ./threads.h: In function '_papi_hwi_lock': BUILDSTDERR: ./threads.h:67:3: warning: implicit declaration of function '_papi_hwd_lock'; did you mean '_papi_hwi_lock'? [-Wimplicit-function-declaration] BUILDSTDERR: _papi_hwd_lock( lck ); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: _papi_hwi_lock BUILDSTDERR: ./threads.h: In function '_papi_hwi_unlock': BUILDSTDERR: ./threads.h:81:3: warning: implicit declaration of function '_papi_hwd_unlock'; did you mean '_papi_hwi_unlock'? [-Wimplicit-function-declaration] BUILDSTDERR: _papi_hwd_unlock( lck ); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: _papi_hwi_unlock BUILDSTDERR: In file included from ./papi_internal.h:120, BUILDSTDERR: from components/perf_event/perf_event.c:38: BUILDSTDERR: ./linux-context.h:39:2: error: #error "OVERFLOW_ADDRESS() undefined!" BUILDSTDERR: #error "OVERFLOW_ADDRESS() undefined!" BUILDSTDERR: ^~~~~ BUILDSTDERR: In file included from ./linux-lock.h:4, BUILDSTDERR: from ./papi_lock.h:20, BUILDSTDERR: from ./papi_internal.h:438, BUILDSTDERR: from components/perf_event/perf_event.c:38: BUILDSTDERR: ./mb.h:64:2: error: #error Need to define rmb for this architecture! BUILDSTDERR: #error Need to define rmb for this architecture! BUILDSTDERR: ^~~~~ BUILDSTDERR: ./mb.h:65:2: error: #error See the kernel source directory: tools/perf/perf.h file BUILDSTDERR: #error See the kernel source directory: tools/perf/perf.h file BUILDSTDERR: ^~~~~ BUILDSTDERR: In file included from ./papi_lock.h:20, BUILDSTDERR: from ./papi_internal.h:438, BUILDSTDERR: from components/perf_event/perf_event.c:38: BUILDSTDERR: ./linux-lock.h:228:2: error: #error "_papi_hwd_lock/unlock undefined!" BUILDSTDERR: #error "_papi_hwd_lock/unlock undefined!" BUILDSTDERR: ^~~~~ BUILDSTDERR: In file included from ./papi_internal.h:120, BUILDSTDERR: from components/perf_event_uncore/perf_event_uncore.c:29: BUILDSTDERR: ./linux-context.h:39:2: error: #error "OVERFLOW_ADDRESS() undefined!" BUILDSTDERR: #error "OVERFLOW_ADDRESS() undefined!" BUILDSTDERR: ^~~~~ BUILDSTDERR: In file included from ./linux-lock.h:4, BUILDSTDERR: from ./papi_lock.h:20, BUILDSTDERR: from ./papi_internal.h:438, BUILDSTDERR: from components/perf_event_uncore/perf_event_uncore.c:29: BUILDSTDERR: ./mb.h:64:2: error: #error Need to define rmb for this architecture! BUILDSTDERR: #error Need to define rmb for this architecture! BUILDSTDERR: ^~~~~ BUILDSTDERR: ./mb.h:65:2: error: #error See the kernel source directory: tools/perf/perf.h file BUILDSTDERR: #error See the kernel source directory: tools/perf/perf.h file BUILDSTDERR: ^~~~~ BUILDSTDERR: In file included from ./papi_lock.h:20, BUILDSTDERR: from ./papi_internal.h:438, BUILDSTDERR: from components/perf_event_uncore/perf_event_uncore.c:29: BUILDSTDERR: ./linux-lock.h:228:2: error: #error "_papi_hwd_lock/unlock undefined!" BUILDSTDERR: #error "_papi_hwd_lock/unlock undefined!" BUILDSTDERR: ^~~~~ BUILDSTDERR: In file included from ./papi_internal.h:120, BUILDSTDERR: from components/appio/appio.c:40: BUILDSTDERR: ./linux-context.h:39:2: error: #error "OVERFLOW_ADDRESS() undefined!" BUILDSTDERR: #error "OVERFLOW_ADDRESS() undefined!" BUILDSTDERR: ^~~~~ BUILDSTDERR: In file included from ./linux-lock.h:4, BUILDSTDERR: from ./papi_lock.h:20, BUILDSTDERR: from ./papi_internal.h:438, BUILDSTDERR: from components/appio/appio.c:40: BUILDSTDERR: ./mb.h:64:2: error: #error Need to define rmb for this architecture! BUILDSTDERR: #error Need to define rmb for this architecture! BUILDSTDERR: ^~~~~ BUILDSTDERR: ./mb.h:65:2: error: #error See the kernel source directory: tools/perf/perf.h file BUILDSTDERR: #error See the kernel source directory: tools/perf/perf.h file BUILDSTDERR: ^~~~~ BUILDSTDERR: In file included from ./papi_lock.h:20, BUILDSTDERR: from ./papi_internal.h:438, BUILDSTDERR: from components/appio/appio.c:40: BUILDSTDERR: ./linux-lock.h:228:2: error: #error "_papi_hwd_lock/unlock undefined!" BUILDSTDERR: #error "_papi_hwd_lock/unlock undefined!" BUILDSTDERR: ^~~~~ BUILDSTDERR: In file included from ./papi_internal.h:439, BUILDSTDERR: from components/appio/appio.c:40: BUILDSTDERR: ./threads.h: In function '_papi_hwi_lock': BUILDSTDERR: ./threads.h:67:3: warning: implicit declaration of function '_papi_hwd_lock'; did you mean '_papi_hwi_lock'? [-Wimplicit-function-declaration] BUILDSTDERR: _papi_hwd_lock( lck ); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: _papi_hwi_lock BUILDSTDERR: ./threads.h: In function '_papi_hwi_unlock': BUILDSTDERR: ./threads.h:81:3: warning: implicit declaration of function '_papi_hwd_unlock'; did you mean '_papi_hwi_unlock'? [-Wimplicit-function-declaration] BUILDSTDERR: _papi_hwd_unlock( lck ); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: _papi_hwi_unlock BUILDSTDERR: In file included from ./papi_internal.h:439, BUILDSTDERR: from components/perf_event/perf_event.c:38: BUILDSTDERR: ./threads.h: In function '_papi_hwi_lock': BUILDSTDERR: ./threads.h:67:3: warning: implicit declaration of function '_papi_hwd_lock'; did you mean '_papi_hwi_lock'? [-Wimplicit-function-declaration] BUILDSTDERR: _papi_hwd_lock( lck ); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: _papi_hwi_lock BUILDSTDERR: ./threads.h: In function '_papi_hwi_unlock': BUILDSTDERR: ./threads.h:81:3: warning: implicit declaration of function '_papi_hwd_unlock'; did you mean '_papi_hwi_unlock'? [-Wimplicit-function-declaration] BUILDSTDERR: _papi_hwd_unlock( lck ); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: _papi_hwi_unlock BUILDSTDERR: In file included from ./papi_internal.h:439, BUILDSTDERR: from components/perf_event_uncore/perf_event_uncore.c:29: BUILDSTDERR: ./threads.h: In function '_papi_hwi_lock': BUILDSTDERR: ./threads.h:67:3: warning: implicit declaration of function '_papi_hwd_lock'; did you mean '_papi_hwi_lock'? [-Wimplicit-function-declaration] BUILDSTDERR: _papi_hwd_lock( lck ); BUILDSTDERR: ^~~~~~~~~~~~~~ BUILDSTDERR: _papi_hwi_lock BUILDSTDERR: ./threads.h: In function '_papi_hwi_unlock': BUILDSTDERR: ./threads.h:81:3: warning: implicit declaration of function '_papi_hwd_unlock'; did you mean '_papi_hwi_unlock'? [-Wimplicit-function-declaration] BUILDSTDERR: _papi_hwd_unlock( lck ); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: _papi_hwi_unlock BUILDSTDERR: In file included from components/perf_event/perf_event.c:56: BUILDSTDERR: components/perf_event/perf_helpers.h: In function 'mmap_read_head': BUILDSTDERR: components/perf_event/perf_helpers.h:186:2: warning: implicit declaration of function 'rmb' [-Wimplicit-function-declaration] BUILDSTDERR: rmb(); BUILDSTDERR: ^~~ BUILDSTDERR: make: *** [components/appio/Rules.appio:8: appio.o] Error 1 BUILDSTDERR: make: *** Waiting for unfinished jobs.... BUILDSTDERR: make: *** [components/perf_event/Rules.perf_event:9: pe_libpfm4_events.o] Error 1 BUILDSTDERR: In file included from ./papi_internal.h:120, BUILDSTDERR: from components/perf_event/perf_event.c:38: BUILDSTDERR: components/perf_event/perf_event.c: In function '_pe_dispatch_timer': BUILDSTDERR: ./linux-context.h:42:45: warning: implicit declaration of function 'OVERFLOW_ADDRESS'; did you mean 'GET_OVERFLOW_ADDRESS'? [-Wimplicit-function-declaration] BUILDSTDERR: #define GET_OVERFLOW_ADDRESS(ctx) (caddr_t)(OVERFLOW_ADDRESS(ctx)) BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: components/perf_event/perf_event.c:1929:13: note: in expansion of macro 'GET_OVERFLOW_ADDRESS' BUILDSTDERR: address = GET_OVERFLOW_ADDRESS( hw_context ); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: ./linux-context.h:42:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] BUILDSTDERR: #define GET_OVERFLOW_ADDRESS(ctx) (caddr_t)(OVERFLOW_ADDRESS(ctx)) BUILDSTDERR: ^ BUILDSTDERR: components/perf_event/perf_event.c:1929:13: note: in expansion of macro 'GET_OVERFLOW_ADDRESS' BUILDSTDERR: address = GET_OVERFLOW_ADDRESS( hw_context ); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: make: *** [components/perf_event_uncore/Rules.perf_event_uncore:8: perf_event_uncore.o] Error 1 BUILDSTDERR: make: *** [components/perf_event/Rules.perf_event:6: perf_event.o] Error 1 BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.8Tqaq3 (%build) RPM build errors: BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.8Tqaq3 (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 96, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 626, in do raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/papi.spec