Akmod fails for Fedora 41, 6.14 kernel and nvidia 470xx

I just upgraded to Linux 6.14 (still on Fedora 41), and akmod failed with:

2025/04/26 16:39:21 akmodsbuild: nvidia-drm/nvidia-drm-drv.c:879:6: error: ‘struct drm_driver’ has no member named ‘date’
2025/04/26 16:39:21 akmodsbuild:   879 |     .date                   = "20160202",
2025/04/26 16:39:21 akmodsbuild:       |      ^~~~
2025/04/26 16:39:21 akmodsbuild: nvidia-drm/nvidia-drm-drv.c:879:31: error: initialization of ‘unsigned int’ from ‘char *’ makes integer from pointer without a cast [-Wint-conversion]
2025/04/26 16:39:21 akmodsbuild:   879 |     .date                   = "20160202",
2025/04/26 16:39:21 akmodsbuild:       |                               ^~~~~~~~~~
2025/04/26 16:39:21 akmodsbuild: nvidia-drm/nvidia-drm-drv.c:879:31: note: (near initialization for ‘nv_drm_driver.driver_features’)
2025/04/26 16:39:21 akmodsbuild: nvidia-drm/nvidia-drm-drv.c:879:31: error: initializer element is not computable at load time
2025/04/26 16:39:21 akmodsbuild: nvidia-drm/nvidia-drm-drv.c:879:31: note: (near initialization for ‘nv_drm_driver.driver_features’)
2025/04/26 16:39:21 akmodsbuild: make[4]: *** [/usr/src/kernels/6.14.3-200.fc41.x86_64/scripts/Makefile.build:207: nvidia-drm/nvidia-drm-drv.o] Error 1
2025/04/26 16:39:21 akmodsbuild: make[4]: *** Waiting for unfinished jobs....
2025/04/26 16:39:21 akmodsbuild: make[3]: *** [/usr/src/kernels/6.14.3-200.fc41.x86_64/Makefile:2037: .] Error 2
2025/04/26 16:39:21 akmodsbuild: make[2]: *** [/usr/src/kernels/6.14.3-200.fc41.x86_64/Makefile:263: __sub-make] Error 2
2025/04/26 16:39:21 akmodsbuild: make[2]: Leaving directory '/tmp/akmodsbuild.KN7PHGDA/BUILD/nvidia-470xx-kmod-470.256.02-build/nvidia-470xx-kmod-470.256.02/_kmod_build_6.14.3-200.fc41.x86_64'
2025/04/26 16:39:21 akmodsbuild: make[1]: *** [Makefile:263: __sub-make] Error 2
2025/04/26 16:39:21 akmodsbuild: make[1]: Leaving directory '/usr/src/kernels/6.14.3-200.fc41.x86_64'
2025/04/26 16:39:21 akmodsbuild: make: *** [Makefile:80: modules] Error 2
2025/04/26 16:39:21 akmodsbuild: erreur : Mauvais statut de sortie pour /var/tmp/rpm-tmp.nPnlfe (%build)
2025/04/26 16:39:21 akmodsbuild: 
2025/04/26 16:39:21 akmodsbuild: Erreurs de compilation RPM :
2025/04/26 16:39:21 akmodsbuild:     Mauvais statut de sortie pour /var/tmp/rpm-tmp.nPnlfe (%build)
2025/04/26 16:39:21 akmodsbuild: 
2025/04/26 16:39:21 akmods: Building rpms failed; see /var/cache/akmods/nvidia-470xx/470.256.02-7-for-6.14.3-200.fc41.x86_64.failed.log for details

Any other person encountering this?

Hey Alex,

Unfortunately, I think there are known issues with older Nvidia drivers on 6.12, 6.13, and now 6.14. I think Nvidia has fixed these issues in 570.xx or so, but if you are stuck on 470.xx try taking a look at this reddit thread that outlines some patches you might be able to use to fix the issue:

Note specifically the one for 6.14 that addresses the .date issue.

If you’ve installed via RPM fusion, I’d need to defer to Leigh or someone else in the know on whether there’s any easy quick fixes there.

Try

sudo dnf update https://koji.rpmfusion.org/kojifiles/packages/nvidia-470xx-kmod/470.256.02/9.fc42/x86_64/akmod-nvidia-470xx-470.256.02-9.fc42.x86_64.rpm
2 Likes

This fixes the issue, thanks! As someone who runs Fedora on pretty old hardware, having those drivers still working is a life-saver :slight_smile:
Are those drivers be on stable soon? I would rather wait before upgrading to Fedora 42.

The f42 akmod-470xx-nvidia package is stable, I merged the fixes to the older branches.
I will push the fixed packages to testing repo for f40 and f41 later this weekend.

1 Like