You are not logged in.
I have a custom kernel I made by modifying the linux pkgbuild. the source is here https://gitlab.com/Lunarequest/pkgs/-/t … inux-clang I am currently running into issues with the build where objtool has warning and then later libbpf complains it can't find certain headers and doesn't work. This is the following error
vmlinux.o: warning: objtool: set_ftrace_ops_ro+0x4d: relocation to !ENDBR: relocate_range+0x7c6
OBJCOPY modules.builtin.modinfo
GEN modules.builtin
MODPOST Module.symvers
UPD include/generated/utsversion.h
CC init/version-timestamp.o
LD .tmp_vmlinux.btf
BTF .btf.vmlinux.bin.o
libbpf: BTF header not found
pahole: .tmp_vmlinux.btf: Invalid argument
LD .tmp_vmlinux.kallsyms1
NM .tmp_vmlinux.kallsyms1.syms
KSYMS .tmp_vmlinux.kallsyms1.S
AS .tmp_vmlinux.kallsyms1.S
LD .tmp_vmlinux.kallsyms2
NM .tmp_vmlinux.kallsyms2.syms
KSYMS .tmp_vmlinux.kallsyms2.S
AS .tmp_vmlinux.kallsyms2.S
LD .tmp_vmlinux.kallsyms3
NM .tmp_vmlinux.kallsyms3.syms
KSYMS .tmp_vmlinux.kallsyms3.S
AS .tmp_vmlinux.kallsyms3.S
LD vmlinux
BTFIDS vmlinux
FAILED: load BTF from vmlinux: Invalid argument
I tried searching the error but have not found anything related to my error, only similar errors. I have tried using make clean and resetting the kernel sources, as well as building without any of the patches, which results in the same error. I am using Clang-git+LLVM-git from mesa-git for CFI. I have also tried using pahole-git but that results in the same error.
Offline
Hi @lunarequest, do you mind filing an issue at https://github.com/ClangBuiltLinux/linux/issues?
Any issue compiling the kernel with llvm should be reported at https://github.com/ClangBuiltLinux/linux/issues.
You can also find more ways to contact us (such as IRC and public meetings) at https://clangbuiltlinux.github.io/.
Offline
sure!
Offline