Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 845381 - dev-util/nvidia-cuda-sdk-11.5.1 fails to compile: std_function.h:435:145: error: parameter packs not expanded with ...:
Summary: dev-util/nvidia-cuda-sdk-11.5.1 fails to compile: std_function.h:435:145: err...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords: PMASKED
Depends on:
Blocks:
 
Reported: 2022-05-18 14:43 UTC by Agostino Sarubbo
Modified: 2022-11-19 03:54 UTC (History)
3 users (show)

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


Attachments
build.log.xz (build.log.xz,167.60 KB, application/x-xz)
2022-05-18 14:43 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-05-18 14:43:27 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-util/nvidia-cuda-sdk-11.5.1 fails to compile.
Discovered on: amd64 (internal ref: tinderbox)
Comment 1 Agostino Sarubbo gentoo-dev 2022-05-18 14:43:30 UTC
Created attachment 779435 [details]
build.log.xz

build log and emerge --info (compressed because it exceeds attachment limit, use 'xzless' to read it)
Comment 2 Agostino Sarubbo gentoo-dev 2022-05-18 14:43:31 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


Package 'glfw3', required by 'virtual:world', not found
/usr/lib/gcc/x86_64-pc-linux-gnu/11.3.0/include/g++-v11/bits/std_function.h:435:145: error: parameter packs not expanded with ‘...’:
Comment 3 Leonid Kopylov 2022-09-27 11:45:37 UTC
i could install it with USE=-examples
Comment 4 Justin Turner Arthur 2022-09-29 08:05:11 UTC
Looks like gcc 11 keeps getting picked as the NVCC host compiler even though gcc 11 support is broken for CUDA 11.5.1 assets. gcc 11 is supported in some of the later 11.5.x series as well as CUDA 11.7.x+

The true fix is to adjust the =dev-util/nvidia-cuda-toolkit-11.5.1 ebuild to stop it from adding gcc 11 versions to cuda-config or to update the ebuilds for newer versions of the SDK and Toolkit.

For those wanting a quick work around, eselect-ing gcc 9 or 10 will have no effect. You will need to first ensure nvidia-cuda-toolkit is installed. Next, manually edit the /opt/cuda/bin/cuda-config shell script to remove gcc 11 versions from the SUPPORT_GCC_VERSIONS_BY_CUDA variable. After this, nvidia-cuda-sdk-11.5.1 and other CUDA projects should be emerge-able. Note that cuda-config is replaced on the next re-emerge or update of nvidia-cuda-toolkit.
Comment 5 Larry the Git Cow gentoo-dev 2022-10-18 18:27:46 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d836cd44c1b06bac0d1ad99f8dd9064c400f5312

commit d836cd44c1b06bac0d1ad99f8dd9064c400f5312
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2022-10-18 18:27:37 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2022-10-18 18:27:37 +0000

    profiles: last-rite dev-util/nvidia-cuda-sdk
    
    Bug: https://bugs.gentoo.org/722092
    Bug: https://bugs.gentoo.org/749900
    Bug: https://bugs.gentoo.org/762169
    Bug: https://bugs.gentoo.org/840656
    Bug: https://bugs.gentoo.org/845381
    Bug: https://bugs.gentoo.org/858392
    Bug: https://bugs.gentoo.org/866701
    Signed-off-by: David Seifert <soap@gentoo.org>

 profiles/package.mask | 6 ++++++
 1 file changed, 6 insertions(+)
Comment 6 Larry the Git Cow gentoo-dev 2022-11-19 03:54:56 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aac3cd55032f85ba5a13cf05b631b301d3370c60

commit aac3cd55032f85ba5a13cf05b631b301d3370c60
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2022-11-19 03:54:28 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2022-11-19 03:54:28 +0000

    dev-util/nvidia-cuda-sdk: treeclean
    
    Closes: https://bugs.gentoo.org/722092
    Closes: https://bugs.gentoo.org/749900
    Closes: https://bugs.gentoo.org/762169
    Closes: https://bugs.gentoo.org/840656
    Closes: https://bugs.gentoo.org/845381
    Closes: https://bugs.gentoo.org/858392
    Closes: https://bugs.gentoo.org/866701
    Signed-off-by: David Seifert <soap@gentoo.org>

 dev-util/nvidia-cuda-sdk/Manifest                  |   1 -
 dev-util/nvidia-cuda-sdk/metadata.xml              |  12 --
 .../nvidia-cuda-sdk/nvidia-cuda-sdk-11.5.1.ebuild  | 140 ---------------------
 profiles/package.mask                              |   6 -
 4 files changed, 159 deletions(-)