Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 849011

Summary: x11-drivers/nvidia-drivers-470.129.06: compilation failed
Product: Gentoo Linux Reporter: Benjamín P <benjem>
Component: Current packagesAssignee: Ionen Wolkens <ionen>
Status: RESOLVED CANTFIX    
Severity: normal CC: ionen, soap
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: x11-drivers/nvidia-drivers-470.129.06 build log
emerge --info output

Description Benjamín P 2022-06-01 13:20:29 UTC
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
Comment 1 Ionen Wolkens gentoo-dev 2022-06-01 13:22:46 UTC
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.
Comment 2 Benjamín P 2022-06-01 13:23:38 UTC
Created attachment 781982 [details]
x11-drivers/nvidia-drivers-470.129.06 build log
Comment 3 Benjamín P 2022-06-01 13:24:55 UTC
Created attachment 781985 [details]
emerge --info output
Comment 4 Benjamín P 2022-06-01 14:04:02 UTC
(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.
Comment 5 Larry the Git Cow gentoo-dev 2022-06-01 17:09:13 UTC
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(-)