Anttwo / SuGaR

[CVPR 2024] Official PyTorch implementation of SuGaR: Surface-Aligned Gaussian Splatting for Efficient 3D Mesh Reconstruction and High-Quality Mesh Rendering
https://anttwo.github.io/sugar/
Other
2.36k stars 182 forks source link

Error in Installation #70

Closed vararth closed 11 months ago

vararth commented 11 months ago

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?

(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
    ╰─> [79 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
        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 485, in build_extensions
            compiler_name, compiler_version = self._check_abi()
          File "/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 869, in _check_abi
            _, version = get_compiler_abi_compatibility_and_version(compiler)
          File "/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 337, in get_compiler_abi_compatibility_and_version
            if not check_compiler_ok_for_platform(compiler):
          File "/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 291, in check_compiler_ok_for_platform
            which = subprocess.check_output(['which', compiler], stderr=subprocess.STDOUT)
          File "/root/anaconda3/envs/sugar/lib/python3.9/subprocess.py", line 424, in check_output
            return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
          File "/root/anaconda3/envs/sugar/lib/python3.9/subprocess.py", line 528, in run
            raise CalledProcessError(retcode, process.args,
        subprocess.CalledProcessError: Command '['which', '/usr/bin/g++110:/usr/bin/g++110:']' returned non-zero exit status 1.
        [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
╰─> [79 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
    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 485, in build_extensions
        compiler_name, compiler_version = self._check_abi()
      File "/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 869, in _check_abi
        _, version = get_compiler_abi_compatibility_and_version(compiler)
      File "/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 337, in get_compiler_abi_compatibility_and_version
        if not check_compiler_ok_for_platform(compiler):
      File "/root/anaconda3/envs/sugar/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 291, in check_compiler_ok_for_platform
        which = subprocess.check_output(['which', compiler], stderr=subprocess.STDOUT)
      File "/root/anaconda3/envs/sugar/lib/python3.9/subprocess.py", line 424, in check_output
        return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
      File "/root/anaconda3/envs/sugar/lib/python3.9/subprocess.py", line 528, in run
        raise CalledProcessError(retcode, process.args,
    subprocess.CalledProcessError: Command '['which', '/usr/bin/g++110:/usr/bin/g++110:']' returned non-zero exit status 1.
    [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.

Please let me know if I need to share any additional details...

cubantonystark commented 11 months ago

sudo apt install g++ -y

or

sudo apt install build-essential -y

vararth commented 11 months ago

@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# 
Dargonxzy commented 11 months ago

conda install -c conda-forge vs20XX_win-64 maybe can help you

vararth commented 11 months ago

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

vararth commented 11 months ago

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