fekriomar / pyrit

Automatically exported from code.google.com/p/pyrit
0 stars 0 forks source link

cannot find -lcuda #374

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. python setup.py build
2.
3.

What is the expected output? What do you see instead?
running build
running build_ext
Skipping rebuild of Nvidia CUDA kernel ...
Building modules...
building 'cpyrit._cpyrit_cuda' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall 
-Wstrict-prototypes -fPIC -I/usr/local/cuda/include -I/usr/include/python2.7 -c 
_cpyrit_cuda.c -o build/temp.linux-x86_64-2.7/_cpyrit_cuda.o -Wall 
-fno-strict-aliasing -DVERSION="0.4.0"
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions 
build/temp.linux-x86_64-2.7/_cpyrit_cuda.o -lcrypto -lcuda -lz -o 
build/lib.linux-x86_64-2.7/cpyrit/_cpyrit_cuda.so
/usr/bin/ld: cannot find -lcuda
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1

What version of the product are you using? On what operating system?
Ubuntu 11.04
cudatoolkit_4.0.17_linux_64_ubuntu10.10
nvidia driver 290.10

Please provide any additional information below.

Original issue reported on code.google.com by imis...@gmail.com on 8 Dec 2011 at 12:28

GoogleCodeExporter commented 9 years ago
I habe the same problem with cudatoolkit_4.1.21_linux_32_ubuntu11.04

Original comment by jernej.erpe@gmail.com on 15 Jan 2012 at 2:35

GoogleCodeExporter commented 9 years ago
sudo ln -s /usr/lib/nvidia-current/libcuda.so /usr/lib/libcuda.so
Fixed it for me ;-)

Original comment by miropeace on 3 Feb 2012 at 6:05

GoogleCodeExporter commented 9 years ago
export PATH=/usr/local/cuda/bin:$PATH
export LPATH=/usr/lib/nvidia-current:$LPATH
export LIBRARY_PATH=/usr/lib/nvidia-current:$LIBRARY_PATH
export 
LD_LIBRARY_PATH=/usr/lib/nvidia-current:/usr/local/cuda/lib64:/usr/local/cuda/li
b:$LD_LIBRARY_PATH

Fixed problem for me.

Original comment by MMark...@gmail.com on 28 Feb 2012 at 5:21

GoogleCodeExporter commented 9 years ago
I'm having the same issue as OP, only with slightly more updated gfx drivers 
and distro (295 series on ubuntu 11.10)

Tried mirope and MMark's suggestions, this is the output afterward:

paul@WorkLaptopV2:~/Downloads/cpyrit-cuda-0.4.0$ sudo python setup.py build
running build
running build_ext
Skipping rebuild of Nvidia CUDA kernel ...
Building modules...
building 'cpyrit._cpyrit_cuda' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall 
-Wstrict-prototypes -fPIC -I/usr/local/cuda/include -I/usr/include/python2.7 -c 
_cpyrit_cuda.c -o build/temp.linux-x86_64-2.7/_cpyrit_cuda.o -Wall 
-fno-strict-aliasing -DVERSION="0.4.0"
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions 
build/temp.linux-x86_64-2.7/_cpyrit_cuda.o -lcrypto -lcuda -lz -o 
build/lib.linux-x86_64-2.7/cpyrit/_cpyrit_cuda.so
/usr/bin/ld: cannot find -lcuda
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
paul@WorkLaptopV2:~/Downloads/cpyrit-cuda-0.4.0$ 

Original comment by paulduan...@gmail.com on 17 Mar 2012 at 8:36