artiya4u / pyrit

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

Cpyrit fails to build Backtrack linux #373

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.I am using a Raedeon e350 netbook. I installed everything according to 
googlecode and i followed the instuctions at this site first  
backtrack-linux.org/wiki/index.php/install_OpenCL
After I cd svn_pyrit and try to install in the OpenCL directory pyrit stops 
working.
So I read that with Radeon you must use callpp
So I uninstalled pyrit then reinstalled. It works but when I go to 
build/install cpyrit_calpp it gives these errors

What is the expected output? What do you see instead?
root@bt:~# cd pyrit_svn/
root@bt:~/pyrit_svn# ls
cpyrit_calpp  cpyrit_cuda  cpyrit_null  cpyrit_opencl  pyrit
root@bt:~/pyrit_svn# cd cpyrit_calpp/
root@bt:~/pyrit_svn/cpyrit_calpp# python setup.py build
running build
running build_ext
Building modules...
building 'cpyrit._cpyrit_calpp' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall 
-Wstrict-prototypes -fPIC -I/opt/AMDAPP/include -I/usr/include/python2.6 -c 
_cpyrit_calpp.cpp -o build/temp.linux-x86_64-2.6/_cpyrit_calpp.o -Wall 
-fno-strict-aliasing -DVERSION="0.4.0-dev (svn r308)"
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for 
Ada/C/ObjC but not for C++
In file included from _cpyrit_calpp.cpp:38:
/usr/local/include/cal/cal.hpp:26:17: error: cal.h: No such file or directory
/usr/local/include/cal/cal.hpp:27:19: error: calcl.h: No such file or directory
/usr/local/include/cal/cal.hpp:28:21: error: cal_ext.h: No such file or 
directory
In file included from _cpyrit_calpp.cpp:38:
/usr/local/include/cal/cal.hpp:134: error: ‘CALdeviceinfo’ was not declared 
in this scope
/usr/local/include/cal/cal.hpp:134: error: template argument 2 is invalid
/usr/local/include/cal/cal.hpp:143: error: ‘CALdeviceattribs’ was not 
declared in this scope
/usr/local/include/cal/cal.hpp:143: error: template argument 2 is invalid
/usr/local/include/cal/cal.hpp:153: error: ‘CALdevicestatus’ was not 
declared in this scope
/usr/local/include/cal/cal.hpp:153: error: template argument 2 is invalid
/usr/local/include/cal/cal.hpp:164: error: ‘CALuint’ does not name a type
/usr/local/include/cal/cal.hpp:171: error: ‘CALresult’ does not name a type
/usr/local/include/cal/cal.hpp:186: error: ‘CALresult’ does not name a type
In file included from _cpyrit_calpp.cpp:38:
/usr/local/include/cal/cal.hpp:273: error: ‘CALuint’ does not name a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALresult’ does not name a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALresult’ does not name a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALtarget’ does not name a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALdeviceinfo’ does not name a 
type
/usr/local/include/cal/cal.hpp:273: error: ‘CALresult’ does not name a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALuint’ does not name a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALdeviceinfo’ does not name a 
type
/usr/local/include/cal/cal.hpp:273: error: ‘CALresult’ does not name a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALuint’ does not name a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALdeviceinfo’ does not name a 
type
/usr/local/include/cal/cal.hpp:273: error: ‘CALresult’ does not name a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALuint’ does not name a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALdeviceinfo’ does not name a 
type
/usr/local/include/cal/cal.hpp:273: error: ‘CALresult’ does not name a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALtarget’ does not name a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALdeviceattribs’ does not name 
a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALresult’ does not name a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALuint’ does not name a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALdeviceattribs’ does not name 
a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALresult’ does not name a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALuint’ does not name a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALdeviceattribs’ does not name 
a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALresult’ does not name a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALuint’ does not name a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALdeviceattribs’ does not name 
a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALresult’ does not name a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALuint’ does not name a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALdeviceattribs’ does not name 
a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALresult’ does not name a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALuint’ does not name a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALdeviceattribs’ does not name 
a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALresult’ does not name a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALuint’ does not name a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALdeviceattribs’ does not name 
a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALresult’ does not name a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALuint’ does not name a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALdeviceattribs’ does not name 
a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALresult’ does not name a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALboolean’ does not name a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALdeviceattribs’ does not name 
a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALresult’ does not name a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALboolean’ does not name a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALdeviceattribs’ does not name 
a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALresult’ does not name a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALboolean’ does not name a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALdeviceattribs’ does not name 
a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALresult’ does not name a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALboolean’ does not name a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALdeviceattribs’ does not name 
a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALresult’ does not name a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALboolean’ does not name a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALdeviceattribs’ does not name 
a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALresult’ does not name a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALboolean’ does not name a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALdeviceattribs’ does not name 
a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALresult’ does not name a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALuint’ does not name a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALdeviceattribs’ does not name 
a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALresult’ does not name a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALuint’ does not name a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALdeviceattribs’ does not name 
a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALresult’ does not name a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALuint’ does not name a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALdeviceattribs’ does not name 
a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALresult’ does not name a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALboolean’ does not name a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALdeviceattribs’ does not name 
a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALresult’ does not name a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALboolean’ does not name a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALdeviceattribs’ does not name 
a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALresult’ does not name a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALuint’ does not name a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALdeviceattribs’ does not name 
a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALresult’ does not name a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALuint’ does not name a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALdeviceattribs’ does not name 
a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALresult’ does not name a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALuint’ does not name a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALdevicestatus’ does not name 
a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALresult’ does not name a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALuint’ does not name a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALdevicestatus’ does not name 
a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALresult’ does not name a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALuint’ does not name a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALdevicestatus’ does not name 
a type
/usr/local/include/cal/cal.hpp:273: error: ‘CALresult’ does not name a type
/usr/local/include/cal/cal.hpp:289: error: ‘CALuint’ does not name a type
/usr/local/include/cal/cal.hpp:289: error: ‘CALfuncInfo’ does not name a 
type
/usr/local/include/cal/cal.hpp:289: error: ‘param_type’ has not been 
declared
/usr/local/include/cal/cal.hpp:289: error: ‘CALfuncInfo’ has not been 
declared
/usr/local/include/cal/cal.hpp: In static member function ‘static void 
cal::detail::param_traits<4, 31>::getInfo(int&, int&)’:
/usr/local/include/cal/cal.hpp:289: error: request for member 
‘maxScratchRegsNeeded’ in ‘info’, which is of non-class type ‘int’
/usr/local/include/cal/cal.hpp: At global scope:

n ‘static void cal::detail::param_traits<4, 34>::getInfo(int&, int&)’:
/usr/local/include/cal/cal.hpp:289: error: request for member 
‘eCsSetupMode’ in ‘info’, which is of non-class type ‘int’
/usr/local/include/cal/cal.hpp: At global scope:
/usr/local/include/cal/cal.hpp:289: error: ‘CALuint’ does not name a type
/usr/local/include/cal/cal.hpp:289: error: ‘CALfuncInfo’ does not name a 
type
/usr/local/include/cal/cal.hpp:289: error: ‘param_type’ has not been 
declared
/usr/local/include/cal/cal.hpp:289: error: ‘CALfuncInfo’ has not been 
declared
/usr/local/include/cal/cal.hpp: In static member function ‘static void 
cal::detail::param_traits<4, 35>::getInfo(int&, int&)’:
/usr/local/include/cal/cal.hpp:289: error: request for member 
‘numThreadPerGroup’ in ‘info’, which is of non-class type ‘int’
/usr/local/include/cal/cal.hpp: At global scope:
/usr/local/include/cal/cal.hpp:289: error: ‘CALuint’ does not name a type
/usr/local/include/cal/cal.hpp: In member function ‘bool 
cal::detail::MemoryData::isAttached(int) const’:
/usr/local/include/cal/cal.hpp:705: error: request for member ‘find’ in 
‘((const cal::detail::MemoryData*)this)->cal::detail::MemoryData::mem_’, 
which is of non-class type ‘const int’
/usr/local/include/cal/cal.hpp:705: error: request for member ‘end’ in 
‘((const cal::detail::MemoryData*)this)->cal::detail::MemoryData::mem_’, 
which is of non-class type ‘const int’
/usr/local/include/cal/cal.hpp: At global scope:
/usr/local/include/cal/cal.hpp:706: error: expected unqualified-id at end of 
input
/usr/local/include/cal/cal.hpp:706: error: expected ‘}’ at end of input
/usr/local/include/cal/cal.hpp:706: error: expected ‘}’ at end of input
error: command 'gcc' failed with exit status 1
root@bt:~/pyrit_svn/cpyrit_calpp# 

What version of the product are you using? On what operating system?
I am using backtrack 5. Here is the gcc version
root@bt:~# gcc -v
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.4.3-4ubuntu5' 
--with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs 
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared 
--enable-multiarch --enable-linker-build-id --with-system-zlib 
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix 
--with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls 
--enable-clocale=gnu --enable-libstdcxx-debug --enable-plugin --enable-objc-gc 
--disable-werror --with-arch-32=i486 --with-tune=generic 
--enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu 
--target=x86_64-linux-gnu
Thread model: posix
gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) 
root@bt:~# 
The version of calpp is the one from calpp.svn.sourceforge.net/svnroot/calpp 

Please provide any additional information below.
If anyone can tell me why its throwing errors and maby what package I dont have 
installed for the calpp to work. Also, I did read this page at backtrack but it
seemed not to be the same as the first site I listed.
http://www.backtrack-linux.org/forums/backtrack-5-beginners-section/40917-ati-ap
p-sdk-pyrit-cal-how-guide-bt5-kde-64bit.html

The reason is that the AMD SDK instructions say to remove all prior SDKs, but 
here at this site it says to install the 2.4 sdk then the 2.5 sdk.
I only installed the 2.5. and it does not show a directory for the SDK in my 
home/root directory so I cant edit the CMakelist.txt file to point to the SDK
or the ~/.bashrc file to do the same. Is this the problem? 

Original issue reported on code.google.com by network....@gmail.com on 5 Dec 2011 at 4:36

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I had to edit alot of the buil cpyrit output but here is the file with the full 
output

Original comment by network....@gmail.com on 5 Dec 2011 at 4:43

Attachments: