Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 674838 - dev-util/nvidia-cuda-toolkit does not like GCC >= 7
Summary: dev-util/nvidia-cuda-toolkit does not like GCC >= 7
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-08 00:41 UTC by Andrew Udvare
Modified: 2020-12-27 16:17 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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