You are not logged in.

#1 2023-04-29 22:37:59

Vernox
Member
Registered: 2020-10-25
Posts: 9

[SOLVED] Compiling 6.3 kernel fails (testing)

Hello. I spent the day trying to compile kernel 6.3, but without any luck.

In the it always ends up failing like the following:

  CC [M]  drivers/infiniband/hw/hfi1/vnic_sdma.o
  CC [M]  drivers/infiniband/hw/hfi1/debugfs.o
  LD [M]  drivers/infiniband/hw/hfi1/hfi1.o
  AR      built-in.a
  AR      vmlinux.a
  LD      vmlinux.o
vmlinux.o: warning: objtool: hyperv_init+0x42f: unreachable instruction
  OBJCOPY modules.builtin.modinfo
  GEN     modules.builtin
  MODPOST Module.symvers
  CC      .vmlinux.export.o
  UPD     include/generated/utsversion.h
  CC      init/version-timestamp.o
  LD      .tmp_vmlinux.btf

Sphinx parallel build error:
OSError: [Errno 22] Invalid argument
  BTF     .btf.vmlinux.bin.o
make[1]: *** [Documentation/Makefile:96: htmldocs] Error 2
make: *** [Makefile:1816: htmldocs] Error 2
make: *** Waiting for unfinished jobs....
btf_encoder__encode: btf__dedup failed!
Failed to encode BTF
  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      vmlinux
  BTFIDS  vmlinux
libbpf: failed to find '.BTF' ELF section in vmlinux
FAILED: load BTF from vmlinux: No data available
make[1]: *** [scripts/Makefile.vmlinux:35: vmlinux] Error 255
make[1]: *** Deleting file 'vmlinux'
make: *** [Makefile:1249: vmlinux] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

Using the following: PKGBUILD.
What am I missing, is the upstream not ready for building yet?

Building from 6.2.13.
All packages up-to-date.

Last edited by Vernox (2023-04-29 23:59:27)

Offline

#2 2023-04-29 22:53:21

loqs
Member
Registered: 2014-03-06
Posts: 15,982

Re: [SOLVED] Compiling 6.3 kernel fails (testing)

What if you build it in a clean chroot using  `testing-x86_64-build` so pahole 1:1.25-3 from testing is used?

Offline

#3 2023-04-29 23:59:08

Vernox
Member
Registered: 2020-10-25
Posts: 9

Re: [SOLVED] Compiling 6.3 kernel fails (testing)

loqs wrote:

What if you build it in a clean chroot using  `testing-x86_64-build` so pahole 1:1.25-3 from testing is used?

Wow that really did the trick.
Thank you so much, I totally forgot that there may be other updates in testing that could fix this. <3

Offline

#4 2023-05-03 07:45:07

zerophase
Member
Registered: 2015-09-03
Posts: 218

Re: [SOLVED] Compiling 6.3 kernel fails (testing)

Are any other packages required?

I installed kmod, mkinitcpio, and pahole 1.25-4 for my chroot, and still received the above error.

Offline

Board footer

Powered by FluxBB