Can't install nvidia G06 driver in tumbleweed for compilation error

Output of uname -r

6.11.3-2-default

Compilation error:

/usr/src/kernel-modules/nvidia-555.42.06-default/nvidia/os-interface.c:1985:5: note: in expansion of macro ‘NV_KMALLOC’
 1985 |     NV_KMALLOC(*wq, sizeof(os_wait_queue));
      |     ^~~~~~~~~~
/usr/src/kernel-modules/nvidia-555.42.06-default/nvidia/os-mlock.c: In function ‘nv_follow_pfn’:
/usr/src/kernel-modules/nvidia-555.42.06-default/nvidia/os-mlock.c:42:12: error: implicit declaration of function ‘follow_pfn’; did you mean ‘follow_pte’? [-Wimplicit-function-declaration]
   42 |     return follow_pfn(vma, address, pfn);
      |            ^~~~~~~~~~
      |            follow_pte
make[4]: *** [/usr/src/linux-6.11.3-2/scripts/Makefile.build:245: /usr/src/kernel-modules/nvidia-555.42.06-default/nvidia/os-mlock.o] Error 1

Which driver is this? Where do you have it from? Is it the .run package?

The actual available version (rpm) for Tumbleweed is nvidia-drivers-G06-550.120-28.1

Just run

sudo zipper install nvidia-video-G06 nvidia-gl-G06

Follow this wiki: SDB:NVIDIA drivers - openSUSE Wiki

Installed packages are

Retrieving: nvidia-driver-G06-kmp-default-555.42.06_k4.12.14_lp150.12.82-0.x86_64 (cuda)                           (1/7),  39.6 MiB    
Retrieving: nvidia-driver-G06-kmp-default-555.42.06_k4.12.14_lp150.12.82-0.x86_64.rpm ..............................[done (31.0 KiB/s)]
Retrieving: nvidia-gl-G06-555.42.06-0.x86_64 (cuda)                                                                (2/7), 138.9 MiB    
Retrieving: nvidia-gl-G06-555.42.06-0.x86_64.rpm ..................................................................[error (30.2 KiB/s)]
Timeout exceeded when accessing 'http://developer.download.nvidia.com/compute/cuda/repos/opensuse15/x86_64/nvidia-gl-G06-555.42.06-0.x86_64.rpm'.
Abort, retry, ignore? [a/r/i] (r): 
Trying again...
Retrieving: nvidia-gl-G06-555.42.06-0.x86_64.rpm ...................................................................[done (58.8 KiB/s)]
Retrieving: nvidia-gl-G06-32bit-555.42.06-0.x86_64 (cuda)                                                          (3/7),  27.7 MiB    
Retrieving: nvidia-gl-G06-32bit-555.42.06-0.x86_64.rpm .............................................................[done (60.0 KiB/s)]
Retrieving: nvidia-compute-G06-555.42.06-0.x86_64 (cuda)                                                           (4/7),  38.9 MiB    
Retrieving: nvidia-compute-G06-555.42.06-0.x86_64.rpm ..............................................................[done (47.9 KiB/s)]
Retrieving: nvidia-video-G06-555.42.06-0.x86_64 (cuda)                                                             (5/7),   2.5 MiB    
Retrieving: nvidia-video-G06-555.42.06-0.x86_64.rpm ................................................................[done (56.5 KiB/s)]
Retrieving: nvidia-video-G06-32bit-555.42.06-0.x86_64 (cuda)                                                       (6/7),   2.2 MiB    
Retrieving: nvidia-video-G06-32bit-555.42.06-0.x86_64.rpm ..........................................................[done (55.8 KiB/s)]
Retrieving: nvidia-compute-G06-32bit-555.42.06-0.x86_64 (cuda)                                                     (7/7),  34.2 MiB    
Retrieving: nvidia-compute-G06-32bit-555.42.06-0.x86_64.rpm 

Can I specify the version by zypper or must install it manally?

The wiki explicitely mentions which repository you need to add. You have the CUDA repoitory for developers. If you want to use these, you need to report all errors to Nvidia directly.

The packages from the repo mentioned at the beginning of the SDB works flawlessly.

Show your Repo list:
zypper lr -d

This are drivers for kernel 4.12:

Retrieving: nvidia-driver-G06-kmp-default-555.42.06_k4.12.14_lp150.12.82-0.x86_64.rpm
 1 | NVIDIA:repo-non-free       | repo-non-free                                                | Yes     | (r ) Yes  | Yes     |   99     | rpm-md   | https://download.nvidia.com/opensuse/tumbleweed                                            | NVIDIA
 7 | cuda                       | cuda                                                         | Yes     | (r ) Yes  | No      |   99     | rpm-md   | http://developer.download.nvidia.com/compute/cuda/repos/opensuse15/x86_64/                 | 

I have forgotten where I got these repo, maybe the official site of Nvidia.

This is not the complete Repo list?

Yes, but they are the nvidia related repos.

ok, if you mean

If you are asked to provide informations, you should provide them (if you really want help). Your output is useless as it only show the name but omits the URL.

I think that only one of them should be enabled in order to have the correct packages. You can disable one of them in YaST Repositories and eventually give sudo zypper ref in case YaST doesn’t refresh already.

It’s easier to either have Nvidia 550 or 560. I don’t know how the system chooses to go ahead with 555.

Yes, I correct it by disable the cuda repo, this overwrite the packages from repo-non-free.

Thanks everyone!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.