dkms fails to build all modules #140
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When pacman attempts to rebuild dkms modules, this occurs:
This error additionally occurs when running
I know this happens with the
linux-hardenedkernel. It's probable that it also happens on thelinuxkernel, but I'm not sure, I haven't tested. This occurs on both an x86_64-v2 and x86_64-v3 system. (It was a fatal bug on my x86_64-v3 system as I was using thenvidia-dkmsdrivers that failed to build, and the graphics environment wouldn't start until I dropped to a TTY and switched toxf86-video-nouveau.) This does not occur on a non-ALHP system.Here is an output of the DKMS build log for one of the modules. All the logs look similar (cc1 failing).
This started happening right around the GCC update to 12.2. Perhaps it's because the kernel is built with GCC 12.1 and DKMS is using GCC 12.2? I will test that theory by building
linux-hardenedusing GCC 12.2 and the ALHPmakepkg.conffile and report back when the build finishes.Rebuilding the kernel using GCC 12.2 worked! Perhaps ALHP just needs to rebuild all the linux kernels using GCC 12.2. I'm glad the issue is as simple as a rebuild :)
Yep, this right here is the problem. This is also the reason why we do not build
gccin ALHP, since this would result in the same problem.Not sure why gcc 12.2 was not used while building
linux-hardened, but I'll requeue it.I removed
linux-hardened, so the next build-cycle should pick it up and build it with gcc 12.2. In the meantime pacman should fetch the Archlinux build (may need to downgrade withpacman -Suuy).This is fixed