Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 674570 - dev-util/nvidia-cuda-toolkit should support more versions of GCC
Summary: dev-util/nvidia-cuda-toolkit should support more versions of GCC
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
: 675370 675374 729156 729296 (view as bug list)
Depends on:
Blocks:
 
Reported: 2019-01-05 02:36 UTC by Oleg Korsak
Modified: 2020-12-27 16:18 UTC (History)
8 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 Oleg Korsak 2019-01-05 02:36:40 UTC
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'
Comment 1 Oleg Korsak 2019-01-05 02:38:32 UTC
GCC 7.4 is out of "supported" range as well
Comment 2 Arfrever Frehtes Taifersar Arahesis 2019-01-05 07:41:55 UTC
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...
Comment 3 Arfrever Frehtes Taifersar Arahesis 2019-01-14 20:09:55 UTC
*** Bug 675370 has been marked as a duplicate of this bug. ***
Comment 4 Andreas Sturmlechner gentoo-dev 2019-01-14 20:11:53 UTC
*** Bug 675374 has been marked as a duplicate of this bug. ***
Comment 5 Hasan Calisir 2019-04-01 14:55:53 UTC
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)
Comment 6 Alexey Korepanov 2020-06-24 22:15:21 UTC
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.
Comment 7 Andreas Sturmlechner gentoo-dev 2020-06-26 08:59:54 UTC
*** Bug 729156 has been marked as a duplicate of this bug. ***
Comment 8 Andreas Sturmlechner gentoo-dev 2020-06-27 08:18:04 UTC
(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.
Comment 9 Pacho Ramos gentoo-dev 2020-06-27 10:08:11 UTC
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
Comment 10 Alexey Korepanov 2020-06-27 10:15:42 UTC
re-emerging cuda helped! The problem is indeed the missing revbump.
Comment 11 Larry the Git Cow gentoo-dev 2020-06-27 10:21:48 UTC
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(-)
Comment 12 Andreas Sturmlechner gentoo-dev 2020-06-27 10:50:32 UTC
*** Bug 729296 has been marked as a duplicate of this bug. ***
Comment 13 Andreas Sturmlechner gentoo-dev 2020-06-27 10:51:54 UTC
Benda, please do not miss to revbump next time.
Comment 14 Larry the Git Cow gentoo-dev 2020-06-27 11:04:43 UTC
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(+)
Comment 15 Benda Xu gentoo-dev 2020-06-27 11:37:34 UTC
(In reply to Andreas Sturmlechner from comment #13)
> Benda, please do not miss to revbump next time.

Thanks