Failed to build NVIDIA DKMS module for kernel 6.11.5-1-cachyos

:: Running post-transaction hooks...
( 1/23) Restoring Linux kernel modules...
++ uname -r
+ KVER=6.11.3-zen1-1-zen
+ test -e /usr/lib/modules/backup/6.11.3-zen1-1-zen
+ rsync -AHXal --ignore-existing /usr/lib/modules/backup/6.11.3-zen1-1-zen /usr/lib/modules/
+ rm -rf /usr/lib/modules/backup
( 2/23) Creating system user accounts...
( 3/23) Reloading system manager configuration...
( 4/23) Reloading user manager configuration...
( 5/23) Creating temporary files...
Failed to write file "/sys/module/pcie_aspm/parameters/policy": Operation not permitted
error: command failed to execute correctly
( 6/23) Reloading device manager configuration...
( 7/23) Arming ConditionNeedsUpdate...
( 8/23) Updating the MIME type database...
( 9/23) Updating module dependencies...
(10/23) Install DKMS modules
==> dkms install --no-depmod nvidia/560.35.03 -k 6.11.5-1-cachyos

Error! Bad return status for module build on kernel: 6.11.5-1-cachyos (x86_64)
Consult /var/lib/dkms/nvidia/560.35.03/build/make.log for more information.
==> WARNING: `dkms install --no-depmod nvidia/560.35.03 -k 6.11.5-1-cachyos' exited 10
==> dkms install --no-depmod vboxhost/7.1.4_OSE -k 6.11.5-1-cachyos

Error! Bad return status for module build on kernel: 6.11.5-1-cachyos (x86_64)
Consult /var/lib/dkms/vboxhost/7.1.4_OSE/build/make.log for more information.
==> WARNING: `dkms install --no-depmod vboxhost/7.1.4_OSE -k 6.11.5-1-cachyos' exited 10
==> dkms install --no-depmod vboxhost/7.1.4_OSE -k 6.11.5-zen1-1-zen
==> dkms install --no-depmod nvidia/560.35.03 -k 6.11.5-zen1-1-zen
==> depmod 6.11.5-zen1-1-zen
(11/23) Updating initramfs...
:: Building initramfs for linux-cachyos (6.11.5-1-cachyos)
:: Building fallback initramfs for linux-cachyos (6.11.5-1-cachyos)
:: Building initramfs for linux-zen (6.11.5-zen1-1-zen)
:: Building fallback initramfs for linux-zen (6.11.5-zen1-1-zen)
(12/23) Updating linux initcpios...
(13/23) Foreign/AUR package notification
=> No foreign/AUR packages found.
(14/23) Orphaned package notification...
gcab 1.6-2
lib32-libcanberra 1:0.30+r2+gc0620e4-3
libsmbios 2.4.3-7
wpebackend-fdo 1.14.3-1
(15/23) Checking for .pacnew and .pacsave files...
.pac* files found:
/etc/locale.gen.pacnew
/etc/pacman.conf.pacnew
/etc/makepkg.conf.d/rust.conf.pacnew
/etc/pacman.d/mirrorlist.pacnew
/etc/updatedb.conf.pacsave
Please check and merge
(16/23) GRUB update after transactions...
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/garuda-dr460nized/theme.txt
Found linux image: /boot/vmlinuz-linux-zen
Found initrd image: /boot/initramfs-linux-zen.img
Found fallback initrd image(s) in /boot:  initramfs-linux-zen-fallback.img
Found linux image: /boot/vmlinuz-linux-cachyos
Found initrd image: /boot/initramfs-linux-cachyos.img
Found fallback initrd image(s) in /boot:  initramfs-linux-cachyos-fallback.img
Warning: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Found Windows Boot Manager on /dev/sda1@/efi/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for UEFI Firmware Settings ...
Detecting snapshots ...
Found snapshot: 2024-10-24 20:38:20 | @/.snapshots/43/snapshot | pre  | pacman -Su --config /tmp/tmp.zoZHUvQIeA                  |
Found snapshot: 2024-10-18 08:45:58 | @/.snapshots/42/snapshot | post | obs-studio                                               |
Found snapshot: 2024-10-18 08:45:57 | @/.snapshots/41/snapshot | pre  | pacman --sync -y -- obs-studio                           |
Found snapshot: 2024-10-18 08:43:24 | @/.snapshots/40/snapshot | post | linux-cachyos linux-cachyos-headers                      |
Found snapshot: 2024-10-18 08:43:02 | @/.snapshots/39/snapshot | pre  | /usr/bin/pacman --noconfirm --noprogressbar -S linux-cachyos linux-cachy |
Found snapshot: 2024-10-18 08:41:28 | @/.snapshots/38/snapshot | post | linux-cachyos linux-cachyos-headers                      |
Found snapshot: 2024-10-18 08:41:21 | @/.snapshots/37/snapshot | pre  | /usr/bin/pacman --noconfirm --noprogressbar -R linux-cachyos linux-cachy |
Found snapshot: 2024-10-18 08:31:58 | @/.snapshots/36/snapshot | post | ananicy-cpp ark attica baloo baloo-widgets bind bluedevilbluez-qt breez |
Found snapshot: 2024-10-18 08:28:35 | @/.snapshots/35/snapshot | pre  | pacman -Su --config /tmp/tmp.stga91NaJ9                  |
Found snapshot: 2024-10-18 08:19:48 | @/.snapshots/34/snapshot | post | simplescreenrecorder                                     |
Found snapshot: 2024-10-18 08:19:46 | @/.snapshots/33/snapshot | pre  | pacman --sync -y -- simplescreenrecorder                 |
Found 11 snapshot(s)
Unmount /tmp/grub-btrfs.G5Y8lDXr5N .. Success
Found memtest86+ image: /boot/memtest86+/memtest.bin
done
(17/23) Generating Menu Items...
(18/23) Reloading system bus configuration...
(19/23) Compiling GSettings XML schema files...
(20/23) Updating icon theme caches...
(21/23) Updating the desktop file MIME type cache...
(22/23) Performing snapper post snapshots for the following configurations...
==> root: 44
(23/23) Syncing all file systems...

--> Updating AUR packages with paru..
:: Looking for devel upgrades...
there is nothing to do

--> A problem with the NVIDIA drivers has been detected

---> Building NVIDIA DKMS module for kernel 6.11.5-1-cachyos
Module nvidia 560.35.03 is not installed for kernel 6.11.5-1-cachyos (x86_64). Skipping...
Module nvidia 560.35.03 is not built for kernel 6.11.5-1-cachyos (x86_64). Skipping...

Sign command: /usr/lib/modules/6.11.5-1-cachyos/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub

Cleaning build area... done.
Building module(s)...(bad exit status: 2)
Failed command:
'make' -j16 IGNORE_PREEMPT_RT_PRESENCE=1 NV_EXCLUDE_BUILD_MODULES='__EXCLUDE_MODULES' KERNEL_UNAME=6.11.5-1-cachyos modules CC=clang LD=ld.lld
Error! Bad return status for module build on kernel: 6.11.5-1-cachyos (x86_64)
Consult /var/lib/dkms/nvidia/560.35.03/build/make.log for more information.
---> Failed to build NVIDIA DKMS module for kernel 6.11.5-1-cachyos

System updated! šŸ§

Iā€™m guessing this has to be fixed by nvidia, but asking here for a fix anyway.

I think there is an own forum for this kernel :slight_smile:
@ptr1337
or open issue on

There is a report for dkms at dkms archlinux package.
An answer says it affects those using kernel-install. Maybe it is relevant.

1 Like

fyi, I used the garuda assistant to install it , so no idea how it is being done.

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