New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
python setup.py bdist_wheel failed #241
Comments
Do you have the possibility to try and run |
Probably not, our lab only have TITAN V. |
Besides Titan V with its Volta architecture,Any other problems? |
If you named your conda environment cuda92, you have to run CUDA_ROOT=/home/gye/anaconda3/envs/cuda92 python setup.py bdist_wheel Which command did you run? |
Yes,I run the first command.But it doesn't work. |
Sorry, I am out of ideas. |
It's OK,I will try other ways like change cuda version.Thanks a lot. |
Sorry to bother again,I check the file CMakeError.log,found the error g++: error: unrecognized command line option ‘-std=c++14’,The full content is as follows,Could it be related to this?@MartinHahner The output was: --error 0x1 --Determining if the CUDA compiler works failed with the following output: Run Build Command:"/usr/bin/make" "cmTC_f8316/fast" |
This does not reflect the path from above: On a more general note, it is hard to make sense out of your last post. Perhaps it would be helpful to have more context. Maybe you can try to make a more structured post, such as this one for example. It seems very related to the issue mentioned there, so please make sure you followed all the steps mentioned there correctly. Maybe you also have to adjust other things (as pointed out further down in that thread). |
It is caused by the version of g++.When I change the g++ version from 4.8.5 to 7,it was solved.So the error that "g++: error: unrecognized command line option ‘-std=c++14’" means the version of g++ is too low,because -std=c++14 requires g++5.2 or more. |
Putting my solution for reference.
I got this error because I had previously compiled a different version of spconv and was reusing the build folder. Removing the build folder and building the wheel again from scratch solved the issue. |
First of all, thank you very much for your code.I have a problem when running the command
python setup.py bdist_wheel
.Although I followed the instructions in #78 and #70 by @MartinHahner, #21, #167 , it did not work.Then I rummaged through almost all the problems, but I didn’t solve it.I would appreciate it if you can help me.My environment is as follows:OS version:Ubuntu 18.04
GPU name:TITAN V
CUDA version:9.2
Pytorch:1.1
Python:3.6
gcc version:7.5.0
running bdist_wheel
running build
running build_py
running build_ext
/home/gye/PointCloud/objectDetection/spconv_8da6f96/build/lib.linux-x86_64-3.6
Release
-- The CUDA compiler identification is unknown
-- Check for working CUDA compiler: /home/gye/anaconda3/envs/cuda92/bin/nvcc
-- Check for working CUDA compiler: /home/gye/anaconda3/envs/cuda92/bin/nvcc -- broken
CMake Error at /home/gye/.local/lib/python3.6/site-packages/cmake/data/share/cmake-3.13/Modules/CMakeTestCUDACompiler.cmake:46 (message):
The CUDA compiler
is not able to compile a simple test program.
It fails with the following output:
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:2 (project)
-- Configuring incomplete, errors occurred!
See also "/home/gye/PointCloud/objectDetection/spconv_8da6f96/build/temp.linux-x86_64-3.6/CMakeFiles/CMakeOutput.log".
See also "/home/gye/PointCloud/objectDetection/spconv_8da6f96/build/temp.linux-x86_64-3.6/CMakeFiles/CMakeError.log".
Traceback (most recent call last):
File "setup.py", line 103, in
zip_safe=False,
File "/home/gye/anaconda3/envs/spconv/lib/python3.6/site-packages/setuptools/init.py", line 163, in setup
return distutils.core.setup(**attrs)
File "/home/gye/anaconda3/envs/spconv/lib/python3.6/distutils/core.py", line 148, in setup
dist.run_commands()
File "/home/gye/anaconda3/envs/spconv/lib/python3.6/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/home/gye/anaconda3/envs/spconv/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/home/gye/anaconda3/envs/spconv/lib/python3.6/site-packages/wheel/bdist_wheel.py", line 290, in run
self.run_command('build')
File "/home/gye/anaconda3/envs/spconv/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/gye/anaconda3/envs/spconv/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/home/gye/anaconda3/envs/spconv/lib/python3.6/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/home/gye/anaconda3/envs/spconv/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/gye/anaconda3/envs/spconv/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "setup.py", line 39, in run
self.build_extension(ext)
File "setup.py", line 71, in build_extension
subprocess.check_call(['cmake', ext.sourcedir] + cmake_args, cwd=self.build_temp, env=env)
File "/home/gye/anaconda3/envs/spconv/lib/python3.6/subprocess.py", line 311, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '/home/gye/PointCloud/objectDetection/spconv_8da6f96', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/home/gye/PointCloud/objectDetection/spconv_8da6f96/build/lib.linux-x86_64-3.6/spconv', '-DCMAKE_PREFIX_PATH=/home/gye/anaconda3/envs/spconv/lib/python3.6/site-packages/torch', '-DPYBIND11_PYTHON_VERSION=3.6', '-DSPCONV_BuildTests=OFF', '-DCMAKE_CUDA_FLAGS="--expt-relaxed-constexpr"', '-DCMAKE_BUILD_TYPE=Release', '-DCMAKE_CUDA_COMPILER:FILEPATH=/home/gye/anaconda3/envs/cuda92/bin/nvcc']' returned non-zero exit status 1.
The text was updated successfully, but these errors were encountered: