MeowIce / nvidia-legacy

This repository includes patched legacy nVIDIA drivers for newer Linux kernels (5.8 - 6.8). Works on all Linux distros.
118 stars 38 forks source link

Issue installing new 340 driver on 6.8 kernel #24

Closed knightkronos closed 2 months ago

knightkronos commented 5 months ago

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

 printf '%s

' 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

 cc -Wp,-MMD,/tmp/selfgz2281/kernel/.nv.o.d -nostdinc -I./arch/x86/include -I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/compiler-version.h -include ./include/linux/kconfig.h -I./ubuntu/include -include ./include/linux/compiler_types.h -D__KERNEL__ -fmacro-prefix-map=./= -std=gnu11 -fshort-wchar -funsigned-char -fno-common -fno-PIE -fno-strict-aliasing -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -fcf-protection=none -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -mindirect-branch-cs-prefix -mfunction-return=thunk-extern -fno-jump-tables -mharden-sls=all -fpatchable-function-entry=16,16 -fno-delete-null-pointer-checks -O2 -fno-allow-store-data-races -fstack-protector-strong -fno-omit-frame-pointer -fno-optimize-sibl
ing-calls -ftrivial-auto-var-init=zero -fno-stack-clash-protection -fzero-call-used-regs=used-gpr -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -falign-functions=16 -fno-strict-overflow -fno-stack-check -fconserve-stack -Wall -Wundef -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Werror=strict-prototypes -Wno-format-security -Wno-trigraphs -Wno-frame-address -Wno-address-of-packed-member -Wmissing-declarations -Wmissing-prototypes -Wframe-larger-than=1024 -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -Wno-dangling-pointer -Wvla -Wno-pointer-sign -Wcast-function-type -Wno-stringop-overflow -Wno-array-bounds -Wno-alloc-size-larger-than -Wimplicit-fallthrough=5 -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wenum-conversion -Wno-unused-but-set-variable -Wno-unused-const-variable -Wno-restrict -Wno-packed-not-aligned -Wno-format-overflow -Wno-format-truncation -Wno-stringop-truncation -Wno-missing-field-initializers -Wno-type-lim its -Wno-shift-negative-value -Wno-maybe-uninitialized -Wno-sign-compare -g -gdwarf-5 -DNV_MODULE_INSTANCE=0 -DNV_BUILD_MODULE_INSTANCES=0 -UDEBUG -U_DEBUG -DNDEBUG -I/tmp/selfgz2281/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -DKERNEL -DMODULE -DNVRM -DNV_VERSION_STRING=\"340.108\" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -Dlinux -DNV_DEV_NAME=\"nvidia\" -fsanitize=shift -fsanitize=bool -fsanitize=enum -DMODULE -DKBUILD_BASENAME='"nv"' -DKBUILD_MODNAME='"nvidia"' -D__KBUILD_MODNAME=kmod_nvidia -c -o /tmp/selfgz2281/kernel/nv.o /tmp/selfgz2281/kernel/nv.c ; ./tools/objtool/objtool --hacks=jump_label --hacks=noinstr --hacks=skylake --retpoline --rethunk --sls --stackval --static-call --uaccess --prefix=16 --module /tmp/selfgz2281/kernel/nv.o In file included from ./include/linux/build_bug.h:5, from ./arch/x86/include/asm/current.h:5, from ./include/linux/sched.h:12, from ./include/linux/utsname.h:6, from /tmp/selfgz2281/kernel/nv-linux.h:44, from /tmp/selfgz2281/kernel/nv.c:13: ./include/linux/thread_info.h: In function 'check_copy_size': ./include/linux/thread_info.h:240:36: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 240 if (unlikely(sz >= 0 && sz < bytes)) { ^ ./include/linux/compiler.h:77:45: note: in definition of macro 'unlikely' 77 # define unlikely(x) __builtin_expect(!!(x), 0) ^ In file included from ./include/linux/mmzone.h:22, from ./include/linux/gfp.h:7, from ./include/linux/umh.h:4, from ./include/linux/kmod.h:9, from ./include/linux/module.h:17, from /tmp/selfgz2281/kernel/nv-linux.h:65: ./include/linux/mm_types.h: In function 'mm_cid_is_unset': ./include/linux/mm_types.h:1098:20: warning: comparison of integer expressions of different signedness: 'int' and 'enum mm_cid_state' [-Wsign-compare] 1098 return cid == MM_CID_UNSET; ^~ In file included from ./include/linux/bitmap.h:10, from ./include/linux/cpumask.h:12, from ./arch/x86/include/asm/paravirt.h:21, from ./arch/x86/include/asm/cpuid.h:62, from ./arch/x86/include/asm/processor.h:19, from ./include/linux/sched.h:13: ./include/linux/mm_types.h: In function 'mm_init_cid': ./include/linux/find.h:559:77: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 559 for ((bit) = 0; (bit) = find_next_bit((addr), (size), (bit)), (bit) < (size); (bit)++) ^ ./include/linux/cpumask.h:282:9: note: in expansion of macro 'for_each_set_bit' 282 for_each_set_bit(cpu, cpumask_bits(mask), small_cpumask_bits) ^~~~ ./include/linux/cpumask.h:994:36: note: in expansion of macro 'for_each_cpu' 994 #define for_each_possible_cpu(cpu) for_each_cpu((cpu), cpu_possible_mask) ^~~~ ./include/linux/mm_types.h:1136:9: note: in expansion of macro 'for_each_possible_cpu' 1136 for_each_possible_cpu(i) { ^~~~~ 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 return READ_ONCE(page->flags) == PAGE_POISON_PATTERN; ^~ ./include/linux/mmzone.h: In function 'next_zones_zonelist': ./include/linux/mmzone.h:1638:51: warning: comparison of integer expressions of different signedness: 'int' and 'enum zone_type' [-Wsign-compare] 1638 if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx)) ^~ ./include/linux/compiler.h:76:45: note: in definition of macro 'likely' 76 # define likely(x) __builtin_expect(!!(x), 1) ^ In file included from ./arch/x86/include/asm/current.h:11: ./include/linux/percpu-rwsem.h: In function 'percpu_up_read': ./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 127 ((val) == 1 (val) == -1)) ? \ ^~ ./arch/x86/include/asm/percpu.h:417:41: note: in expansion of macro 'percpu_add_op' 417 #define this_cpu_add_1(pcp, val) percpu_add_op(1, volatile, (pcp), val) ^~~~~ ./include/linux/percpu-defs.h:365:25: note: in expansion of macro 'this_cpu_add_1' 365 case 1: stem##1(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:491:41: note: in expansion of macro '__pcpu_size_call' 491 #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpuadd, pcp, val) ^~~~ ./include/linux/percpu-defs.h:500:41: note: in expansion of macro 'this_cpu_add' 500 #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^~~~ ./include/linux/percpu-defs.h:502:41: note: in expansion of macro 'this_cpu_sub' 502 #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) ^~~~ ./include/linux/percpu-rwsem.h:106:17: note: in expansion of macro 'this_cpu_dec' 106 this_cpu_dec(*sem->read_count); ^~~~ ./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 127 ((val) == 1 (val) == -1)) ? \ ^~ ./arch/x86/include/asm/percpu.h:418:41: note: in expansion of macro 'percpu_add_op' 418 #define this_cpu_add_2(pcp, val) percpu_add_op(2, volatile, (pcp), val) ^~~~~ ./include/linux/percpu-defs.h:366:25: note: in expansion of macro 'this_cpu_add_2' 366 case 2: stem##2(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:491:41: note: in expansion of macro '__pcpu_size_call' 491 #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpuadd, pcp, val) ^~~~ ./include/linux/percpu-defs.h:500:41: note: in expansion of macro 'this_cpu_add' 500 #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^~~~ ./include/linux/percpu-defs.h:502:41: note: in expansion of macro 'this_cpu_sub' 502 #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) ^~~~ ./include/linux/percpu-rwsem.h:106:17: note: in expansion of macro 'this_cpu_dec' 106 this_cpu_dec(*sem->read_count); ^~~~ ./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 127 ((val) == 1 (val) == -1)) ? \ ^~ ./arch/x86/include/asm/percpu.h:419:41: note: in expansion of macro 'percpu_add_op' 419 #define this_cpu_add_4(pcp, val) percpu_add_op(4, volatile, (pcp), val) ^~~~~ ./include/linux/percpu-defs.h:367:25: note: in expansion of macro 'this_cpu_add_4' 367 case 4: stem##4(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:491:41: note: in expansion of macro '__pcpu_size_call' 491 #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpuadd, pcp, val) ^~~~ ./include/linux/percpu-defs.h:500:41: note: in expansion of macro 'this_cpu_add' 500 #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^~~~ ./include/linux/percpu-defs.h:502:41: note: in expansion of macro 'this_cpu_sub' 502 #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) ^~~~ ./include/linux/percpu-rwsem.h:106:17: note: in expansion of macro 'this_cpu_dec' 106 this_cpu_dec(*sem->read_count); ^~~~ ./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 127 ((val) == 1 (val) == -1)) ? \ ^~ ./arch/x86/include/asm/percpu.h:467:49: note: in expansion of macro 'percpu_add_op' 467 #define this_cpu_add_8(pcp, val) percpu_add_op(8, volatile, (pcp), val) ^~~~~ ./include/linux/percpu-defs.h:368:25: note: in expansion of macro 'this_cpu_add_8' 368 case 8: stem##8(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:491:41: note: in expansion of macro '__pcpu_size_call' 491 #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpuadd, pcp, val) ^~~~ ./include/linux/percpu-defs.h:500:41: note: in expansion of macro 'this_cpu_add' 500 #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^~~~ ./include/linux/percpu-defs.h:502:41: note: in expansion of macro 'this_cpu_sub' 502 #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) ^~~~ ./include/linux/percpu-rwsem.h:106:17: note: in expansion of macro 'this_cpu_dec' 106 this_cpu_dec(*sem->read_count); ^~~~ ./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 127 ((val) == 1 (val) == -1)) ? \ ^~ ./arch/x86/include/asm/percpu.h:417:41: note: in expansion of macro 'percpu_add_op' 417 #define this_cpu_add_1(pcp, val) percpu_add_op(1, volatile, (pcp), val) ^~~~~ ./include/linux/percpu-defs.h:365:25: note: in expansion of macro 'this_cpu_add_1' 365 case 1: stem##1(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:491:41: note: in expansion of macro '__pcpu_size_call' 491 #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpuadd, pcp, val) ^~~~ ./include/linux/percpu-defs.h:500:41: note: in expansion of macro 'this_cpu_add' 500 #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^~~~ ./include/linux/percpu-defs.h:502:41: note: in expansion of macro 'this_cpu_sub' 502 #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) ^~~~ ./include/linux/percpu-rwsem.h:118:17: note: in expansion of macro 'this_cpu_dec' 118 this_cpu_dec(*sem->read_count); ^~~~ ./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 127 ((val) == 1 (val) == -1)) ? \ ^~ ./arch/x86/include/asm/percpu.h:418:41: note: in expansion of macro 'percpu_add_op' 418 #define this_cpu_add_2(pcp, val) percpu_add_op(2, volatile, (pcp), val) ^~~~~ ./include/linux/percpu-defs.h:366:25: note: in expansion of macro 'this_cpu_add_2' 366 case 2: stem##2(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:491:41: note: in expansion of macro '__pcpu_size_call' 491 #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpuadd, pcp, val) ^~~~ ./include/linux/percpu-defs.h:500:41: note: in expansion of macro 'this_cpu_add' 500 #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^~~~ ./include/linux/percpu-defs.h:502:41: note: in expansion of macro 'this_cpu_sub' 502 #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) ^~~~ ./include/linux/percpu-rwsem.h:118:17: note: in expansion of macro 'this_cpu_dec' 118 this_cpu_dec(*sem->read_count); ^~~~ ./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 127 ((val) == 1 (val) == -1)) ? \ ^~ ./arch/x86/include/asm/percpu.h:419:41: note: in expansion of macro 'percpu_add_op' 419 #define this_cpu_add_4(pcp, val) percpu_add_op(4, volatile, (pcp), val) ^~~~~ ./include/linux/percpu-defs.h:367:25: note: in expansion of macro 'this_cpu_add_4' 367 case 4: stem##4(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:491:41: note: in expansion of macro '__pcpu_size_call' 491 #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpuadd, pcp, val) ^~~~ ./include/linux/percpu-defs.h:500:41: note: in expansion of macro 'this_cpu_add' 500 #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^~~~ ./include/linux/percpu-defs.h:502:41: note: in expansion of macro 'this_cpu_sub' 502 #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) ^~~~ ./include/linux/percpu-rwsem.h:118:17: note: in expansion of macro 'this_cpu_dec' 118 this_cpu_dec(*sem->read_count); ^~~~ ./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 127 ((val) == 1 (val) == -1)) ? \ ^~ ./arch/x86/include/asm/percpu.h:467:49: note: in expansion of macro 'percpu_add_op' 467 #define this_cpu_add_8(pcp, val) percpu_add_op(8, volatile, (pcp), val) ^~~~~ ./include/linux/percpu-defs.h:368:25: note: in expansion of macro 'this_cpu_add_8' 368 case 8: stem##8(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:491:41: note: in expansion of macro '__pcpu_size_call' 491 #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpuadd, pcp, val) ^~~~ ./include/linux/percpu-defs.h:500:41: note: in expansion of macro 'this_cpu_add' 500 #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^~~~ ./include/linux/percpu-defs.h:502:41: note: in expansion of macro 'this_cpu_sub' 502 #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) ^~~~ ./include/linux/percpu-rwsem.h:118:17: note: in expansion of macro 'this_cpu_dec' 118 this_cpu_dec(*sem->read_count); ^~~~ ./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 ((val) == 1 (val) == -1)) ? \ ^~ ./arch/x86/include/asm/percpu.h:417:41: note: in expansion of macro 'percpu_add_op' 417 #define this_cpu_add_1(pcp, val) percpu_add_op(1, volatile, (pcp), val) ^~~~~ ./include/linux/percpu-defs.h:365:25: note: in expansion of macro 'this_cpu_add_1' 365 case 1: stem##1(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:491:41: note: in expansion of macro '__pcpu_size_call' 491 #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpuadd, pcp, val) ^~~~ ./include/linux/percpu-refcount.h:205:17: note: in expansion of macro 'this_cpu_add' 205 this_cpu_add(*percpu_count, nr); ^~~~ ./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'int' [-Wsign-compare] 127 ((val) == 1 (val) == -1)) ? \ ^~ ./arch/x86/include/asm/percpu.h:418:41: note: in expansion of macro 'percpu_add_op' 418 #define this_cpu_add_2(pcp, val) percpu_add_op(2, volatile, (pcp), val) ^~~~~ ./include/linux/percpu-defs.h:366:25: note: in expansion of macro 'this_cpu_add_2' 366 case 2: stem##2(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:491:41: note: in expansion of macro '__pcpu_size_call' 491 #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpuadd, pcp, val) ^~~~ ./include/linux/percpu-refcount.h:205:17: note: in expansion of macro 'this_cpu_add' 205 this_cpu_add(*percpu_count, nr); ^~~~ ./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'int' [-Wsign-compare] 127 ((val) == 1 (val) == -1)) ? \ ^~ ./arch/x86/include/asm/percpu.h:419:41: note: in expansion of macro 'percpu_add_op' 419 #define this_cpu_add_4(pcp, val) percpu_add_op(4, volatile, (pcp), val) ^~~~~ ./include/linux/percpu-defs.h:367:25: note: in expansion of macro 'this_cpu_add_4' 367 case 4: stem##4(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:491:41: note: in expansion of macro '__pcpu_size_call' 491 #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpuadd, pcp, val) ^~~~ ./include/linux/percpu-refcount.h:205:17: note: in expansion of macro 'this_cpu_add' 205 this_cpu_add(*percpu_count, nr); ^~~~ ./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'int' [-Wsign-compare] 127 ((val) == 1 (val) == -1)) ? \ ^~ ./arch/x86/include/asm/percpu.h:467:49: note: in expansion of macro 'percpu_add_op' 467 #define this_cpu_add_8(pcp, val) percpu_add_op(8, volatile, (pcp), val) ^~~~~ ./include/linux/percpu-defs.h:368:25: note: in expansion of macro 'this_cpu_add_8' 368 case 8: stem##8(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:491:41: note: in expansion of macro '__pcpu_size_call' 491 #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpuadd, pcp, val) ^~~~ ./include/linux/percpu-refcount.h:205:17: note: in expansion of macro 'this_cpu_add' 205 this_cpu_add(*percpu_count, nr); ^~~~ ./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 ((val) == 1 (val) == -1)) ? \ ^~ ./arch/x86/include/asm/percpu.h:417:41: note: in expansion of macro 'percpu_add_op' 417 #define this_cpu_add_1(pcp, val) percpu_add_op(1, volatile, (pcp), val) ^~~~~ ./include/linux/percpu-defs.h:365:25: note: in expansion of macro 'this_cpu_add_1' 365 case 1: stem##1(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:491:41: note: in expansion of macro '__pcpu_size_call' 491 #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpuadd, pcp, val) ^~~~ ./include/linux/percpu-refcount.h:244:17: note: in expansion of macro 'this_cpu_add' 244 this_cpu_add(*percpu_count, nr); ^~~~ ./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'int' [-Wsign-compare] 127 ((val) == 1 (val) == -1)) ? \ ^~ ./arch/x86/include/asm/percpu.h:418:41: note: in expansion of macro 'percpu_add_op' 418 #define this_cpu_add_2(pcp, val) percpu_add_op(2, volatile, (pcp), val) ^~~~~ ./include/linux/percpu-defs.h:366:25: note: in expansion of macro 'this_cpu_add_2' 366 case 2: stem##2(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:491:41: note: in expansion of macro '__pcpu_size_call' 491 #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpuadd, pcp, val) ^~~~ ./include/linux/percpu-refcount.h:244:17: note: in expansion of macro 'this_cpu_add' 244 this_cpu_add(*percpu_count, nr); ^~~~ ./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'int' [-Wsign-compare] 127 ((val) == 1 (val) == -1)) ? \ ^~ ./arch/x86/include/asm/percpu.h:419:41: note: in expansion of macro 'percpu_add_op' 419 #define this_cpu_add_4(pcp, val) percpu_add_op(4, volatile, (pcp), val) ^~~~~ ./include/linux/percpu-defs.h:367:25: note: in expansion of macro 'this_cpu_add_4' 367 case 4: stem##4(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:491:41: note: in expansion of macro '__pcpu_size_call' 491 #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpuadd, pcp, val) ^~~~ ./include/linux/percpu-refcount.h:244:17: note: in expansion of macro 'this_cpu_add' 244 this_cpu_add(*percpu_count, nr); ^~~~ ./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'int' [-Wsign-compare] 127 ((val) == 1 (val) == -1)) ? \ ^~ ./arch/x86/include/asm/percpu.h:467:49: note: in expansion of macro 'percpu_add_op' 467 #define this_cpu_add_8(pcp, val) percpu_add_op(8, volatile, (pcp), val) ^~~~~ ./include/linux/percpu-defs.h:368:25: note: in expansion of macro 'this_cpu_add_8' 368 case 8: stem##8(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:491:41: note: in expansion of macro '__pcpu_size_call' 491 #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpuadd, pcp, val) ^~~~ ./include/linux/percpu-refcount.h:244:17: note: in expansion of macro 'this_cpu_add' 244 this_cpu_add(*percpu_count, nr); ^~~~ ./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 ((val) == 1 (val) == -1)) ? \ ^~ ./arch/x86/include/asm/percpu.h:417:41: note: in expansion of macro 'percpu_add_op' 417 #define this_cpu_add_1(pcp, val) percpu_add_op(1, volatile, (pcp), val) ^~~~~ ./include/linux/percpu-defs.h:365:25: note: in expansion of macro 'this_cpu_add_1' 365 case 1: stem##1(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:491:41: note: in expansion of macro '__pcpu_size_call' 491 #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpuadd, pcp, val) ^~~~ ./include/linux/percpu-defs.h:500:41: note: in expansion of macro 'this_cpu_add' 500 #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^~~~ ./include/linux/percpu-refcount.h:333:17: note: in expansion of macro 'this_cpu_sub' 333 this_cpu_sub(*percpu_count, nr); ^~~~ ./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'int' [-Wsign-compare] 127 ((val) == 1 (val) == -1)) ? \ ^~ ./arch/x86/include/asm/percpu.h:418:41: note: in expansion of macro 'percpu_add_op' 418 #define this_cpu_add_2(pcp, val) percpu_add_op(2, volatile, (pcp), val) ^~~~~ ./include/linux/percpu-defs.h:366:25: note: in expansion of macro 'this_cpu_add_2' 366 case 2: stem##2(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:491:41: note: in expansion of macro '__pcpu_size_call' 491 #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpuadd, pcp, val) ^~~~ ./include/linux/percpu-defs.h:500:41: note: in expansion of macro 'this_cpu_add' 500 #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^~~~ ./include/linux/percpu-refcount.h:333:17: note: in expansion of macro 'this_cpu_sub' 333 this_cpu_sub(*percpu_count, nr); ^~~~ ./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'int' [-Wsign-compare] 127 ((val) == 1 (val) == -1)) ? \ ^~ ./arch/x86/include/asm/percpu.h:419:41: note: in expansion of macro 'percpu_add_op' 419 #define this_cpu_add_4(pcp, val) percpu_add_op(4, volatile, (pcp), val) ^~~~~ ./include/linux/percpu-defs.h:367:25: note: in expansion of macro 'this_cpu_add_4' 367 case 4: stem##4(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:491:41: note: in expansion of macro '__pcpu_size_call' 491 #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpuadd, pcp, val) ^~~~ ./include/linux/percpu-defs.h:500:41: note: in expansion of macro 'this_cpu_add' 500 #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^~~~ ./include/linux/percpu-refcount.h:333:17: note: in expansion of macro 'this_cpu_sub' 333 this_cpu_sub(*percpu_count, nr); ^~~~ ./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'long unsigned int' and 'int' [-Wsign-compare] 127 ((val) == 1 (val) == -1)) ? \ ^~ ./arch/x86/include/asm/percpu.h:467:49: note: in expansion of macro 'percpu_add_op' 467 #define this_cpu_add_8(pcp, val) percpu_add_op(8, volatile, (pcp), val) ^~~~~ ./include/linux/percpu-defs.h:368:25: note: in expansion of macro 'this_cpu_add_8' 368 case 8: stem##8(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:491:41: note: in expansion of macro '__pcpu_size_call' 491 #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpuadd, pcp, val) ^~~~ ./include/linux/percpu-defs.h:500:41: note: in expansion of macro 'this_cpu_add' 500 #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^~~~ ./include/linux/percpu-refcount.h:333:17: note: in expansion of macro 'this_cpu_sub' 333 this_cpu_sub(*percpu_count, nr); ^~~~ ./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 for ((bit) = 0; (bit) = find_next_bit((addr), (size), (bit)), (bit) < (size); (bit)++) ^ ./include/linux/cpumask.h:282:9: note: in expansion of macro 'for_each_set_bit' 282 for_each_set_bit(cpu, cpumask_bits(mask), small_cpumask_bits) ^~~~ ./include/linux/cpumask.h:995:36: note: in expansion of macro 'for_each_cpu' 995 #define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask) ^~~~ ./include/linux/vmstat.h:231:9: note: in expansion of macro 'for_each_online_cpu' 231 for_each_online_cpu(cpu) ^~~~~~~ ./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 for ((bit) = 0; (bit) = find_next_bit((addr), (size), (bit)), (bit) < (size); (bit)++) ^ ./include/linux/cpumask.h:282:9: note: in expansion of macro 'for_each_set_bit' 282 for_each_set_bit(cpu, cpumask_bits(mask), small_cpumask_bits) ^~~~ ./include/linux/cpumask.h:994:36: note: in expansion of macro 'for_each_cpu' 994 #define for_each_possible_cpu(cpu) for_each_cpu((cpu), cpu_possible_mask) ^~~~ ./include/linux/cpufreq.h:1157:9: note: in expansion of macro 'for_each_possible_cpu' 1157 for_each_possible_cpu(cpu) { ^~~~~ 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 return index - folio_index(folio) < folio_nr_pages(folio); ^ In file included from ./include/linux/efi.h:20, from /tmp/selfgz2281/kernel/nv-linux.h:177: ./include/linux/rtc.h: In function 'rtc_bound_alarmtime': ./include/linux/rtc.h:239:50: warning: comparison of integer expressions of different signedness: 'long long unsigned int' and 's64' {aka 'long long int'} [-Wsign-compare] 239 rtc->alarm_offset_max * MSEC_PER_SEC < ktime_to_ms(requested)) ^ ./arch/x86/include/asm/xen/hypervisor.h: In function 'leave_lazy': ./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 127 ((val) == 1 (val) == -1)) ? \ ^~ ./arch/x86/include/asm/percpu.h:417:41: note: in expansion of macro 'percpu_add_op' 417 #define this_cpu_add_1(pcp, val) percpu_add_op(1, volatile, (pcp), val) ^~~~~ ./include/linux/percpu-defs.h:365:25: note: in expansion of macro 'this_cpu_add_1' 365 case 1: stem##1(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:491:41: note: in expansion of macro '__pcpu_size_call' 491 #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpuadd, pcp, val) ^~~~ ./include/linux/percpu-defs.h:500:41: note: in expansion of macro 'this_cpu_add' 500 #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^~~~ ./include/linux/percpu-defs.h:502:41: note: in expansion of macro 'this_cpu_sub' 502 #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) ^~~~ ./arch/x86/include/asm/xen/hypervisor.h:98:17: note: in expansion of macro 'this_cpu_dec' 98 this_cpu_dec(xen_lazy_nesting); ^~~~ ./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 127 ((val) == 1 (val) == -1)) ? \ ^~ ./arch/x86/include/asm/percpu.h:418:41: note: in expansion of macro 'percpu_add_op' 418 #define this_cpu_add_2(pcp, val) percpu_add_op(2, volatile, (pcp), val) ^~~~~ ./include/linux/percpu-defs.h:366:25: note: in expansion of macro 'this_cpu_add_2' 366 case 2: stem##2(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:491:41: note: in expansion of macro '__pcpu_size_call' 491 #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpuadd, pcp, val) ^~~~ ./include/linux/percpu-defs.h:500:41: note: in expansion of macro 'this_cpu_add' 500 #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^~~~ ./include/linux/percpu-defs.h:502:41: note: in expansion of macro 'this_cpu_sub' 502 #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) ^~~~ ./arch/x86/include/asm/xen/hypervisor.h:98:17: note: in expansion of macro 'this_cpu_dec' 98 this_cpu_dec(xen_lazy_nesting); ^~~~ ./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 127 ((val) == 1 (val) == -1)) ? \ ^~ ./arch/x86/include/asm/percpu.h:419:41: note: in expansion of macro 'percpu_add_op' 419 #define this_cpu_add_4(pcp, val) percpu_add_op(4, volatile, (pcp), val) ^~~~~ ./include/linux/percpu-defs.h:367:25: note: in expansion of macro 'this_cpu_add_4' 367 case 4: stem##4(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:491:41: note: in expansion of macro '__pcpu_size_call' 491 #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpuadd, pcp, val) ^~~~ ./include/linux/percpu-defs.h:500:41: note: in expansion of macro 'this_cpu_add' 500 #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^~~~ ./include/linux/percpu-defs.h:502:41: note: in expansion of macro 'this_cpu_sub' 502 #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) ^~~~ ./arch/x86/include/asm/xen/hypervisor.h:98:17: note: in expansion of macro 'this_cpu_dec' 98 this_cpu_dec(xen_lazy_nesting); ^~~~ ./arch/x86/include/asm/percpu.h:127:52: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'int' [-Wsign-compare] 127 ((val) == 1 (val) == -1)) ? \ ^~ ./arch/x86/include/asm/percpu.h:467:49: note: in expansion of macro 'percpu_add_op' 467 #define this_cpu_add_8(pcp, val) percpu_add_op(8, volatile, (pcp), val) ^~~~~ ./include/linux/percpu-defs.h:368:25: note: in expansion of macro 'this_cpu_add_8' 368 case 8: stem##8(variable, __VA_ARGS__);break; \ ^~~~ ./include/linux/percpu-defs.h:491:41: note: in expansion of macro '__pcpu_size_call' 491 #define this_cpu_add(pcp, val) __pcpu_size_call(this_cpuadd, pcp, val) ^~~~ ./include/linux/percpu-defs.h:500:41: note: in expansion of macro 'this_cpu_add' 500 #define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val)) ^~~~ ./include/linux/percpu-defs.h:502:41: note: in expansion of macro 'this_cpu_sub' 502 #define this_cpu_dec(pcp) this_cpu_sub(pcp, 1) ^~~~ ./arch/x86/include/asm/xen/hypervisor.h:98:17: note: in expansion of macro 'this_cpu_dec' 98 this_cpu_dec(xen_lazy_nesting); ^~~~ 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] 406 if (sectors >= bio_sectors(bio)) ^~ /tmp/selfgz2281/kernel/nv-linux.h: In function 'NV_GET_USER_PAGES_REMOTE': /tmp/selfgz2281/kernel/nv-linux.h:2262:52: error: passing argument 6 of 'get_user_pages_remote' from incompatible pointer type [-Werror=incompatible-pointer-types] 2262 pages, vmas, NULL); ^~~~
struct vm_area_struct **

In 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

BstAA commented 4 months ago

Same problem when trying to install on Ubuntu 24.04 LTS, Kernel 6.8.0-35. See log nvidia-installer.zip

AleytiaFairlight commented 2 months ago

I have the same issue trying to install this on Proxmox VE 8.2.4 here is my log https://pastebin.com/Tujmi9HF

MeowIce commented 2 months ago

Hey @AleytiaFairlight @BstAA @knightkronos Can you try this build ? It added support for Linux 6.8 krn.

AleytiaFairlight commented 1 month ago

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.