Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Unsupported Software
  • Search

Cannot compile the CachyOS kernel

This forum covers all Gentoo-related software not officially supported by Gentoo. Ebuilds/software posted here might harm the health and stability of your system(s), and are not supported by Gentoo developers. Bugs/errors caused by ebuilds from overlays.gentoo.org are covered by this forum, too.
Post Reply
Advanced search
6 posts • Page 1 of 1
Author
Message
Muldakmens
n00b
n00b
Posts: 2
Joined: Thu Dec 12, 2024 3:32 pm

Cannot compile the CachyOS kernel

  • Quote

Post by Muldakmens » Thu Dec 12, 2024 3:36 pm

Hi,

This is my first time ever manually configuring and compiling the kernel, and I seem to get in trouble due to unwanted secure boot features.

Code: Select all

koknese /usr/src/linux # make -j9 && make modules_install && make install
mkdir -p /usr/src/linux-6.12.4-cachyos-6.12.4/tools/objtool && make O=/usr/src/linux-6.12.4-cachyos-6.12.4 subdir=tools/objtool --no-print-directory -C objtool
mkdir -p /usr/src/linux-6.12.4-cachyos-6.12.4/tools/bpf/resolve_btfids && make O=/usr/src/linux-6.12.4-cachyos-6.12.4 subdir=tools/bpf/resolve_btfids --no-print-directory -C bpf/resolve_btfids
  INSTALL libsubcmd_headers
  CALL    scripts/checksyscalls.sh
  INSTALL libsubcmd_headers
make[3]: *** No rule to make target '/var/tmp/portage/sys-kernel/gentoo-kernel-6.12.3/temp/kernel_key.pem', needed by 'certs/signing_key.x509'.  Stop.
make[2]: *** [scripts/Makefile.build:478: certs] Error 2
make[2]: *** Waiting for unfinished jobs....
  CHK     kernel/kheaders_data.tar.xz
make[1]: *** [/usr/src/linux-6.12.4-cachyos-6.12.4/Makefile:1948: .] Error 2
make: *** [Makefile:224: __sub-make] Error 2
I have also disabled this in the kernel config

Code: Select all

-*-   Module signature verification                                          
  │ │       [ ]     Require modules to be validly signed                                 
  │ │       [ ]     Automatically sign all modules    
yet, to no avail. Is there a way I can disable Secure Boot related features and continue compiling?
Top
GDH-gentoo
Advocate
Advocate
User avatar
Posts: 2110
Joined: Sat Jul 20, 2019 7:02 pm
Location: South America

  • Quote

Post by GDH-gentoo » Thu Dec 12, 2024 4:54 pm

This looks like something related to CONFIG_SYSTEM_TRUSTED_KEYRING and CONFIG_MODULE_SIG_KEY; it will be easier to help you if you put the .config file in a pastebin site and post a link.
NeddySeagoon wrote:I'm not a witch, I'm a retired electronics engineer :)
Ionen wrote:As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though :)
Top
fedeliallalinea
Administrator
Administrator
User avatar
Posts: 31977
Joined: Sat Mar 08, 2003 11:15 pm
Location: here
Contact:
Contact fedeliallalinea
Website

  • Quote

Post by fedeliallalinea » Thu Dec 12, 2024 6:02 pm

Moved from Kernel & Hardware to Unsupported Software.
Questions are guaranteed in life; Answers aren't.

"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968
Top
Muldakmens
n00b
n00b
Posts: 2
Joined: Thu Dec 12, 2024 3:32 pm

  • Quote

Post by Muldakmens » Thu Dec 12, 2024 7:32 pm

GDH-gentoo wrote:This looks like something related to CONFIG_SYSTEM_TRUSTED_KEYRING and CONFIG_MODULE_SIG_KEY; it will be easier to help you if you put the .config file in a pastebin site and post a link.
https://0x0.st/XF8w.old

I have tried setting CONFIG_MODULE_SIG_KEY to n in the config file, however to no avail.
Top
GDH-gentoo
Advocate
Advocate
User avatar
Posts: 2110
Joined: Sat Jul 20, 2019 7:02 pm
Location: South America

  • Quote

Post by GDH-gentoo » Thu Dec 12, 2024 9:36 pm

First, just in case: don't edit the .config file. Modify the kernel's configuration by invoking make with a suitable configuration target, such as make menuconfig or make nconfig.

Second: this kernel has enabled at least one option that will require you to provide suitable signing keys: CONFIG_IMA_APPRAISE_MODSIG ("Support module-style signatures for appraisal" in the "Security options" menu).
NeddySeagoon wrote:I'm not a witch, I'm a retired electronics engineer :)
Ionen wrote:As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though :)
Top
pietinger
Moderator
Moderator
Posts: 6608
Joined: Tue Oct 17, 2006 5:11 pm
Location: Bavaria

  • Quote

Post by pietinger » Fri Dec 13, 2024 2:22 am

... third: Maybe you want read this article - especially the chapter "Precursors":
https://wiki.gentoo.org/wiki/User:Pieti ... figuration
https://wiki.gentoo.org/wiki/User:Pietinger --> https://wiki.gentoo.org/wiki/User:Pieti ... _at_Gentoo
Top
Post Reply

6 posts • Page 1 of 1

Return to “Unsupported Software”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy