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)
Created attachment 779435 [details] build.log.xz build log and emerge --info (compressed because it exceeds attachment limit, use 'xzless' to read it)
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 ‘...’:
i could install it with USE=-examples
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.
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(+)
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(-)