Nvidia kernel modules fail to compile against kernel 6.14.1
Log attached
570.133.07-1-for-6.14.1-300.fc42.x86_64.failed.log (624.2 KB)
Exactly same here with same kernel.
It looks like there are multiple compile errors. Who will be the first to find a fix and post a patch here? I’ve got the 570.133.07 source unpacked ready to edit.
Are you using Fedora 42? I think they switched to GCC 15.
See this thread:
If you need a patch let me know
Yes, I have updated from 41 to 42 last week. I can check Monday in the office which GCC it has.
If you have a patch to make it work, let me know and some sort of quick guide how to use the patch would be much appreciated. Currently I just have nvidia drivers from negativo17.org and the kernel 6.14.1, which was promoted to stable yesterday.
Thank you.
If you want to make a patch, that would be great.
-
GCC 15 patchset, to be applied on a clean 570.133.07: 76a24af
-
6.15 Kernel patches kernel-patches/6.15/misc/nvidia at master · CachyOS/kernel-patches · GitHub
The first one should be applied, if your compiler is using GCC 15. The second tree needs be applied, if you are using a 6.15 Kernel.
Looks like negativo17 pushed a new version of kmod-nvidia, I’ve updated it and it does seem to compile ok against 6.14.2
You don’t need to patch, nvidia’s rotten code can be fixed with an export
export CC+=" -std=gnu17"
They reverted this when they built 6.14.1
Thanks! Works great!
Can someone from Nvidia reply. The modifications to the gcc flags didn’t help (I’ve had no problems using gcc 15 before kernel 6.14.1) and I’m wary of installing code from a repo I’m unfamiliar with, or huge patches that are too large to inspect.
I’ve gotten the driver to install using instructions on http://rglinuxtech.com/?p=3301
The advantage of these instructions, for the less trusting among us, is that there is no patch involved. Just install gcc14 (it’s in the F42 repo) and then build and install the modules manually. For those trying this on an unpacked driver tarball already used for some build attempts: don’t forget to clean (or else start by freshly unpacking the driver “.run” file).
Similar error on Fedora 42 with 6.14.2 and 575.51.02 drivers.
Override: install gcc14
export cc=“gcc-14”