Leap 16 Clean install, can't get Nvidia drivers to work

I have done a clean install of Leap 16, I have installed the Nvidia drivers from the Nvidia repository. I am running with a GeForce GTX 1660 SUPER. I have made sure that “nomodeset” has been removed from Grub, and I have rebooted the system after all of that. I don’t seem to be able to get the system to use the drivers, I am left with a display of 1024x780 and no other options. Below is the output from the following commands:

zypper se -si nvidia

S  | Name                          | Type    | Version                                 | Arch   | Repository
---+-------------------------------+---------+-----------------------------------------+--------+---------------------
i  | kernel-firmware-nvidia        | package | 20250516-160000.2.2                     | noarch | Leap 16.0
i  | kernel-firmware-nvidia        | package | 20250516-160000.2.2                     | noarch | repo-oss (16.0)
i  | libnvidia-egl-gbm1            | package | 1.1.3-lp160.10.1                        | x86_64 | repo-non-free (16.0)
i  | libnvidia-egl-wayland1        | package | 1.1.22-lp160.56.1                       | x86_64 | repo-non-free (16.0)
i  | libnvidia-egl-x111            | package | 1.0.5-lp160.24.1                        | x86_64 | repo-non-free (16.0)
i  | libnvidia-gpucomp             | package | 580.126.18-lp160.45.1                   | x86_64 | repo-non-free (16.0)
i  | nvidia-common-G06             | package | 580.126.18-lp160.45.1                   | x86_64 | repo-non-free (16.0)
i  | nvidia-compute-G06            | package | 580.126.18-lp160.45.1                   | x86_64 | repo-non-free (16.0)
i  | nvidia-compute-utils-G06      | package | 580.126.18-lp160.45.1                   | x86_64 | repo-non-free (16.0)
i+ | nvidia-driver-G06-kmp-default | package | 580.126.18_k6.12.0_160000.25-lp160.45.5 | x86_64 | repo-non-free (16.0)
i  | nvidia-gl-G06                 | package | 580.126.18-lp160.45.1                   | x86_64 | repo-non-free (16.0)
i  | nvidia-libXNVCtrl             | package | 580.126.18-lp160.52.1                   | x86_64 | repo-non-free (16.0)
i  | nvidia-modprobe               | package | 580.126.18-lp160.23.1                   | x86_64 | repo-non-free (16.0)
i  | nvidia-persistenced           | package | 580.126.18-lp160.3.1                    | x86_64 | repo-non-free (16.0)
i+ | nvidia-settings               | package | 580.126.18-lp160.52.1                   | x86_64 | repo-non-free (16.0)
i  | nvidia-userspace-meta-G06     | package | 580.126.18-lp160.34.1                   | x86_64 | repo-non-free (16.0)
i  | nvidia-video-G06              | package | 580.126.18-lp160.45.1                   | x86_64 | repo-non-free (16.0)
i+ | nvidia-xconfig                | package | 580.126.18-lp160.2.1                    | x86_64 | repo-non-free (16.0)
i+ | openSUSE-repos-Leap-NVIDIA    | package | 20250714.a450212-lp160.3.1              | x86_64 | repo-oss (16.0)
/sbin/ldconfig -N -v $(sed 's/:/ /' <<< $LD_LIBRARY_PATH) 2>/dev/null | grep libcuda
        libcuda.so.1 -> libcuda.so.580.126.18
        libcudadebugger.so.1 -> libcudadebugger.so.580.126.18

What am I missing here? I’ve been at this for two days searching the forums and have not found an answer yet. Any help greatly appreciated.
Thansk, Tom

Welcome to openSUSE Forums.

Please show us the output from inxi -GSaz.

zypper lr -EPu will also be helpful.

Do you want to install the normal NVidia drivers, or the CUDA version?

Thor:~ # inxi -GSaz
System:
  Kernel: 6.12.0-160000.26-default arch: x86_64 bits: 64 compiler: gcc
    v: 13.4.0 clocksource: tsc avail: hpet,acpi_pm
    parameters: BOOT_IMAGE=/vmlinuz-6.12.0-160000.26-default
    root=UUID=d33d7dc2-4be5-4620-9d0b-5ea391adc9e1 mitigations=auto quiet
    security=selinux selinux=1 rd.driver.blacklist=nouveau
  Console: pty pts/0 wm: kwin_x11 DM: SDDM Distro: openSUSE Leap 16.0
Graphics:
  Device-1: NVIDIA TU116 [GeForce GTX 1660 SUPER] vendor: ASUSTeK driver: N/A
    alternate: nouveau non-free: 550.xx+ status: current (as of 2024-09;
    EOL~2026-12-xx) arch: Turing code: TUxxx process: TSMC 12nm FF
    built: 2018-2022 pcie: gen: 1 speed: 2.5 GT/s lanes: 16 link-max: gen: 3
    speed: 8 GT/s bus-ID: 09:00.0 chip-ID: 10de:21c4 class-ID: 0300
  Display: unspecified server: X.Org v: 21.1.15 with: Xwayland v: 24.1.6
    compositor: kwin_x11 driver: X: loaded: modesetting unloaded: vesa
    failed: nvidia alternate: fbdev,nouveau,nv gpu: N/A display-ID: :0
    screens: 1
  Screen-1: 0 s-res: 1024x768 s-dpi: 96 s-size: 270x203mm (10.63x7.99")
    s-diag: 338mm (13.3")
  Monitor-1: Unknown-1 mapped: None-1 res: 1024x768 hz: 60 size: N/A
    modes: 1024x768
  API: EGL v: 1.5 platforms: device: 0 drv: swrast surfaceless: drv: swrast
    x11: drv: swrast inactive: gbm,wayland
  API: OpenGL v: 4.5 vendor: mesa v: 24.3.3 glx-v: 1.4 direct-render: yes
    renderer: llvmpipe (LLVM 19.1.7 256 bits) device-ID: ffffffff:ffffffff
    memory: 30.55 GiB unified: yes
  API: Vulkan Message: No Vulkan data available.

zypper lr -EPu
#  | Alias                    | Name                                   | Enabled | GPG Check | Refresh | Priority | URI
---+--------------------------+----------------------------------------+---------+-----------+---------+----------+--------------------------------------------------------------------------------
 1 | Kernel_stable_Backport   | Kernel builds for branch stable (16.0) | Yes     | (r ) Yes  | No      |   99     | https://download.opensuse.org/repositories/Kernel:/stable:/Backport/16.0/
 2 | Leap                     | Leap 16.0                              | Yes     | (r ) Yes  | No      |   99     | hd:/install?device=/dev/disk/by-id/usb-_USB_DISK_3.0_07215629043ACE15-0:0-part2
 3 | NVIDIA:repo-non-free     | repo-non-free (16.0)                   | Yes     | (r ) Yes  | Yes     |   99     | https://download.nvidia.com/opensuse/leap/16.0
 4 | cuda                     | cuda                                   | Yes     | ( p) Yes  | No      |   99     | http://developer.download.nvidia.com/compute/cuda/repos/opensuse16/x86_64/
 5 | google-chrome            | google-chrome                          | Yes     | (r ) Yes  | Yes     |   99     | https://dl.google.com/linux/chrome/rpm/stable/x86_64
 6 | openSUSE:repo-non-oss    | repo-non-oss (16.0)                    | Yes     | (r ) Yes  | Yes     |   99     | http://cdn.opensuse.org/distribution/leap/16.0/repo/non-oss/x86_64
 8 | openSUSE:repo-openh264   | repo-openh264 (16.0)                   | Yes     | (r ) Yes  | Yes     |   99     | http://codecs.opensuse.org/openh264/openSUSE_Leap_16
 9 | openSUSE:repo-oss        | repo-oss (16.0)                        | Yes     | (r ) Yes  | Yes     |   99     | http://cdn.opensuse.org/distribution/leap/16.0/repo/oss/x86_64
11 | openSUSE:repo-oss-source | repo-oss-source (16.0)                 | Yes     | (r ) Yes  | Yes     |   99     | http://cdn.opensuse.org/source/distribution/leap/16.0/repo/oss

I’m trying to install the normal drivers, not the CUDA version.

Post:

mokutil --sb-state

Now as using the OSS-Kernel, kernel-stable-backports kernel does not work with the Nvidia Repos…

You can remove the Repo.

Also forcing the re-install of the nvidia-kmp should get it to rebuild with that new kernel…

This URL returns a 404:

https://developer.download.nvidia.com/compute/cuda/repos/opensuse16/x86_64/

and it would be the CUDA version. This is lucky, because it might get in the way. It might be a good idea to remove it.

This is the correct one:

https://download.nvidia.com/opensuse/leap/16.0

This one looks like it was the installation ISO on a USB stick; you might want to remove or at least disable it, too:

hd:/install?device=/dev/disk/by-id/usb-_USB_DISK_3.0_07215629043ACE15-0:0-part2

Here is my working setup on my Slowroll desktop PC with an NVidia RTX 5060:

% zypper se -si nvidia
Loading repository data...
Reading installed packages...

S  | Name                                      | Type    | Version                                                | Arch   | Repository
---+-------------------------------------------+---------+--------------------------------------------------------+--------+---------------------
i  | kernel-firmware-nvidia                    | package | 20251018-1.1                                           | noarch | Slowroll OSS Repo
il | libnvidia-egl-gbm1                        | package | 1.1.2.1-8.1                                            | x86_64 | NVidia
il | libnvidia-egl-wayland1                    | package | 1.1.21-54.1                                            | x86_64 | NVidia
il | libnvidia-egl-x111                        | package | 1.0.5-22.1                                             | x86_64 | NVidia
il | libnvidia-gpucomp                         | package | 580.126.09-44.1                                        | x86_64 | NVidia
il | nvidia-common-G06                         | package | 580.126.09-44.1                                        | x86_64 | NVidia
il | nvidia-compute-G06                        | package | 580.126.09-44.1                                        | x86_64 | NVidia
il | nvidia-compute-utils-G06                  | package | 580.126.09-44.1                                        | x86_64 | NVidia
il | nvidia-gl-G06                             | package | 580.126.09-44.1                                        | x86_64 | NVidia
il | nvidia-libXNVCtrl                         | package | 580.126.09-51.1                                        | x86_64 | NVidia
il | nvidia-modprobe                           | package | 580.126.09-22.1                                        | x86_64 | NVidia
il | nvidia-open-driver-G06-signed-kmp-default | package | 580.126.09_k6.18.9_1.0.2.sr20260202-3.1.4.1.sr20260202 | x86_64 | Slowroll Update Repo
il | nvidia-open-driver-G06-signed-kmp-meta    | package | 580.126.09-32.1                                        | x86_64 | NVidia
il | nvidia-persistenced                       | package | 580.126.09-2.1                                         | x86_64 | NVidia
il | nvidia-settings                           | package | 580.126.09-51.1                                        | x86_64 | NVidia
il | nvidia-userspace-meta-G06                 | package | 580.126.09-31.1                                        | x86_64 | NVidia
il | nvidia-video-G06                          | package | 580.126.09-44.1                                        | x86_64 | NVidia

It’s one version behind with all relevant packages still being on version 580.126.09: The nvidia-open-driver-G06-signed-kmp-meta package still hasn’t caught up. That’s usually a sign that the overall set of NVidia packages isn’t ready yet for the next higher version (580.128.18).

I don’t see an nvidia-*-kmp-meta package in your list. If you try to install it, you might get a dependency problem; that might be the reason why you don’t have it installed.

You could use Myrlyn to downgrade all the other packages to the (working!) version 580.126.09. Uncheck the “Dependencies” → “ Autocheck” check box to avoid a dependency problem report for every click, then switch to the “Repositories” page, select the NVidia repo, and th “Versions” tab at the bottom right and select 580.126.09 for every package that has it. Make sure to add the nvidia-*-kmp-meta package, too.

Finally, check “ Autocheck” again and do a manual dependency check.

Switch to the “Installation Summary” page to see what will be changed. You should see a lot of red version numbers there: That’s a package version downgrade. This is what we are looking for.

Once everything works (after a reboot, of course), lock those packages to make sure the next zypper dup doesn’t upgrade the versions again.

HTH

I have this idea in my head to add an “NVidia Assistant” page to Myrlyn to handle those things; it’s really annoying to do so much complex manual work.

My problem is just that I can only test a very limited number of scenarios. And of course the Radeon users might also want something similar.

And there would need to be a text version if neither X11 nor Wayland works.

Well, maybe some day…

1 Like

deleted….buggy forum software…

Stefan, this „downgrade“ of package versions is only necessary with the open kmp module. The TO uses the closed kmp, where all package versions are perfectly matching .

I only have the closed kmp‘s on my systems and don‘t get any mismatch ever.

The missmatch between the open kernel module and the rest of the drivers happens because of the different release path/distribution ways/repos/maintainers and stuff.

Yes, this is why I run the proprietary version via rpms, the open version I use the run files as can rebuild on kernel updates…

mokutil --sb-state
SecureBoot disabled
Platform is in Setup Mode

Not clear which Repo you are suggesting I remove.

This Repo does not work with the Nvidia drivers from this Repo:

So delete the first one, you are using the kernel from the OSS Repo, so you can delete it safely.

OK, so here is the current list of Repos on my system. What should I do next?
Thanks!

# | Alias                       | Name                      | Enabled | GPG Check | Refresh
--+-----------------------------+---------------------------+---------+-----------+--------
1 | Leap                        | Leap 16.0                 | Yes     | (r ) Yes  | No
2 | NVIDIA:repo-non-free        | repo-non-free (16.0)      | Yes     | (r ) Yes  | Yes
3 | google-chrome               | google-chrome             | Yes     | (r ) Yes  | Yes
4 | openSUSE:repo-non-oss       | repo-non-oss (16.0)       | Yes     | (r ) Yes  | Yes
5 | openSUSE:repo-non-oss-debug | repo-non-oss-debug (16.0) | No      | ----      | ----
6 | openSUSE:repo-openh264      | repo-openh264 (16.0)      | Yes     | (r ) Yes  | Yes
7 | openSUSE:repo-oss           | repo-oss (16.0)           | Yes     | (r ) Yes  | Yes
8 | openSUSE:repo-oss-debug     | repo-oss-debug (16.0)     | No      | ----      | ----
9 | openSUSE:repo-oss-source    | repo-oss-source (16.0)    | Yes     | (r ) Yes  | Yes

Install the kmp once more and reboot.

zypper in -f  nvidia-driver-G06-kmp-default

After forcing the install, still no change. Below is the current status:

zypper se -si nvidia
Loading repository data...
Reading installed packages...

S  | Name                          | Type    | Version                                 | Arch   | Repository
---+-------------------------------+---------+-----------------------------------------+--------+---------------------
i  | kernel-firmware-nvidia        | package | 20250516-160000.2.2                     | noarch | Leap 16.0
i  | kernel-firmware-nvidia        | package | 20250516-160000.2.2                     | noarch | repo-oss (16.0)
i  | libnvidia-egl-gbm1            | package | 1.1.3-lp160.10.1                        | x86_64 | repo-non-free (16.0)
i  | libnvidia-egl-wayland1        | package | 1.1.22-lp160.56.1                       | x86_64 | repo-non-free (16.0)
i  | libnvidia-egl-x111            | package | 1.0.5-lp160.24.1                        | x86_64 | repo-non-free (16.0)
i  | libnvidia-gpucomp             | package | 580.126.18-lp160.45.1                   | x86_64 | repo-non-free (16.0)
i  | nvidia-common-G06             | package | 580.126.18-lp160.45.1                   | x86_64 | repo-non-free (16.0)
i  | nvidia-compute-G06            | package | 580.126.18-lp160.45.1                   | x86_64 | repo-non-free (16.0)
i  | nvidia-compute-utils-G06      | package | 580.126.18-lp160.45.1                   | x86_64 | repo-non-free (16.0)
i+ | nvidia-driver-G06-kmp-default | package | 580.126.18_k6.12.0_160000.25-lp160.45.5 | x86_64 | repo-non-free (16.0)
i  | nvidia-gl-G06                 | package | 580.126.18-lp160.45.1                   | x86_64 | repo-non-free (16.0)
i  | nvidia-libXNVCtrl             | package | 580.126.18-lp160.52.1                   | x86_64 | repo-non-free (16.0)
i  | nvidia-modprobe               | package | 580.126.18-lp160.23.1                   | x86_64 | repo-non-free (16.0)
i  | nvidia-persistenced           | package | 580.126.18-lp160.3.1                    | x86_64 | repo-non-free (16.0)
i+ | nvidia-settings               | package | 580.126.18-lp160.52.1                   | x86_64 | repo-non-free (16.0)
i  | nvidia-userspace-meta-G06     | package | 580.126.18-lp160.34.1                   | x86_64 | repo-non-free (16.0)
i  | nvidia-video-G06              | package | 580.126.18-lp160.45.1                   | x86_64 | repo-non-free (16.0)
i+ | nvidia-xconfig                | package | 580.126.18-lp160.2.1                    | x86_64 | repo-non-free (16.0)
i+ | openSUSE-repos-Leap-NVIDIA    | package | 20250714.a450212-lp160.3.1              | x86_64 | repo-oss (16.0)
inxi -GSaz
System:
  Kernel: 6.12.0-160000.26-default arch: x86_64 bits: 64 compiler: gcc
    v: 13.4.0 clocksource: tsc avail: hpet,acpi_pm
    parameters: BOOT_IMAGE=/vmlinuz-6.12.0-160000.26-default
    root=UUID=d33d7dc2-4be5-4620-9d0b-5ea391adc9e1 mitigations=auto quiet
    security=selinux selinux=1 rd.driver.blacklist=nouveau
  Console: pty pts/0 wm: kwin_x11 DM: SDDM Distro: openSUSE Leap 16.0
Graphics:
  Device-1: NVIDIA TU116 [GeForce GTX 1660 SUPER] vendor: ASUSTeK driver: N/A
    alternate: nouveau non-free: 550.xx+ status: current (as of 2024-09;
    EOL~2026-12-xx) arch: Turing code: TUxxx process: TSMC 12nm FF
    built: 2018-2022 pcie: gen: 1 speed: 2.5 GT/s lanes: 16 link-max: gen: 3
    speed: 8 GT/s bus-ID: 09:00.0 chip-ID: 10de:21c4 class-ID: 0300
  Display: unspecified server: X.Org v: 21.1.15 with: Xwayland v: 24.1.6
    compositor: kwin_x11 driver: X: loaded: modesetting unloaded: vesa
    failed: nvidia alternate: fbdev,nouveau,nv gpu: N/A display-ID: :0
    screens: 1
  Screen-1: 0 s-res: 1024x768 s-dpi: 96 s-size: 270x203mm (10.63x7.99")
    s-diag: 338mm (13.3")
  Monitor-1: Unknown-1 mapped: None-1 res: 1024x768 hz: 60 size: N/A
    modes: 1024x768
  API: EGL v: 1.5 platforms: device: 0 drv: swrast surfaceless: drv: swrast
    x11: drv: swrast inactive: gbm,wayland
  API: OpenGL v: 4.5 vendor: mesa v: 24.3.3 glx-v: 1.4 direct-render: yes
    renderer: llvmpipe (LLVM 19.1.7 256 bits) device-ID: ffffffff:ffffffff
    memory: 30.55 GiB unified: yes
  API: Vulkan Message: No Vulkan data available.
zypper lr -EPu
# | Alias                    | Name                   | Enabled | GPG Check | Refresh | Priority | URI
--+--------------------------+------------------------+---------+-----------+---------+----------+--------------------------------------------------------------------------------
1 | Leap                     | Leap 16.0              | Yes     | (r ) Yes  | No      |   99     | hd:/install?device=/dev/disk/by-id/usb-_USB_DISK_3.0_07215629043ACE15-0:0-part2
2 | NVIDIA:repo-non-free     | repo-non-free (16.0)   | Yes     | (r ) Yes  | Yes     |   99     | https://download.nvidia.com/opensuse/leap/16.0
3 | google-chrome            | google-chrome          | Yes     | (r ) Yes  | Yes     |   99     | https://dl.google.com/linux/chrome/rpm/stable/x86_64
4 | openSUSE:repo-non-oss    | repo-non-oss (16.0)    | Yes     | (r ) Yes  | Yes     |   99     | http://cdn.opensuse.org/distribution/leap/16.0/repo/non-oss/x86_64
6 | openSUSE:repo-openh264   | repo-openh264 (16.0)   | Yes     | (r ) Yes  | Yes     |   99     | http://codecs.opensuse.org/openh264/openSUSE_Leap_16
7 | openSUSE:repo-oss        | repo-oss (16.0)        | Yes     | (r ) Yes  | Yes     |   99     | http://cdn.opensuse.org/distribution/leap/16.0/repo/oss/x86_64
9 | openSUSE:repo-oss-source | repo-oss-source (16.0) | Yes     | (r ) Yes  | Yes     |   99     | http://cdn.opensuse.org/source/distribution/leap/16.0/repo/oss

During the install it generated a host of warnings and some errors:

Refreshing service 'NVIDIA'.
Refreshing service 'openSUSE'.
Loading repository data...
Reading installed packages...
Forcing installation of 'nvidia-driver-G06-kmp-default-580.126.18_k6.12.0_160000.25-lp160.45.5.x86_64' from repository 'repo-non-free (16.0)'.
Resolving package dependencies...

The following package is going to be reinstalled:
  nvidia-driver-G06-kmp-default

1 package to reinstall.

Package download size:    80.1 MiB

Package install size change:
            |     264.6 MiB  required by packages that will be installed
       0 B  |  -  264.6 MiB  released by packages that will be removed

Backend:  classic_rpmtrans
Continue? [y/n/v/...? shows all options] (y): Preloading Packages [........
Preloading: nvidia-driver-G06-kmp-default-580.126.18_k6.12.0_160000.25-lp160.45.5.x86_64.rpm [done]
.done]
Retrieving: nvidia-driver-G06-kmp-default-580.126.18_k6.12.0_160000.25-lp160.45.5.x86_64 (repo-non-free (16.0)) (1/1),  80.1 MiB    

Checking for file conflicts: [....done]
(1/1) Installing: nvidia-driver-G06-kmp-default-580.126.18_k6.12.0_160000.25-lp160.45.5.x86_64 [....
depmod: ERROR: fstatat(5, nvidia-modeset.ko): No such file or directory
depmod: ERROR: fstatat(5, nvidia.ko): No such file or directory
depmod: ERROR: fstatat(5, nvidia-drm.ko): No such file or directory
depmod: ERROR: fstatat(5, nvidia-uvm.ko): No such file or directory
depmod: ERROR: fstatat(5, nvidia-modeset.ko): No such file or directory
depmod: ERROR: fstatat(5, nvidia.ko): No such file or directory
depmod: ERROR: fstatat(5, nvidia-drm.ko): No such file or directory
depmod: ERROR: fstatat(5, nvidia-uvm.ko): No such file or directory
make: Entering directory '/usr/src/linux-6.19.5-lp160.5.g9c15967-obj/x86_64/default'
make[1]: Entering directory '/usr/src/kernel-modules/nvidia-580.126.18-default'
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: gcc (SUSE Linux) 13.4.0
  You are using:           gcc (SUSE Linux) 15.2.0
  MODPOST Module.symvers
*** Failed CC version check. ***
 CONFTEST: set_pages_uc
 CONFTEST: list_is_first
 CONFTEST: set_memory_uc
 CONFTEST: set_memory_array_uc
 CONFTEST: set_pages_array_uc
 CONFTEST: ioremap_cache
 CONFTEST: ioremap_wc
 CONFTEST: ioremap_driver_hardened
 CONFTEST: ioremap_driver_hardened_wc
 CONFTEST: ioremap_cache_shared
 CONFTEST: pde_data
 CONFTEST: xen_ioemu_inject_msi
 CONFTEST: phys_to_dma
 CONFTEST: pci_rebar_get_possible_sizes
 CONFTEST: get_backlight_device_by_name
 CONFTEST: dma_direct_map_resource
 CONFTEST: flush_cache_all
 CONFTEST: vmf_insert_pfn
 CONFTEST: jiffies_to_timespec
 CONFTEST: ktime_get_raw_ts64
 CONFTEST: pci_enable_atomic_ops_to_root
 CONFTEST: vga_tryget
 CONFTEST: cc_platform_has
 CONFTEST: cc_attr_guest_sev_snp
 CONFTEST: hv_get_isolation_type
 CONFTEST: seq_read_iter
 CONFTEST: follow_pfn
 CONFTEST: ptep_get
ld.bfd -r -o nvidia/nv-interface.o nvidia/nv-platform.o nvidia/nv-dsi-parse-panel-props.o nvidia/nv-bpmp.o nvidia/nv-gpio.o nvidia/nv-backligh
t.o nvidia/nv-imp.o nvidia/nv-platform-pm.o nvidia/nv-ipc-soc.o nvidia/nv.o nvidia/nv-pci.o nvidia/nv-dmabuf.o nvidia/nv-nano-timer.o nvidia/n
v-acpi.o nvidia/nv-cray.o nvidia/nv-dma.o nvidia/nv-i2c.o nvidia/nv-mmap.o nvidia/nv-p2p.o nvidia/nv-pat.o nvidia/nv-procfs.o nvidia/nv-userma
p.o nvidia/nv-vm.o nvidia/nv-vtophys.o nvidia/os-interface.o nvidia/os-mlock.o nvidia/os-pci.o nvidia/os-registry.o nvidia/os-usermap.o nvidia
/nv-modeset-interface.o nvidia/nv-pci-table.o nvidia/nv-kthread-q.o nvidia/nv-memdbg.o nvidia/nv-report-err.o nvidia/nv-rsync.o nvidia/nv-msi.
o nvidia/nv-caps.o nvidia/nv-caps-imex.o nvidia/nv-clk.o nvidia/nv-host1x.o nvidia/nv_uvm_interface.o nvidia/libspdm_aead.o nvidia/libspdm_ecc
.o nvidia/libspdm_hkdf.o nvidia/libspdm_rand.o nvidia/libspdm_shash.o nvidia/libspdm_rsa.o nvidia/libspdm_aead_aes_gcm.o nvidia/libspdm_sha.o 
nvidia/libspdm_hmac_sha.o nvidia/libspdm_internal_crypt_lib.o nvidia/libspdm_hkdf_sha.o nvidia/libspdm_ec.o nvidia/libspdm_x509.o nvidia/libsp
dm_rsa_ext.o nvidia/nvlink_linux.o nvidia/nvlink_caps.o nvidia/linux_nvswitch.o nvidia/procfs_nvswitch.o nvidia/i2c_nvswitch.o
ld.bfd -r -o nvidia-modeset/nv-modeset-interface.o nvidia-modeset/nvidia-modeset-linux.o nvidia-modeset/nv-kthread-q.o
  LD [M]  nvidia.o
  LD [M]  nvidia-modeset.o
  LD [M]  nvidia-uvm.o
nvidia-modeset.o: warning: objtool: _nv000742kms+0x46: 'naked' return found in MITIGATION_RETHUNK build
nvidia-modeset.o: warning: objtool: _nv000743kms+0x46: 'naked' return found in MITIGATION_RETHUNK build
nvidia-modeset.o: warning: objtool: _nv000112kms+0x9: 'naked' return found in MITIGATION_RETHUNK build
nvidia-modeset.o: warning: objtool: _nv000113kms+0xe: 'naked' return found in MITIGATION_RETHUNK build
nvidia-modeset.o: warning: objtool: _nv000579kms+0x19: 'naked' return found in MITIGATION_RETHUNK build
nvidia-modeset.o: warning: objtool: _nv000126kms+0xa8: 'naked' return found in MITIGATION_RETHUNK build
nvidia-modeset.o: warning: objtool: _nv000027kms+0xc8: 'naked' return found in MITIGATION_RETHUNK build
nvidia-modeset.o: warning: objtool: _nv000714kms+0x58: 'naked' return found in MITIGATION_RETHUNK build
nvidia-modeset.o: warning: objtool: _nv000836kms+0x4a: 'naked' return found in MITIGATION_RETHUNK build
nvidia-modeset.o: warning: objtool: _nv000413kms+0x4a: 'naked' return found in MITIGATION_RETHUNK build
nvidia-modeset.o: warning: objtool: _nv000853kms+0x3c: 'naked' return found in MITIGATION_RETHUNK build
nvidia-modeset.o: warning: objtool: _nv000779kms+0xb0: 'naked' return found in MITIGATION_RETHUNK build
nvidia-modeset.o: warning: objtool: _nv000396kms+0x3f: 'naked' return found in MITIGATION_RETHUNK build
nvidia-modeset.o: warning: objtool: _nv000741kms+0x68: 'naked' return found in MITIGATION_RETHUNK build
nvidia-modeset.o: warning: objtool: _nv000802kms+0xd0: 'naked' return found in MITIGATION_RETHUNK build
nvidia-modeset.o: warning: objtool: _nv000596kms+0x8f: 'naked' return found in MITIGATION_RETHUNK build
nvidia-modeset.o: warning: objtool: _nv000583kms+0x10: 'naked' return found in MITIGATION_RETHUNK build
  MODPOST Module.symvers
WARNING: modpost: missing MODULE_DESCRIPTION() in nvidia.o
WARNING: modpost: missing MODULE_DESCRIPTION() in nvidia-uvm.o
WARNING: modpost: missing MODULE_DESCRIPTION() in nvidia-modeset.o
WARNING: modpost: missing MODULE_DESCRIPTION() in nvidia-drm.o
  LD [M]  nvidia.ko
  LD [M]  nvidia-uvm.ko
  LD [M]  nvidia-modeset.ko
  LD [M]  nvidia-drm.ko
  LD [M]  nvidia-peermem.ko
  BTF [M] nvidia-peermem.ko
Skipping BTF generation for nvidia-peermem.ko due to unavailability of vmlinux
  BTF [M] nvidia-modeset.ko
Skipping BTF generation for nvidia-modeset.ko due to unavailability of vmlinux
  BTF [M] nvidia-drm.ko
Skipping BTF generation for nvidia-drm.ko due to unavailability of vmlinux
  BTF [M] nvidia-uvm.ko
Skipping BTF generation for nvidia-uvm.ko due to unavailability of vmlinux
  BTF [M] nvidia.ko
Skipping BTF generation for nvidia.ko due to unavailability of vmlinux
make[2]: Leaving directory '/usr/src/kernel-modules/nvidia-580.126.18-default'
make[1]: Leaving directory '/usr/src/linux-6.19.5-lp160.5.g9c15967'
ld.bfd  -T /usr/src/linux-obj/x86_64/default/scripts/module.lds -r -o nv-linux.o \
  nvidia.mod.o nvidia/nv-interface.o
/
depmod: WARNING: could not open modules.order at /usr/lib/modules/6.19.5-lp160.5.g9c15967-default: No such file or directory
depmod: WARNING: could not open modules.builtin at /usr/lib/modules/6.19.5-lp160.5.g9c15967-default: No such file or directory
depmod: WARNING: could not open modules.builtin.modinfo at /usr/lib/modules/6.19.5-lp160.5.g9c15967-default: No such file or directory
/bin/sh: line 1: /lib/modules/6.12.0-160000.26-default/build/.config: No such file or directory
rm -f -r conftest
make[1]: Entering directory '/usr/src/kernel-modules/nvidia-580.126.18-default'
make[1]: *** /lib/modules/6.12.0-160000.26-default/build: No such file or directory.  Stop.
make[1]: Leaving directory '/usr/src/kernel-modules/nvidia-580.126.18-default'
make: *** [Makefile:138: clean] Error 2
/
.done]
Running post-transaction scripts [....done]

This is not the complete output, but represents the major compile and linking issues. Not sure if this is all related to the gcc version issue or if there are other componets that need to be installed.

make[1]: Leaving directory '/usr/src/linux-6.19.5-lp160.5.g9c15967'

You have installed some packages from the Kernel_stable_Backport Repo.
Show:
zypper se -si kernel

zypper se -si kernel
Loading repository data...
Reading installed packages...

S  | Name                             | Type    | Version                   | Arch   | Repository
---+----------------------------------+---------+---------------------------+--------+------------------
i+ | devel_kernel                     | pattern | 20170319-160000.2.2       | x86_64 | repo-oss (16.0)
i+ | kernel-default                   | package | 6.12.0-160000.26.1        | x86_64 | repo-oss (16.0)
i+ | kernel-default                   | package | 6.12.0-160000.5.1         | x86_64 | Leap 16.0
i+ | kernel-default                   | package | 6.12.0-160000.5.1         | x86_64 | repo-oss (16.0)
i  | kernel-default-devel             | package | 6.19.5-lp160.5.1.g9c15967 | x86_64 | (System Packages)
i  | kernel-default-devel             | package | 6.19.5-lp160.3.1.gababe9c | x86_64 | (System Packages)
i  | kernel-default-extra             | package | 6.12.0-160000.26.1        | x86_64 | repo-oss (16.0)
i  | kernel-default-extra             | package | 6.12.0-160000.5.1         | x86_64 | Leap 16.0
i  | kernel-default-extra             | package | 6.12.0-160000.5.1         | x86_64 | repo-oss (16.0)
i  | kernel-default-optional          | package | 6.12.0-160000.26.1        | x86_64 | repo-oss (16.0)
i  | kernel-default-optional          | package | 6.12.0-160000.5.1         | x86_64 | Leap 16.0
i  | kernel-default-optional          | package | 6.12.0-160000.5.1         | x86_64 | repo-oss (16.0)
i  | kernel-devel                     | package | 6.19.5-lp160.5.1.g9c15967 | noarch | (System Packages)
i  | kernel-devel                     | package | 6.19.5-lp160.3.1.gababe9c | noarch | (System Packages)
i  | kernel-firmware-all              | package | 20250206-160000.3.2       | noarch | Leap 16.0
i  | kernel-firmware-all              | package | 20250206-160000.3.2       | noarch | repo-oss (16.0)
i  | kernel-firmware-amdgpu           | package | 20250718-160000.1.2       | noarch | Leap 16.0
i  | kernel-firmware-amdgpu           | package | 20250718-160000.1.2       | noarch | repo-oss (16.0)
i  | kernel-firmware-ath10k           | package | 20250206-160000.2.2       | noarch | Leap 16.0
i  | kernel-firmware-ath10k           | package | 20250206-160000.2.2       | noarch | repo-oss (16.0)
i  | kernel-firmware-ath11k           | package | 20250424-160000.2.2       | noarch | Leap 16.0
i  | kernel-firmware-ath11k           | package | 20250424-160000.2.2       | noarch | repo-oss (16.0)
i  | kernel-firmware-ath12k           | package | 20250523-160000.2.2       | noarch | Leap 16.0
i  | kernel-firmware-ath12k           | package | 20250523-160000.2.2       | noarch | repo-oss (16.0)
i  | kernel-firmware-atheros          | package | 20250206-160000.2.2       | noarch | Leap 16.0
i  | kernel-firmware-atheros          | package | 20250206-160000.2.2       | noarch | repo-oss (16.0)
i  | kernel-firmware-bluetooth        | package | 20250714-160000.1.2       | noarch | Leap 16.0
i  | kernel-firmware-bluetooth        | package | 20250714-160000.1.2       | noarch | repo-oss (16.0)
i  | kernel-firmware-bnx2             | package | 20250627-160000.2.2       | noarch | Leap 16.0
i  | kernel-firmware-bnx2             | package | 20250627-160000.2.2       | noarch | repo-oss (16.0)
i  | kernel-firmware-brcm             | package | 20250623-160000.2.2       | noarch | Leap 16.0
i  | kernel-firmware-brcm             | package | 20250623-160000.2.2       | noarch | repo-oss (16.0)
i  | kernel-firmware-chelsio          | package | 20250627-160000.2.2       | noarch | Leap 16.0
i  | kernel-firmware-chelsio          | package | 20250627-160000.2.2       | noarch | repo-oss (16.0)
i  | kernel-firmware-dpaa2            | package | 20250206-160000.2.2       | noarch | Leap 16.0
i  | kernel-firmware-dpaa2            | package | 20250206-160000.2.2       | noarch | repo-oss (16.0)
i  | kernel-firmware-i915             | package | 20250708-160000.2.2       | noarch | Leap 16.0
i  | kernel-firmware-i915             | package | 20250708-160000.2.2       | noarch | repo-oss (16.0)
i  | kernel-firmware-intel            | package | 20250718-160000.1.2       | noarch | Leap 16.0
i  | kernel-firmware-intel            | package | 20250718-160000.1.2       | noarch | repo-oss (16.0)
i  | kernel-firmware-iwlwifi          | package | 20250609-160000.2.2       | noarch | Leap 16.0
i  | kernel-firmware-iwlwifi          | package | 20250609-160000.2.2       | noarch | repo-oss (16.0)
i  | kernel-firmware-liquidio         | package | 20250206-160000.2.2       | noarch | Leap 16.0
i  | kernel-firmware-liquidio         | package | 20250206-160000.2.2       | noarch | repo-oss (16.0)
i  | kernel-firmware-marvell          | package | 20250206-160000.2.2       | noarch | Leap 16.0
i  | kernel-firmware-marvell          | package | 20250206-160000.2.2       | noarch | repo-oss (16.0)
i  | kernel-firmware-media            | package | 20250717-160000.1.2       | noarch | Leap 16.0
i  | kernel-firmware-media            | package | 20250717-160000.1.2       | noarch | repo-oss (16.0)
i  | kernel-firmware-mediatek         | package | 20250708-160000.2.2       | noarch | Leap 16.0
i  | kernel-firmware-mediatek         | package | 20250708-160000.2.2       | noarch | repo-oss (16.0)
i  | kernel-firmware-mellanox         | package | 20250717-160000.1.2       | noarch | Leap 16.0
i  | kernel-firmware-mellanox         | package | 20250717-160000.1.2       | noarch | repo-oss (16.0)
i  | kernel-firmware-mwifiex          | package | 20250206-160000.2.2       | noarch | Leap 16.0
i  | kernel-firmware-mwifiex          | package | 20250206-160000.2.2       | noarch | repo-oss (16.0)
i  | kernel-firmware-network          | package | 20250717-160000.1.2       | noarch | Leap 16.0
i  | kernel-firmware-network          | package | 20250717-160000.1.2       | noarch | repo-oss (16.0)
i  | kernel-firmware-nfp              | package | 20250206-160000.2.2       | noarch | Leap 16.0
i  | kernel-firmware-nfp              | package | 20250206-160000.2.2       | noarch | repo-oss (16.0)
i  | kernel-firmware-nvidia           | package | 20250516-160000.2.2       | noarch | Leap 16.0
i  | kernel-firmware-nvidia           | package | 20250516-160000.2.2       | noarch | repo-oss (16.0)
i  | kernel-firmware-platform         | package | 20250717-160000.1.2       | noarch | Leap 16.0
i  | kernel-firmware-platform         | package | 20250717-160000.1.2       | noarch | repo-oss (16.0)
i  | kernel-firmware-prestera         | package | 20250206-160000.2.2       | noarch | Leap 16.0
i  | kernel-firmware-prestera         | package | 20250206-160000.2.2       | noarch | repo-oss (16.0)
i  | kernel-firmware-qcom             | package | 20250714-160000.1.2       | noarch | Leap 16.0
i  | kernel-firmware-qcom             | package | 20250714-160000.1.2       | noarch | repo-oss (16.0)
i+ | kernel-firmware-qlogic           | package | 20250926-lp160.2.1        | noarch | (System Packages)
i  | kernel-firmware-radeon           | package | 20250627-160000.2.2       | noarch | Leap 16.0
i  | kernel-firmware-radeon           | package | 20250627-160000.2.2       | noarch | repo-oss (16.0)
i  | kernel-firmware-realtek          | package | 20250717-160000.1.2       | noarch | Leap 16.0
i  | kernel-firmware-realtek          | package | 20250717-160000.1.2       | noarch | repo-oss (16.0)
i  | kernel-firmware-serial           | package | 20250717-160000.1.2       | noarch | Leap 16.0
i  | kernel-firmware-serial           | package | 20250717-160000.1.2       | noarch | repo-oss (16.0)
i  | kernel-firmware-sound            | package | 20250721-160000.1.2       | noarch | Leap 16.0
i  | kernel-firmware-sound            | package | 20250721-160000.1.2       | noarch | repo-oss (16.0)
i  | kernel-firmware-ti               | package | 20250206-160000.2.2       | noarch | Leap 16.0
i  | kernel-firmware-ti               | package | 20250206-160000.2.2       | noarch | repo-oss (16.0)
i  | kernel-firmware-ueagle           | package | 20250206-160000.2.2       | noarch | Leap 16.0
i  | kernel-firmware-ueagle           | package | 20250206-160000.2.2       | noarch | repo-oss (16.0)
i  | kernel-firmware-usb-network      | package | 20250717-160000.1.2       | noarch | Leap 16.0
i  | kernel-firmware-usb-network      | package | 20250717-160000.1.2       | noarch | repo-oss (16.0)
i  | kernel-install-tools             | package | 0.3.0-160000.3.2          | x86_64 | repo-oss (16.0)
i+ | kernel-macros                    | package | 6.19.5-lp160.5.1.g9c15967 | noarch | (System Packages)
i+ | kernel-source                    | package | 6.19.5-lp160.5.1.g9c15967 | noarch | (System Packages)
i+ | kernel-source                    | package | 6.19.5-lp160.3.1.gababe9c | noarch | (System Packages)
i  | kernel-syms                      | package | 6.19.5-lp160.5.1.g9c15967 | x86_64 | (System Packages)
i+ | patterns-devel-base-devel_kernel | package | 20170319-160000.2.2       | x86_64 | repo-oss (16.0)

All as root:

zypper rm kernel-source  kernel-macros kernel-syms kernel-default-devel kernel-devel

These are all kernel 6.19 packages from Kernel_stable_Backport.

Now install the right ones:

zypper in kernel-default-devel kernel-devel kernel-syms kernel-macros kernel-source

You can do this easy, because the Kernel_stable_Backport Repo is deleted

As last install the Nvidia once more:

zypper in -f  nvidia-driver-G06-kmp-default

Reboot.