Sorry, this should have been posted to the "System" subforum, a mod please move this:
I have a legacy nvidia Geforce GTX 675M card on my system. For it I installed the nvidia-390xx-dkms and nvidia-390xx-utils
To compile it I installed the linux-headers and here I get this error:
...
(2/2) Install DKMS modules
==> dkms install --no-depmod nvidia/390.157 -k 6.6.1-artix1-1
Error! Bad return status for module build on kernel: 6.6.1-artix1-1 (x86_64)
Consult /var/lib/dkms/nvidia/390.157/build/make.log for more information.
==> WARNING: `dkms install --no-depmod nvidia/390.157 -k 6.6.1-artix1-1' exited 10
The crucial part of the build log is:
/var/lib/dkms/nvidia/390.157/build/nvidia-drm/nvidia-drm-drv.c:708:31: error: ‘drm_gem_prime_handle_to_fd’ undeclared here (not in a function)
708 | .prime_handle_to_fd = drm_gem_prime_handle_to_fd,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
The full log is here.
Any ideas how to proceed from here?