Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
kernel built with LLVM panics
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Shadow_Fury
Apprentice
Apprentice


Joined: 20 Apr 2021
Posts: 171
Location: 11.435765792823453, 143.05926743686274

PostPosted: Mon Oct 21, 2024 8:30 pm    Post subject: kernel built with LLVM panics Reply with quote

i tried building my kernel with LLVM, and am having issues with it panicking.

when built with LLVM-19, it occasionally seems to panic at random during boot.

when built with LLVM-18, it seems to boot fine (though, i've only tried once).

Both, however, panic when i try to modprobe the nvidia driver module (both the binary one, and when it is built with kernel-open)

none of the above issues occur with a GCC kernel.

LLVM config (tried with and without LTO)
LLVM 19 build command:
Code:

LLVM=1 make -j12

LLVM 18 build command:
Code:

PATH=/usr/lib/llvm/18/bin:$PATH make -j12 LLVM=1 LD=/usr/lib/llvm/19/bin/ld.lld


GCC config

NOTE: yes, i know that noveau is built as a module. this is following this:
Code:

DRM_TTM_HELPER
Cannot be directly selected in the kernel's config menus, and may need
   selection of a DRM device even if unused, e.g. CONFIG_DRM_AMDGPU=m or
   DRM_QXL=m, DRM_NOUVEAU=m also acceptable if a module and *not* built-in."
as displayed by the package ebuild when it was disabled.

any help is appreciated.

-S
p.s. if anyone needs extra logs, please let me know (and, preferably, how to obtain said logs)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum