Mock Version: 2.15 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/rocky-9-x86_64/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=0uid=1002gid=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 setting SOURCE_DATE_EPOCH=1618531200 Wrote: /builddir/build/SRPMS/xdp-tools-1.1.1-2.el9.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/rocky-9-x86_64/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=0uid=1002gid=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 setting SOURCE_DATE_EPOCH=1618531200 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.rZOnEl + 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 . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.J94wUp + umask 022 + cd /builddir/build/BUILD + cd xdp-tools-1.1.1 + export 'CFLAGS=-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export 'LDFLAGS=-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 ' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 ' + 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 27.1 libbpf support: system v0.4.0 perf_buffer__consume support: yes secure_getenv support: yes + make -j8 V=1 lib make[1]: Entering directory '/builddir/build/BUILD/xdp-tools-1.1.1/lib' util make[2]: Entering directory '/builddir/build/BUILD/xdp-tools-1.1.1/lib/util' gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -Wextra -Werror -DBPF_DIR_MNT=\"/sys/fs/bpf\" -DBPF_OBJECT_PATH=\"/usr/lib64/bpf\" -DMAX_DISPATCHER_ACTIONS=10 -DTOOLS_VERSION=\""1.1.1"\" -DLIBBPF_VERSION=\"0.4.0\" -DHAVE_LIBBPF_PERF_BUFFER__CONSUME -DLIBBPF_DYNAMIC -DHAVE_SECURE_GETENV -std=gnu11 -Wextra -Werror -DBPF_DIR_MNT=\"/sys/fs/bpf\" -DBPF_OBJECT_PATH=\"/usr/lib64/bpf\" -DMAX_DISPATCHER_ACTIONS=10 -DTOOLS_VERSION=\""1.1.1"\" -DLIBBPF_VERSION=\"0.4.0\" -DHAVE_LIBBPF_PERF_BUFFER__CONSUME -DLIBBPF_DYNAMIC -DHAVE_SECURE_GETENV -Wall -I../../headers -c -o params.o params.c gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -Wextra -Werror -DBPF_DIR_MNT=\"/sys/fs/bpf\" -DBPF_OBJECT_PATH=\"/usr/lib64/bpf\" -DMAX_DISPATCHER_ACTIONS=10 -DTOOLS_VERSION=\""1.1.1"\" -DLIBBPF_VERSION=\"0.4.0\" -DHAVE_LIBBPF_PERF_BUFFER__CONSUME -DLIBBPF_DYNAMIC -DHAVE_SECURE_GETENV -std=gnu11 -Wextra -Werror -DBPF_DIR_MNT=\"/sys/fs/bpf\" -DBPF_OBJECT_PATH=\"/usr/lib64/bpf\" -DMAX_DISPATCHER_ACTIONS=10 -DTOOLS_VERSION=\""1.1.1"\" -DLIBBPF_VERSION=\"0.4.0\" -DHAVE_LIBBPF_PERF_BUFFER__CONSUME -DLIBBPF_DYNAMIC -DHAVE_SECURE_GETENV -Wall -I../../headers -c -o logging.o logging.c gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -Wextra -Werror -DBPF_DIR_MNT=\"/sys/fs/bpf\" -DBPF_OBJECT_PATH=\"/usr/lib64/bpf\" -DMAX_DISPATCHER_ACTIONS=10 -DTOOLS_VERSION=\""1.1.1"\" -DLIBBPF_VERSION=\"0.4.0\" -DHAVE_LIBBPF_PERF_BUFFER__CONSUME -DLIBBPF_DYNAMIC -DHAVE_SECURE_GETENV -std=gnu11 -Wextra -Werror -DBPF_DIR_MNT=\"/sys/fs/bpf\" -DBPF_OBJECT_PATH=\"/usr/lib64/bpf\" -DMAX_DISPATCHER_ACTIONS=10 -DTOOLS_VERSION=\""1.1.1"\" -DLIBBPF_VERSION=\"0.4.0\" -DHAVE_LIBBPF_PERF_BUFFER__CONSUME -DLIBBPF_DYNAMIC -DHAVE_SECURE_GETENV -Wall -I../../headers -c -o util.o util.c gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -Wextra -Werror -DBPF_DIR_MNT=\"/sys/fs/bpf\" -DBPF_OBJECT_PATH=\"/usr/lib64/bpf\" -DMAX_DISPATCHER_ACTIONS=10 -DTOOLS_VERSION=\""1.1.1"\" -DLIBBPF_VERSION=\"0.4.0\" -DHAVE_LIBBPF_PERF_BUFFER__CONSUME -DLIBBPF_DYNAMIC -DHAVE_SECURE_GETENV -std=gnu11 -Wextra -Werror -DBPF_DIR_MNT=\"/sys/fs/bpf\" -DBPF_OBJECT_PATH=\"/usr/lib64/bpf\" -DMAX_DISPATCHER_ACTIONS=10 -DTOOLS_VERSION=\""1.1.1"\" -DLIBBPF_VERSION=\"0.4.0\" -DHAVE_LIBBPF_PERF_BUFFER__CONSUME -DLIBBPF_DYNAMIC -DHAVE_SECURE_GETENV -Wall -I../../headers -c -o stats.o stats.c gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -Wextra -Werror -DBPF_DIR_MNT=\"/sys/fs/bpf\" -DBPF_OBJECT_PATH=\"/usr/lib64/bpf\" -DMAX_DISPATCHER_ACTIONS=10 -DTOOLS_VERSION=\""1.1.1"\" -DLIBBPF_VERSION=\"0.4.0\" -DHAVE_LIBBPF_PERF_BUFFER__CONSUME -DLIBBPF_DYNAMIC -DHAVE_SECURE_GETENV -std=gnu11 -Wextra -Werror -DBPF_DIR_MNT=\"/sys/fs/bpf\" -DBPF_OBJECT_PATH=\"/usr/lib64/bpf\" -DMAX_DISPATCHER_ACTIONS=10 -DTOOLS_VERSION=\""1.1.1"\" -DLIBBPF_VERSION=\"0.4.0\" -DHAVE_LIBBPF_PERF_BUFFER__CONSUME -DLIBBPF_DYNAMIC -DHAVE_SECURE_GETENV -Wall -I../../headers -c -o xpcapng.o xpcapng.c make[2]: Leaving directory '/builddir/build/BUILD/xdp-tools-1.1.1/lib/util' libxdp make[2]: Entering directory '/builddir/build/BUILD/xdp-tools-1.1.1/lib/libxdp' mkdir -p ./staticobjs mkdir -p ./sharedobjs m4 -DBPF_DIR_MNT=\"/sys/fs/bpf\" -DBPF_OBJECT_PATH=\"/usr/lib64/bpf\" -DMAX_DISPATCHER_ACTIONS=10 -DTOOLS_VERSION=\""1.1.1"\" -DLIBBPF_VERSION=\"0.4.0\" -DHAVE_LIBBPF_PERF_BUFFER__CONSUME -DLIBBPF_DYNAMIC -DHAVE_SECURE_GETENV xdp-dispatcher.c.in > xdp-dispatcher.c || ( ret=$?; rm -f xdp-dispatcher.c; exit $ret ) sed -e "s|@PREFIX@|/usr/local|" \ -e "s|@LIBDIR@|/usr/lib64|" \ -e "s|@VERSION@|1.1.0|" \ < libxdp.pc.template > libxdp.pc emacs -Q --batch --find-file README.org --eval "(progn (require 'ox-man)(org-man-export-to-man))" gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -Wextra -Werror -DBPF_DIR_MNT=\"/sys/fs/bpf\" -DBPF_OBJECT_PATH=\"/usr/lib64/bpf\" -DMAX_DISPATCHER_ACTIONS=10 -DTOOLS_VERSION=\""1.1.1"\" -DLIBBPF_VERSION=\"0.4.0\" -DHAVE_LIBBPF_PERF_BUFFER__CONSUME -DLIBBPF_DYNAMIC -DHAVE_SECURE_GETENV -std=gnu11 -Wextra -Werror -DBPF_DIR_MNT=\"/sys/fs/bpf\" -DBPF_OBJECT_PATH=\"/usr/lib64/bpf\" -DMAX_DISPATCHER_ACTIONS=10 -DTOOLS_VERSION=\""1.1.1"\" -DLIBBPF_VERSION=\"0.4.0\" -DHAVE_LIBBPF_PERF_BUFFER__CONSUME -DLIBBPF_DYNAMIC -DHAVE_SECURE_GETENV -I../../headers -I../util -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wall -I../../headers -c libxdp.c -o staticobjs/libxdp.o gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -std=gnu11 -Wextra -Werror -DBPF_DIR_MNT=\"/sys/fs/bpf\" -DBPF_OBJECT_PATH=\"/usr/lib64/bpf\" -DMAX_DISPATCHER_ACTIONS=10 -DTOOLS_VERSION=\""1.1.1"\" -DLIBBPF_VERSION=\"0.4.0\" -DHAVE_LIBBPF_PERF_BUFFER__CONSUME -DLIBBPF_DYNAMIC -DHAVE_SECURE_GETENV -std=gnu11 -Wextra -Werror -DBPF_DIR_MNT=\"/sys/fs/bpf\" -DBPF_OBJECT_PATH=\"/usr/lib64/bpf\" -DMAX_DISPATCHER_ACTIONS=10 -DTOOLS_VERSION=\""1.1.1"\" -DLIBBPF_VERSION=\"0.4.0\" -DHAVE_LIBBPF_PERF_BUFFER__CONSUME -DLIBBPF_DYNAMIC -DHAVE_SECURE_GETENV -I../../headers -I../util -fPIC -DSHARED -Wall -I../../headers -c libxdp.c -o sharedobjs/libxdp.o /usr/bin/clang -S \ -target bpf \ -D __BPF_TRACING__ \ -Wno-visibility -DBPF_DIR_MNT=\"/sys/fs/bpf\" -DBPF_OBJECT_PATH=\"/usr/lib64/bpf\" -DMAX_DISPATCHER_ACTIONS=10 -DTOOLS_VERSION=\""1.1.1"\" -DLIBBPF_VERSION=\"0.4.0\" -DHAVE_LIBBPF_PERF_BUFFER__CONSUME -DLIBBPF_DYNAMIC -DHAVE_SECURE_GETENV -I../../headers \ -Wall \ -Wno-unused-value \ -Wno-pointer-sign \ -Wno-compare-distinct-pointer-types \ -Werror \ -O2 -emit-llvm -c -g -o xdp-dispatcher.ll xdp-dispatcher.c In file included from libxdp.c:27: /usr/include/bpf/btf.h: In function 'btf_is_float': /usr/include/bpf/btf.h:303:31: error: 'BTF_KIND_FLOAT' undeclared (first use in this function); did you mean 'BTF_KIND_INT'? 303 | return btf_kind(t) == BTF_KIND_FLOAT; | ^~~~~~~~~~~~~~ | BTF_KIND_INT /usr/include/bpf/btf.h:303:31: note: each undeclared identifier is reported only once for each function it appears in In file included from libxdp.c:27: /usr/include/bpf/btf.h: In function 'btf_is_float': /usr/include/bpf/btf.h:303:31: error: 'BTF_KIND_FLOAT' undeclared (first use in this function); did you mean 'BTF_KIND_INT'? 303 | return btf_kind(t) == BTF_KIND_FLOAT; | ^~~~~~~~~~~~~~ | BTF_KIND_INT /usr/include/bpf/btf.h:303:31: note: each undeclared identifier is reported only once for each function it appears in /usr/bin/llc -march=bpf -filetype=obj -o xdp-dispatcher.o xdp-dispatcher.ll make[2]: *** [Makefile:85: staticobjs/libxdp.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[2]: *** [Makefile:88: sharedobjs/libxdp.o] Error 1 make[2]: Leaving directory '/builddir/build/BUILD/xdp-tools-1.1.1/lib/libxdp' make[1]: Leaving directory '/builddir/build/BUILD/xdp-tools-1.1.1/lib' make[1]: *** [Makefile:10: all] Error 2 make: *** [Makefile:25: lib] Error 2 RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.J94wUp (%build) Bad exit status from /var/tmp/rpm-tmp.J94wUp (%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