After gcc update from version 11.2.1_p20220115 to version 11.3.0 is not possible to compile nvidia-drivers-470.129.06. Compilation fails because of incompatible gcc/plugin versions. Reproducible: Always
This happens with about any third party modules and is nothing nvidia-drivers can do about. You need to make clean your kernel sources and rebuild them with the new gcc, then build nvidia-drivers.
Created attachment 781982 [details] x11-drivers/nvidia-drivers-470.129.06 build log
Created attachment 781985 [details] emerge --info output
(In reply to Ionen Wolkens from comment #1) > This happens with about any third party modules and is nothing > nvidia-drivers can do about. > > You need to make clean your kernel sources and rebuild them with the new > gcc, then build nvidia-drivers. Thank you very much, it helped me. Perhaps it would be good to mention this fact in the Messages for package x11-drivers/nvidia-drivers.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2619dd7945d742b208b545c97b2c7635c17d9256 commit 2619dd7945d742b208b545c97b2c7635c17d9256 Author: Ionen Wolkens <ionen@gentoo.org> AuthorDate: 2022-06-01 16:12:05 +0000 Commit: Ionen Wolkens <ionen@gentoo.org> CommitDate: 2022-06-01 17:08:43 +0000 x11-drivers/nvidia-drivers: warn if incompatible gcc plugins This isn't specific to nvidia-drivers (even a blank test.c fails), but it's not uncommon this is the only third party module that a user have and a warning wouldn't hurt. Normally not an issue given gcc plugins are typically not enabled by default (or the option is set, but individual plugins are disabled) and mismatching is mostly fine. Also note about kernel-bin given the module-specific bits /can/ be rebuilt and it may sound confusing otherwise. Bug: https://bugs.gentoo.org/849011 Signed-off-by: Ionen Wolkens <ionen@gentoo.org> .../nvidia-drivers/nvidia-drivers-390.151.ebuild | 17 ++++++++++++++++- .../nvidia-drivers/nvidia-drivers-470.129.06.ebuild | 17 ++++++++++++++++- .../nvidia-drivers/nvidia-drivers-470.62.30.ebuild | 17 ++++++++++++++++- .../nvidia-drivers/nvidia-drivers-510.73.05.ebuild | 17 ++++++++++++++++- .../nvidia-drivers/nvidia-drivers-515.43.04.ebuild | 17 ++++++++++++++++- .../nvidia-drivers/nvidia-drivers-515.48.07.ebuild | 17 ++++++++++++++++- 6 files changed, 96 insertions(+), 6 deletions(-)