gohar94 / pyrit

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

gcc 4.5 not supported by nvcc #329

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi, I wanted to compile Pyrit with Cuda-Support on Ubuntu 11.04. But when I'm 
trying to compile the source as it is shown in the wiki, I get the following 
error:
running build
running build_ext
Compiling CUDA module using nvcc 4.0, V0.2.1221...
Executing '/usr/local/cuda/bin/nvcc -m32 --host-compilation C -Xcompiler 
"-fPIC" --ptx ./_cpyrit_cudakernel.cu'
nvcc warning : option 'host-compilation' has been deprecated and is ignored
gcc: error trying to exec 'cc1plus': execvp: Datei oder Verzeichnis nicht 
gefunden
Traceback (most recent call last):
  File "setup.py", line 175, in <module>
    setup(**setup_args)
  File "/usr/lib/python2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.7/distutils/command/build.py", line 128, in run
    self.run_command(cmd_name)
  File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "setup.py", line 100, in run
    subprocess.check_call(nvcc_cmd, shell=True)
  File "/usr/lib/python2.7/subprocess.py", line 504, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '/usr/local/cuda/bin/nvcc -m32 
--host-compilation C -Xcompiler "-fPIC" --ptx ./_cpyrit_cudakernel.cu' returned 
non-zero exit status 1

How can I fix that?
Thank you

Original issue reported on code.google.com by develope...@googlemail.com on 22 Jun 2011 at 12:16

GoogleCodeExporter commented 9 years ago
The error message is
"gcc: error trying to exec 'cc1plus': execvp: Datei oder Verzeichnis nicht 
gefunden"

Google "execvp ubuntu", first hit that comes up tells you to install "g++" 

Original comment by lukas.l...@gmail.com on 22 Jun 2011 at 12:19