Unable to install Kernels - dkms error

Here is the output of which gcc and gcc --version:

[ray@ray-b550 ~]$ which gcc
/usr/bin/gcc

[ray@ray-b550 ~]$ gcc --version
gcc (GCC) 15.2.1 20250813
Copyright (C) 2025 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.

[ray@ray-b550 ~]$ 

Actually, after the latest updates that philm pushed to stable, I tried to run update-grub manually and was very surprised that it wasn’t installed!

After installing it, the kernels now show up in the boot menu and start normally. However, the error is still there unchanged.

Here is pacman.log:

[2025-09-02T14:11:42+0200] [ALPM] installed update-grub (2:2.12.r350.g0e367796-1)
[2025-09-02T14:11:42+0200] [ALPM-SCRIPTLET] :: Install your bootloader and generate configuration with:
[2025-09-02T14:11:42+0200] [ALPM-SCRIPTLET]      # UEFI: https://wiki.archlinux.org/title/GRUB#Installation
[2025-09-02T14:11:42+0200] [ALPM-SCRIPTLET]      # BIOS: https://wiki.archlinux.org/title/GRUB#Installation_2
[2025-09-02T14:11:42+0200] [ALPM] transaction completed
[2025-09-02T14:11:42+0200] [ALPM] running '30-systemd-update.hook'...
[2025-09-02T14:14:12+0200] [PACMAN] Running '/usr/bin/pacman --noconfirm --noprogressbar -S linux616 linux616-headers'
[2025-09-02T14:14:13+0200] [ALPM] transaction started
[2025-09-02T14:14:13+0200] [ALPM] installed linux616 (6.16.4-2)
[2025-09-02T14:14:15+0200] [ALPM] installed linux616-headers (6.16.4-2)
[2025-09-02T14:14:15+0200] [ALPM] transaction completed
[2025-09-02T14:14:15+0200] [ALPM] running '30-systemd-update.hook'...
[2025-09-02T14:14:15+0200] [ALPM] running '60-depmod.hook'...
[2025-09-02T14:14:16+0200] [ALPM] running '70-dkms-install.hook'...
[2025-09-02T14:14:16+0200] [ALPM-SCRIPTLET] ==> dkms install --no-depmod v4l2loopback/0.15.1 -k 6.16.4-2-MANJARO
[2025-09-02T14:14:17+0200] [ALPM-SCRIPTLET] 
[2025-09-02T14:14:17+0200] [ALPM-SCRIPTLET] Error! Bad return status for module build on kernel: 6.16.4-2-MANJARO (x86_64)
[2025-09-02T14:14:17+0200] [ALPM-SCRIPTLET] Consult /var/lib/dkms/v4l2loopback/0.15.1/build/make.log for more information.
[2025-09-02T14:14:17+0200] [ALPM-SCRIPTLET] ==> WARNING: `dkms install --no-depmod v4l2loopback/0.15.1 -k 6.16.4-2-MANJARO' exited 10
[2025-09-02T14:14:20+0200] [ALPM] running '90-mkinitcpio-install.hook'...
[2025-09-02T14:14:20+0200] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux616.preset: 'default'
[2025-09-02T14:14:20+0200] [ALPM-SCRIPTLET] ==> Using default configuration file: '/etc/mkinitcpio.conf'
[2025-09-02T14:14:20+0200] [ALPM-SCRIPTLET]   -> -k /boot/vmlinuz-6.16-x86_64 -g /boot/initramfs-6.16-x86_64.img
[2025-09-02T14:14:20+0200] [ALPM-SCRIPTLET] ==> Starting build: '6.16.4-2-MANJARO'
[2025-09-02T14:14:20+0200] [ALPM-SCRIPTLET]   -> Running build hook: [base]
[2025-09-02T14:14:20+0200] [ALPM-SCRIPTLET]   -> Running build hook: [udev]
[2025-09-02T14:14:21+0200] [ALPM-SCRIPTLET]   -> Running build hook: [autodetect]
[2025-09-02T14:14:21+0200] [ALPM-SCRIPTLET]   -> Running build hook: [modconf]
[2025-09-02T14:14:21+0200] [ALPM-SCRIPTLET]   -> Running build hook: [kms]
[2025-09-02T14:14:23+0200] [ALPM-SCRIPTLET]   -> Running build hook: [block]
[2025-09-02T14:14:24+0200] [ALPM-SCRIPTLET]   -> Running build hook: [keyboard]
[2025-09-02T14:14:24+0200] [ALPM-SCRIPTLET]   -> Running build hook: [keymap]
[2025-09-02T14:14:24+0200] [ALPM-SCRIPTLET]   -> Running build hook: [consolefont]
[2025-09-02T14:14:24+0200] [ALPM-SCRIPTLET] ==> WARNING: consolefont: no font found in configuration
[2025-09-02T14:14:24+0200] [ALPM-SCRIPTLET]   -> Running build hook: [filesystems]
[2025-09-02T14:14:24+0200] [ALPM-SCRIPTLET]   -> Running build hook: [fsck]
[2025-09-02T14:14:24+0200] [ALPM-SCRIPTLET] ==> Generating module dependencies
[2025-09-02T14:14:24+0200] [ALPM-SCRIPTLET] ==> Creating zstd-compressed initcpio image: '/boot/initramfs-6.16-x86_64.img'
[2025-09-02T14:14:24+0200] [ALPM-SCRIPTLET]   -> Early uncompressed CPIO image generation successful
[2025-09-02T14:14:24+0200] [ALPM-SCRIPTLET] ==> Initcpio image generation successful
[2025-09-02T14:14:24+0200] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux616.preset: 'fallback'
[2025-09-02T14:14:24+0200] [ALPM-SCRIPTLET] ==> Using default configuration file: '/etc/mkinitcpio.conf'
[2025-09-02T14:14:24+0200] [ALPM-SCRIPTLET]   -> -k /boot/vmlinuz-6.16-x86_64 -g /boot/initramfs-6.16-x86_64-fallback.img -S autodetect
[2025-09-02T14:14:24+0200] [ALPM-SCRIPTLET] ==> Starting build: '6.16.4-2-MANJARO'
[2025-09-02T14:14:24+0200] [ALPM-SCRIPTLET]   -> Running build hook: [base]
[2025-09-02T14:14:25+0200] [ALPM-SCRIPTLET]   -> Running build hook: [udev]
[2025-09-02T14:14:25+0200] [ALPM-SCRIPTLET]   -> Running build hook: [modconf]
[2025-09-02T14:14:25+0200] [ALPM-SCRIPTLET]   -> Running build hook: [kms]
[2025-09-02T14:14:29+0200] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: 'ast'
[2025-09-02T14:14:31+0200] [ALPM-SCRIPTLET]   -> Running build hook: [block]
[2025-09-02T14:14:32+0200] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: 'wd719x'
[2025-09-02T14:14:32+0200] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: 'aic94xx'
[2025-09-02T14:14:32+0200] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: 'xhci_pci_renesas'
[2025-09-02T14:14:34+0200] [ALPM-SCRIPTLET]   -> Running build hook: [keyboard]
[2025-09-02T14:14:35+0200] [ALPM-SCRIPTLET]   -> Running build hook: [keymap]
[2025-09-02T14:14:35+0200] [ALPM-SCRIPTLET]   -> Running build hook: [consolefont]
[2025-09-02T14:14:35+0200] [ALPM-SCRIPTLET] ==> WARNING: consolefont: no font found in configuration
[2025-09-02T14:14:35+0200] [ALPM-SCRIPTLET]   -> Running build hook: [filesystems]
[2025-09-02T14:14:35+0200] [ALPM-SCRIPTLET]   -> Running build hook: [fsck]
[2025-09-02T14:14:37+0200] [ALPM-SCRIPTLET] ==> Generating module dependencies
[2025-09-02T14:14:37+0200] [ALPM-SCRIPTLET] ==> Creating zstd-compressed initcpio image: '/boot/initramfs-6.16-x86_64-fallback.img'
[2025-09-02T14:14:38+0200] [ALPM-SCRIPTLET]   -> Early uncompressed CPIO image generation successful
[2025-09-02T14:14:38+0200] [ALPM-SCRIPTLET] ==> Initcpio image generation successful
[2025-09-02T14:14:38+0200] [ALPM] running '99-update-grub.hook'...
[2025-09-02T14:14:39+0200] [ALPM-SCRIPTLET] Generating grub configuration file ...
[2025-09-02T14:14:39+0200] [ALPM-SCRIPTLET] Found theme: /usr/share/grub/themes/manjaro/theme.txt
[2025-09-02T14:14:39+0200] [ALPM-SCRIPTLET] Found linux image: /boot/vmlinuz-6.16-x86_64
[2025-09-02T14:14:39+0200] [ALPM-SCRIPTLET] Found initrd image: /boot/amd-ucode.img /boot/initramfs-6.16-x86_64.img
[2025-09-02T14:14:39+0200] [ALPM-SCRIPTLET] Found initrd fallback image: /boot/initramfs-6.16-x86_64-fallback.img
[2025-09-02T14:14:39+0200] [ALPM-SCRIPTLET] Found linux image: /boot/vmlinuz-6.12-x86_64
[2025-09-02T14:14:39+0200] [ALPM-SCRIPTLET] Found initrd image: /boot/amd-ucode.img /boot/initramfs-6.12-x86_64.img
[2025-09-02T14:14:39+0200] [ALPM-SCRIPTLET] Found initrd fallback image: /boot/initramfs-6.12-x86_64-fallback.img
[2025-09-02T14:14:39+0200] [ALPM-SCRIPTLET] Found linux image: /boot/vmlinuz-6.6-x86_64
[2025-09-02T14:14:39+0200] [ALPM-SCRIPTLET] Found initrd image: /boot/amd-ucode.img /boot/initramfs-6.6-x86_64.img
[2025-09-02T14:14:39+0200] [ALPM-SCRIPTLET] Found initrd fallback image: /boot/initramfs-6.6-x86_64-fallback.img
[2025-09-02T14:14:39+0200] [ALPM-SCRIPTLET] Found linux image: /boot/vmlinuz-6.1-x86_64
[2025-09-02T14:14:39+0200] [ALPM-SCRIPTLET] Found initrd image: /boot/amd-ucode.img /boot/initramfs-6.1-x86_64.img
[2025-09-02T14:14:39+0200] [ALPM-SCRIPTLET] Found initrd fallback image: /boot/initramfs-6.1-x86_64-fallback.img
[2025-09-02T14:14:39+0200] [ALPM-SCRIPTLET] Found linux image: /boot/vmlinuz-5.15-x86_64
[2025-09-02T14:14:39+0200] [ALPM-SCRIPTLET] Found initrd image: /boot/amd-ucode.img /boot/initramfs-5.15-x86_64.img
[2025-09-02T14:14:39+0200] [ALPM-SCRIPTLET] Found initrd fallback image: /boot/initramfs-5.15-x86_64-fallback.img
[2025-09-02T14:14:39+0200] [ALPM-SCRIPTLET] Warning: os-prober will be executed to detect other bootable partitions.
[2025-09-02T14:14:39+0200] [ALPM-SCRIPTLET] Its output will be used to detect bootable binaries on them and create new boot entries.
[2025-09-02T14:14:40+0200] [ALPM-SCRIPTLET] Adding boot menu entry for UEFI Firmware Settings ...
[2025-09-02T14:14:40+0200] [ALPM-SCRIPTLET] Root filesystem isn't btrfs
[2025-09-02T14:14:40+0200] [ALPM-SCRIPTLET] If you think an error has occurred, please file a bug report at "https://github.com/Antynea/grub-btrfs"
[2025-09-02T14:14:40+0200] [ALPM-SCRIPTLET] Found memtest86+ image: /boot/memtest86+/memtest.bin
[2025-09-02T14:14:40+0200] [ALPM-SCRIPTLET] /usr/bin/grub-probe: warning: unknown device type nvme0n1.
[2025-09-02T14:14:40+0200] [ALPM-SCRIPTLET] done

Content of: /var/lib/dkms/v4l2loopback/0.15.1/build/make.log

DKMS (dkms-3.2.1) make.log for v4l2loopback/0.15.1 for kernel 6.16.4-2-MANJARO (x86_64)
Tue Sep  2 14:14:17 CEST 2025

Building module(s)
# command: make -j12 KERNELRELEASE=6.16.4-2-MANJARO KERNEL_DIR=/usr/lib/modules/6.16.4-2-MANJARO/build v4l2loopback
grep: /etc/dkms/framework.conf.d/*.conf: No such file or directory

++++++ To sign the  module, you must set KBUILD_SIGN_KEY/KBUILD_SIGN_CERT to point to the signing key/certificate!
++++++ For your convenience, we try to read these variables as 'mok_signing_key' resp. 'mok_certificate' from /etc/dkms/framework.conf /etc/dkms/framework.conf.d/*.conf

++++++ If your certificate requires a password, pass it via the KBUILD_SIGN_PIN env-var!
grep: /etc/dkms/framework.conf.d/*.conf: No such file or directory
++++++ E.g. using 'export KBUILD_SIGN_PIN; read -s -p "Passphrase for signing key : " KBUILD_SIGN_PIN; sudo --preserve-env=KBUILD_SIGN_PIN make sign'

Building v4l2-loopback driver...
make -C /usr/lib/modules/6.16.4-2-MANJARO/build M=/var/lib/dkms/v4l2loopback/0.15.1/build KCPPFLAGS="" modules
make[1]: Entering directory '/usr/lib/modules/6.16.4-2-MANJARO/build'
make[2]: Entering directory '/var/lib/dkms/v4l2loopback/0.15.1/build'
  CC [M]  v4l2loopback.o
gcc: fatal error: cannot execute 'cc1': posix_spawnp: No such file or directory
compilation terminated.
make[4]: *** [/usr/lib/modules/6.16.4-2-MANJARO/build/scripts/Makefile.build:287: v4l2loopback.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [/usr/lib/modules/6.16.4-2-MANJARO/build/Makefile:2003: .] Error 2
make[2]: *** [/usr/lib/modules/6.16.4-2-MANJARO/build/Makefile:248: __sub-make] Error 2
make[2]: Leaving directory '/var/lib/dkms/v4l2loopback/0.15.1/build'
make[1]: *** [Makefile:248: __sub-make] Error 2
make[1]: Leaving directory '/usr/lib/modules/6.16.4-2-MANJARO/build'
make: *** [Makefile:53: v4l2loopback.ko] Error 2

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