dwaaan / pyrit

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

mac 10.6.6 installing pyrit error: command 'gcc' failed with exit status 1, svn: '.' is not a working copy #287

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Try to install or update

What is the expected output? What do you see instead?

installing pyrit 0.4.0

python setup.py build
svn: '.' is not a working copy
running build
running build_py
running build_ext
building 'cpyrit._cpyrit_cpu' extension
gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk 
-fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd 
-fno-common -dynamic -DNDEBUG -g -O3 
-I/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 -c 
cpyrit/_cpyrit_cpu.c -o build/temp.macosx-10.3-fat-2.4/cpyrit/_cpyrit_cpu.o 
-Wall -fno-strict-aliasing -DVERSION="0.4.0"
cc1: error: unrecognized command line option "-Wno-long-double"
cc1: error: unrecognized command line option "-Wno-long-double"
lipo: can't figure out the architecture type of: 
/var/folders/0A/0AepZASDH2mfh8It4IHEDk+++TI/-Tmp-//ccJAIsLF.out
error: command 'gcc' failed with exit status 1

Intalling cuda

python setup.py build
svn: '.' is not a working copy
running build
running build_ext
Compiling CUDA module using nvcc 3.1, V0.2.1221...
Executing '/usr/local/cuda/bin/nvcc -m32 --host-compilation C -Xcompiler 
"-fPIC" --ptx ./_cpyrit_cudakernel.cu'
Traceback (most recent call last):
  File "setup.py", line 175, in ?
    setup(**setup_args)
  File "/Library/Frameworks/Python.framework/Versions/2.4//lib/python2.4/distutils/core.py", line 149, in setup
    dist.run_commands()
  File "/Library/Frameworks/Python.framework/Versions/2.4//lib/python2.4/distutils/dist.py", line 946, in run_commands
    self.run_command(cmd)
  File "/Library/Frameworks/Python.framework/Versions/2.4//lib/python2.4/distutils/dist.py", line 966, in run_command
    cmd_obj.run()
  File "/Library/Frameworks/Python.framework/Versions/2.4//lib/python2.4/distutils/command/build.py", line 112, in run
    self.run_command(cmd_name)
  File "/Library/Frameworks/Python.framework/Versions/2.4//lib/python2.4/distutils/cmd.py", line 333, in run_command
    self.distribution.run_command(command)
  File "/Library/Frameworks/Python.framework/Versions/2.4//lib/python2.4/distutils/dist.py", line 966, in run_command
    cmd_obj.run()
  File "setup.py", line 100, in run
    subprocess.check_call(nvcc_cmd, shell=True)
AttributeError: 'module' object has no attribute 'check_call

What version of the product are you using? On what operating system?
MAC 10.6.6

Original issue reported on code.google.com by mannydia...@gmail.com on 29 Mar 2011 at 10:38

GoogleCodeExporter commented 8 years ago
Note, moving to Build 299 from SVN appears to have solved this problem.
Prior attempts at building failed with the same issues reported above.

Original comment by absolute...@gmail.com on 30 Mar 2011 at 3:38

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I though it worked but when I run pyrit i get 

Pyrit 0.3.0 (C) 2008-2010 Lukas Lueg http://pyrit.googlecode.com
This code is distributed under the GNU General Public License v3+

and i run the build 299 again..

 python setup.py build
svn: '.' is not a working copy
running build
running build_py
running build_ext
building 'cpyrit._cpyrit_cpu' extension
gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk 
-fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd 
-fno-common -dynamic -DNDEBUG -g -O3 
-I/Library/Frameworks/Python.framework/Versions/2.4/include/python2.4 -c 
cpyrit/_cpyrit_cpu.c -o build/temp.macosx-10.3-fat-2.4/cpyrit/_cpyrit_cpu.o 
-Wall -fno-strict-aliasing -DVERSION="0.4.1-dev"
cc1: error: unrecognized command line option "-Wno-long-double"
cc1: error: unrecognized command line option "-Wno-long-double"
lipo: can't figure out the architecture type of: 
/var/folders/0A/0AepZASDH2mfh8It4IHEDk+++TI/-Tmp-//cco9FWVF.out
error: command 'gcc' failed with exit status 1

Original comment by mannydia...@gmail.com on 31 Mar 2011 at 4:51

GoogleCodeExporter commented 8 years ago
"/Developer/SDKs/MacOSX10.4u.sdk" - really? Update your XCode

Original comment by lukas.l...@gmail.com on 5 Apr 2011 at 7:53

GoogleCodeExporter commented 8 years ago
yes i have mac 10.6.7  and the lates xcode version 4, build 4A304a

Original comment by mannydia...@gmail.com on 17 Apr 2011 at 7:44

GoogleCodeExporter commented 8 years ago
I have Developer/SDKs/MacOSX10.6.sdk not /Developer/SDKs/MacOSX10.4u.sdk

Original comment by mannydia...@gmail.com on 20 Apr 2011 at 6:12

GoogleCodeExporter commented 8 years ago
You need . . .

libdnet-1.12 (or greater) 
pylibpcap-0.6.2 (or greater)
scapy

Install all of those before attempting install of pyrit. 

Original comment by GrantWSa...@gmail.com on 20 Apr 2011 at 2:55

GoogleCodeExporter commented 8 years ago
I just reinstalled libnet, pylibpcap and scapy and i still get 

python setup.py build
svn: '.' is not a working copy
running build
running build_py
running build_ext
running build_scripts

Original comment by mannydia...@gmail.com on 21 Apr 2011 at 5:06

GoogleCodeExporter commented 8 years ago
Sounds like your missing some dependencies. 

Try installing xcode 3 and reinstalling everything else, Pyrit last. 

Post error codes, I doubt libdnet and scapy installed correctly

Original comment by GrantWSa...@gmail.com on 21 Apr 2011 at 8:19

GoogleCodeExporter commented 8 years ago
Your version of XCode, including gcc, and python 2.4 is too old. 

Original comment by lukas.l...@gmail.com on 24 Apr 2011 at 11:42