I want to upgrade the driver on a machine. The configuration of the old driver is as follows
I have chosen the following driver program:
Then
./NVIDIA-Linux-x86_64-535.183.06.run
ERROR: An error occurred while performing the step: “Building kernel modules”. See /var/log/nvidia-installer.log for details.
Then an error occurred:
I only copied the last few lines:
/tmp/selfgz21058/NVIDIA-Linux-x86_64-535.183.06/kernel/nvidia/linux_nvswitch.c: In function 'nvswitch_os_print':
/tmp/selfgz21058/NVIDIA-Linux-x86_64-535.183.06/kernel/nvidia/linux_nvswitch.c:1887:14: warning: passing argument 1 of '__builtin_va_start' makes pointer from integer without a cast [-Wint-conversion]
va_start(arglist, fmt);
^~~~~~~
/tmp/selfgz21058/NVIDIA-Linux-x86_64-535.183.06/kernel/nvidia/linux_nvswitch.c:1887:14: note: expected '__va_list_tag *' but argument is of type 'va_list' {aka 'int'}
/tmp/selfgz21058/NVIDIA-Linux-x86_64-535.183.06/kernel/nvidia/linux_nvswitch.c:1890:12: warning: passing argument 1 of '__builtin_va_end' makes pointer from integer without a cast [-Wint-conversion]
va_end(arglist);
^~~~~~~
/tmp/selfgz21058/NVIDIA-Linux-x86_64-535.183.06/kernel/nvidia/linux_nvswitch.c:1890:12: note: expected '__va_list_tag *' but argument is of type 'va_list' {aka 'int'}
/tmp/selfgz21058/NVIDIA-Linux-x86_64-535.183.06/kernel/nvidia/linux_nvswitch.c: In function 'nvswitch_os_snprintf':
/tmp/selfgz21058/NVIDIA-Linux-x86_64-535.183.06/kernel/nvidia/linux_nvswitch.c:2490:14: warning: passing argument 1 of '__builtin_va_start' makes pointer from integer without a cast [-Wint-conversion]
va_start(arglist, fmt);
^~~~~~~
/tmp/selfgz21058/NVIDIA-Linux-x86_64-535.183.06/kernel/nvidia/linux_nvswitch.c:2490:14: note: expected '__va_list_tag *' but argument is of type 'va_list' {aka 'int'}
/tmp/selfgz21058/NVIDIA-Linux-x86_64-535.183.06/kernel/nvidia/linux_nvswitch.c:2492:12: warning: passing argument 1 of '__builtin_va_end' makes pointer from integer without a cast [-Wint-conversion]
va_end(arglist);
^~~~~~~
/tmp/selfgz21058/NVIDIA-Linux-x86_64-535.183.06/kernel/nvidia/linux_nvswitch.c:2492:12: note: expected '__va_list_tag *' but argument is of type 'va_list' {aka 'int'}
/tmp/selfgz21058/NVIDIA-Linux-x86_64-535.183.06/kernel/nvidia/linux_nvswitch.c: In function 'nvswitch_os_assert_log':
/tmp/selfgz21058/NVIDIA-Linux-x86_64-535.183.06/kernel/nvidia/linux_nvswitch.c:2521:18: warning: passing argument 1 of '__builtin_va_start' makes pointer from integer without a cast [-Wint-conversion]
va_start(arglist, fmt);
^~~~~~~
/tmp/selfgz21058/NVIDIA-Linux-x86_64-535.183.06/kernel/nvidia/linux_nvswitch.c:2521:18: note: expected '__va_list_tag *' but argument is of type 'va_list' {aka 'int'}
/tmp/selfgz21058/NVIDIA-Linux-x86_64-535.183.06/kernel/nvidia/linux_nvswitch.c:2523:16: warning: passing argument 1 of '__builtin_va_end' makes pointer from integer without a cast [-Wint-conversion]
va_end(arglist);
^~~~~~~
/tmp/selfgz21058/NVIDIA-Linux-x86_64-535.183.06/kernel/nvidia/linux_nvswitch.c:2523:16: note: expected '__va_list_tag *' but argument is of type 'va_list' {aka 'int'}
make[3]: *** [/usr/src/linux-headers-4.19.0-6-server-common/scripts/Makefile.build:309: /tmp/selfgz21058/NVIDIA-Linux-x86_64-535.183.06/kernel/nvidia/i2c_nvswitch.o] Error 1
make[3]: *** [/usr/src/linux-headers-4.19.0-6-server-common/scripts/Makefile.build:309: /tmp/selfgz21058/NVIDIA-Linux-x86_64-535.183.06/kernel/nvidia/nvlink_linux.o] Error 1
make[3]: *** [/usr/src/linux-headers-4.19.0-6-server-common/scripts/Makefile.build:309: /tmp/selfgz21058/NVIDIA-Linux-x86_64-535.183.06/kernel/nvidia/linux_nvswitch.o] Error 1
make[3]: Target '__build' not remade because of errors.
make[2]: *** [/usr/src/linux-headers-4.19.0-6-server-common/Makefile:1534: _module_/tmp/selfgz21058/NVIDIA-Linux-x86_64-535.183.06/kernel] Error 2
make[2]: Target 'modules' not remade because of errors.
make[2]: Leaving directory '/usr/src/linux-headers-4.19.0-6-server-amd64'
make[1]: *** [Makefile:146: sub-make] Error 2
make[1]: Target 'modules' not remade because of errors.
make[1]: Leaving directory '/usr/src/linux-headers-4.19.0-6-server-common'
make: *** [Makefile:82: 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.
I have encountered many similar errors, which are often caused by the version of gcc.
But this time, strangely, I successfully installed the driver on another identical machine The configuration, kernel, gcc and g++of these two machines are identical, but only this machine reports an error
Can you provide some assistance?
nvidia-installer.log (2.3 MB)
the gcc version:
gcc --version
gcc (Uos 8.3.0.2-1+deepin) 8.3.0
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
The gcc of the machines with successful installation and installation failure is consistent