Skip to content

type error when pip install #26

@baesky

Description

@baesky

pip install ./diff-gaussian-rasterization
Processing ./diff-gaussian-rasterization
Preparing metadata (setup.py) ... done
Building wheels for collected packages: diff_gaussian_rasterization
DEPRECATION: Building 'diff_gaussian_rasterization' using the legacy setup.py bdist_wheel mechanism, which will be removed in a future version. pip 25.3 will enforce this behaviour change. A possible replacement is to use the standardized build interface by setting the --use-pep517 option, (possibly combined with --no-build-isolation), or adding a pyproject.toml file to the source tree of 'diff_gaussian_rasterization'. Discussion can be found at pypa/pip#6334
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
╰─> [220 lines of output]
running bdist_wheel
/home/ferdin/miniconda3/envs/lam/lib/python3.10/site-packages/torch/utils/cpp_extension.py:499: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend.
warnings.warn(msg.format('we could not find ninja.'))
running build
running build_py
creating build/lib.linux-x86_64-cpython-310/diff_gaussian_rasterization
copying diff_gaussian_rasterization/init.py -> build/lib.linux-x86_64-cpython-310/diff_gaussian_rasterization
running build_ext
/home/ferdin/miniconda3/envs/lam/lib/python3.10/site-packages/torch/utils/cpp_extension.py:428: UserWarning: There are no g++ 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
creating build/temp.linux-x86_64-cpython-310/cuda_rasterizer
/home/ferdin/miniconda3/envs/lam/lib/python3.10/site-packages/torch/utils/cpp_extension.py:1967: UserWarning: TORCH_CUDA_ARCH_LIST is not set, all archs for visible cards are included for compilation.
If this is not desired, please set os.environ['TORCH_CUDA_ARCH_LIST'].
warnings.warn(
/usr/local/cuda-11.8/bin/nvcc -I/home/ferdin/miniconda3/envs/lam/lib/python3.10/site-packages/torch/include -I/home/ferdin/miniconda3/envs/lam/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -I/home/ferdin/miniconda3/envs/lam/lib/python3.10/site-packages/torch/include/TH -I/home/ferdin/miniconda3/envs/lam/lib/python3.10/site-packages/torch/include/THC -I/usr/local/cuda-11.8/include -I/home/ferdin/miniconda3/envs/lam/include/python3.10 -c cuda_rasterizer/backward.cu -o build/temp.linux-x86_64-cpython-310/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/ferdin/lam/LAM/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++17
/usr/include/stdlib.h(141): error: identifier "_Float32" is undefined

  /usr/include/stdlib.h(147): error: identifier "_Float64" is undefined
  
  /usr/include/stdlib.h(153): error: identifier "_Float128" is undefined
  
  /usr/include/stdlib.h(159): error: identifier "_Float32x" is undefined
  
  /usr/include/stdlib.h(165): error: identifier "_Float64x" is undefined
  
  /usr/include/stdlib.h(299): error: identifier "_Float32" is undefined
  
  /usr/include/stdlib.h(305): error: identifier "_Float64" is undefined
  
  /usr/include/stdlib.h(311): error: identifier "_Float128" is undefined
  
  /usr/include/stdlib.h(317): error: identifier "_Float32x" is undefined
  
  /usr/include/stdlib.h(323): error: identifier "_Float64x" is undefined
  
  /usr/include/stdlib.h(436): error: identifier "_Float32" is undefined
  
  /usr/include/stdlib.h(443): error: identifier "_Float64" is undefined
  
  /usr/include/stdlib.h(450): error: identifier "_Float128" is undefined
  
  /usr/include/stdlib.h(457): error: identifier "_Float32x" is undefined
  
  /usr/include/stdlib.h(464): error: identifier "_Float64x" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(53): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(53): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(53): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(53): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(55): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(55): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(55): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(55): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(57): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(57): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(57): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(57): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(59): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(59): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(59): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(59): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(59): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(59): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(62): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(62): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(62): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(62): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(64): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(64): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(64): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(64): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(66): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(66): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(66): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(66): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(71): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(71): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(71): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(71): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(73): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(73): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(73): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(73): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(75): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(75): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(75): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(75): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(79): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(79): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(79): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(79): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(79): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(79): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(85): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(85): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(85): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(85): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(87): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(87): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(87): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(87): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(89): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(89): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(89): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(89): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(95): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(95): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(95): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(95): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(98): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(98): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(98): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(98): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(101): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(101): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(101): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(101): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(104): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(104): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(104): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(104): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(107): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(107): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(107): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(107): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(110): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(110): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(110): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(110): error: identifier "_Float32" is undefined
  
  /usr/include/x86_64-linux-gnu/bits/mathcalls.h(110): error: identifier "_Float32" is undefined
  
  Error limit reached.
  100 errors detected in the compilation of "cuda_rasterizer/backward.cu".
  Compilation terminated.
  error: command '/usr/local/cuda-11.8/bin/nvcc' failed with exit code 1
  [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
ERROR: Failed to build installable wheels for some pyproject.toml based projects (diff_gaussian_rasterization)

ubuntu 24.04
python 3.10.16
cuda 11.8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions