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

Bug 702606

Summary: dev-util/nvidia-cuda-toolkit-10.2.89 - Installation of a symlink is blocked by a directory: '/opt/cuda/lib64'
Product: Gentoo Linux Reporter: Samuel Bernardo <samuelbernardo.mail>
Component: Current packagesAssignee: Gentoo Science Related Packages <sci>
Status: RESOLVED CANTFIX    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=700064
Whiteboard:
Package list:
Runtime testing required: ---

Description Samuel Bernardo 2019-12-12 17:33:07 UTC
Message that appears in the end of install:

 * Error messages for package dev-util/nvidia-cuda-toolkit-10.2.89:

 * 
 * Installation of a symlink is blocked by a directory:
 *   '/opt/cuda/lib64'
 * This symlink will be merged with a different name:
 *   '/opt/cuda/lib64.backup.0004'
 * 
 * 
 * Installation of a symlink is blocked by a directory:
 *   '/opt/cuda/include'
 * This symlink will be merged with a different name:
 *   '/opt/cuda/include.backup.0004'
Comment 1 Benda Xu gentoo-dev 2019-12-13 09:29:15 UTC
(In reply to Samuel Bernardo from comment #0)
> Message that appears in the end of install:
> 
>  * Error messages for package dev-util/nvidia-cuda-toolkit-10.2.89:
> 
>  * 
>  * Installation of a symlink is blocked by a directory:
>  *   '/opt/cuda/lib64'
>  * This symlink will be merged with a different name:
>  *   '/opt/cuda/lib64.backup.0004'
>  * 
>  * 
>  * Installation of a symlink is blocked by a directory:
>  *   '/opt/cuda/include'
>  * This symlink will be merged with a different name:
>  *   '/opt/cuda/include.backup.0004'

What is your `ls -l /opt/cuda/` ?
Comment 2 Samuel Bernardo 2019-12-15 01:58:54 UTC
drwxr-xr-x 1 root root   232 Dec 12 14:30 bin
-rw-r--r-- 1 root root 60244 Dec 12 14:24 EULA.txt
drwxr-xr-x 1 root root    38 Apr 11  2019 extras
drwxr-xr-x 1 root root     0 Apr 11  2019 include
lrwxrwxrwx 1 root root    28 Apr 11  2019 include.backup.0000 -> targets/x86_64-linux/include
lrwxrwxrwx 1 root root    28 May  2  2019 include.backup.0001 -> targets/x86_64-linux/include
lrwxrwxrwx 1 root root    28 Jun 25 14:15 include.backup.0002 -> targets/x86_64-linux/include
lrwxrwxrwx 1 root root    28 Oct 11 14:28 include.backup.0003 -> targets/x86_64-linux/include
lrwxrwxrwx 1 root root    28 Dec 12 14:24 include.backup.0004 -> targets/x86_64-linux/include
drwxr-xr-x 1 root root     0 Apr 11  2019 lib64
lrwxrwxrwx 1 root root    24 Apr 11  2019 lib64.backup.0000 -> targets/x86_64-linux/lib
lrwxrwxrwx 1 root root    24 May  2  2019 lib64.backup.0001 -> targets/x86_64-linux/lib
lrwxrwxrwx 1 root root    24 Jun 25 14:15 lib64.backup.0002 -> targets/x86_64-linux/lib
lrwxrwxrwx 1 root root    24 Oct 11 14:28 lib64.backup.0003 -> targets/x86_64-linux/lib
lrwxrwxrwx 1 root root    24 Dec 12 14:24 lib64.backup.0004 -> targets/x86_64-linux/lib
drwxr-xr-x 1 root root    14 Oct 28  2016 nvml
drwxr-xr-x 1 root root    78 May 14  2016 nvvm
drwxr-xr-x 1 root root    78 Dec 12 14:30 nvvmx
drwxr-xr-x 1 root root     0 Apr 11  2019 share
drwxr-xr-x 1 root root   262 Dec 12 14:30 src
drwxr-xr-x 1 root root    24 Apr 11  2019 targets
drwxr-xr-x 1 root root    58 Dec 12 14:30 tools
-rw-r--r-- 1 root root    21 Dec 12 14:24 version.txt
Comment 3 Samuel Bernardo 2019-12-15 17:12:47 UTC
Don't know the reason why did this inconsistency happen in directories. Just unmerge both nvidia toolkit and sdk as pointed out in the following bug report and it is everything working as expected now:
https://bugs.gentoo.org/700064