Article 6Q1GH Nvidia 470.256.02 not building on current

Nvidia 470.256.02 not building on current

by
camorri
from LinuxQuestions.org on (#6Q1GH)
As the title says, I can not build the Nvidia driver 470.256.02 on the latest kernel, 6.10.5. I'm using the blob. My grachics card is a NVIDIA GK208B [GeForce GT 710].

I dual boot 15.0 and current onthe same box. The driver on 15.0 works as expected.

It was last working on current on a 6.9.12 kernel. I was away from a few days, so I do not know for sure which kernel would show the first failure.

On 6.9.12 I had to apply 3 patches to get it working. I have not found any information on what to patch.

In the installer log I see many warnings like this one:

Code:In file included from /home/cliff/src/nv-470-256/NVIDIA-Linux-x86_64-470.256.02/kernel/nvidia/os-mlock.c:14:
698 /home/cliff/src/nv-470-256/NVIDIA-Linux-x86_64-470.256.02/kernel/common/inc/nv-linux.h: In function 'nv_vmalloc':
699 /home/cliff/src/nv-470-256/NVIDIA-Linux-x86_64-470.256.02/kernel/common/inc/nv-linux.h:521:33: warning: suggest braces around empty body>
700 521 | NV_MEMDBG_ADD(ptr, size);I see this error message:

Code:make[1]: Entering directory '/usr/src/linux-6.10.5'
3884 warning: the compiler differs from the one used to build the kernel
3885 The kernel was built by: gcc (GCC) 14.2.0
3886 You are using: cc (GCC) 14.2.0It ends like this:

Code:/home/cliff/src/nv-470-256/NVIDIA-Linux-x86_64-470.256.02/kernel/nvidia/os-mlock.c: In function 'nv_follow_pfn':
7803 /home/cliff/src/nv-470-256/NVIDIA-Linux-x86_64-470.256.02/kernel/nvidia/os-mlock.c:23:12: error: implicit declaration>
7804 23 | return follow_pfn(vma, address, pfn);
7805 | ^~~~~~~~~~
7806 | follow_pte
7807 make[3]: *** [scripts/Makefile.build:244: /home/cliff/src/nv-470-256/NVIDIA-Linux-x86_64-470.256.02/kernel/nvidia/os->
7808 make[3]: Target '/home/cliff/src/nv-470-256/NVIDIA-Linux-x86_64-470.256.02/kernel/' not remade because of errors.
7809 make[2]: *** [/usr/src/linux-6.10.5/Makefile:1934: /home/cliff/src/nv-470-256/NVIDIA-Linux-x86_64-470.256.02/kernel] >
7810 make[2]: Target 'modules' not remade because of errors.
7811 make[1]: *** [Makefile:240: __sub-make] Error 2
7812 make[1]: Target 'modules' not remade because of errors.
7813 make[1]: Leaving directory '/usr/src/linux-6.10.5'
7814 make: *** [Makefile:80: modules] Error 2
7815 ERROR: The nvidia kernel module was not created.
7816 ERROR: Installation has failed. Please see the file '/var/log/nvidia-installer.log' for details. You may find suggeHas any one else seen this on the 6.10.5 kernel?

Where do you find patches to fix such errors.

All help is appreciated.
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments