Skip to main content
Topic: nvidia-470xx-dkms doesn't compile (Read 313 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

nvidia-470xx-dkms doesn't compile

During the system update, recompilation of nvidia-470xx dkms module outputs this:

Code: [Select]
(1/1) Install DKMS modules
==> dkms install --no-depmod nvidia/470.182.03 -k 6.4.2-artix1-1
Error! Bad return status for module build on kernel: 6.4.2-artix1-1 (x86_64)
Consult /var/lib/dkms/nvidia/470.182.03/build/make.log for more information.
==> WARNING: `dkms install --no-depmod nvidia/470.182.03 -k 6.4.2-artix1-1' exited 10

Looking at the mentioned log file, here is the error:

Code: [Select]
/var/lib/dkms/nvidia/470.182.03/build/nvidia-drm/nvidia-drm-drv.c: In function ‘nv_drm_update_drm_driver_features’:
/var/lib/dkms/nvidia/470.182.03/build/nvidia-drm/nvidia-drm-drv.c:876:18: error: ‘struct drm_driver’ has no member named ‘dumb_destroy’
  876 |     nv_drm_driver.dumb_destroy     = nv_drm_dumb_destroy;
      |                  ^
make[2]: *** [scripts/Makefile.build:252: /var/lib/dkms/nvidia/470.182.03/build/nvidia-drm/nvidia-drm-drv.o] Error 1

Following patch might solve this, but I haven't tried it yet: https://gist.github.com/joanbm/77f0650d45747b9a4dc8e330ade2bf5c

Thanks.

Re: nvidia-470xx-dkms doesn't compile

Reply #1
just needs to be updated to 470.199.02 ,  or at least, that one works for my card unpatched with 6.4.2.
this git:  https://github.com/camio/nvidia-470xx-utils  which is a fork of the also not updated AUR version should do the job,
just clone it, cd in and run makepkg.