Mock Version: 3.5 Mock Version: 3.5 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target loongarch64 --nodeps /builddir/build/SPECS/nettrace.spec'], chrootPath='/home/lib/mock/dist-ocs23-loongarch64-build-226481-16850/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=981gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target loongarch64 --nodeps /builddir/build/SPECS/nettrace.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/nettrace-1.2.9-1.ocs23.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/nettrace.spec'], chrootPath='/home/lib/mock/dist-ocs23-loongarch64-build-226481-16850/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=981gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/nettrace.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.SXilvq + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf nettrace-1.2.9 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/nettrace-1.2.9.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd nettrace-1.2.9 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/remove-static-compile-flag.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.fpnEVq + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/nettrace-1.2.9-1.ocs23.loongarch64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/nettrace-1.2.9-1.ocs23.loongarch64 ++ dirname /builddir/build/BUILDROOT/nettrace-1.2.9-1.ocs23.loongarch64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/nettrace-1.2.9-1.ocs23.loongarch64 + cd nettrace-1.2.9 + rm -rf /builddir/build/BUILDROOT/nettrace-1.2.9-1.ocs23.loongarch64 + make PREFIX=/builddir/build/BUILDROOT/nettrace-1.2.9-1.ocs23.loongarch64 install make -C src install make[1]: Entering directory '/builddir/build/BUILD/nettrace-1.2.9/src' python3 gen_trace.py > trace_group.c python3 gen_trace.py probe > progs/kprobe_trace.h ln -s ../shared/bpf/vmlinux.h kheaders.h clang -O2 -c -S -Wall -fno-asynchronous-unwind-tables \ -Wno-incompatible-pointer-types-discards-qualifiers \ progs/kprobe.c -emit-llvm -Wno-unknown-attributes -I./ -I/builddir/build/BUILD/nettrace-1.2.9/shared/bpf/ -g -DBPF_FEAT_STACK_TRACE -Wno-unused-function -Wno-compare-distinct-pointer-types -Wuninitialized -D__TARGET_ARCH_loongarch -DBPF_NO_PRESERVE_ACCESS_INDEX -target bpf -Xclang \ -disable-llvm-passes -o - | \ opt -O2 -mtriple=bpf-pc-linux | \ llvm-dis | \ llc -march=bpf -filetype=obj -o progs/kprobe.o In file included from progs/kprobe.c:88: progs/core.c:229:19: error: Must specify a BPF target arch via __TARGET_ARCH_xxx 229 | DEFINE_ALL_PROBES(KPROBE_DEFAULT, TP_DEFAULT, FNC) | ^ progs/core.c:229:19: error: Must specify a BPF target arch via __TARGET_ARCH_xxx progs/core.c:229:19: error: Must specify a BPF target arch via __TARGET_ARCH_xxx progs/core.c:229:19: error: Must specify a BPF target arch via __TARGET_ARCH_xxx progs/core.c:229:19: error: Must specify a BPF target arch via __TARGET_ARCH_xxx progs/core.c:229:19: error: Must specify a BPF target arch via __TARGET_ARCH_xxx progs/core.c:229:19: error: Must specify a BPF target arch via __TARGET_ARCH_xxx progs/core.c:229:19: error: Must specify a BPF target arch via __TARGET_ARCH_xxx progs/core.c:229:19: error: Must specify a BPF target arch via __TARGET_ARCH_xxx progs/core.c:229:19: error: Must specify a BPF target arch via __TARGET_ARCH_xxx progs/core.c:229:19: error: Must specify a BPF target arch via __TARGET_ARCH_xxx progs/core.c:229:19: error: Must specify a BPF target arch via __TARGET_ARCH_xxx progs/core.c:229:19: error: Must specify a BPF target arch via __TARGET_ARCH_xxx progs/core.c:229:19: error: Must specify a BPF target arch via __TARGET_ARCH_xxx progs/core.c:229:19: error: Must specify a BPF target arch via __TARGET_ARCH_xxx progs/core.c:229:19: error: Must specify a BPF target arch via __TARGET_ARCH_xxx progs/core.c:229:19: error: Must specify a BPF target arch via __TARGET_ARCH_xxx progs/core.c:229:19: error: Must specify a BPF target arch via __TARGET_ARCH_xxx progs/core.c:229:19: error: Must specify a BPF target arch via __TARGET_ARCH_xxx fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. make[1]: *** [../common.mk:94: progs/kprobe.o] Error 1 make[1]: Leaving directory '/builddir/build/BUILD/nettrace-1.2.9/src' make: *** [Makefile:33: install] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.fpnEVq (%install) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.fpnEVq (%install) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/nettrace.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.10/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 --noclean --target loongarch64 --nodeps /builddir/build/SPECS/nettrace.spec