You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I note that there's a commit fixing that one (ce8d078) but that doesn't seem helpful here, it's in the version used by the master branch of bpftool, which fails to generate the skeleton as well.
I think this is due to old Clang that doesn't know how to produce global variables BTF information. Can you guys try to use newer Clang? Or at least please provide a dump of BTF for your BPF object file (bpftool btf dump file <.bpf.o>). Thanks.
From libbpf/bpftool#77
I have following map:
under v7.0.0 it works, under v7.1.0 and v7.2.0 getting an error:
bpftool gen skeleton build/.gens/xxx/android/x86_64/release/rules/bpf/xxx.bpf.o -d -p
Reproduce error:
On the system there is bpftool v7.0.0 installed:
Get libbpf-bootstrap repo
git clone --recurse-submodules https://github.com/libbpf/libbpf-bootstrap
try to compile for Android via xmake according to the readme file:
works.
Update the bpftool to v7.1.0
git clone --depth 1 --branch v7.1.0 ... && make install
bpftool version
:try again to compile via xmake:
failed.
Seems like its for all .maps not only ringbuf.
Same for
v.7.2.0
The text was updated successfully, but these errors were encountered: