Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dkchalmers opened this issue Nov 21, 2018 · 8 comments
Open

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

dkchalmers opened this issue Nov 21, 2018 · 8 comments

Comments

@dkchalmers
Copy link

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
Copy link
Contributor

Did you run bootstrap.sh before make?

@dkchalmers
Copy link
Author

dkchalmers commented Nov 21, 2018 via email

@nadyawilliams
Copy link
Contributor

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
Copy link
Author

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 for pretar'.
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
Copy link
Author

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

@nadyawilliams
Copy link
Contributor

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
Copy link
Author

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
Copy link
Contributor

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

and rerun make

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants