Closed knightkronos closed 2 months ago
Same problem when trying to install on Ubuntu 24.04 LTS, Kernel 6.8.0-35. See log nvidia-installer.zip
I have the same issue trying to install this on Proxmox VE 8.2.4 here is my log https://pastebin.com/Tujmi9HF
Hey @AleytiaFairlight @BstAA @knightkronos Can you try this build ? It added support for Linux 6.8 krn.
Hey @AleytiaFairlight @BstAA @knightkronos Can you try this build ? It added support for Linux 6.8 krn.
my apologies for reopening as I've gotten a bit busy, however the file seems to be unavailable.
Hello I have tried to install your driver but so far I haven't been able to succed.
Please find below the logs and commands used to install the driver.
root@proxmox2:~# chmod +x NVIDIA-Linux-x86_64-340.108-patched-6.8.run root@proxmox2:~# ./NVIDIA-Linux-x86_64-340.108-patched-6.8.run Verifying archive integrity... OK Uncompressing NVIDIA 340.108 Linux v6.8 by github.com/MeowIce/nvidia-legacy....................................................................................................................................................................................................................................... root@proxmox2:~# cat /var/log/nvidia-installer.log nvidia-installer log file '/var/log/nvidia-installer.log' creation time: Wed May 15 21:17:02 2024 installer version: 340.108
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
nvidia-installer command line: ./nvidia-installer
Using: nvidia-installer ncurses v6 user interface -> License accepted. -> Installing NVIDIA driver version 340.108. -> Performing CC sanity check with CC="/usr/bin/cc". -> Kernel source path: '/lib/modules/6.8.4-3-pve/build' -> Kernel output path: '/lib/modules/6.8.4-3-pve/build' -> Performing rivafb check. -> Performing nvidiafb check. -> Performing Xen check. -> Performing PREEMPT_RT check. -> Cleaning kernel module build directory. executing: 'cd ./kernel; /usr/bin/make clean'... -> Building NVIDIA kernel module: executing: 'cd ./kernel; /usr/bin/make module SYSSRC=/lib/modules/6.8.4-3-pve/build SYSOUT=/lib/modules/6.8.4-3-pve/build NV_BUILD_MODULE_INSTANCES='... NVIDIA: calling KBUILD... make[1]: Entering directory '/usr/src/linux-headers-6.8.4-3-pve' /usr/bin/make --no-print-directory -C /usr/src/linux-headers-6.8.4-3-pve \ -f /usr/src/linux-headers-6.8.4-3-pve/Makefile modules warning: the compiler differs from the one used to build the kernel The kernel was built by: gcc (Debian 12.2.0-14) 12.2.0 You are using: cc (Debian 12.2.0-14) 12.2.0 /usr/bin/make -f ./scripts/Makefile.build obj=/tmp/selfgz2281/kernel need-builtin=1 need-modorder=1
cmd_mod /tmp/selfgz2281/kernel/nvidia.mod
' nv-kernel.o nv.o nv-acpi.o nv-chrdev.o nv-cray.o nv-dma.o nv-drm.o nv-gvi.o nv-i2c.o nv-mempool.o nv-mmap.o nv-p2p.o nv-pat.o nv-procfs.o nv-usermap.o nv-vm.o nv-vtophys.o os-interface.o os-mlock.o os-pci.o os-registry.o os-smp.o os-usermap.o nv_uvm_interface.o nv-frontend.o | awk '!x[$0]++ { print("/tmp/selfgz2281/kernel/"$0) }' > /tmp/selfgz2281/kernel/nvidia.mod
CC [M] /tmp/selfgz2281/kernel/nv.o
~~~./include/linux/cpumask.h:994:36: note: in expansion of macro 'for_each_cpu' 994~~~ ./include/linux/mm_types.h:1136:9: note: in expansion of macro 'for_each_possible_cpu' 1136~~~~In file included from ./include/linux/mmzone.h:23: ./include/linux/page-flags.h: In function 'PagePoisoned': ./include/linux/page-flags.h:298:39: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'long int' [-Wsign-compare] 298~~~~ ./include/linux/percpu-defs.h:365:25: note: in expansion of macro 'this_cpu_add_1' 365~~~./include/linux/percpu-defs.h:500:41: note: in expansion of macro 'this_cpu_add' 500~~~ ./include/linux/percpu-defs.h:502:41: note: in expansion of macro 'this_cpu_sub' 502~~~ ./include/linux/percpu-rwsem.h:106:17: note: in expansion of macro 'this_cpu_dec' 106~~~ ./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 127~~~~ ./include/linux/percpu-defs.h:366:25: note: in expansion of macro 'this_cpu_add_2' 366~~~./include/linux/percpu-defs.h:500:41: note: in expansion of macro 'this_cpu_add' 500~~~ ./include/linux/percpu-defs.h:502:41: note: in expansion of macro 'this_cpu_sub' 502~~~ ./include/linux/percpu-rwsem.h:106:17: note: in expansion of macro 'this_cpu_dec' 106~~~ ./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 127~~~~ ./include/linux/percpu-defs.h:367:25: note: in expansion of macro 'this_cpu_add_4' 367~~~./include/linux/percpu-defs.h:500:41: note: in expansion of macro 'this_cpu_add' 500~~~ ./include/linux/percpu-defs.h:502:41: note: in expansion of macro 'this_cpu_sub' 502~~~ ./include/linux/percpu-rwsem.h:106:17: note: in expansion of macro 'this_cpu_dec' 106~~~ ./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 127~~~~ ./include/linux/percpu-defs.h:368:25: note: in expansion of macro 'this_cpu_add_8' 368~~~./include/linux/percpu-defs.h:500:41: note: in expansion of macro 'this_cpu_add' 500~~~ ./include/linux/percpu-defs.h:502:41: note: in expansion of macro 'this_cpu_sub' 502~~~ ./include/linux/percpu-rwsem.h:106:17: note: in expansion of macro 'this_cpu_dec' 106~~~ ./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 127~~~~ ./include/linux/percpu-defs.h:365:25: note: in expansion of macro 'this_cpu_add_1' 365~~~./include/linux/percpu-defs.h:500:41: note: in expansion of macro 'this_cpu_add' 500~~~ ./include/linux/percpu-defs.h:502:41: note: in expansion of macro 'this_cpu_sub' 502~~~ ./include/linux/percpu-rwsem.h:118:17: note: in expansion of macro 'this_cpu_dec' 118~~~ ./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 127~~~~ ./include/linux/percpu-defs.h:366:25: note: in expansion of macro 'this_cpu_add_2' 366~~~./include/linux/percpu-defs.h:500:41: note: in expansion of macro 'this_cpu_add' 500~~~ ./include/linux/percpu-defs.h:502:41: note: in expansion of macro 'this_cpu_sub' 502~~~ ./include/linux/percpu-rwsem.h:118:17: note: in expansion of macro 'this_cpu_dec' 118~~~ ./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 127~~~~ ./include/linux/percpu-defs.h:367:25: note: in expansion of macro 'this_cpu_add_4' 367~~~./include/linux/percpu-defs.h:500:41: note: in expansion of macro 'this_cpu_add' 500~~~ ./include/linux/percpu-defs.h:502:41: note: in expansion of macro 'this_cpu_sub' 502~~~ ./include/linux/percpu-rwsem.h:118:17: note: in expansion of macro 'this_cpu_dec' 118~~~ ./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 127~~~~ ./include/linux/percpu-defs.h:368:25: note: in expansion of macro 'this_cpu_add_8' 368~~~./include/linux/percpu-defs.h:500:41: note: in expansion of macro 'this_cpu_add' 500~~~ ./include/linux/percpu-defs.h:502:41: note: in expansion of macro 'this_cpu_sub' 502~~~ ./include/linux/percpu-rwsem.h:118:17: note: in expansion of macro 'this_cpu_dec' 118~~~ ./include/linux/percpu-refcount.h: In function 'percpu_ref_get_many': ./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'int' [-Wsign-compare] 127~~~~ ./include/linux/percpu-defs.h:365:25: note: in expansion of macro 'this_cpu_add_1' 365~~~./include/linux/percpu-refcount.h:205:17: note: in expansion of macro 'this_cpu_add' 205~~~ ./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'int' [-Wsign-compare] 127~~~~ ./include/linux/percpu-defs.h:366:25: note: in expansion of macro 'this_cpu_add_2' 366~~~./include/linux/percpu-refcount.h:205:17: note: in expansion of macro 'this_cpu_add' 205~~~ ./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'int' [-Wsign-compare] 127~~~~ ./include/linux/percpu-defs.h:367:25: note: in expansion of macro 'this_cpu_add_4' 367~~~./include/linux/percpu-refcount.h:205:17: note: in expansion of macro 'this_cpu_add' 205~~~ ./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'int' [-Wsign-compare] 127~~~~ ./include/linux/percpu-defs.h:368:25: note: in expansion of macro 'this_cpu_add_8' 368~~~./include/linux/percpu-refcount.h:205:17: note: in expansion of macro 'this_cpu_add' 205~~~ ./include/linux/percpu-refcount.h: In function 'percpu_ref_tryget_many': ./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'int' [-Wsign-compare] 127~~~~ ./include/linux/percpu-defs.h:365:25: note: in expansion of macro 'this_cpu_add_1' 365~~~./include/linux/percpu-refcount.h:244:17: note: in expansion of macro 'this_cpu_add' 244~~~ ./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'int' [-Wsign-compare] 127~~~~ ./include/linux/percpu-defs.h:366:25: note: in expansion of macro 'this_cpu_add_2' 366~~~./include/linux/percpu-refcount.h:244:17: note: in expansion of macro 'this_cpu_add' 244~~~ ./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'int' [-Wsign-compare] 127~~~~ ./include/linux/percpu-defs.h:367:25: note: in expansion of macro 'this_cpu_add_4' 367~~~./include/linux/percpu-refcount.h:244:17: note: in expansion of macro 'this_cpu_add' 244~~~ ./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'int' [-Wsign-compare] 127~~~~ ./include/linux/percpu-defs.h:368:25: note: in expansion of macro 'this_cpu_add_8' 368~~~./include/linux/percpu-refcount.h:244:17: note: in expansion of macro 'this_cpu_add' 244~~~ ./include/linux/percpu-refcount.h: In function 'percpu_ref_put_many': ./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'int' [-Wsign-compare] 127~~~~ ./include/linux/percpu-defs.h:365:25: note: in expansion of macro 'this_cpu_add_1' 365~~~./include/linux/percpu-defs.h:500:41: note: in expansion of macro 'this_cpu_add' 500~~~ ./include/linux/percpu-refcount.h:333:17: note: in expansion of macro 'this_cpu_sub' 333~~~ ./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'int' [-Wsign-compare] 127~~~~ ./include/linux/percpu-defs.h:366:25: note: in expansion of macro 'this_cpu_add_2' 366~~~./include/linux/percpu-defs.h:500:41: note: in expansion of macro 'this_cpu_add' 500~~~ ./include/linux/percpu-refcount.h:333:17: note: in expansion of macro 'this_cpu_sub' 333~~~ ./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'int' [-Wsign-compare] 127~~~~ ./include/linux/percpu-defs.h:367:25: note: in expansion of macro 'this_cpu_add_4' 367~~~./include/linux/percpu-defs.h:500:41: note: in expansion of macro 'this_cpu_add' 500~~~ ./include/linux/percpu-refcount.h:333:17: note: in expansion of macro 'this_cpu_sub' 333~~~ ./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'int' [-Wsign-compare] 127~~~~ ./include/linux/percpu-defs.h:368:25: note: in expansion of macro 'this_cpu_add_8' 368~~~./include/linux/percpu-defs.h:500:41: note: in expansion of macro 'this_cpu_add' 500~~~ ./include/linux/percpu-refcount.h:333:17: note: in expansion of macro 'this_cpu_sub' 333~~~ ./include/linux/vmstat.h: In function 'zone_page_state_snapshot': ./include/linux/find.h:559:77: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 559~~~./include/linux/cpumask.h:995:36: note: in expansion of macro 'for_each_cpu' 995~~~ ./include/linux/vmstat.h:231:9: note: in expansion of macro 'for_each_online_cpu' 231~~~~~~ ./include/linux/cpufreq.h: In function 'of_perf_domain_get_sharing_cpumask': ./include/linux/find.h:559:77: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 559~~~./include/linux/cpumask.h:994:36: note: in expansion of macro 'for_each_cpu' 994~~~ ./include/linux/cpufreq.h:1157:9: note: in expansion of macro 'for_each_possible_cpu' 1157~~~~In file included from /tmp/selfgz2281/kernel/nv-linux.h:156: ./include/linux/pagemap.h: In function 'folio_contains': ./include/linux/pagemap.h:841:43: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'long int' [-Wsign-compare] 841~~~~ ./include/linux/percpu-defs.h:365:25: note: in expansion of macro 'this_cpu_add_1' 365~~~./include/linux/percpu-defs.h:500:41: note: in expansion of macro 'this_cpu_add' 500~~~ ./include/linux/percpu-defs.h:502:41: note: in expansion of macro 'this_cpu_sub' 502~~~ ./arch/x86/include/asm/xen/hypervisor.h:98:17: note: in expansion of macro 'this_cpu_dec' 98~~~ ./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 127~~~~ ./include/linux/percpu-defs.h:366:25: note: in expansion of macro 'this_cpu_add_2' 366~~~./include/linux/percpu-defs.h:500:41: note: in expansion of macro 'this_cpu_add' 500~~~ ./include/linux/percpu-defs.h:502:41: note: in expansion of macro 'this_cpu_sub' 502~~~ ./arch/x86/include/asm/xen/hypervisor.h:98:17: note: in expansion of macro 'this_cpu_dec' 98~~~ ./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 127~~~~ ./include/linux/percpu-defs.h:367:25: note: in expansion of macro 'this_cpu_add_4' 367~~~./include/linux/percpu-defs.h:500:41: note: in expansion of macro 'this_cpu_add' 500~~~ ./include/linux/percpu-defs.h:502:41: note: in expansion of macro 'this_cpu_sub' 502~~~ ./arch/x86/include/asm/xen/hypervisor.h:98:17: note: in expansion of macro 'this_cpu_dec' 98~~~ ./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 127~~~~ ./include/linux/percpu-defs.h:368:25: note: in expansion of macro 'this_cpu_add_8' 368~~~./include/linux/percpu-defs.h:500:41: note: in expansion of macro 'this_cpu_add' 500~~~ ./include/linux/percpu-defs.h:502:41: note: in expansion of macro 'this_cpu_sub' 502~~~ ./arch/x86/include/asm/xen/hypervisor.h:98:17: note: in expansion of macro 'this_cpu_dec' 98~~~ In file included from ./include/linux/writeback.h:202, from ./include/linux/memcontrol.h:22, from ./include/linux/swap.h:9, from ./include/linux/suspend.h:5, from ./include/linux/regulator/consumer.h:35, from ./include/linux/i2c.h:19, from /tmp/selfgz2281/kernel/nv-linux.h:305: ./include/linux/bio.h: In function 'bio_next_split': ./include/linux/bio.h:406:21: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 406In file included from /tmp/selfgz2281/kernel/nv-linux.h:68: ./include/linux/mm.h:2443:33: note: expected 'int *' but argument is of type 'struct vm_area_struct ' 2443 | int locked); |
~^~/tmp/selfgz2281/kernel/nv-linux.h:2261:23: error: too many arguments to function 'get_user_pages_remote' 2261 | return get_user_pages_remote(mm, start, nr_pages, flags, | ^~~~~./include/linux/mm.h:2440:6: note: declared here 2440 | long get_user_pages_remote(struct mm_struct mm, | ^~~~~/tmp/selfgz2281/kernel/nv.c: At top level: /tmp/selfgz2281/kernel/nv.c:709:12: warning: no previous prototype for 'nvidia_init_module' [-Wmissing-prototypes] 709 | int __init nvidia_init_module(void) | ^~~~~~ /tmp/selfgz2281/kernel/nv.c:1054:6: warning: no previous prototype for 'nvidia_exit_module' [-Wmissing-prototypes] 1054 | void nvidia_exit_module(void) | ^~~~~~ cc1: some warnings being treated as errors make[3]: ** [scripts/Makefile.build:243: /tmp/selfgz2281/kernel/nv.o] Error 1 make[2]: [/usr/src/linux-headers-6.8.4-3-pve/Makefile:1926: /tmp/selfgz2281/kernel] Error 2 make[1]: [Makefile:240: __sub-make] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-6.8.4-3-pve' NVIDIA: left KBUILD. nvidia.ko failed to build! make: [Makefile:202: nvidia.ko] Error 1 -> Error. ERROR: Unable to build the NVIDIA kernel module. 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