Closed Wahaha-code closed 10 months ago
what's the output if you run nvcc -V
in the terminal inside docker?
(py38) root@116-172-93-173:/home/gww/project/BundleSDF-master# nvcc -V nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2021 NVIDIA Corporation Built on Mon_May__3_19:15:13_PDT_2021 Cuda compilation tools, release 11.3, V11.3.109 Build cuda_11.3.r11.3/compiler.29920130_0
The cuda of my server is 12
same error
gcc: fatal error: cannot execute 'cc1plus': execvp: No such file or directory compilation terminated.
EDIT: find /usr -name "cc1plus"
gives the way of the cc1plus which you have and
ln -s /usr/lib/gcc/x86_64-linux-gnu/9/cc1plus /opt/conda/envs/py38/bin
links it. It solves this error. First path is output of find command and second path is your path which is included in environment variables.
I have solved it after putting the project in docker and then running it.
I got the exact same issue. I've also installed the nvidia-cuda toolkit within the docker. But I still receive the same error message. Can you help me fix it please? I've been encountering this issue for days now.
243.6 ninja: build stopped: subcommand failed.
243.9 Traceback (most recent call last):
243.9 File "/opt/conda/envs/py38/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1740, in _run_ninja_build
243.9 subprocess.run(
243.9 File "/opt/conda/envs/py38/lib/python3.8/subprocess.py", line 516, in run
243.9 raise CalledProcessError(retcode, process.args,
243.9 subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
243.9
243.9 The above exception was the direct cause of the following exception:
243.9
243.9 Traceback (most recent call last):
243.9 File "setup.py", line 279, in <module>
243.9 setup(
243.9 File "/opt/conda/envs/py38/lib/python3.8/site-packages/setuptools/__init__.py", line 104, in setup
243.9 return distutils.core.setup(**attrs)
243.9 File "/opt/conda/envs/py38/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 184, in setup
243.9 return run_commands(dist)
243.9 File "/opt/conda/envs/py38/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 200, in run_commands
243.9 dist.run_commands()
243.9 File "/opt/conda/envs/py38/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
243.9 self.run_command(cmd)
243.9 File "/opt/conda/envs/py38/lib/python3.8/site-packages/setuptools/dist.py", line 967, in run_command
243.9 super().run_command(command)
243.9 File "/opt/conda/envs/py38/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
243.9 cmd_obj.run()
243.9 File "/opt/conda/envs/py38/lib/python3.8/site-packages/setuptools/command/develop.py", line 34, in run
243.9 self.install_for_development()
243.9 File "/opt/conda/envs/py38/lib/python3.8/site-packages/setuptools/command/develop.py", line 111, in install_for_development
243.9 self.run_command('build_ext')
243.9 File "/opt/conda/envs/py38/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
243.9 self.distribution.run_command(command)
243.9 File "/opt/conda/envs/py38/lib/python3.8/site-packages/setuptools/dist.py", line 967, in run_command
243.9 super().run_command(command)
243.9 File "/opt/conda/envs/py38/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
243.9 cmd_obj.run()
243.9 File "/opt/conda/envs/py38/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 91, in run
243.9 _build_ext.run(self)
243.9 File "/kaolin/.eggs/Cython-0.29.20-py3.8-linux-x86_64.egg/Cython/Distutils/old_build_ext.py", line 186, in run
243.9 _build_ext.build_ext.run(self)
243.9 File "/opt/conda/envs/py38/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 359, in run
243.9 self.build_extensions()
243.9 File "/opt/conda/envs/py38/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 741, in build_extensions
243.9 build_ext.build_extensions(self)
243.9 File "/kaolin/.eggs/Cython-0.29.20-py3.8-linux-x86_64.egg/Cython/Distutils/old_build_ext.py", line 195, in build_extensions
243.9 _build_ext.build_ext.build_extensions(self)
243.9 File "/opt/conda/envs/py38/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 479, in build_extensions
243.9 self._build_extensions_serial()
243.9 File "/opt/conda/envs/py38/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 505, in _build_extensions_serial
243.9 self.build_extension(ext)
243.9 File "/opt/conda/envs/py38/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 252, in build_extension
243.9 _build_ext.build_extension(self, ext)
243.9 File "/opt/conda/envs/py38/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 560, in build_extension
243.9 objects = self.compiler.compile(
243.9 File "/opt/conda/envs/py38/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 562, in unix_wrap_ninja_compile
243.9 _write_ninja_file_and_compile_objects(
243.9 File "/opt/conda/envs/py38/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1419, in _write_ninja_file_and_compile_objects
243.9 _run_ninja_build(
243.9 File "/opt/conda/envs/py38/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1756, in _run_ninja_build
243.9 raise RuntimeError(message) from e
243.9 RuntimeError: Error compiling objects for extension
------
dockerfile:95
--------------------
94 |
95 | >>> RUN conda activate py38 && cd /kaolin &&\
96 | >>> # sed -i "223i\ extra_compile_args['nvcc'] += ['-gencode=arch=compute_52,code=sm_52', '-gencode=arch=compute_60,code=sm_60', '-gencode=arch=compute_61,code=sm_61', '-gencode=arch=compute_70,code=sm_70', '-gencode=arch=compute_75,code=sm_75', '-gencode=arch=compute_80,code=sm_80', '-gencode=arch=compute_80,code=compute_80']" setup.py &&\
97 | >>> FORCE_CUDA=1 python setup.py develop
98 |
--------------------
ERROR: failed to solve: process "/bin/bash --login -c conda activate py38 && cd /kaolin && FORCE_CUDA=1 python setup.py develop" did not complete successfully: exit code: 1
@Tharun-tharun same issue,have you fixed it?
bash build.sh occur this error ` _write_ninja_file_and_compile_objects( File "/opt/conda/envs/py38/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1419, in _write_ninja_file_and_compile_objects _run_ninja_build( File "/opt/conda/envs/py38/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1756, in _run_ninja_build raise RuntimeError(message) from e RuntimeError: Error compiling objects for extension [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. -- The CUDA compiler identification is unknown -- The CXX compiler identification is GNU 9.4.0 -- Check for working CUDA compiler: /usr/local/cuda/bin/nvcc -- Check for working CUDA compiler: /usr/local/cuda/bin/nvcc -- broken CMake Error at /usr/share/cmake-3.16/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:11 (project) `