Hi

I'm trying to upgrade my 5.18.10 system and the DKMS build is failing for
my NVIDIA driver.

To debug it I have tried to compile the driver separately out of DKMS, but
the issue that keeps coming up with the new kernel (6.2.6) is [1]

Sadly, though, my card cannot run a more recent version of the driver. When
I compile e.g. the 5xx driver I get a message:

NVRM: The NVIDIA GeForce GTX 760 GPU installed in this system is
NVRM:  supported through the NVIDIA 470.xx Legacy drivers. Please
NVRM:  visit http://www.nvidia.com/object/unix.html for more

So it seems that I am stuck on having to use the 470x drivers, the latest
one available from Nvidia is 470.161.03, which fails to compile on Kernel
>=6

So what can I do? Stay on Kernel 5.18.10 or is it likely that NVidia or the
community will provide a fix for the issue in [1]?

Many thanks

[1]
CC [M]
 /some/where/sources/nvidia/trunk/src/nvidia/470.161.03/build/nvidia/nv-p2p.o
/some/where/sources/nvidia/trunk/src/nvidia/470.161.03/build/nvidia/nv-acpi.c:84:19:
error: initialization of ‘void (*)(struct acpi_device *)’ from incompatible
pointer type ‘int (*)(struct acpi_device *, int)’
[-Werror=incompatible-pointer-types]
84 |         .remove = nv_acpi_remove_two_args,
|                   ^~~~~~~~~~~~~~~~~~~~~~~
/some/where/sources/nvidia/trunk/src/nvidia/470.161.03/build/nvidia/nv-acpi.c:84:19:
note: (near initialization for ‘nv_acpi_driver_template.ops.remove’)
/some/where/sources/nvidia/trunk/src/nvidia/470.161.03/build/nvidia/nv-dma.c:963:
warning: "IMPORT_SGT_STUBS_NEEDED" redefined
963 | #define IMPORT_SGT_STUBS_NEEDED 0
|
/some/where/sources/nvidia/trunk/src/nvidia/470.161.03/build/nvidia/nv-dma.c:957:
note: this is the location of the previous definition
957 | #define IMPORT_SGT_STUBS_NEEDED 1
|
/some/where/sources/nvidia/trunk/src/nvidia/470.161.03/build/nvidia/nv-mmap.c:
In function ‘nv_encode_caching’:
/some/where/sources/nvidia/trunk/src/nvidia/470.161.03/build/nvidia/nv-mmap.c:348:16:
warning: this statement may fall through [-Wimplicit-fallthrough=]
348 |             if (NV_ALLOW_CACHING(memory_type))
|                ^
/some/where/sources/nvidia/trunk/src/nvidia/470.161.03/build/nvidia/nv-mmap.c:351:9:
note: here
351 |         default:
|         ^~~~~~~
CC [M]
 /some/where/sources/nvidia/trunk/src/nvidia/470.161.03/build/nvidia/nv-pat.o
CC [M]
 /some/where/sources/nvidia/trunk/src/nvidia/470.161.03/build/nvidia/nv-procfs.o
CC [M]
 
/some/where/sources/nvidia/trunk/src/nvidia/470.161.03/build/nvidia/nv-procfs-utils.o
CC [M]
 
/some/where/sources/nvidia/trunk/src/nvidia/470.161.03/build/nvidia/nv-usermap.o
CC [M]
 /some/where/sources/nvidia/trunk/src/nvidia/470.161.03/build/nvidia/nv-vm.o
cc1: some warnings being treated as errors
CC [M]
 
/some/where/sources/nvidia/trunk/src/nvidia/470.161.03/build/nvidia/nv-vtophys.o
make[2]: *** [scripts/Makefile.build:252:
/some/where/sources/nvidia/trunk/src/nvidia/470.161.03/build/nvidia/nv-acpi.o]
Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:2021:
/some/where/sources/nvidia/trunk/src/nvidia/470.161.03/build] Error

Reply via email to