-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue installing new 340 driver on 6.8 kernel #24
Comments
Same problem when trying to install on Ubuntu 24.04 LTS, Kernel 6.8.0-35. See log |
I have the same issue trying to install this on Proxmox VE 8.2.4 here is my log |
Hey @AleytiaFairlight @BstAA @knightkronos |
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# ./NVIDIA-Linux-x86_64-340.108-patched-6.8.runroot@proxmox2:
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
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 -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING="340.108" -Wno-unused-function -Wuninitialized -fno-strict-aliasing -mno-red-zone -mcmodel=kernel -DNV_UVM_ENABLE -D__linux__ -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_cpu_add, 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_cpu_add, 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_cpu_add, 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_cpu_add, 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_cpu_add, 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_cpu_add, 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_cpu_add, 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_cpu_add, 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_cpu_add, 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_cpu_add, 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_cpu_add, 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_cpu_add, 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_cpu_add, 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_cpu_add, 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_cpu_add, 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_cpu_add, 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_cpu_add, 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_cpu_add, 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_cpu_add, 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_cpu_add, 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_cpu_add, 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_cpu_add, 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_cpu_add, 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_cpu_add, 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
The text was updated successfully, but these errors were encountered: