You are not logged in.
So, in almost two years on Arch I've never seen this happen before, but all my kernels have stopped working with DKMS modules.
Every single time a DKMS driver gets updated, the installation fails for each kernel, except one. It looks like this:
(2/2) Install DKMS modules
==> dkms install --no-depmod -m hid-nintendo -v 3.0 -k 5.11.11-arch1-1
Error! Bad return status for module build on kernel: 5.11.11-arch1-1 (x86_64)
Consult /var/lib/dkms/hid-nintendo/3.0/build/make.log for more information.
==> Warning, `dkms install --no-depmod -m hid-nintendo -v 3.0 -k 5.11.11-arch1-1' returned 10
==> dkms install --no-depmod -m hid-nintendo -v 3.0 -k 5.12.0-rc3-139-tkg-cfs
Error! Bad return status for module build on kernel: 5.12.0-rc3-139-tkg-cfs (x86_64)
Consult /var/lib/dkms/hid-nintendo/3.0/build/make.log for more information.
==> Warning, `dkms install --no-depmod -m hid-nintendo -v 3.0 -k 5.12.0-rc3-139-tkg-cfs' returned 10
==> dkms install --no-depmod -m hid-nintendo -v 3.0 -k 5.10.10-115-tkg-cfs
Error! Bad return status for module build on kernel: 5.10.10-115-tkg-cfs (x86_64)
Consult /var/lib/dkms/hid-nintendo/3.0/build/make.log for more information.
==> Warning, `dkms install --no-depmod -m hid-nintendo -v 3.0 -k 5.10.10-115-tkg-cfs' returned 10
==> dkms install --no-depmod -m hid-nintendo -v 3.0 -k 5.11.11-144-tkg-cfs
==> dkms install --no-depmod -m hid-nintendo -v 3.0 -k 5.11.1-xanmod1-1
Error! Bad return status for module build on kernel: 5.11.1-xanmod1-1 (x86_64)
Consult /var/lib/dkms/hid-nintendo/3.0/build/make.log for more information.
==> Warning, `dkms install --no-depmod -m hid-nintendo -v 3.0 -k 5.11.1-xanmod1-1' returned 10
==> dkms install --no-depmod -m hid-nintendo -v 3.0 -k 5.11.11-zen1-1-zen
Error! Bad return status for module build on kernel: 5.11.11-zen1-1-zen (x86_64)
Consult /var/lib/dkms/hid-nintendo/3.0/build/make.log for more information.
==> Warning, `dkms install --no-depmod -m hid-nintendo -v 3.0 -k 5.11.11-zen1-1-zen' returned 10
And the log shows:
DKMS make.log for hid-nintendo-3.0 for kernel 5.11.11-arch1-1 (x86_64)
Fri Apr 2 04:55:13 PM EDT 2021
make: Entering directory '/usr/lib/modules/5.11.11-arch1-1/build'
ERROR: Kernel configuration is invalid.
include/generated/autoconf.h or include/config/auto.conf are missing.
Run 'make oldconfig && make prepare' on kernel src to fix it.
make: *** [Makefile:718: include/config/auto.conf] Error 1
make: Leaving directory '/usr/lib/modules/5.11.11-arch1-1/build'
That same error is present in every log.
I tried looking through the forums, but the only related issues I could find were with people building their own kernels, but this issue is happening even with the official Arch prebuilt kernel, and actually the only kernel that IS working is a kernel I build myself using TK-Glitch's PKGBUILD. Linux-zen and linux (both from the official Arch repositories) are not working.
EDIT: If you're using GCC v11, you'll have to build all kernels locally.
Last edited by gardotd426 (2021-04-02 22:11:43)
Offline
pacman -Qo /usr/lib/modules/5.11.11-arch1-1/build/include/generated/autoconf.h /usr/lib/modules/5.11.11-arch1-1/build/include/config/auto.conf
Offline
They're owned by the headers package for the respective kernel.
Offline
Please post the requested output also the output of
stat /usr/lib/modules/5.11.11-arch1-1/build/include/generated/autoconf.h /usr/lib/modules/5.11.11-arch1-1/build/include/config/auto.conf
because the test from https://github.com/torvalds/linux/blob/ … efile#L717 is failing
Offline
Like I said, it's
linux-headers
:
/usr/lib/modules/5.11.11-arch1-1/build/include/config/auto.conf is owned by linux-headers 5.11.11.arch1-1
But for some reason I don't have /usr/lib/modules/5.11.11-arch1-1/build/include/generated/autoconf.h.
So I completely removed linux-headers, removed the cached package from /var/cache/pacman/pkg, and reinstalled. And it's still not there. For some reason I can't get /usr/lib/modules/5.11.11-arch1-1/build/include/generated/autoconf.h
Offline
stat /usr/lib/modules/5.11.11-arch1-1/build/include/generated/autoconf.h /usr/lib/modules/5.11.11-arch1-1/build/include/config/auto.conf
stat: cannot statx '/usr/lib/modules/5.11.11-arch1-1/build/include/generated/autoconf.h': No such file or directory
File: /usr/lib/modules/5.11.11-arch1-1/build/include/config/auto.conf
Size: 192710 Blocks: 384 IO Block: 4096 regular file
Device: 10309h/66313d Inode: 4331299 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2021-04-02 17:33:50.301704765 -0400
Modify: 2021-03-30 10:10:17.000000000 -0400
Change: 2021-04-02 17:33:45.083628414 -0400
Birth: 2021-04-02 17:33:45.083628414 -0400
Offline
pacman -Qkk linux-headers
What was the output when you reinstalled linux-headers?
Do you have anything listed as NoExtract in pacman.conf?
Offline
pacman -Qkk linux-headers
warning: linux-headers: /usr/lib/modules/5.11.11-arch1-1/build/include/generated/autoconf.h (No such file or directory)
warning: linux-headers: /usr/lib/modules/5.11.11-arch1-1/build/scripts/kconfig/.conf.cmd (Modification time mismatch)
warning: linux-headers: /usr/lib/modules/5.11.11-arch1-1/build/scripts/kconfig/conf (Modification time mismatch)
warning: linux-headers: /usr/lib/modules/5.11.11-arch1-1/build/scripts/kconfig/conf (Size mismatch)
linux-headers: 21164 total files, 3 altered files
This makes literally zero sense. Like I said, I just now removed linux-headers, deleted the cached package in /var/cache/pacman/pkg, and reinstalled it, and yet it's still not giving me everything I'm supposed to have.
The output when I reinstalled was completely normal, aside from the dkms errors:
resolving dependencies...
looking for conflicting packages...
Packages (1) linux-headers-5.11.11.arch1-1
Total Installed Size: 128.70 MiB
Net Upgrade Size: 0.00 MiB
:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring [------------------------------------------] 100%
(1/1) checking package integrity [------------------------------------------] 100%
(1/1) loading package files [------------------------------------------] 100%
(1/1) checking for file conflicts [------------------------------------------] 100%
(1/1) checking available disk space [------------------------------------------] 100%
warning: could not get file information for usr/lib/modules/5.11.11-arch1-1/build/include/generated/autoconf.h
:: Running pre-transaction hooks...
(1/1) Remove upgraded DKMS modules
==> Unable to remove module hid-nintendo/3.0 for kernel 5.11.11-arch1-1: Not found in dkms status output.
==> Unable to remove module vboxhost/6.1.18_OSE for kernel 5.11.11-arch1-1: Not found in dkms status output.
==> Unable to remove module smartcam/1.4.0 for kernel 5.11.11-arch1-1: Not found in dkms status output.
==> Unable to remove module v4l2loopback-dc/1.7.2 for kernel 5.11.11-arch1-1: Not found in dkms status output.
==> Unable to remove module nvidia/465.19.01 for kernel 5.11.11-arch1-1: Not found in dkms status output.
==> Unable to remove module hid-playstation/20210216 for kernel 5.11.11-arch1-1: Not found in dkms status output.
==> Unable to remove module zenpower/46.5e2f56f for kernel 5.11.11-arch1-1: Not found in dkms status output.
==> Unable to remove module i2c-piix4-aura/5.6.11 for kernel 5.11.11-arch1-1: Not found in dkms status output.
==> Unable to remove module v4l2loopback/0.12.5 for kernel 5.11.11-arch1-1: Not found in dkms status output.
:: Processing package changes...
(1/1) reinstalling linux-headers [------------------------------------------] 100%
:: Running post-transaction hooks...
(1/6) Arming ConditionNeedsUpdate...
(2/6) Updating module dependencies...
(3/6) Install DKMS modules
==> dkms install --no-depmod -m hid-nintendo -v 3.0 -k 5.11.11-arch1-1
Error! Bad return status for module build on kernel: 5.11.11-arch1-1 (x86_64)
Consult /var/lib/dkms/hid-nintendo/3.0/build/make.log for more information.
==> Warning, `dkms install --no-depmod -m hid-nintendo -v 3.0 -k 5.11.11-arch1-1' returned 10
==> dkms install --no-depmod -m vboxhost -v 6.1.18_OSE -k 5.11.11-arch1-1
Error! Bad return status for module build on kernel: 5.11.11-arch1-1 (x86_64)
Consult /var/lib/dkms/vboxhost/6.1.18_OSE/build/make.log for more information.
==> Warning, `dkms install --no-depmod -m vboxhost -v 6.1.18_OSE -k 5.11.11-arch1-1' returned 10
==> dkms install --no-depmod -m smartcam -v 1.4.0 -k 5.11.11-arch1-1
Error! Bad return status for module build on kernel: 5.11.11-arch1-1 (x86_64)
Consult /var/lib/dkms/smartcam/1.4.0/build/make.log for more information.
==> Warning, `dkms install --no-depmod -m smartcam -v 1.4.0 -k 5.11.11-arch1-1' returned 10
==> dkms install --no-depmod -m v4l2loopback-dc -v 1.7.2 -k 5.11.11-arch1-1
Error! Bad return status for module build on kernel: 5.11.11-arch1-1 (x86_64)
Consult /var/lib/dkms/v4l2loopback-dc/1.7.2/build/make.log for more information.
==> Warning, `dkms install --no-depmod -m v4l2loopback-dc -v 1.7.2 -k 5.11.11-arch1-1' returned 10
==> dkms install --no-depmod -m nvidia -v 465.19.01 -k 5.11.11-arch1-1
Error! Bad return status for module build on kernel: 5.11.11-arch1-1 (x86_64)
Consult /var/lib/dkms/nvidia/465.19.01/build/make.log for more information.
==> Warning, `dkms install --no-depmod -m nvidia -v 465.19.01 -k 5.11.11-arch1-1' returned 10
==> dkms install --no-depmod -m hid-playstation -v 20210216 -k 5.11.11-arch1-1
Error! Bad return status for module build on kernel: 5.11.11-arch1-1 (x86_64)
Consult /var/lib/dkms/hid-playstation/20210216/build/make.log for more information.
==> Warning, `dkms install --no-depmod -m hid-playstation -v 20210216 -k 5.11.11-arch1-1' returned 10
==> dkms install --no-depmod -m zenpower -v 46.5e2f56f -k 5.11.11-arch1-1
Error! Bad return status for module build on kernel: 5.11.11-arch1-1 (x86_64)
Consult /var/lib/dkms/zenpower/46.5e2f56f/build/make.log for more information.
==> Warning, `dkms install --no-depmod -m zenpower -v 46.5e2f56f -k 5.11.11-arch1-1' returned 10
==> dkms install --no-depmod -m i2c-piix4-aura -v 5.6.11 -k 5.11.11-arch1-1
Error! Bad return status for module build on kernel: 5.11.11-arch1-1 (x86_64)
Consult /var/lib/dkms/i2c-piix4-aura/5.6.11/build/make.log for more information.
==> Warning, `dkms install --no-depmod -m i2c-piix4-aura -v 5.6.11 -k 5.11.11-arch1-1' returned 10
==> dkms install --no-depmod -m v4l2loopback -v 0.12.5 -k 5.11.11-arch1-1
Error! Bad return status for module build on kernel: 5.11.11-arch1-1 (x86_64)
Consult /var/lib/dkms/v4l2loopback/0.12.5/build/make.log for more information.
==> Warning, `dkms install --no-depmod -m v4l2loopback -v 0.12.5 -k 5.11.11-arch1-1' returned 10
==> depmod 5.11.11-arch1-1
(4/6) Cleaning up...
(5/6) Cleaning up...
(6/6) Cleaning up...
The only things I've ever changed in pacman.conf were adding the chaotic-aur repo, so no. But I still checked to make sure, and yeah there's nothing.
Offline
warning: could not get file information for usr/lib/modules/5.11.11-arch1-1/build/include/generated/autoconf.h
So it is tracking the file and it should be extracting it.
ls -la /usr/lib/modules/5.11.11-arch1-1/build/include/generated/
bsdtar -tvf /var/cache/pacman/pkg/linux-headers-5.11.11.arch1-1-x86_64.pkg.tar.zst | grep generated
Offline
Jesus, I think I figured it out.
I'm on a Zen 3 CPU (Ryzen 7 5800X), and with GCC 11 it's now possible to get a Zen 3-optimized kernel. TK-Glitch has added support to his linux-tkg system, but obviously it hasn't made it into the regular linux packages for Arch. But I upgraded to GCC 11 not too long ago. I didn't experience this issue when moving to GCC 10, but apparently until GCC 11 hits the official repos, I'll have to use asp to pull in the PKGBUILDs for the official Arch packages and build them myself.
I just tried it, and sure enough DKMS now works on the regular linux package.
Offline
/usr/lib/modules/5.11.11-arch1-1/build/include/generated/autoconf.h was deleted by DKMS running as root?
Offline
I'm not sure what was deleting it, I just downloaded a prebuilt linux-headers package using wget and the file is indeed there, but when I try to install it it doesn't work, and the only explanation is the move to GCC 11. And when I build the official arch package for linux and linux-headers (using asp to get the PKGBUILD), it works perfectly.
Offline