Skip to content

Fails to build on Fedora 42 #854

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 task done
Naros opened this issue May 10, 2025 · 4 comments
Open
1 task done

Fails to build on Fedora 42 #854

Naros opened this issue May 10, 2025 · 4 comments

Comments

@Naros
Copy link

Naros commented May 10, 2025

NVIDIA Open GPU Kernel Modules Version

e00332b

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.

  • I am running on a stable kernel release.

Build Command

make modules -j$(nproc)

Terminal output/Build Log

build.log

More Info

No response

@ptr1337
Copy link

ptr1337 commented May 10, 2025

This needs a patch for GCC15 - rpmfusion does already provide this. You maybe want to use the rpmfusion packages, till NVIDIA fixes this, see:
rpmfusion/nvidia-kmod@16eebfc

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

@zcobol
Copy link

zcobol commented May 12, 2025

The easiest way to install from source, until an official fix, is as explained in #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.

@njgrisafi
Copy link

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.

@x5f3759df
Copy link

x5f3759df commented May 25, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants