On Wed, 7 Jul 2021 10:04:07 -0700
stan via kernel <kernel(a)lists.fedoraproject.org> wrote:
On Wed, 7 Jul 2021 10:21:01 -0500
Justin Forbes <jmforbes(a)linuxtx.org> wrote:
>
> bpftool is a builreq, the failure there has to do with where you are
> building it. You need bpftool from 5.13 to build a 5.14 snapshot.
> The error is unclear, but that is the solution. This is actually a
> very useful bit in that we will use that vmlinux.h to build
> kernel-tools for Fedora. It is built in kernel for ELN. As I
> rebase stable Fedora to 5.13, it will require a prebuild of
> kernel-tools for 5.13 followed by the kernel build.
I have bpftool-5.13.0-1.fc35.x86_64 installed, and that seems to have
satisfied the buildrequire. I am also building perf, tools,
headers, and devel, so that everything is in sync with the custom
kernel. That used to work fine as late as 5.10 kernels. So, my
takeaway is that this has changed, and I now need to enable the build
of vmlinux.h.
The error message I received was that bpftool could not find BFT. I
infer from your response that turning on the build of bpf will remedy
that.
It doesn't. Here is the output of a compile with bpf turned on
everywhere. It shows the creation of the link that causes the problem
of an upackaged file being packaged, and then the failure to build
vmlinux.h using bpftool.
+ cp certs/signing_key.pem certs/signing_key.pem.sign
+ cp certs/signing_key.x509 certs/signing_key.x509.sign
+ mkdir -p
/home/stan/rpmbuild/BUILDROOT/kernel-5.14.0-0.rc0.20210706git79160a603bdb.11.20210706.fc35.x86_64/usr/src/kernels
+ mv
/home/stan/rpmbuild/BUILDROOT/kernel-5.14.0-0.rc0.20210706git79160a603bdb.11.20210706.fc35.x86_64/lib/modules/5.14.0-0.rc0.20210706git79160a603bdb.11.20210706.fc35.x86_64/build
/home/stan/rpmbuild/BUILDROOT/kernel-5.14.0-0.rc0.20210706git79160a603bdb.11.20210706.fc35.x86_64//usr/src/kernels/5.14.0-0.rc0.20210706git79160a603bdb.11.20210706.fc35.x86_64
+ ln -sf /usr/src/kernels/5.14.0-0.rc0.20210706git79160a603bdb.11.20210706.fc35.x86_64
/home/stan/rpmbuild/BUILDROOT/kernel-5.14.0-0.rc0.20210706git79160a603bdb.11.20210706.fc35.x86_64/lib/modules/5.14.0-0.rc0.20210706git79160a603bdb.11.20210706.fc35.x86_64/build
+ bpftool btf dump file vmlinux format c
Error: failed to load BTF from vmlinux: No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.Zt6DVC (%build)
Bad exit status from /var/tmp/rpm-tmp.Zt6DVC (%build)
I have debug builds turned off. Are they required for bpftool to work?