NVIDIA dkms driver problem

Hello, latest nvidia -dkms driver fail to install giving me a black screen after boot.

sudo garuda-inxi
System:
Kernel: 5.17.0-rc5-1-mainline x86_64 bits: 64 compiler: gcc v: 11.2.0
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-mainline
root=UUID=995b984e-0171-4ed2-adff-0bc76cdf57e5 rw rootflags=subvol=@
vt.global_cursor_default=0 systemd.unified_cgroup_hierarchy=1
mitigations=off intel_iommu=on iommu=pt acpi_enforce_resources=lax
snd_hda_intel.dmic_detect=0 snd-intel-dspcfg.dsp_driver=1 ignore_loglevel
Console: pty pts/1 wm: kwin_x11 DM: SDDM Distro: Garuda Linux
base: Arch Linux
Machine:
Type: Desktop System: ASUS product: N/A v: N/A serial: N/A
Mobo: ASUSTeK model: ROG MAXIMUS XII FORMULA v: Rev 1.xx serial: <filter>
UEFI: American Megatrends v: 2301 date: 07/13/2021
Battery:
ID-1: hidpp_battery_0 charge: 83% condition: N/A volts: 4.0 min: N/A
model: Logitech G502 LIGHTSPEED Wireless Gaming Mouse type: N/A
serial: <filter> status: Charging
CPU:
Info: model: Intel Core i9-10900K socket: LGA1200 bits: 64 type: MT MCP
arch: Comet Lake family: 6 model-id: 0xA5 (165) stepping: 5 microcode: 0xEE
Topology: cpus: 1x cores: 10 tpc: 2 threads: 20 smt: enabled cache:
L1: 640 KiB desc: d-10x32 KiB; i-10x32 KiB L2: 2.5 MiB desc: 10x256 KiB
L3: 20 MiB desc: 1x20 MiB
Speed (MHz): avg: 5219 high: 5315 min/max: 800/5300 base/boost: 3700/8300
scaling: driver: intel_pstate governor: performance volts: 0.9 V
ext-clock: 100 MHz cores: 1: 5103 2: 5180 3: 5312 4: 5315 5: 5289 6: 5315
7: 5078 8: 5302 9: 5315 10: 5295 11: 5112 12: 5298 13: 5168 14: 5042
15: 5300 16: 4983 17: 5307 18: 5301 19: 5071 20: 5299 bogomips: 148040
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Vulnerabilities:
Type: itlb_multihit status: KVM: VMX disabled
Type: l1tf status: Not affected
Type: mds status: Not affected
Type: meltdown status: Not affected
Type: spec_store_bypass status: Vulnerable
Type: spectre_v1 status: Vulnerable: __user pointer sanitization and
usercopy barriers only; no swapgs barriers
Type: spectre_v2 status: Vulnerable, IBPB: disabled, STIBP: disabled
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: NVIDIA GP104 [GeForce GTX 1070] vendor: Gigabyte driver: nvidia
v: 510.54 alternate: nouveau,nvidia_drm pcie: gen: 3 speed: 8 GT/s
lanes: 16 bus-ID: 01:00.0 chip-ID: 10de:1b81 class-ID: 0300
Device-2: Logitech HD Pro Webcam C920 type: USB
driver: snd-usb-audio,uvcvideo bus-ID: 1-2.2:10 chip-ID: 046d:082d
class-ID: 0102 serial: <filter>
Display: server: X.Org v: 1.21.1.3 compositor: kwin_x11 driver: X:
loaded: nvidia gpu: nvidia display-ID: :0 screens: 1
Screen-1: 0 s-res: 7280x1440 s-dpi: 109 s-size: 1696x333mm (66.8x13.1")
s-diag: 1728mm (68")
Monitor-1: DP-0 pos: bottom-r res: 1920x1080 dpi: 92
size: 531x298mm (20.9x11.7") diag: 609mm (24")
Monitor-2: DP-2 pos: bottom-l res: 1920x1080 dpi: 92
size: 531x299mm (20.9x11.8") diag: 609mm (24")
Monitor-3: DP-4 pos: primary,top-center res: 3440x1440 dpi: 109
size: 800x330mm (31.5x13.0") diag: 865mm (34.1")
OpenGL: renderer: NVIDIA GeForce GTX 1070/PCIe/SSE2
v: 4.6.0 NVIDIA 510.54 direct render: Yes
Audio:
Device-1: Intel Comet Lake PCH cAVS vendor: ASUSTeK driver: snd_hda_intel
v: kernel alternate: snd_soc_skl,snd_sof_pci_intel_cnl bus-ID: 00:1f.3
chip-ID: 8086:06c8 class-ID: 0403
Device-2: NVIDIA GP104 High Definition Audio vendor: Gigabyte
driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
bus-ID: 01:00.1 chip-ID: 10de:10f0 class-ID: 0403
Device-3: Logitech HD Pro Webcam C920 type: USB
driver: snd-usb-audio,uvcvideo bus-ID: 1-2.2:10 chip-ID: 046d:082d
class-ID: 0102 serial: <filter>
Device-4: RODE Microphones NT-USB type: USB
driver: hid-generic,snd-usb-audio,usbhid bus-ID: 3-1:2 chip-ID: 19f7:0003
class-ID: 0300
Sound Server-1: ALSA v: k5.17.0-rc5-1-mainline running: yes
Sound Server-2: PulseAudio v: 15.0 running: no
Sound Server-3: PipeWire v: 0.3.47 running: yes
Network:
Device-1: Intel Comet Lake PCH CNVi WiFi driver: iwlwifi v: kernel
bus-ID: 00:14.3 chip-ID: 8086:06f0 class-ID: 0280
IF: wlo1 state: down mac: <filter>
Device-2: Aquantia AQC107 NBase-T/IEEE 802.3bz Ethernet [AQtion]
vendor: ASUSTeK driver: atlantic v: kernel pcie: gen: 3 speed: 8 GT/s
lanes: 2 link-max: lanes: 4 port: N/A bus-ID: 04:00.0 chip-ID: 1d6a:07b1
class-ID: 0200
IF: enp4s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Device-3: Intel Ethernet I225-V vendor: ASUSTeK driver: igc v: kernel
pcie: gen: 2 speed: 5 GT/s lanes: 1 port: N/A bus-ID: 05:00.0
chip-ID: 8086:15f3 class-ID: 0200
IF: enp5s0 state: down mac: <filter>
Bluetooth:
Device-1: Intel AX201 Bluetooth type: USB driver: btusb v: 0.8
bus-ID: 1-14:12 chip-ID: 8087:0026 class-ID: e001
Report: bt-adapter ID: hci0 rfk-id: 1 state: up address: <filter>
RAID:
Hardware-1: Intel Comet Lake PCH-H RAID driver: ahci v: 3.0 port: 4020
bus-ID: 00:17.0 chip-ID: 8086:06d6 rev: class-ID: 0104
Drives:
Local Storage: total: 1.61 TiB used: 84.35 GiB (5.1%)
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Sabrent model: N/A
size: 953.87 GiB block-size: physical: 512 B logical: 512 B
speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter> rev: RKT343.4
temp: 28.9 C scheme: GPT
SMART: yes health: PASSED on: 6d 1h cycles: 82
read-units: 753,839 [385 GB] written-units: 988,214 [505 GB]
ID-2: /dev/sda maj-min: 8:0 vendor: Samsung model: SSD 850 EVO 250GB
family: based SSDs size: 232.89 GiB block-size: physical: 512 B
logical: 512 B sata: 3.1 speed: 6.0 Gb/s type: SSD serial: <filter>
rev: 2B6Q temp: 24 C
SMART: yes state: enabled health: PASSED on: 1y 285d 11h cycles: 2827
written: 32.81 TiB
ID-3: /dev/sdb maj-min: 8:16 vendor: Samsung model: SSD 850 EVO 250GB
family: based SSDs size: 232.89 GiB block-size: physical: 512 B
logical: 512 B sata: 3.1 speed: 6.0 Gb/s type: SSD serial: <filter>
rev: 2B6Q temp: 25 C
SMART: yes state: enabled health: PASSED on: 1y 332d 21h cycles: 3102
written: 40.9 TiB
ID-4: /dev/sdc maj-min: 8:32 vendor: Samsung model: SSD 850 EVO 250GB
family: based SSDs size: 232.89 GiB block-size: physical: 512 B
logical: 512 B sata: 3.1 speed: 6.0 Gb/s type: SSD serial: <filter>
rev: 1B6Q temp: 25 C
SMART: yes state: enabled health: PASSED on: 3y 122d 4h cycles: 2691
written: 40.93 TiB
Partition:
ID-1: / raw-size: 953.57 GiB size: 953.57 GiB (100.00%)
used: 84.35 GiB (8.8%) fs: btrfs block-size: 4096 B dev: /dev/nvme0n1p2
maj-min: 259:2
ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
used: 576 KiB (0.2%) fs: vfat block-size: 512 B dev: /dev/nvme0n1p1
maj-min: 259:1
ID-3: /home raw-size: 953.57 GiB size: 953.57 GiB (100.00%)
used: 84.35 GiB (8.8%) fs: btrfs block-size: 4096 B dev: /dev/nvme0n1p2
maj-min: 259:2
ID-4: /var/log raw-size: 953.57 GiB size: 953.57 GiB (100.00%)
used: 84.35 GiB (8.8%) fs: btrfs block-size: 4096 B dev: /dev/nvme0n1p2
maj-min: 259:2
ID-5: /var/tmp raw-size: 953.57 GiB size: 953.57 GiB (100.00%)
used: 84.35 GiB (8.8%) fs: btrfs block-size: 4096 B dev: /dev/nvme0n1p2
maj-min: 259:2
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: zram size: 31.16 GiB used: 0 KiB (0.0%) priority: 100
dev: /dev/zram0
Sensors:
System Temperatures: cpu: 31.0 C mobo: 33.0 C gpu: nvidia temp: 36 C
Fan Speeds (RPM): fan-1: 0 fan-2: 1498 fan-3: 0 fan-4: 0 fan-5: 0
fan-6: 915 fan-7: 0 gpu: nvidia fan: 0%
Info:
Processes: 492 Uptime: 8m wakeups: 17 Memory: 31.16 GiB
used: 3.95 GiB (12.7%) Init: systemd v: 250 tool: systemctl Compilers:
gcc: 11.2.0 clang: 13.0.1 Packages: note: see --pkg pacman: 1744 lib: 478
Shell: garuda-inxi (sudo) default: Bash v: 5.1.16 running-in: konsole
inxi: 3.3.13
Garuda (2.5.5-1):
System install date:     2022-02-13
Last full system update: 2022-03-02
Is partially upgraded:   No
Relevant software:       NetworkManager
Windows dual boot:       No/Undetected
Snapshots:               Snapper
Failed units:            systemd-guest-user.service
sudo mkinitcpio --allpresets
==> Building image from preset: /etc/mkinitcpio.d/linux-lts.preset: 'default'
-> -k /boot/vmlinuz-linux-lts -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-lts.img
==> Starting build: 5.15.25-2-lts
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [autodetect]
-> Running build hook: [modconf]
-> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: xhci_pci
-> Running build hook: [keyboard]
-> Running build hook: [keymap]
-> Running build hook: [consolefont]
-> Running build hook: [plymouth]
-> Running build hook: [filesystems]
-> Running build hook: [grub-btrfs-overlayfs]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-lts.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux-lts.preset: 'fallback'
-> -k /boot/vmlinuz-linux-lts -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-lts-fallback.img -S autodetec
t
==> Starting build: 5.15.25-2-lts
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [modconf]
-> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module: bfa
==> WARNING: Possibly missing firmware for module: qed
==> WARNING: Possibly missing firmware for module: qla1280
==> WARNING: Possibly missing firmware for module: qla2xxx
==> WARNING: Possibly missing firmware for module: wd719x
==> WARNING: Possibly missing firmware for module: xhci_pci
-> Running build hook: [keyboard]
-> Running build hook: [keymap]
-> Running build hook: [consolefont]
-> Running build hook: [plymouth]
-> Running build hook: [filesystems]
-> Running build hook: [grub-btrfs-overlayfs]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: /boot/initramfs-linux-lts-fallback.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux-mainline.preset: 'default'
-> -k /boot/vmlinuz-linux-mainline -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-mainline.img
==> Starting build: 5.17.0-rc6-1-mainline
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [autodetect]
-> Running build hook: [modconf]
-> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: xhci_pci
-> Running build hook: [keyboard]
-> Running build hook: [keymap]
-> Running build hook: [consolefont]
-> Running build hook: [plymouth]
-> Running build hook: [filesystems]
-> Running build hook: [grub-btrfs-overlayfs]
==> 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-mainline.img
==> WARNING: errors were encountered during the build. The image may not be complete.
==> Building image from preset: /etc/mkinitcpio.d/linux-mainline.preset: 'fallback'
-> -k /boot/vmlinuz-linux-mainline -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-mainline-fallback.img -S
autodetect
==> Starting build: 5.17.0-rc6-1-mainline
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [modconf]
-> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module: bfa
==> WARNING: Possibly missing firmware for module: qed
==> WARNING: Possibly missing firmware for module: qla1280
==> WARNING: Possibly missing firmware for module: qla2xxx
==> WARNING: Possibly missing firmware for module: wd719x
==> WARNING: Possibly missing firmware for module: xhci_pci
-> Running build hook: [keyboard]
-> Running build hook: [keymap]
-> Running build hook: [consolefont]
-> Running build hook: [plymouth]
-> Running build hook: [filesystems]
-> Running build hook: [grub-btrfs-overlayfs]
==> 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-mainline-fallback.img
==> WARNING: errors were encountered during the build. The image may not be complete.

Have you tried the zen kernel or lts

6 Likes

Looks like the module build failed for the 5.17rc6 kernel so the modules can’t be included in the initramfs.

Look at the output of e.g. dkms autoinstall and it might tell you which log file has information about the build failure.

I’ve run both 510 and 470 DKMS modules with 5.17rc6 so it does work.

4 Likes

Everything works on my laptop!
For some reason, it doesn’t work on my desktop now on any kernels!

If you could look at the log files there might be some information about why.

If the module isn't building then there's probably something missing from the desktop.

1 Like

File: /var/lib/dkms/nvidia/510.47.03/source/dkms.conf does not exist.

OK, so that means you didn't install the package, or it was corrupted, or you deleted files.

Reinstall nvidia-dkms and try again.

Also, if you could provide the full command and output it will be useful for context.

1 Like

I am copying by hand from the tty to my mobile :sweat_smile:

1 Like

SSH into the desktop from the laptop, then you can easily run commands and copy-paste output etc.

1 Like

Oh, thank you, I hadn't thought of that.

Sorry it took a while, but I had to fix other errors I caused earlier trying to fix this.

paru -S garuda-nvidia-config nvidia-dkms
risoluzione delle dipendenze in corso...
ricerca dei pacchetti in conflitto in corso...

Pacchetti (2) garuda-nvidia-config-1:r62.889aefa-2  nvidia-dkms-510.54-1

Dimensione totale dei pacchetti da installare:  50,65 MiB

:: Vuoi procedere con l'installazione? [S/n] S
(2/2) verifica delle chiavi presenti nel portachiavi               [------------------------------------] 100%
(2/2) verifica dell'integrità dei pacchetti                        [------------------------------------] 100%
(2/2) caricamento dei file dei pacchetti                           [------------------------------------] 100%
(2/2) controllo dei conflitti in corso                             [------------------------------------] 100%
(2/2) controllo dello spazio disponibile sul disco                 [------------------------------------] 100%
:: Esecuzione degli hook di pre-transazione...
(1/1) Performing snapper pre snapshots for the following configurations...
==> root: 209
:: Elaborazione delle modifiche al pacchetto...
(1/2) installazione in corso di nvidia-dkms                        [------------------------------------] 100%
(2/2) installazione in corso di garuda-nvidia-config               [------------------------------------] 100%
ldconfig: Il file /usr/lib/libnvidia-gtk3.so.510.54 è vuoto, non controllato.
ldconfig: Il file /usr/lib/libOkular5Core.so è vuoto, non controllato.
ldconfig: Il file /usr/lib/libOkular5Core.so.9 è vuoto, non controllato.
ldconfig: Il file /usr/lib/libOkular5Core.so.9.0.0 è vuoto, non controllato.
ldconfig: Il file /usr/lib/libkcupslib.so è vuoto, non controllato.
:: Esecuzione degli hook di post-transazione...
(1/8) Arming ConditionNeedsUpdate...
(2/8) Install DKMS modules
==> dkms install --no-depmod nvidia/510.54 -k 5.16.12-arch1-1
readelf: errore: /usr/lib/modules/5.16.12-arch1-1/build/vmlinux: impossibile leggere il numero magic del file
readelf: errore: /usr/lib/modules/5.16.12-arch1-1/build/vmlinux: impossibile leggere il numero magic del file
Error! Bad return status for module build on kernel: 5.16.12-arch1-1 (x86_64)
Consult /var/lib/dkms/nvidia/510.54/build/make.log for more information.
==> WARNING: `dkms install --no-depmod nvidia/510.54 -k 5.16.12-arch1-1' exited 10
==> dkms install --no-depmod nvidia/510.54 -k 5.17.0-rc6-1-mainline
Error! Bad return status for module build on kernel: 5.17.0-rc6-1-mainline (x86_64)
Consult /var/lib/dkms/nvidia/510.54/build/make.log for more information.
==> WARNING: `dkms install --no-depmod nvidia/510.54 -k 5.17.0-rc6-1-mainline' exited 10
(3/8) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux-mainline.preset: 'default'
-> -k /boot/vmlinuz-linux-mainline -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-mainline.img
==> Starting build: 5.17.0-rc6-1-mainline
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [autodetect]
-> Running build hook: [modconf]
-> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: xhci_pci
-> Running build hook: [keyboard]
-> Running build hook: [keymap]
-> Running build hook: [consolefont]
-> Running build hook: [plymouth]
-> Running build hook: [filesystems]
-> Running build hook: [grub-btrfs-overlayfs]
==> 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-mainline.img
==> WARNING: errors were encountered during the build. The image may not be complete.
==> Building image from preset: /etc/mkinitcpio.d/linux-mainline.preset: 'fallback'
-> -k /boot/vmlinuz-linux-mainline -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-mainline-fallback.img -S
autodetect
==> Starting build: 5.17.0-rc6-1-mainline
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [modconf]
-> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module: bfa
==> WARNING: Possibly missing firmware for module: qed
==> WARNING: Possibly missing firmware for module: qla1280
==> WARNING: Possibly missing firmware for module: qla2xxx
==> WARNING: Possibly missing firmware for module: wd719x
==> WARNING: Possibly missing firmware for module: xhci_pci
-> Running build hook: [keyboard]
-> Running build hook: [keymap]
-> Running build hook: [consolefont]
-> Running build hook: [plymouth]
-> Running build hook: [filesystems]
-> Running build hook: [grub-btrfs-overlayfs]
==> 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-mainline-fallback.img
==> WARNING: errors were encountered during the build. The image may not be complete.
errore: l'esecuzione del comando non è riuscita correttamente
(4/8) Foreign/AUR package notification
conky-lua-nv 1.12.2-1
kde-service-menu-reimage 2.5-1
mongodb-bin 5.0.6-1
mqtt-explorer-appimage 0.3.5-2
parsec-bin 150_28-3
runjs-bin 2.3.0-1
(5/8) Orphaned package notification...
android-tools 31.0.3-3
check 0.15.2-2
cmake 3.22.2-1
discount 2.2.7-1
electron 17.1.0-1
electron14 14.2.6-1
flutter 2.10.2-1
fontforge 20201107-3
kimageannotator 0.5.3-2
kpmcore 21.12.3-1
libcroco 0.6.13-2
libmms 0.6.4-3
libofa 0.9.3-9
libosinfo 1.9.0-2
libsolv 0.7.20-1
libspectre 0.2.10-1
libvirt-python 1:8.1.0-1
lld 13.0.1-1
mailcap 2.1.53-1
meson 0.61.2-1
mingw-w64-gcc 11.2.0-1
mingw-w64-tools 9.0.0-1
nasm 2.15.05-1
python-cairosvg 2.5.2-3
python-click 8.0.4-1
python-nose 1.3.7-14
python-psutil 5.9.0-1
python-pynput 1.7.6-1
python-qtpy 1.11.2-3
python-sphinx 4.4.0-1
python-virtualenv 20.11.0-1
(6/8) Checking for .pacnew and .pacsave files...
.pac* files found:
/etc/locale.gen.pacnew
/etc/pacman.d/mirrorlist.pacnew
Please check and merge
(7/8) Performing snapper post snapshots for the following configurations...
==> root: 210
(8/8) Syncing all file systems...

Reinstalling doesn't seem to work.

You have other issues.

These imply filesystem corruption.

As far as the NVIDIA driver goes,

Look in this file to see why the module did not build.

CC [M]  /var/lib/dkms/nvidia/510.54/build/nvidia/nv.o
CC [M]  /var/lib/dkms/nvidia/510.54/build/nvidia/nv-pci.o
CC [M]  /var/lib/dkms/nvidia/510.54/build/nvidia/nv-acpi.o
CC [M]  /var/lib/dkms/nvidia/510.54/build/nvidia/nv-cray.o
cc1: error: incompatible gcc/plugin versions
cc1: error: failed to initialize plugin ./scripts/gcc-plugins/structleak_plugin.so
CC [M]  /var/lib/dkms/nvidia/510.54/build/nvidia/nv-dma.o
cc1: error: incompatible gcc/plugin versions
cc1: error: failed to initialize plugin ./scripts/gcc-plugins/structleak_plugin.so
CC [M]  /var/lib/dkms/nvidia/510.54/build/nvidia/nv-i2c.o
cc1: error: incompatible gcc/plugin versions
cc1: error: failed to initialize plugin ./scripts/gcc-plugins/structleak_plugin.so
CC [M]  /var/lib/dkms/nvidia/510.54/build/nvidia/nv-mmap.o
cc1: error: incompatible gcc/plugin versions
cc1: error: failed to initialize plugin ./scripts/gcc-plugins/structleak_plugin.so
cc1: error: incompatible gcc/plugin versions
cc1: error: failed to initialize plugin ./scripts/gcc-plugins/structleak_plugin.so
CC [M]  /var/lib/dkms/nvidia/510.54/build/nvidia/nv-p2p.o
make[2]: *** [scripts/Makefile.build:288: /var/lib/dkms/nvidia/510.54/build/nvidia/nv-pci.o] Errore 1
make[2]: *** Attesa per i processi non terminati....
make[2]: *** [scripts/Makefile.build:288: /var/lib/dkms/nvidia/510.54/build/nvidia/nv.o] Errore 1
make[2]: *** [scripts/Makefile.build:288: /var/lib/dkms/nvidia/510.54/build/nvidia/nv-acpi.o] Errore 1
make[2]: *** [scripts/Makefile.build:288: /var/lib/dkms/nvidia/510.54/build/nvidia/nv-cray.o] Errore 1
make[2]: *** [scripts/Makefile.build:288: /var/lib/dkms/nvidia/510.54/build/nvidia/nv-dma.o] Errore 1
cc1: error: incompatible gcc/plugin versions
cc1: error: failed to initialize plugin ./scripts/gcc-plugins/structleak_plugin.so
make[2]: *** [scripts/Makefile.build:288: /var/lib/dkms/nvidia/510.54/build/nvidia/nv-i2c.o] Errore 1
CC [M]  /var/lib/dkms/nvidia/510.54/build/nvidia/nv-pat.o
cc1: error: incompatible gcc/plugin versions
cc1: error: failed to initialize plugin ./scripts/gcc-plugins/structleak_plugin.so
make[2]: *** [scripts/Makefile.build:288: /var/lib/dkms/nvidia/510.54/build/nvidia/nv-mmap.o] Errore 1
cc1: error: incompatible gcc/plugin versions
cc1: error: failed to initialize plugin ./scripts/gcc-plugins/structleak_plugin.so
make[2]: *** [scripts/Makefile.build:288: /var/lib/dkms/nvidia/510.54/build/nvidia/nv-p2p.o] Errore 1
cc1: error: incompatible gcc/plugin versions
cc1: error: failed to initialize plugin ./scripts/gcc-plugins/structleak_plugin.so
make[2]: *** [scripts/Makefile.build:288: /var/lib/dkms/nvidia/510.54/build/nvidia/nv-pat.o] Errore 1
make[1]: *** [Makefile:1831: /var/lib/dkms/nvidia/510.54/build] Errore 2
make[1]: uscita dalla directory «/usr/lib/modules/5.17.0-rc6-1-mainline/build»
make: *** [Makefile:82: modules] Errore 2

It seems that there are some problems with GCC plugins.

How can I reinstall all packages to try to fix that? I can’t use garuda-assistant because Xorg doesn’t work

This means you’re in a partial upgrade state, where the kernel was built with a different version of GCC than you have installed. You need to rebuild/update linux-mainline.

Something like

sudo pacman -S $(pacman -Qqn)
2 Likes

I also know how it happened. When I compile the new NVidia driver, even if it does not give GCC errors, the system crashes as soon as the modprobe is run.

Hello.
The installation of the Nvidia drivers fails as it did before reinstalling (NVIDIA dkms driver problem).
I noticed that it doesn't boot live with Nvidia drivers going into kernel panic.
If I install without the Nvidia drivers and try to install them after installing, the dkms module fails.

sudo garuda-inxi
System:
Kernel: 5.16.12-zen1-1-zen x86_64 bits: 64 compiler: gcc v: 11.2.0
parameters: BOOT_IMAGE=/@/.snapshots/1/snapshot/boot/vmlinuz-linux-zen
root=UUID=55cd6875-ac91-482d-a72a-a27f6069f281 quiet quiet splash
rd.udev.log_priority=3 vt.global_cursor_default=0 loglevel=3
rootflags=defaults,noatime,autodefrag,compress=zstd,discard=async,ssd,subvol=@/.snapshots/1/snapshot
Console: pty pts/0 wm: kwin_x11 DM: SDDM Distro: Garuda Linux
base: Arch Linux
Machine:
Type: Desktop System: ASUS product: N/A v: N/A serial: N/A
Mobo: ASUSTeK model: ROG MAXIMUS XII FORMULA v: Rev 1.xx serial: <filter>
UEFI: American Megatrends v: 2301 date: 07/13/2021
Battery:
ID-1: hidpp_battery_0 charge: 82% condition: N/A volts: 4.0 min: N/A
model: Logitech G502 LIGHTSPEED Wireless Gaming Mouse type: N/A
serial: <filter> status: Discharging
CPU:
Info: model: Intel Core i9-10900K socket: LGA1200 bits: 64 type: MT MCP
arch: Comet Lake family: 6 model-id: 0xA5 (165) stepping: 5 microcode: 0xEE
Topology: cpus: 1x cores: 10 tpc: 2 threads: 20 smt: enabled cache:
L1: 640 KiB desc: d-10x32 KiB; i-10x32 KiB L2: 2.5 MiB desc: 10x256 KiB
L3: 20 MiB desc: 1x20 MiB
Speed (MHz): avg: 4395 high: 5006 min/max: 800/5300 base/boost: 3700/8300
scaling: driver: intel_pstate governor: powersave volts: 0.9 V
ext-clock: 100 MHz cores: 1: 1158 2: 4344 3: 4900 4: 4900 5: 4902 6: 5006
7: 5005 8: 4959 9: 1813 10: 4904 11: 4900 12: 4900 13: 3623 14: 4411
15: 4901 16: 3675 17: 4900 18: 4903 19: 4899 20: 4901 bogomips: 147994
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Vulnerabilities:
Type: itlb_multihit status: KVM: VMX disabled
Type: l1tf status: Not affected
Type: mds status: Not affected
Type: meltdown status: Not affected
Type: spec_store_bypass
mitigation: Speculative Store Bypass disabled via prctl
Type: spectre_v1
mitigation: usercopy/swapgs barriers and __user pointer sanitization
Type: spectre_v2
mitigation: Enhanced IBRS, IBPB: conditional, RSB filling
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: NVIDIA GP104 [GeForce GTX 1070] vendor: Gigabyte driver: nouveau
v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 16 link-max: gen: 3
speed: 8 GT/s ports: active: DP-1,DP-2,DP-3 empty: DVI-D-1,HDMI-A-1
bus-ID: 01:00.0 chip-ID: 10de:1b81 class-ID: 0300
Device-2: Logitech HD Pro Webcam C920 type: USB
driver: snd-usb-audio,uvcvideo bus-ID: 1-2.2:10 chip-ID: 046d:082d
class-ID: 0102 serial: <filter>
Display: server: X.Org v: 1.21.1.3 compositor: kwin_x11 driver: X:
loaded: nouveau unloaded: modesetting alternate: fbdev,nv,vesa gpu: nouveau
display-ID: :0 screens: 1
Screen-1: 0 s-res: 7280x1440 s-dpi: 96 s-size: 1926x381mm (75.8x15.0")
s-diag: 1963mm (77.3")
Monitor-1: DP-1 pos: primary,left model: Mi Monitor built: 2019
res: 3440x1440 hz: 50 dpi: 110 gamma: 1.2 size: 797x334mm (31.4x13.1")
diag: 864mm (34") modes: max: 3440x1440 min: 720x400
Monitor-2: DP-2 pos: center model: AOC 2460G5 serial: <filter>
built: 2017 res: 1920x1080 hz: 60 dpi: 92 gamma: 1.2
size: 531x299mm (20.9x11.8") diag: 609mm (24") ratio: 16:9 modes:
max: 1920x1080 min: 720x400
Monitor-3: DP-3 pos: right model: LG (GoldStar) 24GL600F serial: <filter>
built: 2020 res: 1920x1080 hz: 60 dpi: 92 gamma: 1.2
size: 531x298mm (20.9x11.7") diag: 609mm (24") ratio: 16:9 modes:
max: 1920x1080 min: 720x400
OpenGL: renderer: NV134 v: 4.3 Mesa 21.3.7 direct render: Yes
Audio:
Device-1: Intel Comet Lake PCH cAVS vendor: ASUSTeK driver: snd_hda_intel
v: kernel alternate: snd_soc_skl,snd_sof_pci_intel_cnl bus-ID: 00:1f.3
chip-ID: 8086:06c8 class-ID: 0403
Device-2: NVIDIA GP104 High Definition Audio vendor: Gigabyte
driver: snd_hda_intel v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 16
link-max: gen: 3 speed: 8 GT/s bus-ID: 01:00.1 chip-ID: 10de:10f0
class-ID: 0403
Device-3: Logitech HD Pro Webcam C920 type: USB
driver: snd-usb-audio,uvcvideo bus-ID: 1-2.2:10 chip-ID: 046d:082d
class-ID: 0102 serial: <filter>
Device-4: RODE Microphones NT-USB type: USB
driver: hid-generic,snd-usb-audio,usbhid bus-ID: 3-1:2 chip-ID: 19f7:0003
class-ID: 0300
Sound Server-1: ALSA v: k5.16.12-zen1-1-zen running: yes
Sound Server-2: PulseAudio v: 15.0 running: no
Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
Device-1: Intel Comet Lake PCH CNVi WiFi driver: iwlwifi v: kernel
bus-ID: 00:14.3 chip-ID: 8086:06f0 class-ID: 0280
IF: wlo1 state: up mac: <filter>
Device-2: Aquantia AQC107 NBase-T/IEEE 802.3bz Ethernet [AQtion]
vendor: ASUSTeK driver: atlantic v: kernel pcie: gen: 3 speed: 8 GT/s
lanes: 2 link-max: lanes: 4 port: N/A bus-ID: 04:00.0 chip-ID: 1d6a:07b1
class-ID: 0200
IF: enp4s0 state: down mac: <filter>
Device-3: Intel Ethernet I225-V vendor: ASUSTeK driver: igc v: kernel
pcie: gen: 2 speed: 5 GT/s lanes: 1 port: N/A bus-ID: 05:00.0
chip-ID: 8086:15f3 class-ID: 0200
IF: enp5s0 state: down mac: <filter>
Bluetooth:
Device-1: Intel AX201 Bluetooth type: USB driver: btusb v: 0.8
bus-ID: 1-14:12 chip-ID: 8087:0026 class-ID: e001
Report: bt-adapter ID: hci0 rfk-id: 1 state: up address: <filter>
RAID:
Hardware-1: Intel Comet Lake PCH-H RAID driver: ahci v: 3.0 port: 4020
bus-ID: 00:17.0 chip-ID: 8086:06d6 rev: class-ID: 0104
Drives:
Local Storage: total: 1.61 TiB used: 18.3 GiB (1.1%)
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Sabrent model: N/A
size: 953.87 GiB block-size: physical: 512 B logical: 512 B
speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter> rev: RKT343.4
temp: 28.9 C scheme: GPT
SMART: yes health: PASSED on: 8d 18h cycles: 159
read-units: 1,109,220 [567 GB] written-units: 1,810,521 [926 GB]
ID-2: /dev/sda maj-min: 8:0 vendor: Samsung model: SSD 850 EVO 250GB
family: based SSDs size: 232.89 GiB block-size: physical: 512 B
logical: 512 B sata: 3.1 speed: 6.0 Gb/s type: SSD serial: <filter>
rev: 2B6Q temp: 25 C
SMART: yes state: enabled health: PASSED on: 1y 288d 13h cycles: 2904
written: 32.81 TiB
ID-3: /dev/sdb maj-min: 8:16 vendor: Samsung model: SSD 850 EVO 250GB
family: based SSDs size: 232.89 GiB block-size: physical: 512 B
logical: 512 B sata: 3.1 speed: 6.0 Gb/s type: SSD serial: <filter>
rev: 2B6Q temp: 25 C
SMART: yes state: enabled health: PASSED on: 1y 335d 23h cycles: 3179
written: 40.9 TiB
ID-4: /dev/sdc maj-min: 8:32 vendor: Samsung model: SSD 850 EVO 250GB
family: based SSDs size: 232.89 GiB block-size: physical: 512 B
logical: 512 B sata: 3.1 speed: 6.0 Gb/s type: SSD serial: <filter>
rev: 1B6Q temp: 25 C
SMART: yes state: enabled health: PASSED on: 3y 125d 7h cycles: 2768
written: 40.93 TiB
Partition:
ID-1: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
used: 576 KiB (0.2%) fs: vfat block-size: 512 B dev: /dev/nvme0n1p1
maj-min: 259:1
ID-2: /home raw-size: 953.57 GiB size: 953.57 GiB (100.00%)
used: 18.3 GiB (1.9%) fs: btrfs block-size: 4096 B dev: /dev/nvme0n1p2
maj-min: 259:2
ID-3: /var/log raw-size: 953.57 GiB size: 953.57 GiB (100.00%)
used: 18.3 GiB (1.9%) fs: btrfs block-size: 4096 B dev: /dev/nvme0n1p2
maj-min: 259:2
ID-4: /var/tmp raw-size: 953.57 GiB size: 953.57 GiB (100.00%)
used: 18.3 GiB (1.9%) fs: btrfs block-size: 4096 B dev: /dev/nvme0n1p2
maj-min: 259:2
Swap:
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: zram size: 31.16 GiB used: 0 KiB (0.0%) priority: 100
dev: /dev/zram0
Sensors:
System Temperatures: cpu: 27.8 C mobo: N/A gpu: nouveau temp: 36.0 C
Fan Speeds (RPM): N/A gpu: nouveau fan: 0
Info:
Processes: 423 Uptime: 1m wakeups: 2 Memory: 31.16 GiB
used: 1.93 GiB (6.2%) Init: systemd v: 250 tool: systemctl Compilers:
gcc: 11.2.0 Packages: pacman: 1136 lib: 292 Shell: garuda-inxi (sudo)
default: Bash v: 5.1.16 running-in: konsole inxi: 3.3.13
Garuda (2.5.5-1):
System install date:     2022-03-12
Last full system update: 2022-03-12
Is partially upgraded:   No
Relevant software:       NetworkManager
Windows dual boot:       No/Undetected
Snapshots:               Snapper
Failed units:

I have already tried with: linux-zen, linux, linux-lts, linux-mainline

Check you have fast boot and secure disabled

1 Like

Just turned off, same problem.

check you are not booted into a snapshot as your garuda-inxi shows