Open C43H66N12O12S2 opened 2 years ago
Clang built kernels aren't really supported, even less so with Nvidia
If anybody else is having this issue, 5.15-rc4 seems to work fine.
I've identified the issue. Disabling retpoline (called something like "Avoid speculative indirect branches in kernel" in Architecture options) causes this. @Tk-Glitch you might want to include this information in either nvidia-all or linux-tkg documentation.
@C43H66N12O12S2 Can you verify that this still is the case with latest DKMS? (i.e. DKMS >= 3.0.2)
@flindeberg I haven't tested it, but I doubt it's fixed. To be clear, I highly doubt this is a Clang issue and it's definitely not a DKMS issue, as I've stated in the OP, normal kernel modules (without DKMS) failed with the same error. This seems to be more of a quirk of the nvidia driver, and it's dependent on one setting in the kernel configuration, disabling that solves it for DKMS/Non-DKMS, Clang and so on.
The reason I've left this issue open is to help anybody else who encountered the same issue. Otherwise, this issue is actually resolved.
Both the DKMS and regular flavor of both the stable branch and vulkan dev branch fails to load with this message:
The very same package works just fine with 5.14.8 TKG (also Clang and LTO).
The regular version building fails with "different compilers" error, even though both the kernel and the module is being built by the exact same compiler and version, so maybe that's a clue?
I'm happy to provide any additional information required.