F41 kernel 6.12 nvidia driver 560 akmods failed to build

Hi guys,

Noob here. So the current 565 version of nvidia has some visual glitches in certain games so I wanted to downgrade to the rpmfusion 560 package. After installing all the packages the akmods fails to build and i cannot understand the log. Below are all the errors, anyone have any idea whats going wrong?

“grep error: /var/cache/akmods/nvidia/560.35.03-1-for-6.12.5-200.fc41.x86_64.failed.log
error: Bad exit status from /var/tmp/rpm-tmp.Ficsnn (%build)
2024/12/21 16:49:16 akmodsbuild: /tmp/akmodsbuild.qq5f8alU/BUILD/nvidia-kmod-560.35.03-build/nvidia-kmod-560.35.03/_kmod_build_6.12.5-200.fc41.x86_64/nvidia-drm/nvidia-drm-drv.c:212:6: error: ‘const struct drm_mode_config_funcs’ has no member named ‘output_poll_changed’
2024/12/21 16:49:16 akmodsbuild: /tmp/akmodsbuild.qq5f8alU/BUILD/nvidia-kmod-560.35.03-build/nvidia-kmod-560.35.03/_kmod_build_6.12.5-200.fc41.x86_64/nvidia-drm/nvidia-drm-drv.c:212:28: error: initialization of ‘struct drm_atomic_state * (*)(struct drm_device )’ from incompatible pointer type ‘void ()(struct drm_device *)’ [-Wincompatible-pointer-types]
2024/12/21 16:49:16 akmodsbuild: error: Bad exit status from /var/tmp/rpm-tmp.Ficsnn (%build)”

The code would need to be patched to support the 6.12 kernel.

Have you tried that latest 565 drivers? You may have been using the beta 565, now the stable 565 is in rpmfusion (stable according to nvidia).

Ah thanks, than at least I know where the problem is. Already on the latest branch unfortunately, guess I’ll have to wait on nvidia.

I just ran into this problem on my laptop where 560.35.03 works, but 565.77 doesn’t.

I created the patch and the akmod rpm that includes it.

https://cygnusx-1.org/560.35.03-6.12/kernel-612.patch
https://cygnusx-1.org/560.35.03-6.12/akmod-nvidia-560.35.03-1.11.fc41.x86_64.rpm