!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Your compiler (c++) is not compatible with the compiler Pytorch was
built with for this platform, which is g++ on linux. Please
use g++ to to compile your extension. Alternatively, you may
compile PyTorch from source using c++, and then you can also use
c++ to compile your extension.
warnings.warn(WRONG_COMPILER_WARNING.format(
Traceback (most recent call last):
File "/root/ER/ER-NeRF-main/raymarching/raymarching.py", line 10, in
import _raymarching_face as _backend
ModuleNotFoundError: No module named '_raymarching_face'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1808, in _run_ninja_build
subprocess.run(
File "/root/anaconda3/envs/ER/lib/python3.10/subprocess.py", line 526, 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 "/root/ER/ER-NeRF-main/main.py", line 6, in
from nerf_triplane.network import NeRFNetwork
File "/root/ER/ER-NeRF-main/nerf_triplane/network.py", line 6, in
from .renderer import NeRFRenderer
File "/root/ER/ER-NeRF-main/nerf_triplane/renderer.py", line 10, in
import raymarching
File "/root/ER/ER-NeRF-main/raymarching/init.py", line 1, in
from .raymarching import *
File "/root/ER/ER-NeRF-main/raymarching/raymarching.py", line 12, in
from .backend import _backend
File "/root/ER/ER-NeRF-main/raymarching/backend.py", line 31, in
_backend = load(name='_raymarching_face',
File "/root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1202, in load
return _jit_compile(
File "/root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1425, in _jit_compile
_write_ninja_file_and_build_library(
File "/root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1537, in _write_ninja_file_and_build_library
_run_ninja_build(
File "/root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1824, in _run_ninja_build
raise RuntimeError(message) from e
RuntimeError: Error building extension '_raymarching_face': [1/3] c++ -MMD -MF bindings.o.d -DTORCH_EXTENSION_NAME=_raymarching_face -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/TH -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/THC -isystem /usr/local/cuda/include -isystem /root/anaconda3/envs/ER/include/python3.10 -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++14 -O3 -std=c++14 -c /root/ER/ER-NeRF-main/raymarching/src/bindings.cpp -o bindings.o
FAILED: bindings.o
c++ -MMD -MF bindings.o.d -DTORCH_EXTENSION_NAME=_raymarching_face -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/TH -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/THC -isystem /usr/local/cuda/include -isystem /root/anaconda3/envs/ER/include/python3.10 -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++14 -O3 -std=c++14 -c /root/ER/ER-NeRF-main/raymarching/src/bindings.cpp -o bindings.o
c++: 错误:unrecognized command line option ‘-std=c++14’
c++: 错误:unrecognized command line option ‘-std=c++14’
[2/3] /usr/local/cuda/bin/nvcc -DTORCH_EXTENSION_NAME=_raymarching_face -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/TH -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/THC -isystem /usr/local/cuda/include -isystem /root/anaconda3/envs/ER/include/python3.10 -D_GLIBCXX_USE_CXX11_ABI=0 -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr -gencode=arch=compute_75,code=compute_75 -gencode=arch=compute_75,code=sm_75 --compiler-options '-fPIC' -O3 -std=c++14 -UCUDA_NO_HALF_OPERATORS -UCUDA_NO_HALF_CONVERSIONS -UCUDA_NO_HALF2_OPERATORS -c /root/ER/ER-NeRF-main/raymarching/src/raymarching.cu -o raymarching.cuda.o
FAILED: raymarching.cuda.o
/usr/local/cuda/bin/nvcc -DTORCH_EXTENSION_NAME=_raymarching_face -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/TH -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/THC -isystem /usr/local/cuda/include -isystem /root/anaconda3/envs/ER/include/python3.10 -D_GLIBCXX_USE_CXX11_ABI=0 -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr -gencode=arch=compute_75,code=compute_75 -gencode=arch=compute_75,code=sm_75 --compiler-options '-fPIC' -O3 -std=c++14 -UCUDA_NO_HALF_OPERATORS -UCUDA_NO_HALF_CONVERSIONS -UCUDA_NO_HALF2_OPERATORS -c /root/ER/ER-NeRF-main/raymarching/src/raymarching.cu -o raymarching.cuda.o
nvcc warning : The -std=c++14 flag is not supported with the configured host compiler. Flag will be ignored.
In file included from /usr/include/c++/4.8.2/cstdint:35:0,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/ATen/cuda/CUDAContext.h:3,
from /root/ER/ER-NeRF-main/raymarching/src/raymarching.cu:5:
/usr/include/c++/4.8.2/bits/c++0x_warning.h:32:2: 错误:#error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
error This file requires compiler and library support for the \
^
In file included from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/ATen/core/ATenGeneral.h:3:0,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/ATen/cuda/CUDAContext.h:13,
from /root/ER/ER-NeRF-main/raymarching/src/raymarching.cu:5:
/root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/c10/macros/Macros.h:143:20: 错误:missing binary operator before token "("
if __has_attribute(used)
^
/root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/c10/macros/Macros.h:223:22: 错误:missing binary operator before token "("
In file included from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/c10/util/string_view.h:4:0,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/c10/util/StringUtil.h:6,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/c10/util/Exception.h:6,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/ATen/core/Generator.h:11,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/ATen/Context.h:4,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/ATen/cuda/CUDAContext.h:14,
from /root/ER/ER-NeRF-main/raymarching/src/raymarching.cu:5:
/root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/c10/util/C++17.h:16:2: 错误:#error "You're trying to build PyTorch with a too old version of GCC. We need GCC 5 or later."
error \
^
/root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/c10/util/C++17.h:27:2: 错误:#error You need C++14 to compile PyTorch
error You need C++14 to compile PyTorch
^
In file included from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/c10/util/typeid.h:25:0,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/c10/core/ScalarTypeToTypeMeta.h:5,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/c10/core/TensorOptions.h:10,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/c10/core/TensorImpl.h:10,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/c10/core/GeneratorImpl.h:12,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/ATen/core/Generator.h:22,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/ATen/Context.h:4,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/ATen/cuda/CUDAContext.h:14,
from /root/ER/ER-NeRF-main/raymarching/src/raymarching.cu:5:
/root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/c10/util/TypeIndex.h:76:2: 错误:#error "You're running a too old version of GCC. We need GCC 5 or later."
error "You're running a too old version of GCC. We need GCC 5 or later."
^
In file included from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3:0,
from /root/ER/ER-NeRF-main/raymarching/src/raymarching.cu:6:
/root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/all.h:4:2: 错误:#error C++14 or later compatible compiler is required to use PyTorch.
error C++14 or later compatible compiler is required to use PyTorch.
^
In file included from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3:0,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
from /root/ER/ER-NeRF-main/raymarching/src/raymarching.cu:6:
/root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/ATen/ATen.h:4:2: 错误:#error C++14 or later compatible compiler is required to use ATen.
error C++14 or later compatible compiler is required to use ATen.
^
In file included from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/ATen/record_function.h:8:0,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/ATen/core/dispatch/Dispatcher.h:9,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/types.h:13,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
from /root/ER/ER-NeRF-main/raymarching/src/raymarching.cu:6:
/root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/c10/util/variant.h:243:2: 错误:#error "MPark.Variant requires C++11 support."
error "MPark.Variant requires C++11 support."
^
In file included from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/ATen/core/dispatch/Dispatcher.h:11:0,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/types.h:13,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
from /root/ER/ER-NeRF-main/raymarching/src/raymarching.cu:6:
/root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/c10/util/LeftRight.h:7:24: 致命错误:shared_mutex:没有那个文件或目录
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Your compiler (c++) is not compatible with the compiler Pytorch was
built with for this platform, which is g++ on linux. Please
use g++ to to compile your extension. Alternatively, you may
compile PyTorch from source using c++, and then you can also use
c++ to compile your extension.
warnings.warn(WRONG_COMPILER_WARNING.format(
Traceback (most recent call last):
File "/root/ER/ER-NeRF-main/raymarching/raymarching.py", line 10, in
import _raymarching_face as _backend
ModuleNotFoundError: No module named '_raymarching_face'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1808, in _run_ninja_build
subprocess.run(
File "/root/anaconda3/envs/ER/lib/python3.10/subprocess.py", line 526, 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 "/root/ER/ER-NeRF-main/main.py", line 6, in
from nerf_triplane.network import NeRFNetwork
File "/root/ER/ER-NeRF-main/nerf_triplane/network.py", line 6, in
from .renderer import NeRFRenderer
File "/root/ER/ER-NeRF-main/nerf_triplane/renderer.py", line 10, in
import raymarching
File "/root/ER/ER-NeRF-main/raymarching/init.py", line 1, in
from .raymarching import *
File "/root/ER/ER-NeRF-main/raymarching/raymarching.py", line 12, in
from .backend import _backend
File "/root/ER/ER-NeRF-main/raymarching/backend.py", line 31, in
_backend = load(name='_raymarching_face',
File "/root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1202, in load
return _jit_compile(
File "/root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1425, in _jit_compile
_write_ninja_file_and_build_library(
File "/root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1537, in _write_ninja_file_and_build_library
_run_ninja_build(
File "/root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1824, in _run_ninja_build
raise RuntimeError(message) from e
RuntimeError: Error building extension '_raymarching_face': [1/3] c++ -MMD -MF bindings.o.d -DTORCH_EXTENSION_NAME=_raymarching_face -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/TH -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/THC -isystem /usr/local/cuda/include -isystem /root/anaconda3/envs/ER/include/python3.10 -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++14 -O3 -std=c++14 -c /root/ER/ER-NeRF-main/raymarching/src/bindings.cpp -o bindings.o
FAILED: bindings.o
c++ -MMD -MF bindings.o.d -DTORCH_EXTENSION_NAME=_raymarching_face -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/TH -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/THC -isystem /usr/local/cuda/include -isystem /root/anaconda3/envs/ER/include/python3.10 -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++14 -O3 -std=c++14 -c /root/ER/ER-NeRF-main/raymarching/src/bindings.cpp -o bindings.o
c++: 错误:unrecognized command line option ‘-std=c++14’
c++: 错误:unrecognized command line option ‘-std=c++14’
[2/3] /usr/local/cuda/bin/nvcc -DTORCH_EXTENSION_NAME=_raymarching_face -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/TH -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/THC -isystem /usr/local/cuda/include -isystem /root/anaconda3/envs/ER/include/python3.10 -D_GLIBCXX_USE_CXX11_ABI=0 -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr -gencode=arch=compute_75,code=compute_75 -gencode=arch=compute_75,code=sm_75 --compiler-options '-fPIC' -O3 -std=c++14 -UCUDA_NO_HALF_OPERATORS -UCUDA_NO_HALF_CONVERSIONS -UCUDA_NO_HALF2_OPERATORS -c /root/ER/ER-NeRF-main/raymarching/src/raymarching.cu -o raymarching.cuda.o
FAILED: raymarching.cuda.o
/usr/local/cuda/bin/nvcc -DTORCH_EXTENSION_NAME=_raymarching_face -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/TH -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/THC -isystem /usr/local/cuda/include -isystem /root/anaconda3/envs/ER/include/python3.10 -D_GLIBCXX_USE_CXX11_ABI=0 -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr -gencode=arch=compute_75,code=compute_75 -gencode=arch=compute_75,code=sm_75 --compiler-options '-fPIC' -O3 -std=c++14 -UCUDA_NO_HALF_OPERATORS -UCUDA_NO_HALF_CONVERSIONS -UCUDA_NO_HALF2_OPERATORS -c /root/ER/ER-NeRF-main/raymarching/src/raymarching.cu -o raymarching.cuda.o
nvcc warning : The -std=c++14 flag is not supported with the configured host compiler. Flag will be ignored.
In file included from /usr/include/c++/4.8.2/cstdint:35:0,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/ATen/cuda/CUDAContext.h:3,
from /root/ER/ER-NeRF-main/raymarching/src/raymarching.cu:5:
/usr/include/c++/4.8.2/bits/c++0x_warning.h:32:2: 错误:#error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
error This file requires compiler and library support for the \
^
In file included from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/ATen/core/ATenGeneral.h:3:0,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/ATen/cuda/CUDAContext.h:13,
from /root/ER/ER-NeRF-main/raymarching/src/raymarching.cu:5:
/root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/c10/macros/Macros.h:143:20: 错误:missing binary operator before token "("
if __has_attribute(used)
^
/root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/c10/macros/Macros.h:223:22: 错误:missing binary operator before token "("
In file included from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/c10/util/string_view.h:4:0,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/c10/util/StringUtil.h:6,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/c10/util/Exception.h:6,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/ATen/core/Generator.h:11,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/ATen/Context.h:4,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/ATen/cuda/CUDAContext.h:14,
from /root/ER/ER-NeRF-main/raymarching/src/raymarching.cu:5:
/root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/c10/util/C++17.h:16:2: 错误:#error "You're trying to build PyTorch with a too old version of GCC. We need GCC 5 or later."
error \
^
/root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/c10/util/C++17.h:27:2: 错误:#error You need C++14 to compile PyTorch
error You need C++14 to compile PyTorch
^
In file included from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/c10/util/typeid.h:25:0,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/c10/core/ScalarTypeToTypeMeta.h:5,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/c10/core/TensorOptions.h:10,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/c10/core/TensorImpl.h:10,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/c10/core/GeneratorImpl.h:12,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/ATen/core/Generator.h:22,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/ATen/Context.h:4,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/ATen/cuda/CUDAContext.h:14,
from /root/ER/ER-NeRF-main/raymarching/src/raymarching.cu:5:
/root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/c10/util/TypeIndex.h:76:2: 错误:#error "You're running a too old version of GCC. We need GCC 5 or later."
error "You're running a too old version of GCC. We need GCC 5 or later."
^
In file included from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3:0,
from /root/ER/ER-NeRF-main/raymarching/src/raymarching.cu:6:
/root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/all.h:4:2: 错误:#error C++14 or later compatible compiler is required to use PyTorch.
error C++14 or later compatible compiler is required to use PyTorch.
^
In file included from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3:0,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
from /root/ER/ER-NeRF-main/raymarching/src/raymarching.cu:6:
/root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/ATen/ATen.h:4:2: 错误:#error C++14 or later compatible compiler is required to use ATen.
error C++14 or later compatible compiler is required to use ATen.
^
In file included from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/ATen/record_function.h:8:0,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/ATen/core/dispatch/Dispatcher.h:9,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/types.h:13,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
from /root/ER/ER-NeRF-main/raymarching/src/raymarching.cu:6:
/root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/c10/util/variant.h:243:2: 错误:#error "MPark.Variant requires C++11 support."
error "MPark.Variant requires C++11 support."
^
In file included from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/ATen/core/dispatch/Dispatcher.h:11:0,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/types.h:13,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
from /root/ER/ER-NeRF-main/raymarching/src/raymarching.cu:6:
/root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/c10/util/LeftRight.h:7:24: 致命错误:shared_mutex:没有那个文件或目录
include
^
编译中断。
ninja: build stopped: subcommand failed.
这是由于C++和GCC的问题导致的吗?
且不知什么原因我的yum无法使用,没办法更新我的GCC
(ER) [root@localhost ER-NeRF-main]# sudo yum install centos-release-scl
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
No module named sqlite
Please install a package which provides this module, or
verify that the module is installed correctly.
It's possible that the above module doesn't match the
current version of Python, which is:
2.7.5 (default, Jun 20 2023, 11:36:40)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-44)]
输入命令: python main.py data/obama/ --workspace trial_obama/ -O --test --ckpt trial_obama/checkpoints/ngp.pth # head python main.py data/obama/ --workspace trial_obama_torso/ -O --test --torso --ckpt trial_obama_torso/checkpoints/ngp.pth # head+torso 日志如下: (ER) [root@localhost ER-NeRF-main]# python main.py data/obama/ --workspace trial_obama/ -O --test --ckpt trial_obama/checkpoints/ngp.pth # head /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/utils/cpp_extension.py:325: UserWarning:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Your compiler (c++) is not compatible with the compiler Pytorch was built with for this platform, which is g++ on linux. Please use g++ to to compile your extension. Alternatively, you may compile PyTorch from source using c++, and then you can also use c++ to compile your extension.
See https://github.com/pytorch/pytorch/blob/master/CONTRIBUTING.md for help with compiling PyTorch from source. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
warnings.warn(WRONG_COMPILER_WARNING.format( Traceback (most recent call last): File "/root/ER/ER-NeRF-main/raymarching/raymarching.py", line 10, in
import _raymarching_face as _backend
ModuleNotFoundError: No module named '_raymarching_face'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1808, in _run_ninja_build subprocess.run( File "/root/anaconda3/envs/ER/lib/python3.10/subprocess.py", line 526, 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 "/root/ER/ER-NeRF-main/main.py", line 6, in
from nerf_triplane.network import NeRFNetwork
File "/root/ER/ER-NeRF-main/nerf_triplane/network.py", line 6, in
from .renderer import NeRFRenderer
File "/root/ER/ER-NeRF-main/nerf_triplane/renderer.py", line 10, in
import raymarching
File "/root/ER/ER-NeRF-main/raymarching/init.py", line 1, in
from .raymarching import *
File "/root/ER/ER-NeRF-main/raymarching/raymarching.py", line 12, in
from .backend import _backend
File "/root/ER/ER-NeRF-main/raymarching/backend.py", line 31, in
_backend = load(name='_raymarching_face',
File "/root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1202, in load
return _jit_compile(
File "/root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1425, in _jit_compile
_write_ninja_file_and_build_library(
File "/root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1537, in _write_ninja_file_and_build_library
_run_ninja_build(
File "/root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1824, in _run_ninja_build
raise RuntimeError(message) from e
RuntimeError: Error building extension '_raymarching_face': [1/3] c++ -MMD -MF bindings.o.d -DTORCH_EXTENSION_NAME=_raymarching_face -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/TH -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/THC -isystem /usr/local/cuda/include -isystem /root/anaconda3/envs/ER/include/python3.10 -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++14 -O3 -std=c++14 -c /root/ER/ER-NeRF-main/raymarching/src/bindings.cpp -o bindings.o
FAILED: bindings.o
c++ -MMD -MF bindings.o.d -DTORCH_EXTENSION_NAME=_raymarching_face -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/TH -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/THC -isystem /usr/local/cuda/include -isystem /root/anaconda3/envs/ER/include/python3.10 -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++14 -O3 -std=c++14 -c /root/ER/ER-NeRF-main/raymarching/src/bindings.cpp -o bindings.o
c++: 错误:unrecognized command line option ‘-std=c++14’
c++: 错误:unrecognized command line option ‘-std=c++14’
[2/3] /usr/local/cuda/bin/nvcc -DTORCH_EXTENSION_NAME=_raymarching_face -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/TH -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/THC -isystem /usr/local/cuda/include -isystem /root/anaconda3/envs/ER/include/python3.10 -D_GLIBCXX_USE_CXX11_ABI=0 -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr -gencode=arch=compute_75,code=compute_75 -gencode=arch=compute_75,code=sm_75 --compiler-options '-fPIC' -O3 -std=c++14 -UCUDA_NO_HALF_OPERATORS -UCUDA_NO_HALF_CONVERSIONS -UCUDA_NO_HALF2_OPERATORS -c /root/ER/ER-NeRF-main/raymarching/src/raymarching.cu -o raymarching.cuda.o
FAILED: raymarching.cuda.o
/usr/local/cuda/bin/nvcc -DTORCH_EXTENSION_NAME=_raymarching_face -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/TH -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/THC -isystem /usr/local/cuda/include -isystem /root/anaconda3/envs/ER/include/python3.10 -D_GLIBCXX_USE_CXX11_ABI=0 -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr -gencode=arch=compute_75,code=compute_75 -gencode=arch=compute_75,code=sm_75 --compiler-options '-fPIC' -O3 -std=c++14 -UCUDA_NO_HALF_OPERATORS -UCUDA_NO_HALF_CONVERSIONS -UCUDA_NO_HALF2_OPERATORS -c /root/ER/ER-NeRF-main/raymarching/src/raymarching.cu -o raymarching.cuda.o
nvcc warning : The -std=c++14 flag is not supported with the configured host compiler. Flag will be ignored.
In file included from /usr/include/c++/4.8.2/cstdint:35:0,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/ATen/cuda/CUDAContext.h:3,
from /root/ER/ER-NeRF-main/raymarching/src/raymarching.cu:5:
/usr/include/c++/4.8.2/bits/c++0x_warning.h:32:2: 错误:#error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
error This file requires compiler and library support for the \
^ In file included from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/ATen/core/ATenGeneral.h:3:0, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/ATen/cuda/CUDAContext.h:13, from /root/ER/ER-NeRF-main/raymarching/src/raymarching.cu:5: /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/c10/macros/Macros.h:143:20: 错误:missing binary operator before token "("
if __has_attribute(used)
/root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/c10/macros/Macros.h:223:22: 错误:missing binary operator before token "("
elif has_attribute(always_inline) || defined(GNUC__)
In file included from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/c10/util/string_view.h:4:0, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/c10/util/StringUtil.h:6, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/c10/util/Exception.h:6, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/ATen/core/Generator.h:11, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/ATen/Context.h:4, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/ATen/cuda/CUDAContext.h:14, from /root/ER/ER-NeRF-main/raymarching/src/raymarching.cu:5: /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/c10/util/C++17.h:16:2: 错误:#error "You're trying to build PyTorch with a too old version of GCC. We need GCC 5 or later."
error \
^ /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/c10/util/C++17.h:27:2: 错误:#error You need C++14 to compile PyTorch
error You need C++14 to compile PyTorch
^ In file included from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/c10/util/typeid.h:25:0, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/c10/core/ScalarTypeToTypeMeta.h:5, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/c10/core/TensorOptions.h:10, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/c10/core/TensorImpl.h:10, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/c10/core/GeneratorImpl.h:12, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/ATen/core/Generator.h:22, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/ATen/Context.h:4, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/ATen/cuda/CUDAContext.h:14, from /root/ER/ER-NeRF-main/raymarching/src/raymarching.cu:5: /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/c10/util/TypeIndex.h:76:2: 错误:#error "You're running a too old version of GCC. We need GCC 5 or later."
error "You're running a too old version of GCC. We need GCC 5 or later."
^ In file included from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3:0, from /root/ER/ER-NeRF-main/raymarching/src/raymarching.cu:6: /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/all.h:4:2: 错误:#error C++14 or later compatible compiler is required to use PyTorch.
error C++14 or later compatible compiler is required to use PyTorch.
^ In file included from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3:0, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3, from /root/ER/ER-NeRF-main/raymarching/src/raymarching.cu:6: /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/ATen/ATen.h:4:2: 错误:#error C++14 or later compatible compiler is required to use ATen.
error C++14 or later compatible compiler is required to use ATen.
^ In file included from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/ATen/record_function.h:8:0, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/ATen/core/dispatch/Dispatcher.h:9, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/types.h:13, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3, from /root/ER/ER-NeRF-main/raymarching/src/raymarching.cu:6: /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/c10/util/variant.h:243:2: 错误:#error "MPark.Variant requires C++11 support."
error "MPark.Variant requires C++11 support."
^ In file included from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/ATen/core/dispatch/Dispatcher.h:11:0, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/types.h:13, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3, from /root/ER/ER-NeRF-main/raymarching/src/raymarching.cu:6: /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/c10/util/LeftRight.h:7:24: 致命错误:shared_mutex:没有那个文件或目录
include
编译中断。 ninja: build stopped: subcommand failed.
(ER) [root@localhost ER-NeRF-main]# python main.py data/obama/ --workspace trial_obama_torso/ -O --test --torso --ckpt trial_obama_torso/checkpoints/ngp.pth # head+torso /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/utils/cpp_extension.py:325: UserWarning:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Your compiler (c++) is not compatible with the compiler Pytorch was built with for this platform, which is g++ on linux. Please use g++ to to compile your extension. Alternatively, you may compile PyTorch from source using c++, and then you can also use c++ to compile your extension.
See https://github.com/pytorch/pytorch/blob/master/CONTRIBUTING.md for help with compiling PyTorch from source. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
warnings.warn(WRONG_COMPILER_WARNING.format( Traceback (most recent call last): File "/root/ER/ER-NeRF-main/raymarching/raymarching.py", line 10, in
import _raymarching_face as _backend
ModuleNotFoundError: No module named '_raymarching_face'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1808, in _run_ninja_build subprocess.run( File "/root/anaconda3/envs/ER/lib/python3.10/subprocess.py", line 526, 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 "/root/ER/ER-NeRF-main/main.py", line 6, in
from nerf_triplane.network import NeRFNetwork
File "/root/ER/ER-NeRF-main/nerf_triplane/network.py", line 6, in
from .renderer import NeRFRenderer
File "/root/ER/ER-NeRF-main/nerf_triplane/renderer.py", line 10, in
import raymarching
File "/root/ER/ER-NeRF-main/raymarching/init.py", line 1, in
from .raymarching import *
File "/root/ER/ER-NeRF-main/raymarching/raymarching.py", line 12, in
from .backend import _backend
File "/root/ER/ER-NeRF-main/raymarching/backend.py", line 31, in
_backend = load(name='_raymarching_face',
File "/root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1202, in load
return _jit_compile(
File "/root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1425, in _jit_compile
_write_ninja_file_and_build_library(
File "/root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1537, in _write_ninja_file_and_build_library
_run_ninja_build(
File "/root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1824, in _run_ninja_build
raise RuntimeError(message) from e
RuntimeError: Error building extension '_raymarching_face': [1/3] c++ -MMD -MF bindings.o.d -DTORCH_EXTENSION_NAME=_raymarching_face -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/TH -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/THC -isystem /usr/local/cuda/include -isystem /root/anaconda3/envs/ER/include/python3.10 -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++14 -O3 -std=c++14 -c /root/ER/ER-NeRF-main/raymarching/src/bindings.cpp -o bindings.o
FAILED: bindings.o
c++ -MMD -MF bindings.o.d -DTORCH_EXTENSION_NAME=_raymarching_face -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/TH -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/THC -isystem /usr/local/cuda/include -isystem /root/anaconda3/envs/ER/include/python3.10 -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++14 -O3 -std=c++14 -c /root/ER/ER-NeRF-main/raymarching/src/bindings.cpp -o bindings.o
c++: 错误:unrecognized command line option ‘-std=c++14’
c++: 错误:unrecognized command line option ‘-std=c++14’
[2/3] /usr/local/cuda/bin/nvcc -DTORCH_EXTENSION_NAME=_raymarching_face -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/TH -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/THC -isystem /usr/local/cuda/include -isystem /root/anaconda3/envs/ER/include/python3.10 -D_GLIBCXX_USE_CXX11_ABI=0 -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr -gencode=arch=compute_75,code=compute_75 -gencode=arch=compute_75,code=sm_75 --compiler-options '-fPIC' -O3 -std=c++14 -UCUDA_NO_HALF_OPERATORS -UCUDA_NO_HALF_CONVERSIONS -UCUDA_NO_HALF2_OPERATORS -c /root/ER/ER-NeRF-main/raymarching/src/raymarching.cu -o raymarching.cuda.o
FAILED: raymarching.cuda.o
/usr/local/cuda/bin/nvcc -DTORCH_EXTENSION_NAME=_raymarching_face -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/TH -isystem /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/THC -isystem /usr/local/cuda/include -isystem /root/anaconda3/envs/ER/include/python3.10 -D_GLIBCXX_USE_CXX11_ABI=0 -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr -gencode=arch=compute_75,code=compute_75 -gencode=arch=compute_75,code=sm_75 --compiler-options '-fPIC' -O3 -std=c++14 -UCUDA_NO_HALF_OPERATORS -UCUDA_NO_HALF_CONVERSIONS -UCUDA_NO_HALF2_OPERATORS -c /root/ER/ER-NeRF-main/raymarching/src/raymarching.cu -o raymarching.cuda.o
nvcc warning : The -std=c++14 flag is not supported with the configured host compiler. Flag will be ignored.
In file included from /usr/include/c++/4.8.2/cstdint:35:0,
from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/ATen/cuda/CUDAContext.h:3,
from /root/ER/ER-NeRF-main/raymarching/src/raymarching.cu:5:
/usr/include/c++/4.8.2/bits/c++0x_warning.h:32:2: 错误:#error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
error This file requires compiler and library support for the \
^ In file included from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/ATen/core/ATenGeneral.h:3:0, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/ATen/cuda/CUDAContext.h:13, from /root/ER/ER-NeRF-main/raymarching/src/raymarching.cu:5: /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/c10/macros/Macros.h:143:20: 错误:missing binary operator before token "("
if __has_attribute(used)
/root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/c10/macros/Macros.h:223:22: 错误:missing binary operator before token "("
elif has_attribute(always_inline) || defined(GNUC__)
In file included from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/c10/util/string_view.h:4:0, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/c10/util/StringUtil.h:6, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/c10/util/Exception.h:6, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/ATen/core/Generator.h:11, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/ATen/Context.h:4, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/ATen/cuda/CUDAContext.h:14, from /root/ER/ER-NeRF-main/raymarching/src/raymarching.cu:5: /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/c10/util/C++17.h:16:2: 错误:#error "You're trying to build PyTorch with a too old version of GCC. We need GCC 5 or later."
error \
^ /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/c10/util/C++17.h:27:2: 错误:#error You need C++14 to compile PyTorch
error You need C++14 to compile PyTorch
^ In file included from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/c10/util/typeid.h:25:0, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/c10/core/ScalarTypeToTypeMeta.h:5, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/c10/core/TensorOptions.h:10, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/c10/core/TensorImpl.h:10, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/c10/core/GeneratorImpl.h:12, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/ATen/core/Generator.h:22, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/ATen/Context.h:4, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/ATen/cuda/CUDAContext.h:14, from /root/ER/ER-NeRF-main/raymarching/src/raymarching.cu:5: /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/c10/util/TypeIndex.h:76:2: 错误:#error "You're running a too old version of GCC. We need GCC 5 or later."
error "You're running a too old version of GCC. We need GCC 5 or later."
^ In file included from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3:0, from /root/ER/ER-NeRF-main/raymarching/src/raymarching.cu:6: /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/all.h:4:2: 错误:#error C++14 or later compatible compiler is required to use PyTorch.
error C++14 or later compatible compiler is required to use PyTorch.
^ In file included from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3:0, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3, from /root/ER/ER-NeRF-main/raymarching/src/raymarching.cu:6: /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/ATen/ATen.h:4:2: 错误:#error C++14 or later compatible compiler is required to use ATen.
error C++14 or later compatible compiler is required to use ATen.
^ In file included from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/ATen/record_function.h:8:0, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/ATen/core/dispatch/Dispatcher.h:9, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/types.h:13, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3, from /root/ER/ER-NeRF-main/raymarching/src/raymarching.cu:6: /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/c10/util/variant.h:243:2: 错误:#error "MPark.Variant requires C++11 support."
error "MPark.Variant requires C++11 support."
^ In file included from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/ATen/core/dispatch/Dispatcher.h:11:0, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/types.h:13, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8, from /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3, from /root/ER/ER-NeRF-main/raymarching/src/raymarching.cu:6: /root/anaconda3/envs/ER/lib/python3.10/site-packages/torch/include/c10/util/LeftRight.h:7:24: 致命错误:shared_mutex:没有那个文件或目录
include
编译中断。 ninja: build stopped: subcommand failed.
这是由于C++和GCC的问题导致的吗? 且不知什么原因我的yum无法使用,没办法更新我的GCC (ER) [root@localhost ER-NeRF-main]# sudo yum install centos-release-scl There was a problem importing one of the Python modules required to run yum. The error leading to this problem was:
No module named sqlite
Please install a package which provides this module, or verify that the module is installed correctly.
It's possible that the above module doesn't match the current version of Python, which is: 2.7.5 (default, Jun 20 2023, 11:36:40) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)]
If you cannot solve this problem yourself, please go to the yum faq at: http://yum.baseurl.org/wiki/Faq