On Mon, Jan 11, 2021 at 11:31 PM Jiri Olsa <jolsa@xxxxxxxxxx> 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 > I switched to LLVM v12 from <apt.llvm.org> and saw the same FAILED line. The generated vmlinux file is cleaned on failure. + 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 + on_exit + [ 255 -ne 0 ] + cleanup + rm -f .btf.vmlinux.bin.o + rm -f .tmp_System.map + rm -f .tmp_initcalls.lds + rm -f .tmp_symversions.lds + rm -f .tmp_vmlinux.btf .tmp_vmlinux.kallsyms1 .tmp_vmlinux.kallsyms1.S .tmp_vmlinux.kallsyms1.o .tmp_vmlinux.kallsyms2 .tmp_vmlinux.kallsyms2.S .tmp_vmlinux.kallsyms 2.o + rm -f System.map + rm -f vmlinux + rm -f vmlinux.o Dunno, how to suppress this. - Sedat - > do you have a verbose build output? I'd think pahole scream first.. > > jirka >