Closed vararth closed 11 months ago
sudo apt install g++ -y
or
sudo apt install build-essential -y
@cubantonystark already done - not working:
(sugar) root@a100-instance-ajna:~/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization# sudo apt install g++ -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
g++ is already the newest version (4:9.3.0-1ubuntu2).
g++ set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
W: Target Packages (Packages) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list.d/cuda-ubuntu2004-x86_64.list:1
W: Target Translations (en) is configured multiple times in /etc/apt/sources.list:58 and /etc/apt/sources.list.d/cuda-ubuntu2004-x86_64.list:1
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:60 and /etc/apt/sources.list.d/kitware.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:60 and /etc/apt/sources.list.d/kitware.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:60 and /etc/apt/sources.list.d/kitware.list:1
W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list:60 and /etc/apt/sources.list.d/kitware.list:1
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list:60 and /etc/apt/sources.list.d/kitware.list:1
(sugar) root@a100-instance-ajna:~/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization# sudo apt install build-essential -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version (12.8ubuntu1.1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
(sugar) root@a100-instance-ajna:~/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization# pip install -e .
Obtaining file:///root/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization
Preparing metadata (setup.py) ... done
Installing collected packages: diff-gaussian-rasterization
Running setup.py develop for diff-gaussian-rasterization
error: subprocess-exited-with-error
× python setup.py develop did not run successfully.
│ exit code: 1
╰─> [119 lines of output]
running develop
/root/anaconda3/envs/sugar/lib/python3.9/site-packages/setuptools/command/develop.py:40: EasyInstallDeprecationWarning: easy_install command is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` and ``easy_install``.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://github.com/pypa/setuptools/issues/917 for details.
********************************************************************************
!!
easy_install.initialize_options(self)
/root/anaconda3/envs/sugar/lib/python3.9/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` directly.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
********************************************************************************
!!
self.initialize_options()
running egg_info
writing diff_gaussian_rasterization.egg-info/PKG-INFO
writing dependency_links to diff_gaussian_rasterization.egg-info/dependency_links.txt
writing top-level names to diff_gaussian_rasterization.egg-info/top_level.txt
reading manifest file 'diff_gaussian_rasterization.egg-info/SOURCES.txt'
adding license file 'LICENSE.md'
writing manifest file 'diff_gaussian_rasterization.egg-info/SOURCES.txt'
running build_ext
/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/utils/cpp_extension.py:398: UserWarning: There are no gcc version bounds defined for CUDA version 11.8
warnings.warn(f'There are no {compiler_name} version bounds defined for CUDA version {cuda_str_version}')
building 'diff_gaussian_rasterization._C' extension
Emitting ninja build file /root/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-39/build.ninja...
Compiling objects...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
[1/4] /usr/local/cuda-11.8/bin/nvcc -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include/TH -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda-11.8/include -I/root/anaconda3/envs/sugar/include/python3.9 -c -c /root/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization/cuda_rasterizer/forward.cu -o /root/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-39/cuda_rasterizer/forward.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -I/root/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization/third_party/glm/ -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_80,code=compute_80 -gencode=arch=compute_80,code=sm_80 -ccbin /usr/bin/gcc-10:/usr/bin/gcc-10: -std=c++17
FAILED: /root/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-39/cuda_rasterizer/forward.o
/usr/local/cuda-11.8/bin/nvcc -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include/TH -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda-11.8/include -I/root/anaconda3/envs/sugar/include/python3.9 -c -c /root/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization/cuda_rasterizer/forward.cu -o /root/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-39/cuda_rasterizer/forward.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -I/root/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization/third_party/glm/ -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_80,code=compute_80 -gencode=arch=compute_80,code=sm_80 -ccbin /usr/bin/gcc-10:/usr/bin/gcc-10: -std=c++17
/usr/bin/gcc-10:/usr/bin/gcc-10:: No such file or directory
nvcc fatal : Failed to preprocess host compiler properties.
[2/4] /usr/local/cuda-11.8/bin/nvcc -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include/TH -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda-11.8/include -I/root/anaconda3/envs/sugar/include/python3.9 -c -c /root/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization/cuda_rasterizer/backward.cu -o /root/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-39/cuda_rasterizer/backward.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -I/root/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization/third_party/glm/ -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_80,code=compute_80 -gencode=arch=compute_80,code=sm_80 -ccbin /usr/bin/gcc-10:/usr/bin/gcc-10: -std=c++17
FAILED: /root/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-39/cuda_rasterizer/backward.o
/usr/local/cuda-11.8/bin/nvcc -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include/TH -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda-11.8/include -I/root/anaconda3/envs/sugar/include/python3.9 -c -c /root/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization/cuda_rasterizer/backward.cu -o /root/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-39/cuda_rasterizer/backward.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -I/root/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization/third_party/glm/ -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_80,code=compute_80 -gencode=arch=compute_80,code=sm_80 -ccbin /usr/bin/gcc-10:/usr/bin/gcc-10: -std=c++17
/usr/bin/gcc-10:/usr/bin/gcc-10:: No such file or directory
nvcc fatal : Failed to preprocess host compiler properties.
[3/4] /usr/local/cuda-11.8/bin/nvcc -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include/TH -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda-11.8/include -I/root/anaconda3/envs/sugar/include/python3.9 -c -c /root/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization/rasterize_points.cu -o /root/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-39/rasterize_points.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -I/root/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization/third_party/glm/ -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_80,code=compute_80 -gencode=arch=compute_80,code=sm_80 -ccbin /usr/bin/gcc-10:/usr/bin/gcc-10: -std=c++17
FAILED: /root/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-39/rasterize_points.o
/usr/local/cuda-11.8/bin/nvcc -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include/TH -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda-11.8/include -I/root/anaconda3/envs/sugar/include/python3.9 -c -c /root/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization/rasterize_points.cu -o /root/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-39/rasterize_points.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -I/root/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization/third_party/glm/ -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_80,code=compute_80 -gencode=arch=compute_80,code=sm_80 -ccbin /usr/bin/gcc-10:/usr/bin/gcc-10: -std=c++17
/usr/bin/gcc-10:/usr/bin/gcc-10:: No such file or directory
nvcc fatal : Failed to preprocess host compiler properties.
[4/4] /usr/local/cuda-11.8/bin/nvcc -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include/TH -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda-11.8/include -I/root/anaconda3/envs/sugar/include/python3.9 -c -c /root/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization/cuda_rasterizer/rasterizer_impl.cu -o /root/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-39/cuda_rasterizer/rasterizer_impl.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -I/root/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization/third_party/glm/ -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_80,code=compute_80 -gencode=arch=compute_80,code=sm_80 -ccbin /usr/bin/gcc-10:/usr/bin/gcc-10: -std=c++17
FAILED: /root/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-39/cuda_rasterizer/rasterizer_impl.o
/usr/local/cuda-11.8/bin/nvcc -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include/TH -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda-11.8/include -I/root/anaconda3/envs/sugar/include/python3.9 -c -c /root/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization/cuda_rasterizer/rasterizer_impl.cu -o /root/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-39/cuda_rasterizer/rasterizer_impl.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -I/root/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization/third_party/glm/ -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_80,code=compute_80 -gencode=arch=compute_80,code=sm_80 -ccbin /usr/bin/gcc-10:/usr/bin/gcc-10: -std=c++17
/usr/bin/gcc-10:/usr/bin/gcc-10:: No such file or directory
nvcc fatal : Failed to preprocess host compiler properties.
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 1893, in _run_ninja_build
subprocess.run(
File "/root/anaconda3/envs/sugar/lib/python3.9/subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/root/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization/setup.py", line 17, in <module>
setup(
File "/root/anaconda3/envs/sugar/lib/python3.9/site-packages/setuptools/__init__.py", line 103, in setup
return distutils.core.setup(**attrs)
File "/root/anaconda3/envs/sugar/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
File "/root/anaconda3/envs/sugar/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/root/anaconda3/envs/sugar/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/root/anaconda3/envs/sugar/lib/python3.9/site-packages/setuptools/dist.py", line 989, in run_command
super().run_command(command)
File "/root/anaconda3/envs/sugar/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/root/anaconda3/envs/sugar/lib/python3.9/site-packages/setuptools/command/develop.py", line 34, in run
self.install_for_development()
File "/root/anaconda3/envs/sugar/lib/python3.9/site-packages/setuptools/command/develop.py", line 109, in install_for_development
self.run_command('build_ext')
File "/root/anaconda3/envs/sugar/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/root/anaconda3/envs/sugar/lib/python3.9/site-packages/setuptools/dist.py", line 989, in run_command
super().run_command(command)
File "/root/anaconda3/envs/sugar/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/root/anaconda3/envs/sugar/lib/python3.9/site-packages/setuptools/command/build_ext.py", line 88, in run
_build_ext.run(self)
File "/root/anaconda3/envs/sugar/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 345, in run
self.build_extensions()
File "/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 843, in build_extensions
build_ext.build_extensions(self)
File "/root/anaconda3/envs/sugar/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 467, in build_extensions
self._build_extensions_serial()
File "/root/anaconda3/envs/sugar/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 493, in _build_extensions_serial
self.build_extension(ext)
File "/root/anaconda3/envs/sugar/lib/python3.9/site-packages/setuptools/command/build_ext.py", line 249, in build_extension
_build_ext.build_extension(self, ext)
File "/root/anaconda3/envs/sugar/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 548, in build_extension
objects = self.compiler.compile(
File "/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 658, in unix_wrap_ninja_compile
_write_ninja_file_and_compile_objects(
File "/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 1574, in _write_ninja_file_and_compile_objects
_run_ninja_build(
File "/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 1909, 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.
error: subprocess-exited-with-error
× python setup.py develop did not run successfully.
│ exit code: 1
╰─> [119 lines of output]
running develop
/root/anaconda3/envs/sugar/lib/python3.9/site-packages/setuptools/command/develop.py:40: EasyInstallDeprecationWarning: easy_install command is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` and ``easy_install``.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://github.com/pypa/setuptools/issues/917 for details.
********************************************************************************
!!
easy_install.initialize_options(self)
/root/anaconda3/envs/sugar/lib/python3.9/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` directly.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
********************************************************************************
!!
self.initialize_options()
running egg_info
writing diff_gaussian_rasterization.egg-info/PKG-INFO
writing dependency_links to diff_gaussian_rasterization.egg-info/dependency_links.txt
writing top-level names to diff_gaussian_rasterization.egg-info/top_level.txt
reading manifest file 'diff_gaussian_rasterization.egg-info/SOURCES.txt'
adding license file 'LICENSE.md'
writing manifest file 'diff_gaussian_rasterization.egg-info/SOURCES.txt'
running build_ext
/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/utils/cpp_extension.py:398: UserWarning: There are no gcc version bounds defined for CUDA version 11.8
warnings.warn(f'There are no {compiler_name} version bounds defined for CUDA version {cuda_str_version}')
building 'diff_gaussian_rasterization._C' extension
Emitting ninja build file /root/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-39/build.ninja...
Compiling objects...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
[1/4] /usr/local/cuda-11.8/bin/nvcc -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include/TH -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda-11.8/include -I/root/anaconda3/envs/sugar/include/python3.9 -c -c /root/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization/cuda_rasterizer/forward.cu -o /root/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-39/cuda_rasterizer/forward.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -I/root/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization/third_party/glm/ -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_80,code=compute_80 -gencode=arch=compute_80,code=sm_80 -ccbin /usr/bin/gcc-10:/usr/bin/gcc-10: -std=c++17
FAILED: /root/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-39/cuda_rasterizer/forward.o
/usr/local/cuda-11.8/bin/nvcc -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include/TH -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda-11.8/include -I/root/anaconda3/envs/sugar/include/python3.9 -c -c /root/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization/cuda_rasterizer/forward.cu -o /root/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-39/cuda_rasterizer/forward.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -I/root/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization/third_party/glm/ -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_80,code=compute_80 -gencode=arch=compute_80,code=sm_80 -ccbin /usr/bin/gcc-10:/usr/bin/gcc-10: -std=c++17
/usr/bin/gcc-10:/usr/bin/gcc-10:: No such file or directory
nvcc fatal : Failed to preprocess host compiler properties.
[2/4] /usr/local/cuda-11.8/bin/nvcc -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include/TH -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda-11.8/include -I/root/anaconda3/envs/sugar/include/python3.9 -c -c /root/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization/cuda_rasterizer/backward.cu -o /root/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-39/cuda_rasterizer/backward.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -I/root/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization/third_party/glm/ -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_80,code=compute_80 -gencode=arch=compute_80,code=sm_80 -ccbin /usr/bin/gcc-10:/usr/bin/gcc-10: -std=c++17
FAILED: /root/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-39/cuda_rasterizer/backward.o
/usr/local/cuda-11.8/bin/nvcc -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include/TH -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda-11.8/include -I/root/anaconda3/envs/sugar/include/python3.9 -c -c /root/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization/cuda_rasterizer/backward.cu -o /root/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-39/cuda_rasterizer/backward.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -I/root/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization/third_party/glm/ -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_80,code=compute_80 -gencode=arch=compute_80,code=sm_80 -ccbin /usr/bin/gcc-10:/usr/bin/gcc-10: -std=c++17
/usr/bin/gcc-10:/usr/bin/gcc-10:: No such file or directory
nvcc fatal : Failed to preprocess host compiler properties.
[3/4] /usr/local/cuda-11.8/bin/nvcc -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include/TH -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda-11.8/include -I/root/anaconda3/envs/sugar/include/python3.9 -c -c /root/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization/rasterize_points.cu -o /root/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-39/rasterize_points.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -I/root/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization/third_party/glm/ -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_80,code=compute_80 -gencode=arch=compute_80,code=sm_80 -ccbin /usr/bin/gcc-10:/usr/bin/gcc-10: -std=c++17
FAILED: /root/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-39/rasterize_points.o
/usr/local/cuda-11.8/bin/nvcc -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include/TH -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda-11.8/include -I/root/anaconda3/envs/sugar/include/python3.9 -c -c /root/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization/rasterize_points.cu -o /root/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-39/rasterize_points.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -I/root/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization/third_party/glm/ -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_80,code=compute_80 -gencode=arch=compute_80,code=sm_80 -ccbin /usr/bin/gcc-10:/usr/bin/gcc-10: -std=c++17
/usr/bin/gcc-10:/usr/bin/gcc-10:: No such file or directory
nvcc fatal : Failed to preprocess host compiler properties.
[4/4] /usr/local/cuda-11.8/bin/nvcc -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include/TH -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda-11.8/include -I/root/anaconda3/envs/sugar/include/python3.9 -c -c /root/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization/cuda_rasterizer/rasterizer_impl.cu -o /root/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-39/cuda_rasterizer/rasterizer_impl.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -I/root/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization/third_party/glm/ -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_80,code=compute_80 -gencode=arch=compute_80,code=sm_80 -ccbin /usr/bin/gcc-10:/usr/bin/gcc-10: -std=c++17
FAILED: /root/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-39/cuda_rasterizer/rasterizer_impl.o
/usr/local/cuda-11.8/bin/nvcc -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include/torch/csrc/api/include -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include/TH -I/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/include/THC -I/usr/local/cuda-11.8/include -I/root/anaconda3/envs/sugar/include/python3.9 -c -c /root/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization/cuda_rasterizer/rasterizer_impl.cu -o /root/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-39/cuda_rasterizer/rasterizer_impl.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options ''"'"'-fPIC'"'"'' -I/root/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization/third_party/glm/ -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_80,code=compute_80 -gencode=arch=compute_80,code=sm_80 -ccbin /usr/bin/gcc-10:/usr/bin/gcc-10: -std=c++17
/usr/bin/gcc-10:/usr/bin/gcc-10:: No such file or directory
nvcc fatal : Failed to preprocess host compiler properties.
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 1893, in _run_ninja_build
subprocess.run(
File "/root/anaconda3/envs/sugar/lib/python3.9/subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/root/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization/setup.py", line 17, in <module>
setup(
File "/root/anaconda3/envs/sugar/lib/python3.9/site-packages/setuptools/__init__.py", line 103, in setup
return distutils.core.setup(**attrs)
File "/root/anaconda3/envs/sugar/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
File "/root/anaconda3/envs/sugar/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/root/anaconda3/envs/sugar/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/root/anaconda3/envs/sugar/lib/python3.9/site-packages/setuptools/dist.py", line 989, in run_command
super().run_command(command)
File "/root/anaconda3/envs/sugar/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/root/anaconda3/envs/sugar/lib/python3.9/site-packages/setuptools/command/develop.py", line 34, in run
self.install_for_development()
File "/root/anaconda3/envs/sugar/lib/python3.9/site-packages/setuptools/command/develop.py", line 109, in install_for_development
self.run_command('build_ext')
File "/root/anaconda3/envs/sugar/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/root/anaconda3/envs/sugar/lib/python3.9/site-packages/setuptools/dist.py", line 989, in run_command
super().run_command(command)
File "/root/anaconda3/envs/sugar/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/root/anaconda3/envs/sugar/lib/python3.9/site-packages/setuptools/command/build_ext.py", line 88, in run
_build_ext.run(self)
File "/root/anaconda3/envs/sugar/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 345, in run
self.build_extensions()
File "/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 843, in build_extensions
build_ext.build_extensions(self)
File "/root/anaconda3/envs/sugar/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 467, in build_extensions
self._build_extensions_serial()
File "/root/anaconda3/envs/sugar/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 493, in _build_extensions_serial
self.build_extension(ext)
File "/root/anaconda3/envs/sugar/lib/python3.9/site-packages/setuptools/command/build_ext.py", line 249, in build_extension
_build_ext.build_extension(self, ext)
File "/root/anaconda3/envs/sugar/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 548, in build_extension
objects = self.compiler.compile(
File "/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 658, in unix_wrap_ninja_compile
_write_ninja_file_and_compile_objects(
File "/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 1574, in _write_ninja_file_and_compile_objects
_run_ninja_build(
File "/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 1909, 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.
(sugar) root@a100-instance-ajna:~/SuGaR/gaussian_splatting/submodules/diff-gaussian-rasterization#
conda install -c conda-forge vs20XX_win-64 maybe can help you
So I was able to resolve it by adding two lines to the terminal:
export CUDA_HOME=/usr/local/cuda-11.8 CXX=g++-11 CC=gcc-11 LD=g++-11 pip install -e .
Both diff-gaussian-rasterization and simple-knn got installed by this
Marking this as closed since I had the issue and found a way to fix it - probably not the best fix, but it worked lol
Hi, I am facing a small issue in setting up SuGaR, below is the error log. Can you please help me in figuring out how to troubleshoot and fix the problem?
Please let me know if I need to share any additional details...