Error while compiling drivers 6.10 on Debian Trixie

Hello,

The drivers does not compile with many suche erroer :
warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
and
warning: no previous prototype for ‘nv_load_dma_map_scatterlist’ [-Wmissing-prototypes]

I don’t see any button to include the generated buf report ?

Regards
JP P

Hi @jp.pozzi,

Check out this post for details:

Thanks.

Hello,
The problem is simple : the driver version 64-470.256.02 does not compile with some errors which are given in the previous mail.
warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
and
warning: no previous prototype for ‘nv_load_dma_map_scatterlist’ [-Wmissing-prototypes]
I generate the bug report but I can’t see a mean to join it to the mail … but I see it now … and join the report .

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

Regards
JP P

You need to make sure that you have the correct kernel headers installed, which does not seem to be the case judging from the warning messages.

Hello,

The “correct headers” are installed :

drwxr-xr-x 4 root root 4096 oct. 8 12:21 linux-headers-6.10.12-amd64
drwxr-xr-x 4 root root 4096 oct. 8 12:21 linux-headers-6.10.12-common
lrwxrwxrwx 1 root root 27 oct. 1 19:08 linux-kbuild-6.10.12 → …/lib/linux-kbuild-6.10.12

So it is not the real problem.

Regards

JP P

Possibly the kernel sources are missing?
The error message and all warnings point to a mismatch between DKMS sources and installed kernel sources/headers.

I recommend checking the README for this driver version.

If that does not help, you might want to try asking in our dedicated Linux forum category.