You are not logged in.

#1 2023-11-07 11:05:47

DEMONPRINCE777
Member
Registered: 2023-10-23
Posts: 28

[Solved]custom kernel make errors

so I am trying to make an custom kernel and I configured everything like the .config and patchs but i keep getting an error when i run make I tried redownloading the tar file I tried doing it though the pkg way but I ran into different issues.The error in make is

arch/x86/kernel/cpu/bugs.c: In function ‘srso_select_mitigation’:
arch/x86/kernel/cpu/bugs.c:2416:66: error: implicit declaration of function ‘cpu_has_ibpb_brtype_microcode’ [-Werror=implicit-function-declaration]
 2416 |         has_microcode = boot_cpu_has(X86_FEATURE_IBPB_BRTYPE) || cpu_has_ibpb_brtype_microcode();
      |                                                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[5]: *** [scripts/Makefile.build:243: arch/x86/kernel/cpu/bugs.o] Error 1
make[4]: *** [scripts/Makefile.build:480: arch/x86/kernel/cpu] Error 2
make[3]: *** [scripts/Makefile.build:480: arch/x86/kernel] Error 2
make[2]: *** [scripts/Makefile.build:480: arch/x86] Error 2
make[1]: *** [/home/demonprince/kernelbuild/linux-6.5.10/Makefile:2032: .] Error 2
make: *** [Makefile:234: __sub-make] Error 2 

Last edited by DEMONPRINCE777 (2023-11-08 07:03:17)

Offline

#2 2023-11-07 12:04:35

loqs
Member
Registered: 2014-03-06
Posts: 17,505

Re: [Solved]custom kernel make errors

DEMONPRINCE777 wrote:

so I am trying to make an custom kernel and I configured everything like the .config and patchs but i keep getting error when i run make I tried redownloading the tar file I tried doing it though the pkg way but I run different issues.The error in make

What is the base kernel you are trying to build?  What is the .config you are using?  What patches are being applied?  What was the issue when you used the PKGBUILD?

Offline

#3 2023-11-07 18:11:44

DEMONPRINCE777
Member
Registered: 2023-10-23
Posts: 28

Re: [Solved]custom kernel make errors

the kernel is linux 6.5.10. I made my own with menuconfig. ummm i used a lot patchs though there are from linux hardened zen xenmod and clear linux soo . I coundnt really understand how it worked and messed stuff up in the PKGBUILD .

Last edited by DEMONPRINCE777 (2023-11-07 18:18:44)

Offline

#4 2023-11-07 18:22:15

loqs
Member
Registered: 2014-03-06
Posts: 17,505

Re: [Solved]custom kernel make errors

Have you tried reducing the number of changes?  Such as 6.5.10 unpatched with your config?  6.5.10 with Arch's 6.5.9 config?  The Arch linux PKGBUILD from 6.5.9 with your config in a clean chroot?

Offline

#5 2023-11-08 07:00:59

DEMONPRINCE777
Member
Registered: 2023-10-23
Posts: 28

Re: [Solved]custom kernel make errors

I managed to fix the problem by removing all the patches expect for linux hardened and zen all the others just casued problems.

Thank you very much for your help because of you I managd to fix the problem

Offline

Board footer

Powered by FluxBB