while it states here: http://eigen.tuxfamily.org/index.php?title=Main_Page#Compiler_support that it supports GCC 4.8+, ebuild states that it supports 4.7 - 7.3 range only. >>> Emerging (6 of 16) dev-cpp/eigen-3.3.7::gentoo * eigen-3.3.7.tar.bz2 BLAKE2B SHA512 size ;-) ... [ ok ] >>> Unpacking source... >>> Unpacking eigen-3.3.7.tar.bz2 to /var/tmp/portage/dev-cpp/eigen-3.3.7/work >>> Source unpacked in /var/tmp/portage/dev-cpp/eigen-3.3.7/work >>> Preparing source in /var/tmp/portage/dev-cpp/eigen-3.3.7/work/eigen-3.3.7 ... removed '/var/tmp/portage/dev-cpp/eigen-3.3.7/work/eigen-3.3.7/cmake/FindBLAS.cmake' removed '/var/tmp/portage/dev-cpp/eigen-3.3.7/work/eigen-3.3.7/cmake/FindLAPACK.cmake' * Only gcc version(s) 4.7 4.8 4.9 5.3 5.4 6.3 6.4 7.2 7.3 are supported, * of which none is installed * ERROR: dev-cpp/eigen-3.3.7::gentoo failed (prepare phase): * Only gcc version(s) 4.7 4.8 4.9 5.3 5.4 6.3 6.4 7.2 7.3 are supported * * Call stack: * ebuild.sh, line 124: Called src_prepare * environment, line 3161: Called cuda_src_prepare * environment, line 1323: Called cuda_sanitize * environment, line 1315: Called cuda_gccdir '-f' * environment, line 1306: Called die * The specific snippet of code: * die "Only gcc version(s) ${vers} are supported"; * * If you need support, post the output of `emerge --info '=dev-cpp/eigen-3.3.7::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-cpp/eigen-3.3.7::gentoo'`. * The complete build log is located at '/var/tmp/portage/dev-cpp/eigen-3.3.7/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-cpp/eigen-3.3.7/temp/environment'. * Working directory: '/var/tmp/portage/dev-cpp/eigen-3.3.7/work/eigen-3.3.7' * S: '/var/tmp/portage/dev-cpp/eigen-3.3.7/work/eigen-3.3.7'
GCC 7.4 is out of "supported" range as well
List of supported versions of GCC is hardcoded in cuda-config tool from dev-util/nvidia-cuda-toolkit. You can change cuda_supported_gcc variable in dev-util/nvidia-cuda-toolkit ebuild and reinstall it for testing...
*** Bug 675370 has been marked as a duplicate of this bug. ***
*** Bug 675374 has been marked as a duplicate of this bug. ***
nvidia-cuda-toolkit-10.1.105 supports for gcc-8.2 & 8.3 2.2.1. CUDA Compilers The following compilers are supported as host compilers in nvcc: GCC 8.x Clang 7.0 Microsoft Visual Studio 2017 (RTW, and all updates) Microsoft Visual Studio 2019 (Preview releases) PGI 19.x ICC 19.0 Xcode 10.1 (10B61)
I can't build eigen with cuda use flag, because cuda does not support gcc-8.4. I am on the latest cuda 10.2.89-r1. It looks like the ebuilds for cuda allow gcc-8.4, but at the same time cuda_src_prepare() from cuda.eclass always fails with gcc-8.4, because it takes allowed gcc versions from cuda-config -s, not from the ebuilds, and the output does not contain 8.4. https://bugs.gentoo.org/729156 depends on this bug.
*** Bug 729156 has been marked as a duplicate of this bug. ***
(In reply to Alexey Korepanov from comment #6) > I can't build eigen with cuda use flag, because cuda does not support > gcc-8.4. (In reply to Alexey Korepanov from comment #5) > And the relation [of the error message] to cuda is far from obvious. Whoever feels responsible for cuda.eclass, please improve the message so that ebuilds that are so kind as to provide optional cuda support do not receive bugs about it.
cuda looks to support it for me: $ cuda-config -s 4.7 4.8 4.9 5.3 5.4 6.3 6.4 7.2 7.3 8.2 8.3 8.4 I think the problem is that ebuilds should have had a rev bump when committing https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1700a99d779f85c40d9a076b8151aa4303e49a01 Maybe you can try re-emerging it to see if you gain 8.4 support
re-emerging cuda helped! The problem is indeed the missing revbump.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=80eaf4a2f289a4dc883265b58ae56d7519f97645 commit 80eaf4a2f289a4dc883265b58ae56d7519f97645 Author: Pacho Ramos <pacho@gentoo.org> AuthorDate: 2020-06-27 10:21:38 +0000 Commit: Pacho Ramos <pacho@gentoo.org> CommitDate: 2020-06-27 10:21:38 +0000 dev-util/nvidia-cuda-toolkit: Revbump needed to fix newer gcc support Bug: https://bugs.gentoo.org/674570 Package-Manager: Portage-2.3.100, Repoman-2.3.22 Signed-off-by: Pacho Ramos <pacho@gentoo.org> ...-toolkit-10.1.105-r2.ebuild => nvidia-cuda-toolkit-10.1.105-r3.ebuild} | 0 ...-toolkit-10.1.168-r1.ebuild => nvidia-cuda-toolkit-10.1.168-r2.ebuild} | 0 ...-toolkit-10.1.243-r2.ebuild => nvidia-cuda-toolkit-10.1.243-r3.ebuild} | 0 ...da-toolkit-10.2.89-r1.ebuild => nvidia-cuda-toolkit-10.2.89-r2.ebuild} | 0 4 files changed, 0 insertions(+), 0 deletions(-)
*** Bug 729296 has been marked as a duplicate of this bug. ***
Benda, please do not miss to revbump next time.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cbc7ee1f174f4eea24003d428094dc25c49244d6 commit cbc7ee1f174f4eea24003d428094dc25c49244d6 Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2020-06-27 11:03:29 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2020-06-27 11:03:53 +0000 dev-util/nvidia-cuda-toolkit: Add necessary revbump warning ...re cuda_supported_gcc. Bug: https://bugs.gentoo.org/674570 Package-Manager: Portage-2.3.103, Repoman-2.3.23 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-10.0.130.ebuild | 1 + dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-10.1.105-r3.ebuild | 1 + dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-10.1.168-r2.ebuild | 1 + dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-10.1.243-r3.ebuild | 1 + dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-10.2.89-r2.ebuild | 1 + dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-6.5.14.ebuild | 1 + dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-6.5.19-r1.ebuild | 1 + dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-7.5.18-r2.ebuild | 1 + dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-8.0.44.ebuild | 1 + dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-8.0.61.ebuild | 1 + dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-9.0.176.ebuild | 1 + dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-9.1.85.ebuild | 1 + dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-9.2.88.ebuild | 1 + 13 files changed, 13 insertions(+)
(In reply to Andreas Sturmlechner from comment #13) > Benda, please do not miss to revbump next time. Thanks