Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 690998

Summary: dev-util/nvidia-cuda-toolkit - bundled libraries should not dynamically link against system dev-libs/openssl libraries
Product: Gentoo Linux Reporter: Daniel M. Weeks <dan>
Component: Current packagesAssignee: Gentoo Science Related Packages <sci>
Status: RESOLVED FIXED    
Severity: normal CC: 0xe2.0x9a.0x9b, gentoobugs, me, o.freyermuth, waebbl-gentoo
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Daniel M. Weeks 2019-07-29 15:12:23 UTC
Portage is confused by the bundled openssl libraries (1.0.0) in nvidia-cuda-toolkit when dev-libs/openssl 1.1.0 is installed.

>>> package: dev-libs/openssl-1.1.0k
 *  - /usr/lib64/libcrypto.so.1.0.0
 *      used by /opt/cuda/NsightCompute-2019.3/host/linux-desktop-glibc_2_11_3-x64/Plugins/libLinuxPlatformPlugin.so (dev-util/nvidia-cuda-toolkit-10.1.168)
 *      used by /opt/cuda/NsightCompute-2019.3/host/linux-desktop-glibc_2_11_3-x64/Plugins/libWindowsPlatformPlugin.so (dev-util/nvidia-cuda-toolkit-10.1.168)
 *      used by /opt/cuda/NsightCompute-2019.3/host/linux-desktop-glibc_2_11_3-x64/libssl.so.1.0.0 (dev-util/nvidia-cuda-toolkit-10.1.168)
 *      used by 9 other files
 *  - /usr/lib64/libssl.so.1.0.0
 *      used by /opt/cuda/NsightCompute-2019.3/host/linux-desktop-glibc_2_11_3-x64/Plugins/libLinuxPlatformPlugin.so (dev-util/nvidia-cuda-toolkit-10.1.168)
 *      used by /opt/cuda/NsightCompute-2019.3/host/linux-desktop-glibc_2_11_3-x64/Plugins/libWindowsPlatformPlugin.so (dev-util/nvidia-cuda-toolkit-10.1.168)
 *      used by /opt/cuda/NsightSystems-2019.3/Host-x86_64/ImportNvtxt (dev-util/nvidia-cuda-toolkit-10.1.168)
 *      used by 7 other files

Reproducible: Always
Comment 1 Daniel M. Weeks 2019-08-22 13:39:00 UTC
This may have been an issue only on my system due to a bad nvidia-cuda-toolkit or cudnn install. (I have reinstalled both from scratch and this is no longer an issue.)

However, I'll leave it up to the maintainers whether the bundling of libraries still needs to be addressed.
Comment 2 Bernd 2019-08-24 19:25:22 UTC
Today, I hit this issue too. It seems to be related to the un-slotting of openssl, i.e. removing slot 1.0.0 and the 1.0.2* releases of openssl. At least, this issue didn't pop up before todays sync, where openssl:1.0.0 is no longer available.

Re-emerging nvidia-cuda-toolkit didn't solve it in my case.
Comment 3 manu 2019-10-08 20:48:15 UTC
Same here (and also re-emerging didn't help)
Comment 4 Gregory Beauregard 2019-10-12 14:43:29 UTC
This looks like it was fixed in the latest cuda ebuild, but the old ones still need marked to depend on openssl-compat.
Comment 5 Larry the Git Cow gentoo-dev 2022-06-17 12:55:58 UTC
The bug has been closed via the following commit(s):

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

commit d2283b7c0ae4766d4bfbeda3831e3255a536ca8e
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2022-06-17 12:55:48 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2022-06-17 12:55:48 +0000

    dev-util/nvidia-cuda-toolkit: depend on openssl-compat:1.1.1
    
    Closes: https://bugs.gentoo.org/690998
    Signed-off-by: David Seifert <soap@gentoo.org>

 ...oolkit-11.7.0.ebuild => nvidia-cuda-toolkit-11.7.0-r1.ebuild} | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)