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 x86_64 --nodeps /builddir/build/SPECS/papi.spec'], chrootPath='/var/lib/mock/dist-an8.9-build-369599-71163/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=990gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --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: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/papi-6.0.0-15.0.2.an8.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/papi.spec'], chrootPath='/var/lib/mock/dist-an8.9-build-369599-71163/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=990gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --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: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.E1S4Ej + 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 + echo 'Patch #40 (papi-thread_init.patch):' 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 + echo 'Patch #1000 (1000-papi-anolis-add-loongarch-support.patch):' 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 + echo 'Patch #1001 (papi-6.0.0-sw.patch):' Patch #1001 (papi-6.0.0-sw.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file src/configure patching file src/configure.in patching file src/linux-context.h patching file src/linux-timer.c patching file src/mb.h + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.Nm34Oo + 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 -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 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-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 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-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 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-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 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-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 ']' +++ 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=x86_64-Anolis-linux --host=x86_64-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... x86_64 checking for OS... linux checking for OS version... 4.18.0-305.19.1.el8_4.x86_64 checking for perf_event workaround level... autodetect checking for if MIC should be used... no checking for x86_64-Anolis-linux-xlc... no checking for x86_64-Anolis-linux-icc... no checking for x86_64-Anolis-linux-gcc... no checking for x86_64-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 x86_64-Anolis-linux-xlf... no checking for x86_64-Anolis-linux-ifort... no checking for x86_64-Anolis-linux-gfortran... no checking for x86_64-Anolis-linux-f95... no checking for x86_64-Anolis-linux-f90... no checking for x86_64-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 x86_64-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... x86 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 configure: error: Building tests and utilities static but no static papi library to be built error: Bad exit status from /var/tmp/rpm-tmp.Nm34Oo (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.Nm34Oo (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target x86_64 --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 x86_64 --nodeps /builddir/build/SPECS/papi.spec