Re: Check pahole availibity and BPF support of toolchain before starting a Linux kernel build

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

 



On Mon, Jan 11, 2021 at 02:34:04PM -0800, Tom Stellard wrote:
> On 1/11/21 2:31 PM, Jiri Olsa wrote:
> > On Mon, Jan 11, 2021 at 10:30:22PM +0100, Sedat Dilek wrote:
> > 
> > SNIP
> > 
> > > > > 
> > > > > Building a new Linux-kernel...
> > > > > 
> > > > > - Sedat -
> > > > > 
> > > > > [1] https://git.kernel.org/pub/scm/devel/pahole/pahole.git/
> > > > > [2] https://github.com/ClangBuiltLinux/tc-build/issues/129#issuecomment-758026878
> > > > > [3] https://github.com/ClangBuiltLinux/tc-build/issues/129#issuecomment-758056553
> > > > 
> > > > There are no significant bug fixes between pahole 1.19 and master that
> > > > would solve this problem, so let's try to repro this.
> > > > 
> > > 
> > > You are right pahole fom latest Git does not solve the issue.
> > > 
> > > + info BTFIDS vmlinux
> > > + [  != silent_ ]
> > > + printf   %-7s %s\n BTFIDS vmlinux
> > >   BTFIDS  vmlinux
> > > + ./tools/bpf/resolve_btfids/resolve_btfids vmlinux
> > > FAILED: load BTF from vmlinux: Invalid argument
> > 
> > hm, is there a .BTF section in vmlinux?
> > 
> > is this working over vmlinux:
> >   $ bpftool btf dump file ./vmlinux
> > 
> > do you have a verbose build output? I'd think pahole scream first..
> > 
> 
> It does.  For me, pahole segfaults at scripts/link-vmlinux.sh:131.  This is
> pretty easy for me to reproduce.  I have logs, what other information would
> be helpful?  How about a pahole backtrace?

that'd be great.. I'll try to reproduce, but with the latest clang
it will take me some time

jirka

> 
> -Tom
> 
> > jirka
> > 
> 




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux