You are not logged in.

#1 2023-03-10 14:37:08

lunarequest
Member
Registered: 2023-03-10
Posts: 3

Trying to build custom kernel results in weird error's

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

#2 2023-03-29 17:21:52

ndesaulniersGOOG
Member
Registered: 2023-03-29
Posts: 1

Re: Trying to build custom kernel results in weird error's

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

#3 2023-03-30 06:07:51

lunarequest
Member
Registered: 2023-03-10
Posts: 3

Re: Trying to build custom kernel results in weird error's

sure!

Offline

Board footer

Powered by FluxBB