Arch base with Cachy kernel - DKMS issues

I’ve used the script to switch my base Arch install over to the Cachy repos.

After rebooting I also installed linux-cachyos but noticed that DKMS failed to build the modules for the nvidia driver (and also for virtualbox).

Checking the logs clang & lld were missing from my Arch install, after adding those and attempting to re-install the kernel, the DKMS builds appeared to complete but there were many warnings from the nvidia driver:

==> dkms install --no-depmod nvidia/565.57.01 -k 6.11.5-3-cachyos
strip: /var/lib/dkms/nvidia/565.57.01/build/kernel-open/nvidia-modeset.ko: invalid entry (0) in group [8]
strip: /var/lib/dkms/nvidia/565.57.01/build/kernel-open/nvidia-modeset.ko: invalid entry (0) in group [97]
strip: /var/lib/dkms/nvidia/565.57.01/build/kernel-open/nvidia-modeset.ko: invalid entry (0) in group [98]
strip: /var/lib/dkms/nvidia/565.57.01/build/kernel-open/nvidia-modeset.ko: invalid entry (0) in group [144]
strip: /var/lib/dkms/nvidia/565.57.01/build/kernel-open/nvidia-modeset.ko: invalid entry (0) in group [145]
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944
strip: BFD (GNU Binutils) 2.43.0 assertion fail /usr/src/debug/binutils/binutils-gdb/bfd/elf.c:3944

Upon booting with the cachy kernel sddm does not appear (it does appear with the arch kernel that is also installed). I’m assuming the module isn’t built correctly. Any ideas?

I switched to linux-cachyos-nvidia-open and sddm now works.

However, when I start hyprland only 1 of my monitors is functional. hyprctl monitors all confirms that the config matches the monitors. Same issue in KDE on wayland. KDE on X reverses the issue and the other monitor doesn’t work :smiley:

Unless anyone has any bright ideas it might be time to revert.

Fair enough, although the commonality seems to be wayland as the issue is also present in KDE.

I’ve reinstalled both the kernel & the driver and cannot reproduce the issue - all seems good now.

1 Like

You need to use our provided dkms package, or patch it yourself. See CachyOS-PKGBUILDs/dkms

on my Artix base + linux-cachyos-rc 6.12 kernel,
I remember I installed

cachyos-v3/linux-cachyos-rc-nvidia-open
    nvidia open modules of 565.57.01 driver for the linux-cachyos-rc kernel

and it works fine for me, not even to config anything it seems

+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 565.57.01              Driver Version: 565.57.01      CUDA Version: 12.7     |
|-----------------------------------------+------------------------+----------------------+
| 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 RTX 3060 Ti     Off |   00000000:08:00.0  On |                  N/A |
|  0%   41C    P0             40W /  200W |    1117MiB /   8192MiB |      2%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+
                                                                                         
+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A       737      G   /usr/lib/Xorg                                 633MiB |
|    0   N/A  N/A      1503      G   ...03,262144 --variations-seed-version        405MiB |
+-----------------------------------------------------------------------------------------+

Graphics:
  Device-1: NVIDIA GA104 [GeForce RTX 3060 Ti Lite Hash Rate] driver: nvidia
    v: 565.57.01
  Device-2: DisplayLink USB3.0 Dual Video Dock driver: cdc_ncm,snd-usb-audio
    type: USB
  Display: x11 server: X.org v: 1.21.1.14 driver: X: loaded: nvidia
    gpu: nvidia,nvidia-nvswitch resolution: 1: 2880x1800~60Hz 2: 4800x2700~60Hz
  API: EGL v: 1.5 drivers: nvidia,swrast
    platforms: gbm,x11,surfaceless,device
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: nvidia mesa v: 565.57.01
    renderer: NVIDIA GeForce RTX 3060 Ti/PCIe/SSE2
  API: Vulkan v: 1.3.295 drivers: nvidia,llvmpipe surfaces: xcb,xlib