kevbradwick / pyrit

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

Build not working in cpyrit-cuda 0.4.0 and ubuntu 11.10 #392

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.When I try to build cpyrit-cuda-0.4.0 using: "python setup.py build" it don't 
work

What is the expected output? What do you see instead?
It is expected that it install correctly but it shows instead:

svn: '.' is not a working copy
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-i686-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-i686-2.7/_cpyrit_cuda.o -lcrypto -lcuda -lz -o 
build/lib.linux-i686-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?
I'm using version 0.4.0

Please provide any additional information below.

I'm using Ubuntu 11.10

Original issue reported on code.google.com by Unku...@gmail.com on 23 Mar 2012 at 11:59

GoogleCodeExporter commented 9 years ago
check your gcc version.
Pyrit doesn't like 4.5 and 4.6
So try to install gcc-4.4 and g++-4.4.
http://www.dickscheid.net/2011/10/19-cuda-ubuntu-1110/

Original comment by mcposs...@gmail.com on 11 Apr 2012 at 9:30

GoogleCodeExporter commented 9 years ago
I, thanks for your response,

I've already done that, output of gcc --version:

gcc (Ubuntu/Linaro 4.4.6-11ubuntu2) 4.4.6
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE

Original comment by Unku...@gmail.com on 11 Apr 2012 at 9:39

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Sorry I gave you a wrong answer.
I had also trouble installing cpyrit and had many problems.
Try to either create a link for libcuda.so in /usr/lib or add these variables 
to your ~/.bashrc.

sudo ln -s /usr/lib/nvidia-current/libcuda.so /usr/lib/libcuda.so
The first path could be different, if you installed nvidia driver not from the 
repository (with apt-get).
You'll find it with the search.

gedit ~/.bashrc
export PATH="<CUDA_INSTALL_PATH>/:$PATH"
export LD_LIBRARY_PATH="<CUDA_INSTALL_PATH>/lib"
export CUDA_INSTALL_PATH="<CUDA_INSTALL_PATH>/" 

If the first solution not help then try the second.
It can be slightly different from system to system.

Original comment by mcposs...@gmail.com on 12 Apr 2012 at 7:12