i am tried installing the below run files
- NVIDIA-Linux-x86_64-545.23.06.run
- NVIDIA-Linux-x86_64-545.29.02.run
- NVIDIA-Linux-x86_64-545.29.06.run
- NVIDIA-Linux-x86_64-470.161.03.run
first i disabled Nouveau driver and restarted my machine
then i installed gcc-9.4 and some pre-requisites
then i runned the file as shown below
sudo sh NVIDIA-Linux-x86_64-545.29.06.run --silent
i am getting the below error:
MODPOST /tmp/selfgz105496/NVIDIA-Linux-x86_64-470.161.03/kernel/Module.symvers
ERROR: modpost: GPL-incompatible module nvidia.ko uses GPL-only symbol ‘rcu_read_unlock_strict’
make[2]: *** [scripts/Makefile.modpost:133: /tmp/selfgz105496/NVIDIA-Linux-x86_64-470.161.03/kernel/Module.symvers] Error 1
make[2]: *** Deleting file ‘/tmp/selfgz105496/NVIDIA-Linux-x86_64-470.161.03/kernel/Module.symvers’
make[2]: Target ‘__modpost’ not remade because of errors.
make[1]: *** [Makefile:1830: modules] Error 2
make[1]: Leaving directory ‘/usr/src/linux-headers-5.15.0-107-generic’
make: *** [Makefile:80: modules] Error 2
→ Checking to see whether the nvidia kernel module was successfully built
executing: ‘cd ./kernel; /usr/bin/make -k -j16 NV_KERNEL_MODULES=“nvidia” NV_EXCLUDE_KERNEL_MODULES=“” SYSSRC=“/lib/modules/5.15.0-107-generic/build” SYSOUT=“/lib/modules/5.15.0-107-generic/build”’…
make[1]: Entering directory ‘/usr/src/linux-headers-5.15.0-107-generic’
warning: the compiler differs from the one used to build the kernel
The kernel was built by: gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0
You are using: cc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0
MODPOST /tmp/selfgz105496/NVIDIA-Linux-x86_64-470.161.03/kernel/Module.symvers
ERROR: modpost: GPL-incompatible module nvidia.ko uses GPL-only symbol ‘rcu_read_unlock_strict’
make[2]: *** [scripts/Makefile.modpost:133: /tmp/selfgz105496/NVIDIA-Linux-x86_64-470.161.03/kernel/Module.symvers] Error 1
make[2]: *** Deleting file ‘/tmp/selfgz105496/NVIDIA-Linux-x86_64-470.161.03/kernel/Module.symvers’
make[2]: Target ‘__modpost’ not remade because of errors.
make[1]: *** [Makefile:1830: modules] Error 2
make[1]: Leaving directory ‘/usr/src/linux-headers-5.15.0-107-generic’
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 -j16 NV_KERNEL_MODULES="nvidia" NV_EXCLUDE_KERNEL_MODULES="" SYSSRC="/lib/modules/5.15.0-107-generic/build" SYSOUT="/lib/modules/5.15.0-107-generic/build"
failed with the following output:
make[1]: Entering directory ‘/usr/src/linux-headers-5.15.0-107-generic’
warning: the compiler differs from the one used to build the kernel
The kernel was built by: gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0
You are using: cc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0
MODPOST /tmp/selfgz105496/NVIDIA-Linux-x86_64-470.161.03/kernel/Module.symvers
ERROR: modpost: GPL-incompatible module nvidia.ko uses GPL-only symbol ‘rcu_read_unlock_strict’
make[2]: *** [scripts/Makefile.modpost:133: /tmp/selfgz105496/NVIDIA-Linux-x86_64-470.161.03/kernel/Module.symvers] Error 1
make[2]: *** Deleting file ‘/tmp/selfgz105496/NVIDIA-Linux-x86_64-470.161.03/kernel/Module.symvers’
make[2]: Target ‘__modpost’ not remade because of errors.
make[1]: *** [Makefile:1830: modules] Error 2
make[1]: Leaving directory ‘/usr/src/linux-headers-5.15.0-107-generic’
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.
Advance thanks for the help.