I am unable to install nvidia-340 driver and got the following as log in its make.log file: $ tail -n 200 /var/lib/dkms/nvidia-340/340.108/build/make.log | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:106:3: note: in expansion of macro ‘this_cpu_dec’ 106 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:432:34: note: in expansion of macro ‘percpu_add_op’ 432 | #define this_cpu_add_1(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:377:11: note: in expansion of macro ‘this_cpu_add_1’ 377 | case 1: stem##1(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:433:34: note: in expansion of macro ‘percpu_add_op’ 433 | #define this_cpu_add_2(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:378:11: note: in expansion of macro ‘this_cpu_add_2’ 378 | case 2: stem##2(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:434:34: note: in expansion of macro ‘percpu_add_op’ 434 | #define this_cpu_add_4(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:379:11: note: in expansion of macro ‘this_cpu_add_4’ 379 | case 4: stem##4(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ ./arch/x86/include/asm/percpu.h:131:31: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare] 131 | ((val) == 1 || (val) == -1)) ? \ | ^~ ./arch/x86/include/asm/percpu.h:492:35: note: in expansion of macro ‘percpu_add_op’ 492 | #define this_cpu_add_8(pcp, val) percpu_add_op(volatile, (pcp), val) | ^~~~~~~~~~~~~ ./include/linux/percpu-defs.h:380:11: note: in expansion of macro ‘this_cpu_add_8’ 380 | case 8: stem##8(variable, __VA_ARGS__);break; \ | ^~~~ ./include/linux/percpu-defs.h:509:33: note: in expansion of macro ‘__pcpu_size_call’ 509 | #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpu_add_, pcp, val) | ^~~~~~~~~~~~~~~~ ./include/linux/percpu-defs.h:519:33: note: in expansion of macro ‘this_cpu_add’ 519 | #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) | ^~~~~~~~~~~~ ./include/linux/percpu-defs.h:521:28: note: in expansion of macro ‘this_cpu_sub’ 521 | #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) | ^~~~~~~~~~~~ ./include/linux/percpu-rwsem.h:118:3: note: in expansion of macro ‘this_cpu_dec’ 118 | this_cpu_dec(*sem->read_count); | ^~~~~~~~~~~~ In file included from ./arch/x86/include/asm/paravirt.h:17, from ./arch/x86/include/asm/irqflags.h:72, from ./include/linux/irqflags.h:16, from ./include/linux/rcupdate.h:26, from ./include/linux/rculist.h:11, from ./include/linux/pid.h:5, from ./include/linux/sched.h:14, from ./include/linux/utsname.h:6, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:44, from /var/lib/dkms/nvidia-340/340.108/build/nv-frontend.c:13: ./include/linux/vmstat.h: In function ‘zone_numa_state_snapshot’: ./include/linux/cpumask.h:266:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 266 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:812:36: note: in expansion of macro ‘for_each_cpu’ 812 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:164:2: note: in expansion of macro ‘for_each_online_cpu’ 164 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ ./include/linux/vmstat.h: In function ‘zone_page_state_snapshot’: ./include/linux/cpumask.h:266:9: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare] 266 | (cpu) < nr_cpu_ids;) | ^ ./include/linux/cpumask.h:812:36: note: in expansion of macro ‘for_each_cpu’ 812 | #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) | ^~~~~~~~~~~~ ./include/linux/vmstat.h:229:2: note: in expansion of macro ‘for_each_online_cpu’ 229 | for_each_online_cpu(cpu) | ^~~~~~~~~~~~~~~~~~~ In file included from ./include/linux/efi.h:20, from /var/lib/dkms/nvidia-340/340.108/build/nv-linux.h:173, from /var/lib/dkms/nvidia-340/340.108/build/nv-frontend.c:13: ./include/linux/rtc.h: In function ‘rtc_tv_nsec_ok’: ./include/linux/rtc.h:232:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 232 | if (to_set->tv_nsec < TIME_SET_NSEC_FUZZ) { | ^ ./include/linux/rtc.h:237:22: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘long unsigned int’ [-Wsign-compare] 237 | if (to_set->tv_nsec > NSEC_PER_SEC - TIME_SET_NSEC_FUZZ) { | ^ make[2]: Target '__build' not remade because of errors. make[1]: *** [Makefile:1780: /var/lib/dkms/nvidia-340/340.108/build] Error 2 make[1]: Target 'modules' not remade because of errors. make[1]: Leaving directory '/usr/src/linux-headers-5.8.0-36-generic' NVIDIA: left KBUILD. nvidia.ko failed to build! make: *** [Makefile:197: nvidia.ko] Error 1 make: Target 'module' not remade because of errors. make: Entering directory '/var/lib/dkms/nvidia-340/340.108/build/uvm' cd ./..; make module SYSSRC=/lib/modules/5.8.0-36-generic/build SYSOUT=/lib/modules/5.8.0-36-generic/build KBUILD_EXTMOD=./.. make[1]: Entering directory '/var/lib/dkms/nvidia-340/340.108/build' NVIDIA: calling KBUILD... make[2]: Entering directory '/usr/src/linux-headers-5.8.0-36-generic' test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( \ echo >&2; \ echo >&2 " ERROR: Kernel configuration is invalid."; \ echo >&2 " include/generated/autoconf.h or include/config/auto.conf are missing.";\ echo >&2 " Run 'make oldconfig && make prepare' on kernel src to fix it."; \ echo >&2 ; \ /bin/false) make -f ./scripts/Makefile.build obj=.. \ single-build= \ need-builtin=1 need-modorder=1 scripts/Makefile.build:44: ../Makefile: No such file or directory make[3]: *** No rule to make target '../Makefile'. Stop. make[2]: *** [Makefile:1780: ..] Error 2 make[2]: Leaving directory '/usr/src/linux-headers-5.8.0-36-generic' NVIDIA: left KBUILD. nvidia.ko failed to build! make[1]: *** [Makefile:197: nvidia.ko] Error 1 make[1]: Leaving directory '/var/lib/dkms/nvidia-340/340.108/build' make: *** [Makefile:221: ../Module.symvers] Error 2 make: Leaving directory '/var/lib/dkms/nvidia-340/340.108/build/uvm'