New comment by pullmoll on void-packages repository https://github.com/void-linux/void-packages/pull/25702#issuecomment-711283867 Comment: I tried removing the `-mgeneral-regs-only` flag and hit another error before linking `vmlinux` when `pahole` is run: ```cc GEN modules.builtin LD .tmp_vmlinux.btf BTF .btf.vmlinux.bin.o PAHOLE: Error: Found symbol of zero size when encoding btf (sym: '__kvm_nvhe_arm64_ssbd_callback_required', cu: 'arch/arm64/kernel/cpu_errata.c'). PAHOLE: Error: Use '-j' or '--force' to ignore such symbols and force emit the btf. scripts/link-vmlinux.sh: line 141: 43837 Segmentation fault LLVM_OBJCOPY=${OBJCOPY} ${PAHOLE} -J ${1} LD .tmp_vmlinux.kallsyms1 KSYM .tmp_vmlinux.kallsyms1.o LD .tmp_vmlinux.kallsyms2 KSYM .tmp_vmlinux.kallsyms2.o LD vmlinux BTFIDS vmlinux FAILED: load BTF from vmlinux: Unknown error -2make: *** [Makefile:1162: vmlinux] Error 255 => ERROR: linux5.9-5.9.1_1: do_build: 'make ARCH=$arch ${_version} ${_cross} ${makejobs} ${_args}' exited with 2 => ERROR: in do_build() at srcpkgs/linux5.9/template:110 ``` Perhaps `${PAHOLE} -J` should be `${PAHOLE} -j`. The manual page `pahole(1)` lists neither of these flags...