Re: kernel 5.14 spec file problems, one solved, one unresolved, help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jul 7, 2021 at 2:40 PM stan via kernel
<kernel@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
>
> On Wed, 7 Jul 2021 10:04:07 -0700
> stan via kernel <kernel@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
>
> > On Wed, 7 Jul 2021 10:21:01 -0500
> > Justin Forbes <jmforbes@xxxxxxxxxxx> 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?

No, BTF debuginfo is set on regular kernels as well. Are you building
this on a rawhide system? My build/test system here is F34, but with
bpftool-5.13.0-1.fc35.x86_64 (rebuilt against F34) it seems to pass
fine on this.  I got the same error that you did when I was running an
older version of kernel-tools.  In your particular user case though,
you can comment out that line. The vmlinux.h created there is only
used in 2 instances, where kernel-tools is built separately from the
kernel, and when cross compiling the kernel (because tools have to be
built native).

Justin
_______________________________________________
kernel mailing list -- kernel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to kernel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/kernel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[Index of Archives]     [Fedora General Discussion]     [Older Fedora Users Archive]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [USB]     [Asterisk PBX]

  Powered by Linux