You are not logged in.
I just ran an update today which updated the Nvidia drivers. Everything seems to work fine with my stock Arch kernel but I also have a custom kernel which needs dkms and that build is failing for some reason. Pacman logged an error to check the following file:
/var/lib/dkms/nvidia/465.31/build/make.log
DKMS make.log for nvidia-465.31 for kernel 5.11.21-1-custom (x86_64)
Thu May 20 06:06:17 PM CDT 2021
make[1]: Entering directory '/usr/lib/modules/5.11.21-1-custom/build'
scripts/Makefile.lib:8: 'always' is deprecated. Please use 'always-y' instead
SYMLINK /var/lib/dkms/nvidia/465.31/build/nvidia/nv-kernel.o
SYMLINK /var/lib/dkms/nvidia/465.31/build/nvidia-modeset/nv-modeset-kernel.o
CC [M] /var/lib/dkms/nvidia/465.31/build/nvidia-peermem/nvidia-ib-peermem-stub.o
cc1: error: incompatible gcc/plugin versions
cc1: error: failed to initialize plugin ./scripts/gcc-plugins/structleak_plugin.so
make[2]: *** [scripts/Makefile.build:279: /var/lib/dkms/nvidia/465.31/build/nvidia-peermem/nvidia-ib-peermem-stub.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [Makefile:1820: /var/lib/dkms/nvidia/465.31/build] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.11.21-1-custom/build'
make: *** [Makefile:80: modules] Error 2I've never had an issue before with DKMS and this kernel. That "incompatible gcc versions" makes me think maybe there is a problem with GCC 11 which also recently got updated. Is anyone else having an issue with this or know what I can do?
Last edited by weirddan455 (2021-05-20 23:47:26)
Offline
The kernel needs to be built with the same compiler version as any external modules.
Online
The kernel needs to be built with the same compiler version as any external modules.
Ah, that makes sense. I rebuilt the kernel and it works now. Thanks.
Offline