Welcome to the Linux Foundation Forum!

Linux Kernel compile error

I am currently using Fedora 42 with 6.17.11-200.fc42.x86_64 kernel version, and i cloned linux stable and checkout the branch linux-6.18.y. Then i followed Module 7 info, copying my configuration and pasting it as .config file. Then i run make olddefconfig. After that i run make -j20 all and get the following error:

CC arch/x86/boot/compressed/tdx-shared.o make[3]: *** No rule to make target 'kernel.sbat', needed by 'arch/x86/boot/compressed/sbat.o'. Stop. make[3]: *** Waiting for unfinished jobs.... CC arch/x86/boot/compressed/mem.o CC arch/x86/boot/compressed/efi.o make[2]: *** [arch/x86/boot/Makefile:96: arch/x86/boot/compressed/vmlinux] Error 2 make[1]: *** [arch/x86/Makefile:307: bzImage] Error 2 make: *** [Makefile:248: __sub-make] Error 2

Why i get this error, does anyone have an idea?
As this is grep:

Best Answer

  • capoglu
    capoglu Posts: 2
    Answer ✓

    @bkonsela said:
    I ran into the same thing recently.

    From what I can tell, it's a new feature related to EFI. From a mailing list message on the topic, " CONFIG_EFI_SBAT is now automatically set when CONFIG_EFI_SBAT_FILE is set" (ref: https://lkml.org/lkml/2025/5/5/872).

    Setting CONFIG_EFI_SBAT_FILE to an empty string during configuration results in CONFIG_EFI_SBAT being set to n and then being absent from kernel config, and doing that allowed my build to succeed.

    Thanks for the answer, it worked now.

Answers

  • I ran into the same thing recently.

    From what I can tell, it's a new feature related to EFI. From a mailing list message on the topic, " CONFIG_EFI_SBAT is now automatically set when CONFIG_EFI_SBAT_FILE is set" (ref: https://lkml.org/lkml/2025/5/5/872).

    Setting CONFIG_EFI_SBAT_FILE to an empty string during configuration results in CONFIG_EFI_SBAT being set to n and then being absent from kernel config, and doing that allowed my build to succeed.

Categories

Upcoming Training