Mock Version: 4.1 Mock Version: 4.1 Mock Version: 4.1 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/bpftrace.spec'], chrootPath='/var/lib/mock/dist-oc8-build-119622-70732/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=991gid=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/bpftrace.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/bpftrace-0.16.0-6.oc8.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/bpftrace.spec'], chrootPath='/var/lib/mock/dist-oc8-build-119622-70732/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=991gid=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/bpftrace.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.XvWQ1d + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf bpftrace-0.16.0 + /usr/bin/gzip -dc /builddir/build/SOURCES/bpftrace-0.16.0.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd bpftrace-0.16.0 + /usr/bin/gzip -dc /builddir/build/SOURCES/cereal-1.3.2.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cat /builddir/build/SOURCES/bpftrace-0.16.0-IR-builder-get-rid-of-getPointerElementType-calls.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/bpftrace-0.16.0-tools-old-mdflush.bt-fix-BPFTRACE_HAVE_BTF-macro.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/bpftrace-0.16.0-tcpdrop-Fix-ERROR-Error-attaching-probe-kprobe-tcp_d.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/bpftrace-0.16.0-RHEL8-remove-not-existing-attachpoints-from-tools.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/bpftrace-0.16.0-cmake-Raise-max-llvm-major-version-to-16.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/bpftrace-0.16.0-Adjust-to-build-with-llvm-17.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/bpftrace-0.16.0-Fix-security-hole-checking-unpacked-kernel-headers-3.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/bpftrace-0.16.0-Don-t-unpack-kernel-headers-or-look-in-tmp-3156.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.ou3QTc + umask 022 + cd /builddir/build/BUILD + cd bpftrace-0.16.0 + CPATH=/builddir/build/BUILD/bpftrace-0.16.0/cereal-1.3.2/include: + export CPATH + 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 + /usr/bin/cmake -DCMAKE_C_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_Fortran_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_INSTALL_PREFIX:PATH=/usr -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib64 -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DLIB_SUFFIX=64 -DBUILD_SHARED_LIBS:BOOL=ON . -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_TESTING:BOOL=OFF -DBUILD_SHARED_LIBS:BOOL=OFF -DHAVE_LIBBPF_LINK_CREATE:BOOL=OFF -DHAVE_LIBBPF_BTF_DUMP:BOOL=OFF -DHAVE_BCC_PROG_LOAD_XATTR:BOOL=OFF -- The C compiler identification is GNU 8.5.0 -- The CXX compiler identification is GNU 8.5.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found LibBcc: /usr/lib64/libbcc.so -- Performing Test LIBBCC_ATTACH_KPROBE_SIX_ARGS_SIGNATURE -- Performing Test LIBBCC_ATTACH_KPROBE_SIX_ARGS_SIGNATURE - Success -- Performing Test LIBBCC_ATTACH_UPROBE_SEVEN_ARGS_SIGNATURE -- Performing Test LIBBCC_ATTACH_UPROBE_SEVEN_ARGS_SIGNATURE - Success -- Looking for bcc_usdt_foreach -- Looking for bcc_usdt_foreach - found -- Found LibBpf: /usr/lib64/libbpf.so -- Looking for btf_dump__new -- Looking for btf_dump__new - not found -- Looking for btf_dump__emit_type_decl -- Looking for btf_dump__emit_type_decl - not found -- Looking for bpf_prog_load -- Looking for bpf_prog_load - not found -- Looking for bpf_map_create -- Looking for bpf_map_create - not found -- Looking for bpf_map_lookup_batch -- Looking for bpf_map_lookup_batch - found -- Looking for bpf_prog_test_run_opts -- Looking for bpf_prog_test_run_opts - found -- Performing Test HAVE_LIBBPF_BTF_TYPE_CNT -- Performing Test HAVE_LIBBPF_BTF_TYPE_CNT - Failed -- Performing Test HAVE_LIBBPF_BTF_DUMP_NEW_V0_6_0 -- Performing Test HAVE_LIBBPF_BTF_DUMP_NEW_V0_6_0 - Failed -- Performing Test HAVE_LIBBPF_BTF_DUMP_NEW_DEPRECATED -- Performing Test HAVE_LIBBPF_BTF_DUMP_NEW_DEPRECATED - Failed -- Performing Test HAVE_LIBBPF_KPROBE_MULTI -- Performing Test HAVE_LIBBPF_KPROBE_MULTI - Failed -- Found LibElf: /usr/lib64/libelf.so -- Found LibCereal: /builddir/build/BUILD/bpftrace-0.16.0/cereal-1.3.2/include -- Found BISON: /usr/bin/bison (found version "3.0.4") -- Found FLEX: /usr/bin/flex (found version "2.6.1") -- Looking for name_to_handle_at -- Looking for name_to_handle_at - found -- Found LibBfd: /usr/lib64/libbfd.so -- Found LibOpcodes: /usr/lib64/libopcodes.so -- Performing Test LIBBFD_DISASM_FOUR_ARGS_SIGNATURE -- Performing Test LIBBFD_DISASM_FOUR_ARGS_SIGNATURE - Success -- Performing Test LIBBFD_INIT_DISASM_INFO_FOUR_ARGS_SIGNATURE -- Performing Test LIBBFD_INIT_DISASM_INFO_FOUR_ARGS_SIGNATURE - Failed -- Please install the libdw development package (missing: LIBDW_LIBRARIES LIBDW_INCLUDE_DIRS) -- Please install the libcap development package (missing: LIBPCAP_LIBRARIES LIBPCAP_INCLUDE_DIRS) -- Looking for bcc_elf_foreach_sym -- Looking for bcc_elf_foreach_sym - found -- Looking for bpf_attach_kfunc -- Looking for bpf_attach_kfunc - found -- Looking for bcc_usdt_addsem_probe -- Looking for bcc_usdt_addsem_probe - found -- Looking for bcc_procutils_which_so -- Looking for bcc_procutils_which_so - found -- Looking for sys/sdt.h -- Looking for sys/sdt.h - not found -- Could NOT find FFI (missing: FFI_LIBRARIES HAVE_FFI_CALL) -- Could NOT find Terminfo (missing: Terminfo_LIBRARIES Terminfo_LINKABLE) -- Found ZLIB: /usr/lib64/libz.so (found version "1.2.11") CMake Error at CMakeLists.txt:175 (message): Unsupported LLVM version found via /usr/include: 18 CMake Error at CMakeLists.txt:176 (message): Only versions between 6 and 17 are supported CMake Error at CMakeLists.txt:177 (message): Specify an LLVM major version using LLVM_REQUESTED_VERSION= -- Found LLVM 18.1.8: /usr/lib64/cmake/llvm -- Using LLVM orcv2 -- Could NOT find FFI (missing: FFI_LIBRARIES HAVE_FFI_CALL) -- Could NOT find Terminfo (missing: Terminfo_LIBRARIES Terminfo_LINKABLE) CMake Warning at man/adoc/CMakeLists.txt:24 (message): asciidoctor not found, building without bpftrace manpage -- Configuring incomplete, errors occurred! error: Bad exit status from /var/tmp/rpm-tmp.ou3QTc (%build) Bad exit status from /var/tmp/rpm-tmp.ou3QTc (%build) RPM build errors: 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/bpftrace.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 597, 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/bpftrace.spec