nbcrrolls / cuda

Cuda Roll
4 stars 8 forks source link

execvp: ln: Too many levels of symbolic links #8

Open dkchalmers opened 6 years ago

dkchalmers commented 6 years ago

Hi,

I am trying to build the cuda roll on a new Rocks 7.0 installation.

Following the instructions, I download the cuda roll and run make

The make process dies with an error regarding symbolic links. build.log is attached

build.log

Any advice appreciated!

David

nadyawilliams commented 6 years ago

Did you run bootstrap.sh before make?

dkchalmers commented 6 years ago

Yes, we had run bootstrap.sh

On Thu, 22 Nov 2018 at 01:48, nadyawilliams notifications@github.com wrote:

Did you run bootstrap.sh before make?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/nbcrrolls/cuda/issues/8#issuecomment-440689031, or mute the thread https://github.com/notifications/unsubscribe-auth/ArH6K86hJx_RXa5It5caMTuet81PxCsgks5uxWfOgaJpZM4YsOpO .

nadyawilliams commented 6 years ago

Go to the top directory where you checked out CUDA roll source from github and do

pwd cd cuda/src/cuda-modules make clean make rpm

and show me the build log from the last command.

What is the top most directory where you start form ? Is this a simlink ?

dkchalmers commented 6 years ago

Here is the output. The prompt is misleading - the machine has centos 7 installed. Not ubuntu! The install directory is as specified in the instructions. It is a standard directory, not a symbolic link.

[root@ubuntu-pharm-404 src]# ls cuda roll [root@ubuntu-pharm-404 src]# pwd /export/site-roll/rocks/src [root@ubuntu-pharm-404 src]# cd cuda/src [root@ubuntu-pharm-404 src]# cd cuda-modules/ [root@ubuntu-pharm-404 cuda-modules]# make clean rm rocks-version-common.mk rm rocks-version.mk rocks-copyright.txt rm: cannot remove ‘rocks-copyright.txt’: No such file or directory make: [clean] Error 1 (ignored) rm -f python.mk rm -f /state/partition1/site-roll/rocks/src/cuda/src/cuda-modules/.rpmmacros rm -f /state/partition1/site-roll/rocks/src/cuda/src/cuda-modules/../..//SOURCES/cuda-module80-8.0.61.tar rm -f /state/partition1/site-roll/rocks/src/cuda/src/cuda-modules/../..//SOURCES/cuda-module80-8.0.61.tar.gz rm -rf cuda-module80.buildroot rm -f cuda-module80.spec.mk rm -f cuda-module80.spec rm Rules-linux-centos.mk rm Rules-linux.mk _distribution rm -f _arch _os _lang rm Rules-install.mk rm Rules-scripts.mk rm Rules-rcfiles.mk rm -f Rules.mk rm -rf rocks.dsl rocks.css stylesheet-images entities.sgml rm -f roll-.sgml rm -f images/roll-.png rm -f genrcldocs rm -rf cuda-module80.spec.in rm -rf cuda.module cuda.version rm -rf toolkit.version.mk [root@ubuntu-pharm-404 cuda-modules]# make rpm /opt/rocks/share/devel/etc/rocks-version.mk:286: rocks-version-common.mk: No such file or directory /opt/rocks/share/devel/etc/python.mk:14: rocks-version-common.mk: No such file or directory version.mk:9: toolkit.version.mk: No such file or directory /opt/rocks/share/devel/etc/Rules.mk:707: Rules-install.mk: No such file or directory /opt/rocks/share/devel/etc/Rules.mk:782: Rules-scripts.mk: No such file or directory /opt/rocks/share/devel/etc/Rules.mk:813: Rules-rcfiles.mk: No such file or directory Makefile:61: Rules.mk: No such file or directory cp /opt/rocks/share/devel/etc/Rules.mk Rules.mk cp /opt/rocks/share/devel/etc/Rules-linux.mk Rules-linux.mk cp /opt/rocks/share/devel/etc/Rules-linux-centos.mk Rules-linux-centos.mk if [ -f ../../cuda.mk ]; then \ /bin/cp ../../cuda.mk toolkit.version.mk; \ fi cp /opt/rocks/share/devel/etc/python.mk python.mk cp /opt/rocks/share/devel/etc/rocks-version-common.mk rocks-version-common.mk cp /opt/rocks/share/devel/etc/rocks-version.mk rocks-version.mk

::: rpm-mkdirs :::

if [ ! -x /state/partition1/site-roll/rocks/src/cuda/src/cuda-modules/../..//SOURCES ]; then mkdir -p /state/partition1/site-roll/rocks/src/cuda/src/cuda-modules/../..//SOURCES; fi if [ ! -x /state/partition1/site-roll/rocks/src/cuda/src/cuda-modules/../..//BUILD ]; then mkdir -p /state/partition1/site-roll/rocks/src/cuda/src/cuda-modules/../..//BUILD; fi if [ ! -x /state/partition1/site-roll/rocks/src/cuda/src/cuda-modules/../..//SPECS ]; then mkdir -p /state/partition1/site-roll/rocks/src/cuda/src/cuda-modules/../..//SPECS; fi if [ ! -x /state/partition1/site-roll/rocks/src/cuda/src/cuda-modules/../..//RPMS ]; then mkdir -p /state/partition1/site-roll/rocks/src/cuda/src/cuda-modules/../..//RPMS; fi if [ ! -x /state/partition1/site-roll/rocks/src/cuda/src/cuda-modules/../..//SRPMS ]; then mkdir -p /state/partition1/site-roll/rocks/src/cuda/src/cuda-modules/../..//SRPMS; fi rm rocks-version-common.mk rm rocks-version.mk rocks-copyright.txt rm: cannot remove ‘rocks-copyright.txt’: No such file or directory make: [clean] Error 1 (ignored) rm -f python.mk rm -f /state/partition1/site-roll/rocks/src/cuda/src/cuda-modules/.rpmmacros rm -f /state/partition1/site-roll/rocks/src/cuda/src/cuda-modules/../..//SOURCES/cuda-module80-8.0.61.tar rm -f /state/partition1/site-roll/rocks/src/cuda/src/cuda-modules/../..//SOURCES/cuda-module80-8.0.61.tar.gz rm -rf cuda-module80.buildroot rm -f cuda-module80.spec.mk rm -f cuda-module80.spec rm Rules-linux-centos.mk rm Rules-linux.mk _distribution rm -f _arch _os _lang rm Rules-install.mk rm Rules-scripts.mk rm Rules-rcfiles.mk rm -f Rules.mk rm -rf rocks.dsl rocks.css stylesheet-images entities.sgml rm -f roll-.sgml rm -f images/roll-.png rm -f genrcldocs rm -rf cuda-module80.spec.in rm -rf cuda.module cuda.version rm -rf toolkit.version.mk make Rules.mk rocks-version.mk pretar make[1]: Entering directory /state/partition1/site-roll/rocks/src/cuda/src/cuda-modules' /opt/rocks/share/devel/etc/rocks-version.mk:286: rocks-version-common.mk: No such file or directory /opt/rocks/share/devel/etc/python.mk:14: rocks-version-common.mk: No such file or directory version.mk:9: toolkit.version.mk: No such file or directory /opt/rocks/share/devel/etc/Rules.mk:707: Rules-install.mk: No such file or directory /opt/rocks/share/devel/etc/Rules.mk:782: Rules-scripts.mk: No such file or directory /opt/rocks/share/devel/etc/Rules.mk:813: Rules-rcfiles.mk: No such file or directory Makefile:61: Rules.mk: No such file or directory cp /opt/rocks/share/devel/etc/Rules.mk Rules.mk cp /opt/rocks/share/devel/etc/Rules-linux.mk Rules-linux.mk cp /opt/rocks/share/devel/etc/Rules-linux-centos.mk Rules-linux-centos.mk if [ -f ../../cuda.mk ]; then \ /bin/cp ../../cuda.mk toolkit.version.mk; \ fi cp /opt/rocks/share/devel/etc/python.mk python.mk cp /opt/rocks/share/devel/etc/rocks-version-common.mk rocks-version-common.mk cp /opt/rocks/share/devel/etc/rocks-version.mk rocks-version.mk make[1]: Leaving directory/state/partition1/site-roll/rocks/src/cuda/src/cuda-modules' make[1]: Entering directory /state/partition1/site-roll/rocks/src/cuda/src/cuda-modules' make[1]:Rules.mk' is up to date. make[1]: rocks-version.mk' is up to date. make[1]: Nothing to be done forpretar'. make[1]: Leaving directory /state/partition1/site-roll/rocks/src/cuda/src/cuda-modules' if [basename /state/partition1/site-roll/rocks/src/cuda/src/cuda-modules` = usersguide ]; then make predoc; fi; rm -rf cuda-module80-8.0.61 ln -s . cuda-module80-8.0.61 make: execvp: ln: Too many levels of symbolic links make: *** [/state/partition1/site-roll/rocks/src/cuda/src/cuda-modules/../..//SOURCES/cuda-module80-8.0.61.tar] Error 127

dkchalmers commented 6 years ago

The top level /export is a symbolic link: export -> state/partition1

nadyawilliams commented 6 years ago

your errors are unlikely related to the roll itself. Check your file system layout. You may have different links that go in s circular way form /export to /state/partition1. What is df -h output?

dkchalmers commented 6 years ago

OK - I had three NFS mounted directories in the root directory (one mounted on /apps). I have unmounted these. The build now progresses further, but dies.

build.log

df -h now gives:

/dev/mapper/rocks-root 50G 26G 21G 56% / devtmpfs 3.6G 0 3.6G 0% /dev tmpfs 3.6G 0 3.6G 0% /dev/shm tmpfs 3.6G 26M 3.6G 1% /run tmpfs 3.6G 0 3.6G 0% /sys/fs/cgroup tmpfs 1.8G 16M 1.8G 1% /var/lib/ganglia/rrds /dev/sda1 976M 712M 197M 79% /boot tmpfs 738M 12K 738M 1% /run/user/42 tmpfs 738M 0 738M 0% /run/user/0

nadyawilliams commented 6 years ago

in cuda/src/nvidia-toolkit/version.mk set DISTRO as DISTRO = 8.0.61_375.26

and rerun make