Nvidia-470xx driver does not rebuild after upgrade from F43 to F44 (Kernal 7.0.4-200)

Figure I post this for awareness to the Discussion board, there’s already a bug report and patch at RPM Bugzilla – Bug 7454.

I upgraded my laptop to F44 per the instructions at Upgrading Fedora Linux Using DNF System Plugin

After the final reboot I found the Nvidia graphics driver missing:

$ inxi -Gxx
Graphics:
  Device-1: Intel 3rd Gen Core processor Graphics vendor: Sony driver: i915
    v: kernel arch: Gen-7 ports: active: LVDS-1 empty: DP-1, DP-2, HDMI-A-1,
    HDMI-A-2, VGA-1 bus-ID: 00:02.0 chip-ID: 8086:0166
  Device-2: NVIDIA GK107M [GeForce GT 640M LE] vendor: Sony driver: N/A
    arch: Kepler-2 pcie: speed: 5 GT/s lanes: 8 bus-ID: 01:00.0
    chip-ID: 10de:0fd3
  Device-3: Foxconn / Hon Hai USB2.0 Camera driver: uvcvideo type: USB
    rev: 2.0 speed: 480 Mb/s lanes: 1 bus-ID: 4-1.3:4 chip-ID: 0489:d601
  Display: x11 server: X.Org v: 21.1.22 with: Xwayland v: 24.1.11 driver: X:
    loaded: modesetting alternate: fbdev,vesa dri: crocus gpu: i915
    display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96
  Monitor-1: LVDS-1 model: LG Display 0x0323 res: 1920x1080 hz: 60 dpi: 141
    diag: 396mm (15.6")
  API: OpenGL v: 4.2 vendor: intel mesa v: 26.0.6 glx-v: 1.4 es-v: 3.0
    direct-render: yes renderer: Mesa Intel HD Graphics 4000 (IVB GT2)
    device-ID: 8086:0166
  API: EGL Message: EGL data requires eglinfo. Check --recommends.
  Info: Tools: api: glxinfo gpu: nvidia-settings x11: xdriinfo, xdpyinfo,
    xprop, xrandr

I tried reinstalling the nvidia packages from RPM and force rebuilding without success:

$ sudo akmods --rebuild --force
Checking kmods exist for 7.0.4-200.fc44.x86_64 [  OK  ]
Building and installing nvidia-470xx-kmod [FAILED]
Building rpms failed; see /var/cache/akmods/nvidia-470xx/470.256.02-16-for-7.0.4-200.fc44.x86_64.failed.log for details

Looking at the directory I also found a failure log for the interim update/upgrade step:

$ ls /var/cache/akmods/nvidia-470xx/
470.256.02-16-for-7.0.4-100.fc43.x86_64.failed.log
470.256.02-16-for-7.0.4-200.fc44.x86_64.failed.log

Both log files have similar errors:

nvidia-drm/nvidia-dma-fence-helper.h: In function ‘nv_dma_fence_signal’:
nvidia-drm/nvidia-dma-fence-helper.h:96:12: error: void value not ignored as it ought to be
   96 |     return dma_fence_signal(fence);
      |            ^~~~~~~~~~~~~~~~~~~~~~~
make[4]: *** [/usr/src/kernels/7.0.4-200.fc44.x86_64/scripts/Makefile.build:289: nvidia-drm/nvidia-drm-drv.o] Error 1
make[4]: *** Waiting for unfinished jobs....
In file included from nvidia-drm/nvidia-drm-gem.h:44,
                 from nvidia-drm/nvidia-drm-gem-nvkms-memory.h:30,
                 from nvidia-drm/nvidia-drm-fb.h:38,
                 from nvidia-drm/nvidia-drm-crtc.c:33:
nvidia-drm/nvidia-dma-fence-helper.h: In function ‘nv_dma_fence_signal’:
nvidia-drm/nvidia-dma-fence-helper.h:96:12: error: void value not ignored as it ought to be
   96 |     return dma_fence_signal(fence);
      |            ^~~~~~~~~~~~~~~~~~~~~~~
make[4]: *** [/usr/src/kernels/7.0.4-200.fc44.x86_64/scripts/Makefile.build:289: nvidia-drm/nvidia-drm-crtc.o] Error 1
make[3]: *** [/usr/src/kernels/7.0.4-200.fc44.x86_64/Makefile:2136: .] Error 2
make[2]: *** [/usr/src/kernels/7.0.4-200.fc44.x86_64/Makefile:248: __sub-make] Error 2
make[2]: Leaving directory '/tmp/akmodsbuild.JH0qFM1X/BUILD/nvidia-470xx-kmod-470.256.02-build/nvidia-470xx-kmod-470.256.02/_kmod_build_7.0.4-200.fc44.x86_64'
make[1]: *** [Makefile:248: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/kernels/7.0.4-200.fc44.x86_64'
make: *** [Makefile:90: modules] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.9M6iR5 (%build)

RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.9M6iR5 (%build)

Can you reboot back to the 6.19 kernel and have the driver working?

Please post the output of dnf list --installed \*nvidia\*

I also note that you appear to be using x11. The 470xx driver supports x11, but fedora dropped support for x11 with f43 Workstation. What edition of fedora are you using that still supports x11?

You could answer that with inxi -Fzxx

upgrade to akmod-nvidia-470xx-470.256.02-17.fc44 available in repository f44-nonfree-updates-testing

sudo dnf up akmod-nvidia\*  --enable-repo=rpm*testing

I, too, had this problem. I enabled the testing repo:

sudo dnf up akmod-nvidia\* --enable-repo=rpm*testing
and then forced akmods to rebuild.
metalflow@gamingstation:/$ sudo akmods --force --rebuild
Checking kmods exist for 7.0.4-200.fc44.x86_64 [ OK ]
Building and installing nvidia-470xx-kmod [ OK ]
it appears to have worked. If I don’t update this post in 24 hours, then assume that this worked.

Hi Jeff,

I am running the Cinnamon spin.

The Nvidia driver does work when back on the 6.19 kernel.

Regards

Did you try the fix recommended by @anotheruser and echoed by @metalflow above to see if that fixed it for the 7.0 kernels?