On Sat, Oct 15, 2022 at 06:48:03PM +0200, Philip Müller wrote: > Hi all, > > I just got the following error for 5.10.148 and 5.19.16 when compiling with > pahole 1.24 on CONFIG_DEBUG_INFO_BTF=y: > > BTFIDS vmlinux > FAILED: load BTF from vmlinux: Invalid argument > make: *** [Makefile:1168: vmlinux] Error 255 > make: *** Deleting file 'vmlinux' > > similar to: > https://lore.kernel.org/bpf/20220825171620.cioobudss6ovyrkc@xxxxxxxxxxxx/t/ > > For 5.19 I applied the following patch: > https://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git/plain/releases/5.15.66/kbuild-add-skip_encoding_btf_enum64-option-to-pahole.patch > > I wonder what is needed to get 5.10 kernel series compiled and if 5.19 > really doesn't support enum64. hi, thanks for the report, I think this is same issue as discussed in here: https://lore.kernel.org/bpf/Y02Yv%2FubuCtVhtZk@dev-arch.thelio-3990X/ I'll send 5.10 backport and there's already fix for 5.19 on the list: https://lore.kernel.org/bpf/20220916171234.841556-1-yakoyoku@xxxxxxxxx/ thanks jirka