Mock Version: 2.8 Mock Version: 2.8 Mock Version: 2.8 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild --nocheck -bs --target loongarch64 --nodeps /builddir/build/SPECS/xdp-tools.spec'], chrootPath='/var/lib/mock/dist-an8.7-build-165762-58758/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=986gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild --nocheck -bs --target loongarch64 --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: loongarch64 Building for target loongarch64 Wrote: /builddir/build/SRPMS/xdp-tools-1.2.1-1.0.1.an8.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild --nocheck -bb --target loongarch64 --nodeps /builddir/build/SPECS/xdp-tools.spec'], chrootPath='/var/lib/mock/dist-an8.7-build-165762-58758/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=986gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild --nocheck -bb --target loongarch64 --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: loongarch64 Building for target loongarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.kJzCWb + 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.jvjlig + umask 022 + cd /builddir/build/BUILD + cd xdp-tools-1.2.1 + export 'CFLAGS=-O2 -g' + CFLAGS='-O2 -g' + 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 13 (from 'clang version 13.0.1 (Anolis 13.0.1-2.0.2.module+an8.7.0+10996+1588f068)') 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.fAySzI/libbpftest.c:3: /usr/include/bpf/btf.h: In function 'btf_is_func': /usr/include/bpf/btf.h:283:24: error: 'BTF_KIND_FUNC' undeclared (first use in this function); did you mean 'BTF_KIND_INT'? return btf_kind(t) == BTF_KIND_FUNC; ^~~~~~~~~~~~~ BTF_KIND_INT /usr/include/bpf/btf.h:283:24: note: each undeclared identifier is reported only once for each function it appears in /usr/include/bpf/btf.h: In function 'btf_is_func_proto': /usr/include/bpf/btf.h:288:24: error: 'BTF_KIND_FUNC_PROTO' undeclared (first use in this function); did you mean 'BTF_KIND_UNION'? return btf_kind(t) == BTF_KIND_FUNC_PROTO; ^~~~~~~~~~~~~~~~~~~ BTF_KIND_UNION /usr/include/bpf/btf.h: In function 'btf_is_var': /usr/include/bpf/btf.h:293:24: error: 'BTF_KIND_VAR' undeclared (first use in this function); did you mean 'BTF_KIND_MAX'? return btf_kind(t) == BTF_KIND_VAR; ^~~~~~~~~~~~ BTF_KIND_MAX /usr/include/bpf/btf.h: In function 'btf_is_datasec': /usr/include/bpf/btf.h:298:24: error: 'BTF_KIND_DATASEC' undeclared (first use in this function); did you mean 'BTF_KIND_CONST'? return btf_kind(t) == BTF_KIND_DATASEC; ^~~~~~~~~~~~~~~~ BTF_KIND_CONST /usr/include/bpf/btf.h: In function 'btf_is_float': /usr/include/bpf/btf.h:303:24: error: 'BTF_KIND_FLOAT' undeclared (first use in this function); did you mean 'BTF_KIND_CONST'? return btf_kind(t) == BTF_KIND_FLOAT; ^~~~~~~~~~~~~~ BTF_KIND_CONST error: Bad exit status from /var/tmp/rpm-tmp.jvjlig (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.jvjlig (%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 --nocheck -bb --target loongarch64 --nodeps /builddir/build/SPECS/xdp-tools.spec