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

Bug 674838

Summary: dev-util/nvidia-cuda-toolkit does not like GCC >= 7
Product: Gentoo Linux Reporter: Andrew Udvare <audvare>
Component: Current packagesAssignee: Gentoo Science Related Packages <sci>
Status: RESOLVED OBSOLETE    
Severity: normal CC: bugzilla, dan, redblade7, sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=658568
https://bugs.gentoo.org/show_bug.cgi?id=674570
Whiteboard:
Package list:
Runtime testing required: ---

Description Andrew Udvare 2019-01-08 00:41:27 UTC
dev-util/nvidia-cuda-toolkit does not like GCC >= 7 but the OpenCV ebuild does not warn or help with this.

I propose that if the cuda USE flag is present, the ebuild should pull GCC < 7 and force the compiler to be that version. The user should not have to run eselect gcc or anything similar.

The downside is that one more copy of GCC is pulled in when it is only used for building opencv[cuda]. There does not appear to be any harm with switching back to latest GCC after opencv is built, or removing this old version.
Comment 1 David Seifert gentoo-dev 2020-12-27 16:17:31 UTC
CUDA 11 works just fine with GCC 8 and GCC 9