Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build error #23

Open
joeytsq opened this issue May 10, 2022 · 0 comments
Open

build error #23

joeytsq opened this issue May 10, 2022 · 0 comments

Comments

@joeytsq
Copy link

joeytsq commented May 10, 2022

this is the building log:
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.PmeERz

  • umask 022
  • cd /root/rpmbuild/BUILD
  • cd /root/rpmbuild/BUILD
  • rm -rf linux-5.10.59
  • /usr/bin/xz -dc /root/rpmbuild/SOURCES/linux-5.10.59.tar.xz
  • /usr/bin/tar -xf -
  • STATUS=0
  • '[' 0 -ne 0 ']'
  • cd linux-5.10.59
  • /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
  • exit 0
    Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.e1Z2zK
  • umask 022
  • cd /root/rpmbuild/BUILD
  • cd linux-5.10.59
  • sed -i 1s/python3/python/ scripts/bpf_helpers_doc.py
  • cd tools/bpf/bpftool/
  • sed -i '/#include <linux/if.h>/d' net.c
  • make

Auto-detecting system features:
... libbfd: [ on ]
... disassembler-four-args: [ OFF ]
... zlib: [ on ]
... libcap: [ OFF ]
... clang-bpf-co-re: [ on ]

CC map_perf_ring.o
CC xlated_dumper.o
CC common.o
CC iter.o
CC btf.o
CC tracelog.o
CC perf.o
CC main.o
CC json_writer.o
CC gen.o

Auto-detecting system features:
... libelf: [ on ]
... zlib: [ on ]
... bpf: [ on ]

make[1]: Entering directory /root/rpmbuild/BUILD/linux-5.10.59/tools/lib/bpf' GEN bpf_helper_defs.h MKDIR staticobjs/ CC staticobjs/libbpf.o CC staticobjs/bpf.o CC staticobjs/nlattr.o CC staticobjs/btf.o CC staticobjs/libbpf_errno.o CC staticobjs/str_error.o CC staticobjs/netlink.o CC staticobjs/bpf_prog_linfo.o CC staticobjs/libbpf_probes.o CC staticobjs/xsk.o CC staticobjs/hashmap.o CC staticobjs/btf_dump.o CC staticobjs/ringbuf.o LD staticobjs/libbpf-in.o LINK libbpf.a make[1]: Leaving directory /root/rpmbuild/BUILD/linux-5.10.59/tools/lib/bpf'
LINK bpftool-bootstrap
GEN vmlinux.h
Error: failed to load BTF from /sys/kernel/btf/vmlinux: Invalid argument
make: *** [vmlinux.h] Error 22

RPM build errors:
error: Bad exit status from /var/tmp/rpm-tmp.e1Z2zK (%build)
Bad exit status from /var/tmp/rpm-tmp.e1Z2zK (%build)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant