Mock Version: 3.0 Mock Version: 3.0 Mock Version: 3.0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/xdp-tools.spec'], chrootPath='/var/lib/mock/dist-oc8-build-20474-5048/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 --target x86_64 --nodeps /builddir/build/SPECS/xdp-tools.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/xdp-tools-1.2.1-1.oc8.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/xdp-tools.spec'], chrootPath='/var/lib/mock/dist-oc8-build-20474-5048/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 --target x86_64 --nodeps /builddir/build/SPECS/xdp-tools.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.TQvsNp + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf xdp-tools-1.2.1 + /usr/bin/gzip -dc /builddir/build/SOURCES/xdp-tools-1.2.1.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd xdp-tools-1.2.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.yCw2in + umask 022 + cd /builddir/build/BUILD + cd xdp-tools-1.2.1 + export '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' + 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 'LDFLAGS=-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LIBDIR=/usr/lib64 + LIBDIR=/usr/lib64 + export CLANG=/usr/bin/clang + CLANG=/usr/bin/clang + export LLC=/usr/bin/llc + LLC=/usr/bin/llc + export PRODUCTION=1 + PRODUCTION=1 + export DYNAMIC_LIBXDP=1 + DYNAMIC_LIBXDP=1 + export FORCE_SYSTEM_LIBBPF=1 + FORCE_SYSTEM_LIBBPF=1 + export FORCE_EMACS=1 + FORCE_EMACS=1 + ./configure Found clang binary '/usr/bin/clang' with version 12 (from 'clang version 12.0.1 (Red Hat 12.0.1-4.module+oc8.5.0+39+ec6a5162)') using emacs: GNU Emacs 26.1 libbpf support: FORCE_SYSTEM_LIBBPF is set, but no usable libbpf found on system error: In file included from /usr/include/bpf/libbpf.h:20, from config.gYO4nx/libbpftest.c:1: config.gYO4nx/libbpftest.c: In function 'main': config.gYO4nx/libbpftest.c:8:55: error: 'struct bpf_link_create_opts' has no member named 'target_btf_id' DECLARE_LIBBPF_OPTS(bpf_link_create_opts, lopts, .target_btf_id = 0); ^~~~~~~~~~~~~ config.gYO4nx/libbpftest.c:8:71: error: excess elements in struct initializer [-Werror] DECLARE_LIBBPF_OPTS(bpf_link_create_opts, lopts, .target_btf_id = 0); ^ config.gYO4nx/libbpftest.c:8:71: note: (near initialization for '(anonymous)') cc1: all warnings being treated as errors error: Bad exit status from /var/tmp/rpm-tmp.yCw2in (%build) Bad exit status from /var/tmp/rpm-tmp.yCw2in (%build) RPM build errors: 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 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 --target x86_64 --nodeps /builddir/build/SPECS/xdp-tools.spec