Mock Version: 2.8 Mock Version: 2.8 Mock Version: 2.8 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-an8.4-build-21551-10116/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=989gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=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.1.1-2.an8.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-an8.4-build-21551-10116/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=989gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=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.OzDbaL + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf xdp-tools-1.1.1 + /usr/bin/gzip -dc /builddir/build/SOURCES/xdp-tools-1.1.1.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd xdp-tools-1.1.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/cat /builddir/build/SOURCES/xdp-tools-1.1.1-fix-libxdp-man-page.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + /usr/bin/cat /builddir/build/SOURCES/xdp-tools-1.1.1-xdp-filter-load-check.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.u1oSQH + umask 022 + cd /builddir/build/BUILD + cd xdp-tools-1.1.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 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 config.RrVlTU/libbpftest.c:1: config.RrVlTU/libbpftest.c: In function 'main': config.RrVlTU/libbpftest.c:6:25: error: variable 'xlopts' has initializer but incomplete type DECLARE_LIBBPF_OPTS(bpf_xdp_set_link_opts, xlopts, .old_fd = -1); ^~~~~~~~~~~~~~~~~~~~~ config.RrVlTU/libbpftest.c:6:5: error: invalid application of 'sizeof' to incomplete type 'struct bpf_xdp_set_link_opts' DECLARE_LIBBPF_OPTS(bpf_xdp_set_link_opts, xlopts, .old_fd = -1); ^~~~~~~~~~~~~~~~~~~ config.RrVlTU/libbpftest.c:6:5: error: 'struct bpf_xdp_set_link_opts' has no member named 'sz' DECLARE_LIBBPF_OPTS(bpf_xdp_set_link_opts, xlopts, .old_fd = -1); ^~~~~~~~~~~~~~~~~~~ config.RrVlTU/libbpftest.c:6:5: error: invalid application of 'sizeof' to incomplete type 'struct bpf_xdp_set_link_opts' DECLARE_LIBBPF_OPTS(bpf_xdp_set_link_opts, xlopts, .old_fd = -1); ^~~~~~~~~~~~~~~~~~~ config.RrVlTU/libbpftest.c:6:5: warning: excess elements in struct initializer DECLARE_LIBBPF_OPTS(bpf_xdp_set_link_opts, xlopts, .old_fd = -1); ^~~~~~~~~~~~~~~~~~~ config.RrVlTU/libbpftest.c:6:5: note: (near initialization for '(anonymous)') In file included from config.RrVlTU/libbpftest.c:1: config.RrVlTU/libbpftest.c:6:57: error: 'struct bpf_xdp_set_link_opts' has no member named 'old_fd' DECLARE_LIBBPF_OPTS(bpf_xdp_set_link_opts, xlopts, .old_fd = -1); ^~~~~~ config.RrVlTU/libbpftest.c:6:66: warning: excess elements in struct initializer DECLARE_LIBBPF_OPTS(bpf_xdp_set_link_opts, xlopts, .old_fd = -1); ^ config.RrVlTU/libbpftest.c:6:66: note: (near initialization for '(anonymous)') config.RrVlTU/libbpftest.c:6:5: error: invalid use of undefined type 'struct bpf_xdp_set_link_opts' DECLARE_LIBBPF_OPTS(bpf_xdp_set_link_opts, xlopts, .old_fd = -1); ^~~~~~~~~~~~~~~~~~~ config.RrVlTU/libbpftest.c:6:48: error: storage size of 'xlopts' isn't known DECLARE_LIBBPF_OPTS(bpf_xdp_set_link_opts, xlopts, .old_fd = -1); ^~~~~~ config.RrVlTU/libbpftest.c:7:25: error: variable 'lopts' has initializer but incomplete type DECLARE_LIBBPF_OPTS(bpf_link_create_opts, lopts, .target_btf_id = 0); ^~~~~~~~~~~~~~~~~~~~ config.RrVlTU/libbpftest.c:7:5: error: invalid application of 'sizeof' to incomplete type 'struct bpf_link_create_opts' DECLARE_LIBBPF_OPTS(bpf_link_create_opts, lopts, .target_btf_id = 0); ^~~~~~~~~~~~~~~~~~~ config.RrVlTU/libbpftest.c:7:5: error: 'struct bpf_link_create_opts' has no member named 'sz' DECLARE_LIBBPF_OPTS(bpf_link_create_opts, lopts, .target_btf_id = 0); ^~~~~~~~~~~~~~~~~~~ config.RrVlTU/libbpftest.c:7:5: error: invalid application of 'sizeof' to incomplete type 'struct bpf_link_create_opts' DECLARE_LIBBPF_OPTS(bpf_link_create_opts, lopts, .target_btf_id = 0); ^~~~~~~~~~~~~~~~~~~ config.RrVlTU/libbpftest.c:7:5: warning: excess elements in struct initializer DECLARE_LIBBPF_OPTS(bpf_link_create_opts, lopts, .target_btf_id = 0); ^~~~~~~~~~~~~~~~~~~ config.RrVlTU/libbpftest.c:7:5: note: (near initialization for '(anonymous)') In file included from config.RrVlTU/libbpftest.c:1: config.RrVlTU/libbpftest.c:7: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.RrVlTU/libbpftest.c:7:71: warning: excess elements in struct initializer DECLARE_LIBBPF_OPTS(bpf_link_create_opts, lopts, .target_btf_id = 0); ^ config.RrVlTU/libbpftest.c:7:71: note: (near initialization for '(anonymous)') config.RrVlTU/libbpftest.c:7:5: error: invalid use of undefined type 'struct bpf_link_create_opts' DECLARE_LIBBPF_OPTS(bpf_link_create_opts, lopts, .target_btf_id = 0); ^~~~~~~~~~~~~~~~~~~ config.RrVlTU/libbpftest.c:7:47: error: storage size of 'lopts' isn't known DECLARE_LIBBPF_OPTS(bpf_link_create_opts, lopts, .target_btf_id = 0); ^~~~~ config.RrVlTU/libbpftest.c:9:12: warning: implicit declaration of function 'bpf_program__name'; did you mean 'bpf_program__size'? [-Wimplicit-function-declaration] (void) bpf_program__name(ptr); ^~~~~~~~~~~~~~~~~ bpf_program__size config.RrVlTU/libbpftest.c:10:12: warning: implicit declaration of function 'bpf_map__set_initial_value'; did you mean 'bpf_map__set_inner_map_fd'? [-Wimplicit-function-declaration] (void) bpf_map__set_initial_value(ptr, ptr, 0); ^~~~~~~~~~~~~~~~~~~~~~~~~~ bpf_map__set_inner_map_fd config.RrVlTU/libbpftest.c:11:12: warning: implicit declaration of function 'bpf_set_link_xdp_fd_opts'; did you mean 'bpf_set_link_xdp_fd'? [-Wimplicit-function-declaration] (void) bpf_set_link_xdp_fd_opts(0, 0, 0, &lopts); ^~~~~~~~~~~~~~~~~~~~~~~~ bpf_set_link_xdp_fd RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.u1oSQH (%build) Bad exit status from /var/tmp/rpm-tmp.u1oSQH (%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 x86_64 --nodeps /builddir/build/SPECS/xdp-tools.spec