I'm running an up-to-date Bookworm desktop. I have an NVIDIA GeForce GTX 760 (192-bit) using the NVIDIA Driver Version 470.256.02, coming from the nvidia-tesla-470 packages. I've searched this list and the package pages and don't see any bugs reported.

The 6.10.6 image fails to build:

Errors were encountered while processing:
 linux-image-6.10.6+bpo-amd64
 linux-image-amd64
 linux-headers-6.10.6+bpo-amd64
 linux-headers-amd64

I see the following in the build log:

/var/lib/dkms/nvidia-tesla-470/470.256.02/build/common/inc/nv-linux.h: In function ‘nv_ioremap_wc’: /var/lib/dkms/nvidia-tesla-470/470.256.02/build/common/inc/nv-linux.h:579:33: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  579 |         NV_MEMDBG_ADD(ptr, size);
      |                                 ^
/var/lib/dkms/nvidia-tesla-470/470.256.02/build/common/inc/nv-linux.h: In function ‘nv_vmap’: /var/lib/dkms/nvidia-tesla-470/470.256.02/build/common/inc/nv-linux.h:666:51: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
  666 |         NV_MEMDBG_ADD(ptr, page_count * PAGE_SIZE);
      |                                                   ^
/var/lib/dkms/nvidia-tesla-470/470.256.02/build/nvidia/os-mlock.c: In function ‘nv_follow_pfn’: /var/lib/dkms/nvidia-tesla-470/470.256.02/build/nvidia/os-mlock.c:23:12: error: implicit declaration of function ‘follow_pfn’; did you mean ‘follow_pte’? [-Werror=implicit-function-declaration]
   23 |     return follow_pfn(vma, address, pfn);
      |            ^~~~~~~~~~
      |            follow_pte
/var/lib/dkms/nvidia-tesla-470/470.256.02/build/nvidia/nv-kthread-q.c: In function ‘thread_create_on_node’: /var/lib/dkms/nvidia-tesla-470/470.256.02/build/nvidia/nv-kthread-q.c:180:5: warning: ‘static’ is not at beginning of declaration [-Wold-style-declaration]

There are a great number of warnings pointing at NV_MEMDBG_ADD with the "suggest empty braces...: message.

I think the "error: implicit declaration..." mentioned is what fails the build, although elsewhere there's a message "cc1: some warnings being treated as errors".

According to the "NVIDIA X Server Settings" GUI, the nvidia-tesla-470/470.256.02 that is failing to build is actually the same version that I'm already running now with kernel 6.9.7.

# uname -a
Linux timshel 6.9.7+bpo-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.9.7-1~bpo12+1 (2024-07-03) x86_64 GNU/Linux


What can I do?

Reply via email to