Kmod-nvidia.595.71.05-build does not build on kernel 7.0.8-200.fc44.x86_64

nvidia-bug-report.log.gz (106.9 KB)

After running sudo dnf install akmod-nvidia and not seeing the module show up in modinfo -F version nvidia after over an hour, I figured out how to run sudo akmods directly to look at the build output. That led me to a log file at /var/cache/akmods/nvidia/595.71.05-1-for-7.0.8-200.fc44.x86_64.failed.log

2026/05/17 20:17:32 akmods: Building RPM using the command '/usr/sbin/akmodsbuild --kernels 7.0.8-200.fc44.x86_64 /usr/src/akmods/nvidia-kmod.latest'
Building target platforms: x86_64
Building for target x86_64
Installing /usr/src/akmods/nvidia-kmod.latest
setting SOURCE_DATE_EPOCH=1777334400
Executing(%mkbuilddir): /bin/sh -e /var/tmp/rpm-tmp.whJrHr
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.h8X5S3
+ umask 022
+ cd /tmp/akmodsbuild.j8a1JGrH//BUILD/nvidia-kmod-595.71.05-build
+ kmodtool --target x86_64 --repo rpmfusion --kmodname nvidia-kmod --filterfile /tmp/akmodsbuild.j8a1JGrH/SOURCES/nvidia-kmodtool-excludekernel-filterfile --obsolete-name nvidia-newest --obsolete-version 3:595.71.05-1.fc44 --akmod --for-kernels 7.0.8-200.fc44.x86_64
error: Bad exit status from /var/tmp/rpm-tmp.h8X5S3 (%prep)

RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.h8X5S3 (%prep)
2026/05/17 20:17:32 akmodsbuild: * Rebuilding /usr/src/akmods/nvidia-kmod.latest for kernel(s) 7.0.8-200.fc44.x86_64: Building target platforms: x86_64
2026/05/17 20:17:32 akmodsbuild: Building for target x86_64
2026/05/17 20:17:32 akmodsbuild: Installing /usr/src/akmods/nvidia-kmod.latest
2026/05/17 20:17:32 akmodsbuild: setting SOURCE_DATE_EPOCH=1777334400
2026/05/17 20:17:32 akmodsbuild: Executing(%mkbuilddir): /bin/sh -e /var/tmp/rpm-tmp.whJrHr
2026/05/17 20:17:32 akmodsbuild: Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.h8X5S3
2026/05/17 20:17:32 akmodsbuild: + umask 022
2026/05/17 20:17:32 akmodsbuild: + cd /tmp/akmodsbuild.j8a1JGrH//BUILD/nvidia-kmod-595.71.05-build
2026/05/17 20:17:32 akmodsbuild: + kmodtool --target x86_64 --repo rpmfusion --kmodname nvidia-kmod --filterfile /tmp/akmodsbuild.j8a1JGrH/SOURCES/nvidia-kmodtool-excludekernel-filterfile --obsolete-name nvidia-newest --obsolete-version 3:595.71.05-1.fc44 --akmod --for-kernels 7.0.8-200.fc44.x86_64
2026/05/17 20:17:32 akmodsbuild: error: Bad exit status from /var/tmp/rpm-tmp.h8X5S3 (%prep)
2026/05/17 20:17:32 akmodsbuild: 
2026/05/17 20:17:32 akmodsbuild: RPM build errors:
2026/05/17 20:17:32 akmodsbuild:     Bad exit status from /var/tmp/rpm-tmp.h8X5S3 (%prep)
2026/05/17 20:17:32 akmodsbuild: 
2026/05/17 20:17:37 akmods: Building rpms failed; see /var/cache/akmods/nvidia/595.71.05-1-for-7.0.8-200.fc44.x86_64.failed.log for details

There doesn’t seem to be any useful info here on what went wrong, just two “Bad exit status” messages.

This is a fresh install of Fedora 44, from earlier today. GPU is an RTX 3070 Ti.

A fresh head, and some further digging revealed that bash was throwing an error for “/usr/bin/kmodtool” being missing, and just not reporting it. No idea why, as the package itself is installed. I had to manually uninstall and reinstall the package to get it back. That further revealed that make and gcc were also missing, despite being installed.

I’m guessing the swallowed error is a result of the akmodsbuild tool, rather than something that the driver package could resolve?