open-gpu-kernel-modules
open-gpu-kernel-modules copied to clipboard
Fails to build on Fedora 42
NVIDIA Open GPU Kernel Modules Version
e00332b0
Operating System and Version
Fedora 42
Kernel Release
6.14.5-300.fc42.x86_64
Please confirm you are running a stable release kernel (e.g. not a -rc). We do not accept bug reports for unreleased kernels.
- [x] I am running on a stable kernel release.
Build Command
make modules -j$(nproc)
Terminal output/Build Log
More Info
No response
This needs a patch for GCC15 - rpmfusion does already provide this. You maybe want to use the rpmfusion packages, till NVIDIA fixes this, see: https://github.com/rpmfusion/nvidia-kmod/commit/16eebfcd3ddfcdff73d02e7cba461faf435efa15
Or standalone patch, which you can apply before running the .run: https://github.com/CachyOS/CachyOS-PKGBUILDS/blob/master/nvidia/nvidia-utils/0008-kbuild-Add-workaround-for-GCC-15-Compilation.patch
The easiest way to install from source, until an official fix, is as explained in https://github.com/NVIDIA/open-gpu-kernel-modules/issues/827
Just modify two lines in kernel-open/common/inc/conftest.h by adding -std=gnu17 compiler flag and it builds on FC42 with GCC15 also.
Or go the rpmfusion option.
Or go the rpmfusion option.
Can you provide the best way to do this?
I followed the kernel open guide here https://rpmfusion.org/Howto/NVIDIA#Kernel_Open but having issues finding the repository.
You can use rawhide repo to install latest beta driver
sudo dnf install rpmfusion-nonfree-release-rawhide
sudo dnf --enable-repo=rpmfusion-nonfree-rawhide update *\nvidia\*
user@fedora ~> rpm -qa | grep nvidia
libva-nvidia-driver-0.0.13^20250419gitc2860cc-1.fc42.x86_64
libva-nvidia-driver-0.0.13^20250419gitc2860cc-1.fc42.i686
kmod-nvidia-open-6.14.6-300.fc42.x86_64-570.144-1.fc42.x86_64
nvidia-gpu-firmware-20250509-1.fc42.noarch
xorg-x11-drv-nvidia-cuda-libs-575.51.02-2.fc43.x86_64
nvidia-modprobe-575.51.02-1.fc43.x86_64
nvidia-persistenced-575.51.02-1.fc43.x86_64
xorg-x11-drv-nvidia-kmodsrc-575.51.02-2.fc43.x86_64
xorg-x11-drv-nvidia-libs-575.51.02-2.fc43.i686
xorg-x11-drv-nvidia-libs-575.51.02-2.fc43.x86_64
nvidia-settings-575.51.02-1.fc43.x86_64
xorg-x11-drv-nvidia-575.51.02-2.fc43.x86_64
akmod-nvidia-575.51.02-4.fc43.x86_64
xorg-x11-drv-nvidia-cuda-libs-575.51.02-2.fc43.i686
xorg-x11-drv-nvidia-cuda-575.51.02-2.fc43.x86_64
xorg-x11-drv-nvidia-power-575.51.02-2.fc43.x86_64
kmod-nvidia-6.14.6-300.fc42.x86_64-575.51.02-4.fc42.x86_64
Last time I tried to use rpmfusion, it did not support the 50-series cards.