gaussian-splatting icon indicating copy to clipboard operation
gaussian-splatting copied to clipboard

Failed to build diff-gaussian-rasterization

Open roshanpuru opened this issue 1 year ago • 3 comments

Processing ./gaussian-splatting/submodules/diff-gaussian-rasterization Preparing metadata (setup.py) ... done Building wheels for collected packages: diff-gaussian-rasterization Building wheel for diff-gaussian-rasterization (setup.py) ... error error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [147 lines of output] running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-cpython-38 creating build/lib.linux-x86_64-cpython-38/diff_gaussian_rasterization copying diff_gaussian_rasterization/init.py -> build/lib.linux-x86_64-cpython-38/diff_gaussian_rasterization running build_ext /home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/utils/cpp_extension.py:820: UserWarning: There are no g++ version bounds defined for CUDA version 11.6 warnings.warn(f'There are no {compiler_name} version bounds defined for CUDA version {cuda_str_version}') building 'diff_gaussian_rasterization.C' extension creating /home/puru/Gaussian-Head-Avatar/gaussian-splatting/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-38 creating /home/puru/Gaussian-Head-Avatar/gaussian-splatting/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-38/cuda_rasterizer Emitting ninja build file /home/puru/Gaussian-Head-Avatar/gaussian-splatting/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-38/build.ninja... Compiling objects... Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N) [1/5] /home/puru/miniconda3/envs/gha/bin/nvcc -I/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include -I/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/TH -I/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/THC -I/home/puru/miniconda3/envs/gha/include -I/home/puru/miniconda3/envs/gha/include/python3.8 -c -c /home/puru/Gaussian-Head-Avatar/gaussian-splatting/submodules/diff-gaussian-rasterization/cuda_rasterizer/rasterizer_impl.cu -o /home/puru/Gaussian-Head-Avatar/gaussian-splatting/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-38/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/home/puru/Gaussian-Head-Avatar/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_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14 FAILED: /home/puru/Gaussian-Head-Avatar/gaussian-splatting/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-38/cuda_rasterizer/rasterizer_impl.o /home/puru/miniconda3/envs/gha/bin/nvcc -I/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include -I/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/TH -I/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/THC -I/home/puru/miniconda3/envs/gha/include -I/home/puru/miniconda3/envs/gha/include/python3.8 -c -c /home/puru/Gaussian-Head-Avatar/gaussian-splatting/submodules/diff-gaussian-rasterization/cuda_rasterizer/rasterizer_impl.cu -o /home/puru/Gaussian-Head-Avatar/gaussian-splatting/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-38/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/home/puru/Gaussian-Head-Avatar/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_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14 In file included from /home/puru/miniconda3/envs/gha/include/thrust/system/cuda/detail/execution_policy.h:35, from /home/puru/miniconda3/envs/gha/include/thrust/iterator/detail/device_system_tag.h:23, from /home/puru/miniconda3/envs/gha/include/thrust/iterator/iterator_traits.h:62, from /home/puru/miniconda3/envs/gha/include/thrust/system/cuda/detail/util.h:31, from /home/puru/miniconda3/envs/gha/include/thrust/system/cuda/detail/core/alignment.h:23, from /home/puru/miniconda3/envs/gha/include/thrust/system/cuda/detail/core/triple_chevron_launch.h:30, from /home/puru/miniconda3/envs/gha/include/cub/device/dispatch/dispatch_histogram.cuh:48, from /home/puru/miniconda3/envs/gha/include/cub/device/device_histogram.cuh:41, from /home/puru/miniconda3/envs/gha/include/cub/cub.cuh:52, from /home/puru/Gaussian-Head-Avatar/gaussian-splatting/submodules/diff-gaussian-rasterization/cuda_rasterizer/rasterizer_impl.cu:20: /home/puru/miniconda3/envs/gha/include/thrust/system/cuda/config.h:79:2: error: #error The version of CUB in your include path is not compatible with this release of Thrust. CUB is now included in the CUDA Toolkit, so you no longer need to use your own checkout of CUB. Define THRUST_IGNORE_CUB_VERSION_CHECK to ignore this. 79 | #error The version of CUB in your include path is not compatible with this release of Thrust. CUB is now included in the CUDA Toolkit, so you no longer need to use your own checkout of CUB. Define THRUST_IGNORE_CUB_VERSION_CHECK to ignore this. | ^~~~~ In file included from /home/puru/miniconda3/envs/gha/include/thrust/system/cuda/detail/core/alignment.h:23, from /home/puru/miniconda3/envs/gha/include/thrust/system/cuda/detail/core/triple_chevron_launch.h:30, from /home/puru/miniconda3/envs/gha/include/cub/device/dispatch/dispatch_histogram.cuh:48, from /home/puru/miniconda3/envs/gha/include/cub/device/device_histogram.cuh:41, from /home/puru/miniconda3/envs/gha/include/cub/cub.cuh:52, from /home/puru/Gaussian-Head-Avatar/gaussian-splatting/submodules/diff-gaussian-rasterization/cuda_rasterizer/rasterizer_impl.cu:20: /home/puru/miniconda3/envs/gha/include/thrust/system/cuda/detail/util.h:36:10: fatal error: cub/detail/device_synchronize.cuh: No such file or directory 36 | #include <cub/detail/device_synchronize.cuh> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. [2/5] /home/puru/miniconda3/envs/gha/bin/nvcc -I/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include -I/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/TH -I/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/THC -I/home/puru/miniconda3/envs/gha/include -I/home/puru/miniconda3/envs/gha/include/python3.8 -c -c /home/puru/Gaussian-Head-Avatar/gaussian-splatting/submodules/diff-gaussian-rasterization/rasterize_points.cu -o /home/puru/Gaussian-Head-Avatar/gaussian-splatting/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-38/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/home/puru/Gaussian-Head-Avatar/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_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14 FAILED: /home/puru/Gaussian-Head-Avatar/gaussian-splatting/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-38/rasterize_points.o /home/puru/miniconda3/envs/gha/bin/nvcc -I/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include -I/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/TH -I/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/THC -I/home/puru/miniconda3/envs/gha/include -I/home/puru/miniconda3/envs/gha/include/python3.8 -c -c /home/puru/Gaussian-Head-Avatar/gaussian-splatting/submodules/diff-gaussian-rasterization/rasterize_points.cu -o /home/puru/Gaussian-Head-Avatar/gaussian-splatting/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-38/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/home/puru/Gaussian-Head-Avatar/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_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14 In file included from /home/puru/miniconda3/envs/gha/include/thrust/system/cuda/detail/execution_policy.h:35, from /home/puru/miniconda3/envs/gha/include/thrust/iterator/detail/device_system_tag.h:23, from /home/puru/miniconda3/envs/gha/include/thrust/iterator/iterator_traits.h:62, from /home/puru/miniconda3/envs/gha/include/thrust/detail/type_traits/pointer_traits.h:23, from /home/puru/miniconda3/envs/gha/include/thrust/type_traits/is_contiguous_iterator.h:27, from /home/puru/miniconda3/envs/gha/include/thrust/type_traits/is_trivially_relocatable.h:19, from /home/puru/miniconda3/envs/gha/include/thrust/detail/complex/complex.inl:22, from /home/puru/miniconda3/envs/gha/include/thrust/complex.h:1030, from /home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/c10/util/complex.h:8, from /home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/c10/util/Half.h:15, from /home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/c10/core/ScalarType.h:5, from /home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/c10/core/StorageImpl.h:4, from /home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/c10/core/Storage.h:3, from /home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/c10/core/TensorImpl.h:8, from /home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/c10/core/GeneratorImpl.h:12, from /home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/ATen/core/Generator.h:22, from /home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/ATen/Context.h:4, from /home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/ATen/ATen.h:9, from /home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3, from /home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4, from /home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3, from /home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3, from /home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3, from /home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3, from /home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8, from /home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/torch/extension.h:4, from /home/puru/Gaussian-Head-Avatar/gaussian-splatting/submodules/diff-gaussian-rasterization/rasterize_points.cu:13: /home/puru/miniconda3/envs/gha/include/thrust/system/cuda/config.h:79:2: error: #error The version of CUB in your include path is not compatible with this release of Thrust. CUB is now included in the CUDA Toolkit, so you no longer need to use your own checkout of CUB. Define THRUST_IGNORE_CUB_VERSION_CHECK to ignore this. 79 | #error The version of CUB in your include path is not compatible with this release of Thrust. CUB is now included in the CUDA Toolkit, so you no longer need to use your own checkout of CUB. Define THRUST_IGNORE_CUB_VERSION_CHECK to ignore this. | ^~~~~ [3/5] /home/puru/miniconda3/envs/gha/bin/nvcc -I/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include -I/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/TH -I/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/THC -I/home/puru/miniconda3/envs/gha/include -I/home/puru/miniconda3/envs/gha/include/python3.8 -c -c /home/puru/Gaussian-Head-Avatar/gaussian-splatting/submodules/diff-gaussian-rasterization/cuda_rasterizer/forward.cu -o /home/puru/Gaussian-Head-Avatar/gaussian-splatting/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-38/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/home/puru/Gaussian-Head-Avatar/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_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14 /home/puru/Gaussian-Head-Avatar/gaussian-splatting/submodules/diff-gaussian-rasterization/cuda_rasterizer/auxiliary.h(151): warning #177-D: variable "p_proj" was declared but never referenced

  [4/5] /home/puru/miniconda3/envs/gha/bin/nvcc  -I/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include -I/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/TH -I/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/THC -I/home/puru/miniconda3/envs/gha/include -I/home/puru/miniconda3/envs/gha/include/python3.8 -c -c /home/puru/Gaussian-Head-Avatar/gaussian-splatting/submodules/diff-gaussian-rasterization/cuda_rasterizer/backward.cu -o /home/puru/Gaussian-Head-Avatar/gaussian-splatting/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-38/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/home/puru/Gaussian-Head-Avatar/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_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
  /home/puru/Gaussian-Head-Avatar/gaussian-splatting/submodules/diff-gaussian-rasterization/cuda_rasterizer/auxiliary.h(151): warning #177-D: variable "p_proj" was declared but never referenced
  
  [5/5] c++ -MMD -MF /home/puru/Gaussian-Head-Avatar/gaussian-splatting/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-38/ext.o.d -pthread -B /home/puru/miniconda3/envs/gha/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include -I/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/TH -I/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/THC -I/home/puru/miniconda3/envs/gha/include -I/home/puru/miniconda3/envs/gha/include/python3.8 -c -c /home/puru/Gaussian-Head-Avatar/gaussian-splatting/submodules/diff-gaussian-rasterization/ext.cpp -o /home/puru/Gaussian-Head-Avatar/gaussian-splatting/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-38/ext.o -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 -std=c++14
  cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
  ninja: build stopped: subcommand failed.
  Traceback (most recent call last):
    File "/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1808, in _run_ninja_build
      subprocess.run(
    File "/home/puru/miniconda3/envs/gha/lib/python3.8/subprocess.py", line 516, 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 "/home/puru/Gaussian-Head-Avatar/gaussian-splatting/submodules/diff-gaussian-rasterization/setup.py", line 17, in <module>
      setup(
    File "/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/setuptools/__init__.py", line 103, in setup
      return distutils.core.setup(**attrs)
    File "/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 185, in setup
      return run_commands(dist)
    File "/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
      dist.run_commands()
    File "/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
      self.run_command(cmd)
    File "/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/setuptools/dist.py", line 989, in run_command
      super().run_command(command)
    File "/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
      cmd_obj.run()
    File "/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/wheel/bdist_wheel.py", line 364, in run
      self.run_command("build")
    File "/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
      self.distribution.run_command(command)
    File "/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/setuptools/dist.py", line 989, in run_command
      super().run_command(command)
    File "/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
      cmd_obj.run()
    File "/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/setuptools/_distutils/command/build.py", line 131, in run
      self.run_command(cmd_name)
    File "/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
      self.distribution.run_command(command)
    File "/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/setuptools/dist.py", line 989, in run_command
      super().run_command(command)
    File "/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
      cmd_obj.run()
    File "/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 88, in run
      _build_ext.run(self)
    File "/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 345, in run
      self.build_extensions()
    File "/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 765, in build_extensions
      build_ext.build_extensions(self)
    File "/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 467, in build_extensions
      self._build_extensions_serial()
    File "/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 493, in _build_extensions_serial
      self.build_extension(ext)
    File "/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 249, in build_extension
      _build_ext.build_extension(self, ext)
    File "/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 548, in build_extension
      objects = self.compiler.compile(
    File "/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 586, in unix_wrap_ninja_compile
      _write_ninja_file_and_compile_objects(
    File "/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1487, in _write_ninja_file_and_compile_objects
      _run_ninja_build(
    File "/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1824, 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: Failed building wheel for diff-gaussian-rasterization Running setup.py clean for diff-gaussian-rasterization Failed to build diff-gaussian-rasterization

roshanpuru avatar Jun 23 '24 08:06 roshanpuru

Processing ./gaussian-splatting/submodules/diff-gaussian-rasterization Preparing metadata (setup.py) ... done Building wheels for collected packages: diff-gaussian-rasterization Building wheel for diff-gaussian-rasterization (setup.py) ... error error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [147 lines of output] running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-cpython-38 creating build/lib.linux-x86_64-cpython-38/diff_gaussian_rasterization copying diff_gaussian_rasterization/init.py -> build/lib.linux-x86_64-cpython-38/diff_gaussian_rasterization running build_ext /home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/utils/cpp_extension.py:820: UserWarning: There are no g++ version bounds defined for CUDA version 11.6 warnings.warn(f'There are no {compiler_name} version bounds defined for CUDA version {cuda_str_version}') building 'diff_gaussian_rasterization.C' extension creating /home/puru/Gaussian-Head-Avatar/gaussian-splatting/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-38 creating /home/puru/Gaussian-Head-Avatar/gaussian-splatting/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-38/cuda_rasterizer Emitting ninja build file /home/puru/Gaussian-Head-Avatar/gaussian-splatting/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-38/build.ninja... Compiling objects... Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N) [1/5] /home/puru/miniconda3/envs/gha/bin/nvcc -I/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include -I/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/TH -I/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/THC -I/home/puru/miniconda3/envs/gha/include -I/home/puru/miniconda3/envs/gha/include/python3.8 -c -c /home/puru/Gaussian-Head-Avatar/gaussian-splatting/submodules/diff-gaussian-rasterization/cuda_rasterizer/rasterizer_impl.cu -o /home/puru/Gaussian-Head-Avatar/gaussian-splatting/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-38/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/home/puru/Gaussian-Head-Avatar/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_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14 FAILED: /home/puru/Gaussian-Head-Avatar/gaussian-splatting/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-38/cuda_rasterizer/rasterizer_impl.o /home/puru/miniconda3/envs/gha/bin/nvcc -I/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include -I/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/TH -I/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/THC -I/home/puru/miniconda3/envs/gha/include -I/home/puru/miniconda3/envs/gha/include/python3.8 -c -c /home/puru/Gaussian-Head-Avatar/gaussian-splatting/submodules/diff-gaussian-rasterization/cuda_rasterizer/rasterizer_impl.cu -o /home/puru/Gaussian-Head-Avatar/gaussian-splatting/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-38/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/home/puru/Gaussian-Head-Avatar/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_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14 In file included from /home/puru/miniconda3/envs/gha/include/thrust/system/cuda/detail/execution_policy.h:35, from /home/puru/miniconda3/envs/gha/include/thrust/iterator/detail/device_system_tag.h:23, from /home/puru/miniconda3/envs/gha/include/thrust/iterator/iterator_traits.h:62, from /home/puru/miniconda3/envs/gha/include/thrust/system/cuda/detail/util.h:31, from /home/puru/miniconda3/envs/gha/include/thrust/system/cuda/detail/core/alignment.h:23, from /home/puru/miniconda3/envs/gha/include/thrust/system/cuda/detail/core/triple_chevron_launch.h:30, from /home/puru/miniconda3/envs/gha/include/cub/device/dispatch/dispatch_histogram.cuh:48, from /home/puru/miniconda3/envs/gha/include/cub/device/device_histogram.cuh:41, from /home/puru/miniconda3/envs/gha/include/cub/cub.cuh:52, from /home/puru/Gaussian-Head-Avatar/gaussian-splatting/submodules/diff-gaussian-rasterization/cuda_rasterizer/rasterizer_impl.cu:20: /home/puru/miniconda3/envs/gha/include/thrust/system/cuda/config.h:79:2: error: #error The version of CUB in your include path is not compatible with this release of Thrust. CUB is now included in the CUDA Toolkit, so you no longer need to use your own checkout of CUB. Define THRUST_IGNORE_CUB_VERSION_CHECK to ignore this. 79 | #error The version of CUB in your include path is not compatible with this release of Thrust. CUB is now included in the CUDA Toolkit, so you no longer need to use your own checkout of CUB. Define THRUST_IGNORE_CUB_VERSION_CHECK to ignore this. | ^~~~~ In file included from /home/puru/miniconda3/envs/gha/include/thrust/system/cuda/detail/core/alignment.h:23, from /home/puru/miniconda3/envs/gha/include/thrust/system/cuda/detail/core/triple_chevron_launch.h:30, from /home/puru/miniconda3/envs/gha/include/cub/device/dispatch/dispatch_histogram.cuh:48, from /home/puru/miniconda3/envs/gha/include/cub/device/device_histogram.cuh:41, from /home/puru/miniconda3/envs/gha/include/cub/cub.cuh:52, from /home/puru/Gaussian-Head-Avatar/gaussian-splatting/submodules/diff-gaussian-rasterization/cuda_rasterizer/rasterizer_impl.cu:20: /home/puru/miniconda3/envs/gha/include/thrust/system/cuda/detail/util.h:36:10: fatal error: cub/detail/device_synchronize.cuh: No such file or directory 36 | #include <cub/detail/device_synchronize.cuh> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. [2/5] /home/puru/miniconda3/envs/gha/bin/nvcc -I/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include -I/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/TH -I/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/THC -I/home/puru/miniconda3/envs/gha/include -I/home/puru/miniconda3/envs/gha/include/python3.8 -c -c /home/puru/Gaussian-Head-Avatar/gaussian-splatting/submodules/diff-gaussian-rasterization/rasterize_points.cu -o /home/puru/Gaussian-Head-Avatar/gaussian-splatting/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-38/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/home/puru/Gaussian-Head-Avatar/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_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14 FAILED: /home/puru/Gaussian-Head-Avatar/gaussian-splatting/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-38/rasterize_points.o /home/puru/miniconda3/envs/gha/bin/nvcc -I/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include -I/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/TH -I/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/THC -I/home/puru/miniconda3/envs/gha/include -I/home/puru/miniconda3/envs/gha/include/python3.8 -c -c /home/puru/Gaussian-Head-Avatar/gaussian-splatting/submodules/diff-gaussian-rasterization/rasterize_points.cu -o /home/puru/Gaussian-Head-Avatar/gaussian-splatting/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-38/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/home/puru/Gaussian-Head-Avatar/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_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14 In file included from /home/puru/miniconda3/envs/gha/include/thrust/system/cuda/detail/execution_policy.h:35, from /home/puru/miniconda3/envs/gha/include/thrust/iterator/detail/device_system_tag.h:23, from /home/puru/miniconda3/envs/gha/include/thrust/iterator/iterator_traits.h:62, from /home/puru/miniconda3/envs/gha/include/thrust/detail/type_traits/pointer_traits.h:23, from /home/puru/miniconda3/envs/gha/include/thrust/type_traits/is_contiguous_iterator.h:27, from /home/puru/miniconda3/envs/gha/include/thrust/type_traits/is_trivially_relocatable.h:19, from /home/puru/miniconda3/envs/gha/include/thrust/detail/complex/complex.inl:22, from /home/puru/miniconda3/envs/gha/include/thrust/complex.h:1030, from /home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/c10/util/complex.h:8, from /home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/c10/util/Half.h:15, from /home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/c10/core/ScalarType.h:5, from /home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/c10/core/StorageImpl.h:4, from /home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/c10/core/Storage.h:3, from /home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/c10/core/TensorImpl.h:8, from /home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/c10/core/GeneratorImpl.h:12, from /home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/ATen/core/Generator.h:22, from /home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/ATen/Context.h:4, from /home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/ATen/ATen.h:9, from /home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3, from /home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4, from /home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3, from /home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3, from /home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3, from /home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3, from /home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8, from /home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/torch/extension.h:4, from /home/puru/Gaussian-Head-Avatar/gaussian-splatting/submodules/diff-gaussian-rasterization/rasterize_points.cu:13: /home/puru/miniconda3/envs/gha/include/thrust/system/cuda/config.h:79:2: error: #error The version of CUB in your include path is not compatible with this release of Thrust. CUB is now included in the CUDA Toolkit, so you no longer need to use your own checkout of CUB. Define THRUST_IGNORE_CUB_VERSION_CHECK to ignore this. 79 | #error The version of CUB in your include path is not compatible with this release of Thrust. CUB is now included in the CUDA Toolkit, so you no longer need to use your own checkout of CUB. Define THRUST_IGNORE_CUB_VERSION_CHECK to ignore this. | ^~~~~ [3/5] /home/puru/miniconda3/envs/gha/bin/nvcc -I/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include -I/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/TH -I/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/THC -I/home/puru/miniconda3/envs/gha/include -I/home/puru/miniconda3/envs/gha/include/python3.8 -c -c /home/puru/Gaussian-Head-Avatar/gaussian-splatting/submodules/diff-gaussian-rasterization/cuda_rasterizer/forward.cu -o /home/puru/Gaussian-Head-Avatar/gaussian-splatting/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-38/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/home/puru/Gaussian-Head-Avatar/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_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14 /home/puru/Gaussian-Head-Avatar/gaussian-splatting/submodules/diff-gaussian-rasterization/cuda_rasterizer/auxiliary.h(151): warning #177-D: variable "p_proj" was declared but never referenced

  [4/5] /home/puru/miniconda3/envs/gha/bin/nvcc  -I/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include -I/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/TH -I/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/THC -I/home/puru/miniconda3/envs/gha/include -I/home/puru/miniconda3/envs/gha/include/python3.8 -c -c /home/puru/Gaussian-Head-Avatar/gaussian-splatting/submodules/diff-gaussian-rasterization/cuda_rasterizer/backward.cu -o /home/puru/Gaussian-Head-Avatar/gaussian-splatting/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-38/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/home/puru/Gaussian-Head-Avatar/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_86,code=compute_86 -gencode=arch=compute_86,code=sm_86 -std=c++14
  /home/puru/Gaussian-Head-Avatar/gaussian-splatting/submodules/diff-gaussian-rasterization/cuda_rasterizer/auxiliary.h(151): warning #177-D: variable "p_proj" was declared but never referenced
  
  [5/5] c++ -MMD -MF /home/puru/Gaussian-Head-Avatar/gaussian-splatting/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-38/ext.o.d -pthread -B /home/puru/miniconda3/envs/gha/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include -I/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/TH -I/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/include/THC -I/home/puru/miniconda3/envs/gha/include -I/home/puru/miniconda3/envs/gha/include/python3.8 -c -c /home/puru/Gaussian-Head-Avatar/gaussian-splatting/submodules/diff-gaussian-rasterization/ext.cpp -o /home/puru/Gaussian-Head-Avatar/gaussian-splatting/submodules/diff-gaussian-rasterization/build/temp.linux-x86_64-cpython-38/ext.o -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 -std=c++14
  cc1plus: warning: command-line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
  ninja: build stopped: subcommand failed.
  Traceback (most recent call last):
    File "/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1808, in _run_ninja_build
      subprocess.run(
    File "/home/puru/miniconda3/envs/gha/lib/python3.8/subprocess.py", line 516, 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 "/home/puru/Gaussian-Head-Avatar/gaussian-splatting/submodules/diff-gaussian-rasterization/setup.py", line 17, in <module>
      setup(
    File "/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/setuptools/__init__.py", line 103, in setup
      return distutils.core.setup(**attrs)
    File "/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 185, in setup
      return run_commands(dist)
    File "/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
      dist.run_commands()
    File "/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
      self.run_command(cmd)
    File "/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/setuptools/dist.py", line 989, in run_command
      super().run_command(command)
    File "/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
      cmd_obj.run()
    File "/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/wheel/bdist_wheel.py", line 364, in run
      self.run_command("build")
    File "/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
      self.distribution.run_command(command)
    File "/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/setuptools/dist.py", line 989, in run_command
      super().run_command(command)
    File "/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
      cmd_obj.run()
    File "/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/setuptools/_distutils/command/build.py", line 131, in run
      self.run_command(cmd_name)
    File "/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
      self.distribution.run_command(command)
    File "/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/setuptools/dist.py", line 989, in run_command
      super().run_command(command)
    File "/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
      cmd_obj.run()
    File "/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 88, in run
      _build_ext.run(self)
    File "/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 345, in run
      self.build_extensions()
    File "/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 765, in build_extensions
      build_ext.build_extensions(self)
    File "/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 467, in build_extensions
      self._build_extensions_serial()
    File "/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 493, in _build_extensions_serial
      self.build_extension(ext)
    File "/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 249, in build_extension
      _build_ext.build_extension(self, ext)
    File "/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 548, in build_extension
      objects = self.compiler.compile(
    File "/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 586, in unix_wrap_ninja_compile
      _write_ninja_file_and_compile_objects(
    File "/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1487, in _write_ninja_file_and_compile_objects
      _run_ninja_build(
    File "/home/puru/miniconda3/envs/gha/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1824, 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: Failed building wheel for diff-gaussian-rasterization Running setup.py clean for diff-gaussian-rasterization Failed to build diff-gaussian-rasterization

same issue

deepgoyal19 avatar Jul 02 '24 08:07 deepgoyal19

check this out, it might help you https://github.com/graphdeco-inria/gaussian-splatting/issues/865#issuecomment-2223470419

luizgarlochi avatar Jul 11 '24 17:07 luizgarlochi

If you are having problems compiling a submodule (for example diff-gaussian-rasterization) when using CUDA 11.8 and Visual Studio 2022, the issue is usually caused by an unsupported MSVC compiler version. CUDA 11.8 officially supports MSVC 14.29 (VS2019) up to MSVC 14.34 (early VS2022). Newer compilers like MSVC 14.43 are not recognized and will trigger SOLUTION :

  1. Open the Visual Studio Installer.
  2. Under Visual Studio 2022, click Modify.
  3. Go to the Individual components tab.
  4. Search for: MSVC v143 - VS 2022 C++ x64/x86 build tools (14.34 )
  5. Install it
  6. Re-run pip install submodules/diff-gaussian-rasterization

Decre99 avatar Sep 12 '25 08:09 Decre99