Hi.
I encounter errors (see below make log) while running “make” for the “nbody” example to check my CUDA 7.5 installation. It was advice that -rpath or -path-link be used to fix the problem but I don’t know how to implement it. Can someone show me how can I resolve the problems faced by make? Appreciate your kind help. :)
Using UBUNTU 15:10 OS updated with Linux 4.3 kernel and NVIDIA 352.41 (proprietary) driver.
/usr/local/cuda-7.5/bin/nvcc -ccbin g++ -m64 -gencode arch=compute_20,code=sm_20 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -gencode arch=compute_37,code=sm_37 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_52,code=sm_52 -gencode arch=compute_52,code=compute_52 -o nbody bodysystemcuda.o nbody.o render_particles.o -L…/…/common/lib/linux/x86_64 -L/usr/lib/“nvidia-352” -lGL -lGLU -lX11 -lglut -lGLEW
/usr/bin/ld: warning: libnvidia-tls.so.352.41, needed by /usr/lib/nvidia-352/libGL.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libnvidia-glcore.so.352.41, needed by /usr/lib/nvidia-352/libGL.so, not found (try using -rpath or -rpath-link)
/usr/lib/nvidia-352/libGL.so: undefined reference to _nv018tls' /usr/lib/nvidia-352/libGL.so: undefined reference to
_nv017glcore’
/usr/lib/nvidia-352/libGL.so: undefined reference to _nv023tls' /usr/lib/nvidia-352/libGL.so: undefined reference to
_nv016glcore’
/usr/lib/nvidia-352/libGL.so: undefined reference to _nv015tls' /usr/lib/nvidia-352/libGL.so: undefined reference to
_nv019tls’
/usr/lib/nvidia-352/libGL.so: undefined reference to _nv000glcore' /usr/lib/nvidia-352/libGL.so: undefined reference to
_nv017tls’
/usr/lib/nvidia-352/libGL.so: undefined reference to _nv013tls' /usr/lib/nvidia-352/libGL.so: undefined reference to
_nv024tls’
/usr/lib/nvidia-352/libGL.so: undefined reference to _nv022tls' /usr/lib/nvidia-352/libGL.so: undefined reference to
_nv007tls’
/usr/lib/nvidia-352/libGL.so: undefined reference to _nv009tls' /usr/lib/nvidia-352/libGL.so: undefined reference to
_nv020tls’
/usr/lib/nvidia-352/libGL.so: undefined reference to _nv014glcore' /usr/lib/nvidia-352/libGL.so: undefined reference to
_nv015glcore’
/usr/lib/nvidia-352/libGL.so: undefined reference to _nv016tls' /usr/lib/nvidia-352/libGL.so: undefined reference to
_nv001glcore’
/usr/lib/nvidia-352/libGL.so: undefined reference to _nv024glcore' /usr/lib/nvidia-352/libGL.so: undefined reference to
_nv008tls’
/usr/lib/nvidia-352/libGL.so: undefined reference to _nv006tls' /usr/lib/nvidia-352/libGL.so: undefined reference to
_nv021tls’
/usr/lib/nvidia-352/libGL.so: undefined reference to _nv023glcore' /usr/lib/nvidia-352/libGL.so: undefined reference to
_nv011tls’
/usr/lib/nvidia-352/libGL.so: undefined reference to _nv020glcore' /usr/lib/nvidia-352/libGL.so: undefined reference to
_nv027glcore’
/usr/lib/nvidia-352/libGL.so: undefined reference to `_nv014tls’
collect2: error: ld returned 1 exit status
Makefile:254: recipe for target ‘nbody’ failed
make: *** [nbody] Error 1