After upgrading to 7.0.5-1-cachyos, nvidia-open-dkms 595.71.05 fails to build

After updating to 7.0.5-1 kernel, the nvidia-open-dkms 595.71.05 fails to build. Even downgrading to 7.0.3-1 alone does’t fix it. Only after downgrading llvm to 22.1.3-2, lld to 22.1.3-1.1, compiler-rt to 22.1.3-1.1 and llvm-libs to 22.1.3-2, does this fix it.

  sudo pacman -U 
/var/cache/pacman/pkg/linux-cachyos-7.0.3-1-x86_64_v3.pkg.tar.zst 
/var/cache/pacman/pkg/linux-cachyos-headers-7.0.3-1-x86_64_v3.pkg.tar.zst
loading packages...
warning: downgrading package linux-cachyos (7.0.5-1 => 7.0.3-1)
warning: downgrading package linux-cachyos-headers (7.0.5-1 => 7.0.3-1)
resolving dependencies...
looking for conflicting packages...

Packages (2) linux-cachyos-7.0.3-1  linux-cachyos-headers-7.0.3-1

Total Installed Size:  301.88 MiB
Net Upgrade Size:       -2.11 MiB

:: Proceed with installation? [Y/n]
(2/2) checking keys in keyring                                                                                                                                                                                                                             [----------------------------------------------------------------------------------------------------------------------------------------------------------------] 100%
(2/2) checking package integrity                                                                                                                                                                                                                           [----------------------------------------------------------------------------------------------------------------------------------------------------------------] 100%
(2/2) loading package files                                                                                                                                                                                                                                [----------------------------------------------------------------------------------------------------------------------------------------------------------------] 100%
(2/2) checking for file conflicts                                                                                                                                                                                                                          [----------------------------------------------------------------------------------------------------------------------------------------------------------------] 100%
(2/2) checking available disk space                                                                                                                                                                                                                        [----------------------------------------------------------------------------------------------------------------------------------------------------------------] 100%
:: Running pre-transaction hooks...
(1/2) Removing linux initcpios...
(2/2) Remove DKMS modules

:: Processing package changes...
(1/2) downgrading linux-cachyos                                                                                                                                                                                                                            [----------------------------------------------------------------------------------------------------------------------------------------------------------------] 100%
(2/2) downgrading linux-cachyos-headers                                                                                                                                                                                                                    [----------------------------------------------------------------------------------------------------------------------------------------------------------------] 100%
:: Running post-transaction hooks...
(1/4) Arming ConditionNeedsUpdate...
(2/4) Updating module dependencies...
(3/4) Install DKMS modules
==> dkms install --no-depmod nvidia/595.71.05 -k 7.0.3-1-cachyos

Error! Bad return status for module build on kernel: 7.0.3-1-cachyos (x86_64)
Consult /var/lib/dkms/nvidia/595.71.05/build/make.log for more information.
==> WARNING: `dkms install --no-depmod nvidia/595.71.05 -k 7.0.3-1-cachyos' exited 10
(4/4) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux-cachyos.preset: 'default'
==> Using default configuration file: '/etc/mkinitcpio.conf'
-> -k /boot/vmlinuz-linux-cachyos -g /boot/initramfs-linux-cachyos.img
==> Starting build: '7.0.3-1-cachyos'
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [autodetect]
-> Running build hook: [modconf]
-> Running build hook: [kms]
-> Running build hook: [keyboard]
-> Running build hook: [block]
-> Running build hook: [lvm2]
-> Running build hook: [filesystems]
-> Running build hook: [fsck]
==> ERROR: module not found: 'nvidia'
==> ERROR: module not found: 'nvidia_modeset'
==> ERROR: module not found: 'nvidia_uvm'
==> ERROR: module not found: 'nvidia_drm'
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: '/boot/initramfs-linux-cachyos.img'
==> WARNING: errors were encountered during the build. The image may not be complete.
error: command failed to execute correctly

  sudo pacman -U \
        /var/cache/pacman/pkg/llvm-22.1.3-2-x86_64_v3.pkg.tar.zst \
        /var/cache/pacman/pkg/lld-22.1.3-1.1-x86_64_v3.pkg.tar.zst \
        /var/cache/pacman/pkg/compiler-rt-22.1.3-1.1-x86_64_v3.pkg.tar.zst \
        /var/cache/pacman/pkg/llvm-libs-22.1.3-2-x86_64_v3.pkg.tar.zst

loading packages...

warning: downgrading package llvm (22.1.5-2 => 22.1.3-2)

warning: downgrading package lld (22.1.5-1.1 => 22.1.3-1.1)

warning: downgrading package compiler-rt (22.1.5-1.1 => 22.1.3-1.1)

warning: downgrading package llvm-libs (22.1.5-2 => 22.1.3-2)

resolving dependencies...

looking for conflicting packages...

Packages (4)
compiler-rt-22.1.3-1.1
lld-22.1.3-1.1
llvm-22.1.3-2
llvm-libs-22.1.3-2

Total Installed Size:  339.08 MiB

Net Upgrade Size:       -1.23 MiB

:: Proceed with installation? [Y/n]

(4/4) checking keys in keyring
[----------------------------------------------------------------------------------------------------------------------------------------------------------------] 100%

(4/4) checking package integrity
[----------------------------------------------------------------------------------------------------------------------------------------------------------------] 100%

(4/4) loading package files
[----------------------------------------------------------------------------------------------------------------------------------------------------------------] 100%

(4/4) checking for file conflicts
[----------------------------------------------------------------------------------------------------------------------------------------------------------------] 100%

(1/4) checking available disk space
[----------------------------------------c  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  ]  25%

(4/4) checking available disk space
[----------------------------------------------------------------------------------------------------------------------------------------------------------------] 100%

:: Running pre-transaction hooks...

:: Processing package changes...

(1/4) downgrading llvm-libs
[Co  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  o  ]   0%

(1/4) downgrading llvm-libs
[----------------------------------------------------------------------------------------------------------------------------------------------------------------] 100%

(2/4) downgrading llvm
[----------------------------------------------------------------------------------------------------------------------------------------------------------------] 100%

(3/4) downgrading lld
[----------------------------------------------------------------------------------------------------------------------------------------------------------------] 100%

(4/4) downgrading compiler-rt
[----------------------------------------------------------------------------------------------------------------------------------------------------------------] 100%

:: Running post-transaction hooks...

(1/1) Arming ConditionNeedsUpdate...

  sudo rm -rf /var/lib/dkms/nvidia

  sudo pacman -S nvidia-open-dkms

warning: nvidia-open-dkms-595.71.05-1 is up to date -- reinstalling

resolving dependencies...

looking for conflicting packages...

Packages (1)
nvidia-open-dkms-595.71.05-1

Total Installed Size:  121.02 MiB

Net Upgrade Size:        0.00 MiB

:: Proceed with installation? [Y/n]

(1/1) checking keys in keyring
[----------------------------------------------------------------------------------------------------------------------------------------------------------------] 100%

(1/1) checking package integrity
[----------------------------------------------------------------------------------------------------------------------------------------------------------------] 100%

(1/1) loading package files
[----------------------------------------------------------------------------------------------------------------------------------------------------------------] 100%

(1/1) checking for file conflicts
[----------------------------------------------------------------------------------------------------------------------------------------------------------------] 100%

(1/1) checking available disk space
[----------------------------------------------------------------------------------------------------------------------------------------------------------------] 100%

:: Running pre-transaction hooks...

(1/1) Remove upgraded DKMS modules

:: Processing package changes...

(1/1) reinstalling nvidia-open-dkms
[----------------------------------------------------------------------------------------------------------------------------------------------------------------] 100%

:: Running post-transaction hooks...

(1/3) Arming ConditionNeedsUpdate...

(2/3) Install DKMS modules

==> dkms install --no-depmod nvidia/595.71.05 -k 7.0.3-1-cachyos

==> depmod 7.0.3-1-cachyos

(3/3) Updating linux initcpios...

==> Building image from preset: /etc/mkinitcpio.d/linux-cachyos.preset: 'default'

==> Using default configuration file: '/etc/mkinitcpio.conf'

  -> -k /boot/vmlinuz-linux-cachyos -g /boot/initramfs-linux-cachyos.img

==> Starting build: '7.0.3-1-cachyos'

  -> Running build hook: [base]

  -> Running build hook: [udev]

  -> Running build hook: [autodetect]

  -> Running build hook: [modconf]

  -> Running build hook: [kms]

  -> Running build hook: [keyboard]

  -> Running build hook: [block]

  -> Running build hook: [lvm2]

  -> Running build hook: [filesystems]

  -> Running build hook: [fsck]

==> Generating module dependencies

==> Creating zstd-compressed initcpio image: '/boot/initramfs-linux-cachyos.img'

  -> Early uncompressed CPIO image generation successful

==> Initcpio image generation successful

󰪢 1m4s 󰉋 →  

Similar issue, but with 580xx (GTX 1050 mobile, can’t use later drivers).

Rolling back to 7.0.3 fixed it, but so did removing the dkms driver altogether on the latest kernel (am using integrated graphics until I find a fix).

Same here too…Someone suggested we may have to go to LTS kernel more stable for older computers like mine also using 1050Ti

Same issue with 580xx (GTX 1060m).

I moved to LTS kernel what a mess I did not know how much of a mess my system was in until I went down this path, not an easy path to go down one failure and error message after another, no Blame on the devs but holy crap the compilation of my computer was a mess it was like I was looking at windows 10 pro all over again it brought back some nightmares for me…

There are a lot of threads with similar issues, like this one. Looks like the new kernel has been pushed a bit too quickly because of this Dirty Frag vulnerability.

This fixed itself with Syutoday, I’m guessing due to lld update. Just an fyi for anyone else still have gfx issues after bad kernel update

So it is fixed now and works with the 1050Ti ?

~
❯ uname -r
6.18.28-1-lts

~
❯ nvidia-smi
  # Should show your GTX 1050 Ti, driver 580.159.03, and no errors!
Mon May 11 15:37:02 2026       
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 580.159.03             Driver Version: 580.159.03     CUDA Version: 13.0     |
+-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce GTX 1050 Ti     On  |   00000000:01:00.0  On |                  N/A |
|  0%   52C    P0            N/A  /  120W |     603MiB /   4096MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+

+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI              PID   Type   Process name                        GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A            1293      G   /usr/bin/ksecretd                         1MiB |
|    0   N/A  N/A            1501      G   /usr/bin/kwin_wayland                    24MiB |
|    0   N/A  N/A            1914      G   /usr/bin/Xwayland                         1MiB |
|    0   N/A  N/A            1950      G   /usr/bin/ksmserver                        1MiB |
|    0   N/A  N/A            1953      G   /usr/bin/kded6                            1MiB |
|    0   N/A  N/A            1979      G   /usr/bin/plasmashell                    207MiB |
|    0   N/A  N/A            2004      G   /usr/bin/kaccess                          1MiB |
|    0   N/A  N/A            2005      G   ...it-kde-authentication-agent-1          1MiB |
|    0   N/A  N/A            2129      G   /usr/bin/kdeconnectd                      1MiB |
|    0   N/A  N/A            2191    C+G   /usr/bin/python                           3MiB |
|    0   N/A  N/A            2215      G   python3                                   1MiB |
|    0   N/A  N/A            2258      G   /usr/lib/xdg-desktop-portal-kde           1MiB |
|    0   N/A  N/A            3900      G   /usr/bin/kwalletd6                        1MiB |
|    0   N/A  N/A            3993      G   /usr/bin/krunner                         13MiB |
|    0   N/A  N/A            4037      G   /usr/lib/baloorunner                      1MiB |
|    0   N/A  N/A            4892      G   /usr/lib/firefox/firefox                156MiB |
|    0   N/A  N/A            5218      G   ...asma-browser-integration-host          1MiB |
|    0   N/A  N/A            5572      G   /usr/bin/konsole                          1MiB |
+-----------------------------------------------------------------------------------------+

~
❯ 

Not sure what that means for me had to revert back to this so I could get my computer to work again properly so it’s solved for everyone else but me again left with the above OK thanks great to hear it’s fixed.