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

My system unfortunately had more catastrophic results, from this update due to my use of Fake-Raid (i have m.2 satas) getting broken. On a new btrfs-based install, lsmod | grep nvidia at least shows nvidia-580xx-dkmsbuilt properly? Unsure, I used the tui, so me choosing linux-cachyos-eevdf may be a part of that.

Thank you for the write up, managed to restore from emergency mode with this. Where should i leave feedback that nvidia 580xx doesn’t build on kernel 7.0.5? Is this feedback for the cachyos 7.0.5 kernel or for nvidia?

Maybe that and that thread are related to this here? No solutions over there, though


I have a GTX1060 and have the same issues.
Since the new nvidia drivers don’t support Pascal-GPUs, I also am on the 580xx-dkms driver (I’m using the linux-cachyos-bore-lto 7.0.5-1 and as a fallback the linux-cachyos-lts 6.18.28-1 .. both of those don’t work with the currently installed nvidia drivers).

Please consider this:
There’s a new linux zero-day, similar to the vulnerability from a few days ago (which the latest kernel-versions likely tried to patch).
So, a downgrade isn’t a good option, because it will leave your system vulnerable.
In my case, I can’t even downgrade, because I always clear the package cache, so I hope, they’ll fix the issue, soon.

I can confirm that downgrading to LLVM 22.1.3 (from 22.1.5) fixed the nvidia drivers linking problem (tested on 595 and 580).
Using the following method, I was able to stay on kernel 7.0.5.
I used downgrade script since I cleared my cache:
Install downgrade:
$ sudo pacman -S downgrade
downgrade to 22.1.3:
$ sudo downgrade llvm compiler-rt llvm-libs lib32-llvm-libs lld
rebuild nvidia kernel module:
$ sudo rm -rf /var/lib/dkms/nvidia
$ sudo pacman -S nvidia-open-dkms

Thank you, everyone. In my case, downgrading LLVM as suggested was enough for all dkms builds to complete successfully.

$ sudo pacman -U \
 /var/cache/pacman/pkg/llvm-22.1.3-2-x86_64_v4.pkg.tar.zst \
 /var/cache/pacman/pkg/lld-22.1.3-1.1-x86_64_v4.pkg.tar.zst \
 /var/cache/pacman/pkg/compiler-rt-22.1.3-1.1-x86_64_v4.pkg.tar.zst \
 /var/cache/pacman/pkg/llvm-libs-22.1.3-2-x86_64_v4.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)

For now I also stopped updating the LLVM packages until I can try again; in `/etc/pacman.conf`

IgnorePkg = llvm lld compiler-rt llvm-libs

I look into this issue. I think its something with the llvm toolchain. Ive tried to reproduce locally but im not able to.

Can someone please try to do:
sudo pacman -Syu extra/clang and check if its working then?

Did not work unfortunately. GTX 1080Ti.

sudo pacman -Syu extra/clang

Pakket (8)                        Oude versie  Nieuwe versie  Netto-verandering  Downloadgrootte

cachyos-extra-v3/compiler-rt      22.1.3-1.1   22.1.5-1.1              1,21 MiB                 
cachyos-extra-v3/goverlay         1.8.0-1.1    1.8.1-1.1               0,16 MiB         2,45 MiB
cachyos-v3/linux-cachyos          7.0.3-1      7.0.5-1                 0,09 MiB                 
cachyos-v3/linux-cachyos-headers  7.0.3-1      7.0.5-1                 2,03 MiB                 
cachyos-extra-v3/lld              22.1.3-1.1   22.1.5-1.1              0,11 MiB                 
cachyos-v3/llvm                   22.1.3-2     22.1.5-2               -0,07 MiB                 
cachyos-v3/llvm-libs              22.1.3-2     22.1.5-2               -0,02 MiB                 
extra/clang                       22.1.3-2     22.1.5-1               45,48 MiB        56,55 MiB

Totale downloadgrootte:           59,00 MiB
Totale geĂŻnstalleerde grootte:   910,74 MiB
Netto upgrade-grootte:            48,98 MiB

:: Pakketten ophalen...
 goverlay-1.8.1-1.1-x86_64_v3                                                           2,4 MiB  4,89 MiB/s 00:01 [--------------------------------------------------------------------] 100%
 clang-22.1.5-1-x86_64                                                                 56,6 MiB  13,1 MiB/s 00:04 [--------------------------------------------------------------------] 100%
 Totaal (2/2)                                                                          59,0 MiB  13,6 MiB/s 00:04 [--------------------------------------------------------------------] 100%
(8/8) sleutels in sleutelbos controleren                                                                          [--------------------------------------------------------------------] 100%
(8/8) pakketintegriteit controleren                                                                               [--------------------------------------------------------------------] 100%
(8/8) pakketbestanden laden                                                                                       [--------------------------------------------------------------------] 100%
(8/8) controleren van conflicterende bestanden                                                                    [--------------------------------------------------------------------] 100%
:: Pre-transactie-hooks uitvoeren...
(1/3) Record kernels marked for removal in Limine
(2/3) Removing linux initcpios...
(3/3) Remove DKMS modules
==> dkms remove --no-depmod nvidia/580.159.03 -k 7.0.3-1-cachyos
==> dkms remove --no-depmod xone/0.5.8 -k 7.0.3-1-cachyos
==> depmod 7.0.3-1-cachyos
:: Pakketveranderingen verwerken...
(1/8) upgraden llvm-libs                                                                                          [--------------------------------------------------------------------] 100%
(2/8) upgraden compiler-rt                                                                                        [--------------------------------------------------------------------] 100%
(3/8) upgraden clang                                                                                              [--------------------------------------------------------------------] 100%
(4/8) upgraden goverlay                                                                                           [--------------------------------------------------------------------] 100%
(5/8) upgraden linux-cachyos                                                                                      [--------------------------------------------------------------------] 100%
(6/8) upgraden llvm                                                                                               [--------------------------------------------------------------------] 100%
(7/8) upgraden lld                                                                                                [--------------------------------------------------------------------] 100%
(8/8) upgraden linux-cachyos-headers                                                                              [--------------------------------------------------------------------] 100%
:: Post-transactie-hooks uitvoeren...
(1/9) Arming ConditionNeedsUpdate...
(2/9) Updating module dependencies...
(3/9) Install DKMS modules
==> dkms install --no-depmod nvidia/580.159.03 -k 7.0.5-1-cachyos

Error! Bad return status for module build on kernel: 7.0.5-1-cachyos (x86_64)
Consult /var/lib/dkms/nvidia/580.159.03/build/make.log for more information.
==> WARNING: `dkms install --no-depmod nvidia/580.159.03 -k 7.0.5-1-cachyos' exited 10
==> dkms install --no-depmod xone/0.5.8 -k 7.0.5-1-cachyos
==> depmod 7.0.5-1-cachyos
(4/9) Clean Limine boot entries of removed kernels
(5/9) Updating linux initcpios...
Building initramfs for linux-cachyos (7.0.5-1-cachyos)
==> Using drop-in configuration file: '10-chwd.conf'
==> Using drop-in configuration file: '10-chwd-kms.conf'
==> Starting build: '7.0.5-1-cachyos'
  -> Running build hook: [base]
  -> Running build hook: [systemd]
  -> Running build hook: [autodetect]
  -> Running build hook: [microcode]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [keyboard]
  -> Running build hook: [sd-vconsole]
  -> Running build hook: [plymouth]
  -> 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: '/tmp/staging_initramfs.img'
==> WARNING: errors were encountered during the build. The image may not be complete.
ERROR: mkinitcpio failed for kernel 7.0.5-1-cachyos, skipping. 
(6/9) Check if user should be informed about rebooting after certain system package upgrades.
==> INFO: Reboot is recommended due to the upgrade of core system package(s).
(7/9) Updating icon theme caches...
(8/9) Checking which packages need to be rebuilt
(9/9) Updating the desktop file MIME type cache...

Error at the bottom of /var/lib/dkms/nvidia/580.159.03/build/make.log

  LD [M]  nvidia-drm.o
  LD [M]  nvidia-peermem.o
nvidia.o: error: objtool: bad .discard.annotate_insn entry: 0 of type 8
make[4]: *** [/usr/lib/modules/7.0.5-1-cachyos/build/scripts/Makefile.build:507: nvidia.o] Fout 255
make[4]: *** Verwijderen van bestand 'nvidia.o'
make[4]: *** Wachten op onvoltooide taken...
nvidia-uvm.o: error: objtool: uvm_va_block_populate_pages_gpu+0x252: can't find call dest symbol at +0x10
make[4]: *** [/usr/lib/modules/7.0.5-1-cachyos/build/scripts/Makefile.build:507: nvidia-uvm.o] Fout 255
make[4]: *** Verwijderen van bestand 'nvidia-uvm.o'
make[3]: *** [/usr/lib/modules/7.0.5-1-cachyos/build/Makefile:2112: .] Fout 2
make[2]: *** [/usr/lib/modules/7.0.5-1-cachyos/build/Makefile:248: __sub-make] Fout 2
make[2]: Map '/var/lib/dkms/nvidia/580.159.03/build' wordt verlaten
make[1]: *** [Makefile:248: __sub-make] Fout 2
make[1]: Map '/usr/lib/modules/7.0.5-1-cachyos/build' wordt verlaten
make: *** [Makefile:115: modules] Fout 2

# exit code: 2
# elapsed time: 00:00:46

Didn’t work here (GTX 1070)

~
❯ sudo pacman -Syu extra/clang
[sudo] Passwort fĂŒr psychotoxic: 
:: Paketdatenbanken werden synchronisiert 

 cachyos-znver4                         96,1 KiB   745 KiB/s 00:00 [------------------------------------] 100%
 cachyos-core-znver4 ist aktuell
 cachyos-extra-znver4                    4,2 MiB  6,66 MiB/s 00:01 [------------------------------------] 100%
 cachyos ist aktuell
 core ist aktuell
 extra                                   8,2 MiB  7,10 MiB/s 00:01 [------------------------------------] 100%
 multilib ist aktuell
:: VollstÀndige Systemaktualisierung wird gestartet 

AbhĂ€ngigkeiten werden aufgelöst 

Nach in Konflikt stehenden Paketen wird gesucht 


Paket (1)    Alte Version  Neue Version  Netto-VerĂ€nderung  GrĂ¶ĂŸe des Downloads

extra/clang  22.1.3-2      22.1.5-1              53,73 MiB            56,55 MiB

GesamtgrĂ¶ĂŸe des Downloads:              56,55 MiB
GesamtgrĂ¶ĂŸe der installierten Pakete:  254,43 MiB
GrĂ¶ĂŸendifferenz der Aktualisierung:     53,73 MiB

:: Installation fortsetzen? [J/n] 
:: Pakete werden empfangen 

 clang-22.1.5-1-x86_64                  56,6 MiB  11,8 MiB/s 00:05 [------------------------------------] 100%
(1/1) SchlĂŒssel im SchlĂŒsselbund werden geprĂŒft                    [------------------------------------] 100%
(1/1) Paket-IntegritĂ€t wird ĂŒberprĂŒft                              [------------------------------------] 100%
(1/1) Paket-Dateien werden geladen                                 [------------------------------------] 100%
(1/1) Auf Dateikonflikte wird geprĂŒft                              [------------------------------------] 100%
:: PaketÀnderungen werden verarbeitet 

(1/1) Aktualisiert wird clang                                      [------------------------------------] 100%
:: Post-transaction-Hooks werden gestartet 

(1/2) Arming ConditionNeedsUpdate...
(2/2) Checking which packages need to be rebuilt

~ 13s
❯ sudo pacman -S nvidia-580xx-dkms
Warnung: nvidia-580xx-dkms-580.159.03-2 ist aktuell -- Reinstalliere
AbhĂ€ngigkeiten werden aufgelöst 

Nach in Konflikt stehenden Paketen wird gesucht 


Paket (1)                  Alte Version  Neue Version  Netto-VerÀnderung

cachyos/nvidia-580xx-dkms  580.159.03-2  580.159.03-2           0,00 MiB

GesamtgrĂ¶ĂŸe der installierten Pakete:  117,90 MiB
GrĂ¶ĂŸendifferenz der Aktualisierung:      0,00 MiB

:: Installation fortsetzen? [J/n] 
(1/1) SchlĂŒssel im SchlĂŒsselbund werden geprĂŒft                    [------------------------------------] 100%
(1/1) Paket-IntegritĂ€t wird ĂŒberprĂŒft                              [------------------------------------] 100%
(1/1) Paket-Dateien werden geladen                                 [------------------------------------] 100%
(1/1) Auf Dateikonflikte wird geprĂŒft                              [------------------------------------] 100%
:: Pre-transaction-Hooks werden gestartet 

(1/1) Remove upgraded DKMS modules
==> dkms remove --no-depmod nvidia/580.159.03 -k 6.18.28-2-cachyos-lts
:: PaketÀnderungen werden verarbeitet 

(1/1) Reinstalliert wird nvidia-580xx-dkms                         [------------------------------------] 100%
:: Post-transaction-Hooks werden gestartet 

(1/5) Arming ConditionNeedsUpdate...
(2/5) Install DKMS modules
==> dkms install --no-depmod nvidia/580.159.03 -k 6.18.28-2-cachyos-lts
==> dkms install --no-depmod nvidia/580.159.03 -k 7.0.5-1-cachyos

Error! Bad return status for module build on kernel: 7.0.5-1-cachyos (x86_64)
Consult /var/lib/dkms/nvidia/580.159.03/build/make.log for more information.
==> WARNING: `dkms install --no-depmod nvidia/580.159.03 -k 7.0.5-1-cachyos' exited 10
==> depmod 6.18.28-2-cachyos-lts
(3/5) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux-cachyos-lts.preset: 'default'
==> Using default configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-linux-cachyos-lts -g /boot/initramfs-linux-cachyos-lts.img
==> Using drop-in configuration file: '10-chwd.conf'
==> Starting build: '6.18.28-2-cachyos-lts'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [microcode]
  -> Running build hook: [kms]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [plymouth]
  -> Running build hook: [filesystems]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: '/boot/initramfs-linux-cachyos-lts.img'
  -> Early uncompressed CPIO image generation successful
==> Initcpio image generation successful
==> 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
==> Using drop-in configuration file: '10-chwd.conf'
==> Starting build: '7.0.5-1-cachyos'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [microcode]
  -> Running build hook: [kms]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [plymouth]
  -> Running build hook: [filesystems]
==> 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.
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
==> Using default configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-linux -g /boot/initramfs-linux.img
==> Using drop-in configuration file: '10-chwd.conf'
==> Starting build: '7.0.3-arch1-2'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [microcode]
  -> Running build hook: [kms]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [keyboard]
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [plymouth]
  -> Running build hook: [filesystems]
==> 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.img'
==> WARNING: errors were encountered during the build. The image may not be complete.
Fehler: Befehl konnte nicht korrekt ausgefĂŒhrt werden
(4/5) Check if user should be informed about rebooting after certain system package upgrades.
==> INFO: Reboot is recommended due to the upgrade of core system package(s).
(5/5) Checking which packages need to be rebuilt

~ 1m 9s
❯ 

This worked for me! Thanks.

(I use the LTS-kernel, 595 with RTX 3080)

Hey all,

I found the issue which has been reported already 5 days ago: Linux Kernel kernel fails to build with 22.1.4 · Issue #195657 · llvm/llvm-project · GitHub

Ive bisected the issue and found out following commit causes it:https://github.com/llvm/llvm-project/commit/dc9d64aad7a92582f2847f408c273f604e7376e5.patch

I have pushed a new lld version into arch repository and you should get it too:

Please update your system and let me know if its fixed. You can trigger the dkms compilation again with reinstalling the kernel or running sudo dkms autoinstall

Updated but sadly still don’t work for me.

Did you got new lld version? It might take some time till you have it on your mirror.

Yes it’s the latest which came in some minutes ago.

Bildschirmfoto_20260509_132435

Edit: Shame on me. As I see it should be 22.1.5-2. So lets wait and see. :slight_smile:

Indeed. Fixed only compilation issue. Looking further.

I push now a GCC kernel into the repository and then well see..

Okay, the issue is more crazy then thought. It appearently happens ONLY when LLVM Toolchain is compiled with GCC16, not with GCC15 or when its compiled with clang.

Best of luck to you Peter. I do hope you have a beer in your hand and sunshine a few meters away from your monitor. Doing some great work. I’ll wait to to another fresh install and see how it goes in here..

@ptr1337 think you can help out here, too? 'cause I’m out of my league :sweat_smile:

The issue will be also fixed with 7.0.5-2