Hi. My workstation based on Debian 12 worked perfectly with nvidia driver till yesterday.
Yesterday I have update Debian OS by apt-get update, apt-get dist-upgrade. A new version of linux.image is come with its new headers. This happens many tipe in the past.
So now, when I try to reinstall the nvidia drivers I obtain the error:
ERROR: modpost: GPL-incompatible module nvidia.ko uses GPL-only symbol '__rcu_read_lock'
ERROR: modpost: GPL-incompatible module nvidia.ko uses GPL-only symbol '__rcu_read_unlock'
ld -r -o /tmp/selfgz26111/NVIDIA-Linux-x86_64-470.223.02/kernel/nvidia-modeset/nv-modeset-interface.o /tmp/selfgz26111/NVIDIA-Linux-x86_64-470.223.02/kernel/nvidia-modeset/nvidia-modeset-linux.o /tmp/selfgz26111/NVIDIA-Linux-x86_64-470.223.02/kernel/nvidia-modeset/nv-kthread-q.o
LD [M] /tmp/selfgz26111/NVIDIA-Linux-x86_64-470.223.02/kernel/nvidia-drm.o
LD [M] /tmp/selfgz26111/NVIDIA-Linux-x86_64-470.223.02/kernel/nvidia-peermem.o
MODPOST /tmp/selfgz26111/NVIDIA-Linux-x86_64-470.223.02/kernel/Module.symvers
ERROR: modpost: GPL-incompatible module nvidia.ko uses GPL-only symbol '__rcu_read_lock'
ERROR: modpost: GPL-incompatible module nvidia.ko uses GPL-only symbol '__rcu_read_unlock'
make[3]: *** [/usr/src/linux-headers-6.1.0-18-common/scripts/Makefile.modpost:126: /tmp/selfgz26111/NVIDIA-Linux-x86_64-470.223.02/kernel/Module.symvers] Error 1
make[3]: Target '__modpost' not remade because of errors.
make[2]: *** [/usr/src/linux-headers-6.1.0-18-common/Makefile:1991: modpost] Error 2
make[2]: Target 'modules' not remade because of errors.
make[2]: Leaving directory '/usr/src/linux-headers-6.1.0-18-amd64'
make[1]: *** [Makefile:250: __sub-make] Error 2
make[1]: Target 'modules' not remade because of errors.
make[1]: Leaving directory '/usr/src/linux-headers-6.1.0-18-common'
make: *** [Makefile:80: modules] Error 2
-> Checking to see whether the nvidia kernel module was successfully built
executing: 'cd ./kernel; /usr/bin/make -k -j4 NV_KERNEL_MODULES="nvidia" NV_EXCLUDE_KERNEL_MODULES="" SYSSRC="/lib/modules/6.1.0-18-amd64/source" SYSOUT="/lib/modules/6.1.0-18-amd64/build"'...
make[1]: Entering directory '/usr/src/linux-headers-6.1.0-18-common'
make[2]: Entering directory '/usr/src/linux-headers-6.1.0-18-amd64'
MODPOST /tmp/selfgz26111/NVIDIA-Linux-x86_64-470.223.02/kernel/Module.symvers
ERROR: modpost: GPL-incompatible module nvidia.ko uses GPL-only symbol '__rcu_read_lock'
ERROR: modpost: GPL-incompatible module nvidia.ko uses GPL-only symbol '__rcu_read_unlock'
make[3]: *** [/usr/src/linux-headers-6.1.0-18-common/scripts/Makefile.modpost:126: /tmp/selfgz26111/NVIDIA-Linux-x86_64-470.223.02/kernel/Module.symvers] Error 1
make[3]: Target '__modpost' not remade because of errors.
make[2]: *** [/usr/src/linux-headers-6.1.0-18-common/Makefile:1991: modpost] Error 2
make[2]: Target 'modules' not remade because of errors.
make[2]: Leaving directory '/usr/src/linux-headers-6.1.0-18-amd64'
make[1]: *** [Makefile:250: __sub-make] Error 2
make[1]: Target 'modules' not remade because of errors.
make[1]: Leaving directory '/usr/src/linux-headers-6.1.0-18-common'
make: *** [Makefile:80: modules] Error 2
-> Error.
ERROR: An error occurred while performing the step: "Checking to see whether the nvidia kernel module was successfully built". See /var/log/nvidia-installer.log for details.
-> The command `cd ./kernel; /usr/bin/make -k -j4 NV_KERNEL_MODULES="nvidia" NV_EXCLUDE_KERNEL_MODULES="" SYSSRC="/lib/modules/6.1.0-18-amd64/source" SYSOUT="/lib/modules/6.1.0-18-amd64/build"` failed with the following output:
make[1]: Entering directory '/usr/src/linux-headers-6.1.0-18-common'
make[2]: Entering directory '/usr/src/linux-headers-6.1.0-18-amd64'
MODPOST /tmp/selfgz26111/NVIDIA-Linux-x86_64-470.223.02/kernel/Module.symvers
ERROR: modpost: GPL-incompatible module nvidia.ko uses GPL-only symbol '__rcu_read_lock'
ERROR: modpost: GPL-incompatible module nvidia.ko uses GPL-only symbol '__rcu_read_unlock'
make[3]: *** [/usr/src/linux-headers-6.1.0-18-common/scripts/Makefile.modpost:126: /tmp/selfgz26111/NVIDIA-Linux-x86_64-470.223.02/kernel/Module.symvers] Error 1
make[3]: Target '__modpost' not remade because of errors.
make[2]: *** [/usr/src/linux-headers-6.1.0-18-common/Makefile:1991: modpost] Error 2
make[2]: Target 'modules' not remade because of errors.
make[2]: Leaving directory '/usr/src/linux-headers-6.1.0-18-amd64'
make[1]: *** [Makefile:250: __sub-make] Error 2
make[1]: Target 'modules' not remade because of errors.
make[1]: Leaving directory '/usr/src/linux-headers-6.1.0-18-common'
make: *** [Makefile:80: modules] Error 2
ERROR: The nvidia kernel module was not created.
ERROR: Installation has failed. Please see the file '/var/log/nvidia-installer.log' for details. You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.
root@tomcat:~#