Get an error while using garuda-update

Since 3 days I can’t play anymore because there is some problem with the update with Zen/Lts Kernel and Nvidia. garuda-update remote fix didn’t help either.
What else can I try?

System:
Kernel: 6.6.39-1-lts arch: x86_64 bits: 64 compiler: gcc v: 14.1.1
clocksource: hpet avail: acpi_pm
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-lts
root=UUID=db7fdaf0-1b5f-4a15-9e6f-2898016bc93c rw rootflags=subvol=@
quiet loglevel=3 ibt=off
Desktop: KDE Plasma v: 6.1.2 tk: Qt v: N/A info: frameworks v: 6.3.0
wm: kwin_x11 vt: 2 dm: SDDM Distro: Garuda base: Arch Linux
Machine:
Type: Laptop System: ASUSTeK product: ROG Strix G713QR_G713QR v: 1.0
serial: <superuser required>
Mobo: ASUSTeK model: G713QR v: 1.0 serial: <superuser required>
uuid: <superuser required> UEFI: American Megatrends LLC. v: G713QR.327
date: 03/29/2022
Battery:
ID-1: BAT0 charge: 77.8 Wh (95.0%) condition: 81.9/90.0 Wh (91.0%)
volts: 16.8 min: 15.9 model: AS3GWYF3KC GA50358 type: Li-ion
serial: <filter> status: not charging
CPU:
Info: model: AMD Ryzen 9 5900HX with Radeon Graphics bits: 64 type: MT MCP
arch: Zen 3 gen: 4 level: v3 note: check built: 2021-22
process: TSMC n7 (7nm) family: 0x19 (25) model-id: 0x50 (80) stepping: 0
microcode: 0xA50000B
Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache:
L1: 512 KiB desc: d-8x32 KiB; i-8x32 KiB L2: 4 MiB desc: 8x512 KiB
L3: 16 MiB desc: 1x16 MiB
Speed (MHz): avg: 462 high: 1397 min/max: 400/4890 scaling:
driver: amd-pstate-epp governor: powersave cores: 1: 400 2: 400 3: 400
4: 1397 5: 400 6: 400 7: 400 8: 400 9: 400 10: 400 11: 400 12: 400 13: 400
14: 400 15: 400 16: 400 bogomips: 105442
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Vulnerabilities: <filter>
Graphics:
Device-1: NVIDIA GA104M [GeForce RTX 3070 Mobile / Max-Q] vendor: ASUSTeK
driver: N/A alternate: nouveau non-free: 550.xx+ status: current (as of
2024-06; EOL~2026-12-xx) arch: Ampere code: GAxxx process: TSMC n7 (7nm)
built: 2020-2023 pcie: gen: 3 speed: 8 GT/s lanes: 8 link-max: gen: 4
speed: 16 GT/s lanes: 16 bus-ID: 01:00.0 chip-ID: 10de:249d class-ID: 0300
Device-2: AMD Cezanne [Radeon Vega Series / Radeon Mobile Series]
vendor: ASUSTeK driver: amdgpu v: kernel arch: GCN-5 code: Vega
process: GF 14nm built: 2017-20 pcie: gen: 3 speed: 8 GT/s lanes: 16
link-max: gen: 4 speed: 16 GT/s ports: active: HDMI-A-1,eDP-1 empty: none
bus-ID: 06:00.0 chip-ID: 1002:1638 class-ID: 0300 temp: 52.0 C
Display: x11 server: X.Org v: 21.1.13 with: Xwayland v: 24.1.1
compositor: kwin_x11 driver: X: loaded: amdgpu unloaded: modesetting
alternate: fbdev,vesa dri: radeonsi gpu: amdgpu display-ID: :0 screens: 1
Screen-1: 0 s-res: 4480x1440 s-dpi: 96 s-size: 1185x381mm (46.65x15.00")
s-diag: 1245mm (49.01")
Monitor-1: HDMI-A-1 mapped: HDMI-A-0 pos: left model: EIZO NANAO CG241W
serial: <filter> built: 2013 res: 1920x1200 hz: 60 dpi: 94 gamma: 1.2
size: 519x324mm (20.43x12.76") diag: 616mm (24.2") ratio: 16:10 modes:
max: 1920x1200 min: 720x400
Monitor-2: eDP-1 mapped: eDP pos: primary,right model: BOE Display 0x0a08
built: 2021 res: 2560x1440 hz: 165 dpi: 171 gamma: 1.2
size: 381x214mm (15x8.43") diag: 437mm (17.2") ratio: 16:9 modes:
max: 2560x1440 min: 640x480
API: EGL v: 1.5 hw: drv: amd radeonsi platforms: device: 0 drv: radeonsi
device: 1 drv: swrast surfaceless: drv: radeonsi x11: drv: radeonsi
inactive: gbm,wayland
API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 24.1.3-arch1.1
glx-v: 1.4 direct-render: yes renderer: AMD Radeon Graphics (radeonsi
renoir LLVM 18.1.8 DRM 3.54 6.6.39-1-lts) device-ID: 1002:1638
memory: 500 MiB unified: no
API: Vulkan v: 1.3.279 layers: 14 device: 0 type: integrated-gpu name: AMD
Radeon Graphics (RADV RENOIR) driver: mesa radv v: 24.1.3-arch1.1
device-ID: 1002:1638 surfaces: xcb,xlib device: 1 type: cpu name: llvmpipe
(LLVM 18.1.8 256 bits) driver: mesa llvmpipe v: 24.1.3-arch1.1 (LLVM
18.1.8) device-ID: 10005:0000 surfaces: xcb,xlib
Audio:
Device-1: NVIDIA GA104 High Definition Audio vendor: ASUSTeK
driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 8
link-max: gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 01:00.1
chip-ID: 10de:228b class-ID: 0403
Device-2: AMD Renoir Radeon High Definition Audio vendor: ASUSTeK
driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
link-max: gen: 4 speed: 16 GT/s bus-ID: 06:00.1 chip-ID: 1002:1637
class-ID: 0403
Device-3: AMD ACP/ACP3X/ACP6x Audio Coprocessor vendor: ASUSTeK
driver: N/A alternate: snd_pci_acp3x, snd_rn_pci_acp3x, snd_pci_acp5x,
snd_pci_acp6x, snd_acp_pci, snd_rpl_pci_acp6x, snd_pci_ps,
snd_sof_amd_renoir, snd_sof_amd_rembrandt, snd_sof_amd_vangogh pcie:
gen: 3 speed: 8 GT/s lanes: 16 link-max: gen: 4 speed: 16 GT/s
bus-ID: 06:00.5 chip-ID: 1022:15e2 class-ID: 0480
Device-4: AMD Family 17h/19h HD Audio vendor: ASUSTeK
driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
link-max: gen: 4 speed: 16 GT/s bus-ID: 06:00.6 chip-ID: 1022:15e3
class-ID: 0403
API: ALSA v: k6.6.39-1-lts status: kernel-api with: aoss
type: oss-emulator tools: N/A
Server-1: PipeWire v: 1.2.1 status: active with: 1: pipewire-pulse
status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
Device-1: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
vendor: ASUSTeK driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s
lanes: 1 port: e000 bus-ID: 02:00.0 chip-ID: 10ec:8168 class-ID: 0200
IF: enp2s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Device-2: MEDIATEK MT7921 802.11ax PCI Express Wireless Network Adapter
vendor: AzureWave driver: mt7921e v: kernel pcie: gen: 2 speed: 5 GT/s
lanes: 1 bus-ID: 03:00.0 chip-ID: 14c3:7961 class-ID: 0280
IF: wlp3s0 state: down mac: <filter>
Device-3: Realtek RTL8152 Fast Ethernet Adapter driver: r8152 type: USB
rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 1-1.2:4
chip-ID: 0bda:8152 class-ID: 0000 serial: <filter>
IF: enp6s0f3u1u2 state: down mac: <filter>
Info: services: NetworkManager, smbd, systemd-timesyncd
Bluetooth:
Device-1: IMC Networks Wireless_Device driver: btusb v: 0.8 type: USB
rev: 2.1 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 3-4:3 chip-ID: 13d3:3563
class-ID: e001 serial: <filter>
Report: btmgmt ID: hci0 rfk-id: 0 state: down bt-service: enabled,running
rfk-block: hardware: no software: yes address: N/A
Drives:
Local Storage: total: 1.4 TiB used: 155.12 GiB (10.8%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:3 vendor: Samsung
model: MZVLQ1T0HBLB-00B00 size: 953.87 GiB block-size: physical: 512 B
logical: 512 B speed: 31.6 Gb/s lanes: 4 tech: SSD serial: <filter>
fw-rev: FXM7201Q temp: 35.9 C scheme: GPT
ID-2: /dev/nvme1n1 maj-min: 259:0 vendor: Samsung
model: MZVLB512HAJQ-000L2 size: 476.94 GiB block-size: physical: 512 B
logical: 512 B speed: 31.6 Gb/s lanes: 4 tech: SSD serial: <filter>
fw-rev: 4L1QEXA7 temp: 34.9 C scheme: GPT
Partition:
ID-1: / raw-size: 476.64 GiB size: 476.64 GiB (100.00%)
used: 155.12 GiB (32.5%) fs: btrfs dev: /dev/nvme1n1p2 maj-min: 259:2
ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
used: 584 KiB (0.2%) fs: vfat dev: /dev/nvme1n1p1 maj-min: 259:1
ID-3: /home raw-size: 476.64 GiB size: 476.64 GiB (100.00%)
used: 155.12 GiB (32.5%) fs: btrfs dev: /dev/nvme1n1p2 maj-min: 259:2
ID-4: /var/log raw-size: 476.64 GiB size: 476.64 GiB (100.00%)
used: 155.12 GiB (32.5%) fs: btrfs dev: /dev/nvme1n1p2 maj-min: 259:2
ID-5: /var/tmp raw-size: 476.64 GiB size: 476.64 GiB (100.00%)
used: 155.12 GiB (32.5%) fs: btrfs dev: /dev/nvme1n1p2 maj-min: 259:2
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default) zswap: no
ID-1: swap-1 type: zram size: 15.05 GiB used: 0 KiB (0.0%) priority: 100
comp: zstd avail: lzo,lzo-rle,lz4,lz4hc,842 max-streams: 16 dev: /dev/zram0
Sensors:
System Temperatures: cpu: 63.6 C mobo: 36.0 C gpu: amdgpu temp: 53.0 C
Fan Speeds (rpm): N/A
Info:
Memory: total: 16 GiB note: est. available: 15.05 GiB used: 4 GiB (26.6%)
Processes: 365 Power: uptime: 9m states: freeze,mem,disk suspend: s2idle
wakeups: 0 hibernate: platform avail: shutdown, reboot, suspend, test_resume
image: 6.01 GiB services: org_kde_powerdevil, power-profiles-daemon,
upowerd Init: systemd v: 256 default: graphical tool: systemctl
Packages: pm: pacman pkgs: 1813 libs: 543 tools: octopi,paru Compilers:
gcc: 14.1.1 Shell: garuda-inxi default: fish v: 3.7.1 running-in: konsole
inxi: 3.3.35
Garuda (2.6.26-1):
System install date:     2024-05-01
Last full system update: 2024-07-14
Is partially upgraded:   No
Relevant software:       snapper NetworkManager dracut nvidia-dkms
Windows dual boot:       Probably (Run as root to verify)
Failed units:

Here is the error message during the update

garuda-update
[sudo] Passwort für matthias:
:: Paketdatenbanken werden synchronisiert …
garuda ist aktuell
core ist aktuell
extra ist aktuell
multilib ist aktuell
chaotic-aur ist aktuell
blackarch ist aktuell

--> Refreshing mirrorlists using rate-mirrors, please be patient..🍵

:: Paketdatenbanken werden synchronisiert …
garuda wird heruntergeladen …
core wird heruntergeladen …
extra wird heruntergeladen …
multilib wird heruntergeladen …
chaotic-aur wird heruntergeladen …
blackarch wird heruntergeladen …
spawn pacman -Su
:: Starting full system upgrade...
there is nothing to do

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

---> Building NVIDIA DKMS module for kernel 6.6.39-1-lts
Module nvidia 555.58.02 is not installed for kernel 6.6.39-1-lts (x86_64). Skipping...
Module nvidia 555.58.02 is not built for kernel 6.6.39-1-lts (x86_64). Skipping...
Deleting module nvidia-555.58.02 completely from the DKMS tree.
Sign command: /usr/lib/modules/6.6.39-1-lts/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
Creating symlink /var/lib/dkms/nvidia/555.58.02/source -> /usr/src/nvidia-555.58.02

Building module:
Cleaning build area...
'make' -j16 IGNORE_PREEMPT_RT_PRESENCE=1 NV_EXCLUDE_BUILD_MODULES='__EXCLUDE_MODULES' KERNEL_UNAME=6.6.39-1-lts modules...(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.6.39-1-lts (x86_64)
Consult /var/lib/dkms/nvidia/555.58.02/build/make.log for more information.
---> Failed to build NVIDIA DKMS module for kernel 6.6.39-1-lts

---> Building NVIDIA DKMS module for kernel 6.9.9-zen1-1-zen
Module nvidia 555.58.02 is not installed for kernel 6.9.9-zen1-1-zen (x86_64). Skipping...
Module nvidia 555.58.02 is not built for kernel 6.9.9-zen1-1-zen (x86_64). Skipping...
Deleting module nvidia-555.58.02 completely from the DKMS tree.
Sign command: /usr/lib/modules/6.9.9-zen1-1-zen/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
Creating symlink /var/lib/dkms/nvidia/555.58.02/source -> /usr/src/nvidia-555.58.02

Building module:
Cleaning build area...
'make' -j16 IGNORE_PREEMPT_RT_PRESENCE=1 NV_EXCLUDE_BUILD_MODULES='__EXCLUDE_MODULES' KERNEL_UNAME=6.9.9-zen1-1-zen modules...(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.9.9-zen1-1-zen (x86_64)
Consult /var/lib/dkms/nvidia/555.58.02/build/make.log for more information.
---> Failed to build NVIDIA DKMS module for kernel 6.9.9-zen1-1-zen

System updated! 🐧

Have you checked this log as suggested?
Maybe you need the headers for that kernel?

sudo pacman -S linux-zen-headers

Additionally

I’m not an Nvidia user but I guess that for the LTS kernel you need the nvidia-lts package?

4 Likes

I have reinstalled the header - no improvement. Reinstalling the driver did not help either.

Here is the log file that is written during the update…

DKMS make.log for nvidia-555.58.02 for kernel 6.9.9-zen1-1-zen (x86_64)
So 14. Jul 11:47:19 CEST 2024
make[1]: Verzeichnis „/usr/lib/modules/6.9.9-zen1-1-zen/build“ wird betreten

The C compiler 'gcc' does not appear to be able to
create object files.  Please make sure you have 
your Linux distribution's libc development package
installed and that 'gcc' is a valid C compiler
name.

*** Failed CC sanity check. Bailing out! ***

make[3]: *** [/var/lib/dkms/nvidia/555.58.02/build/Kbuild:276: cc_sanity_check] Fehler 1
make[3]: *** Es wird auf noch nicht beendete Prozesse gewartet …

Warning: Compiler version check failed:

The major and minor number of the compiler used to
compile the kernel:

gcc (GCC) 14.1.1 20240522, GNU ld (GNU Binutils) 2.42.0

does not match the compiler used here:

gcc (GCC) 14.1.1 20240522
Copyright (C) 2024 Free Software Foundation, Inc.
Dies ist freie Software; die Kopierbedingungen stehen in den Quellen. Es
gibt KEINE Garantie; auch nicht für MARKTGÄNGIGKEIT oder FÜR SPEZIELLE ZWECKE.


It is recommended to set the CC environment variable
to the compiler that was used to compile the kernel.

To skip the test and silence this warning message, set
the IGNORE_CC_MISMATCH environment variable to "1".
However, mixing compiler versions between the kernel
and kernel modules can result in subtle bugs that are
difficult to diagnose.

*** Failed CC version check. ***

make[2]: *** [/usr/lib/modules/6.9.9-zen1-1-zen/build/Makefile:1916: /var/lib/dkms/nvidia/555.58.02/build] Fehler 2
make[1]: *** [Makefile:240: __sub-make] Fehler 2
make[1]: Verzeichnis „/usr/lib/modules/6.9.9-zen1-1-zen/build“ wird verlassen
make: *** [Makefile:89: modules] Fehler 2

Have you tried the nvidia-lts package for the linux-lts kernel?

3 Likes

You cant build 555 for lts at least not yet.

i have had all kind of problems with the nivida drivers lately with my rtx 4080 card, and found the solution to be installing nvidia-all, and picking the latest available driver. However nvidia-all will provide a list of compatible choices for you to pick from.

#open terminal and follow below instructions

git clone GitHub - Frogging-Family/nvidia-all: Nvidia driver latest to 396 series AIO installer
cd nvidia-all
(sudo pacman -S mkinitcpio)
sudo mkinitcpio -P
sudo grub-mkconfig -o /boot/grub/grub.cfg
reboot

Hoping you get your issues fixed like i did.

Isn’t this for 555 and LTS?
https://archlinux.org/packages/extra/x86_64/nvidia-lts/
There are no issues reported so I thought it was something to try. And outside dkms.

3 Likes

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