It seems that GENTOO_KERNEL_SELF_PROTECTION_COMMON depends on GCC_PLUGINS, which is unavailable if you run make menuconfig with LLVM=1 and therefore plan to compile the kernel with clang/llvm. Or am I missing something subtle?/usr/src/linux/distro/Kconfig wrote: if GENTOO_KERNEL_SELF_PROTECTION
config GENTOO_KERNEL_SELF_PROTECTION_COMMON
bool "Enable Kernel Self Protection Project Recommendations"
depends on GENTOO_LINUX && !SLAB_MERGE_DEFAULT && !SLUB_TINY && !COMPAT_BRK && !PROC_KCORE && !COMPAT_VDSO && !KEXEC && !HIBERNATION && !LEGACY_PTYS && !X86_X32_ABI && !MODIFY_LDT_SYSCALL && GCC_PLUGINS && !IOMMU_DEFAULT_DMA_LAZY && !IOMMU_DEFAULT_PASSTHROUGH && IOMMU_DEFAULT_DMA_STRICT && SECURITY
...
...
select RANDOMIZE_KSTACK_OFFSET_DEFAULT if HAVE_ARCH_RANDOMIZE_KSTACK_OFFSET && (INIT_STACK_NONE || !CC_IS_CLANG || CLANG_VERSION>=140000)
Maybe the GCC_PLUGIN requirement should be rewritten as ( GCC_PLUGINS || CLANG_VERSION>=140000 ) as in the select example above? I could easily implement this change myself, but it might be a good idea to do this upstream as well.
BTW, enabling all of these selections manually for COMMON and X86_64 makes kernel compilation fail. I'm trying to pinpoint what option exactly is the culprit.

