Thinklab-SJTU / Bench2DriveZoo

BEVFormer, UniAD, VAD in Closed-Loop CARLA Evaluation with World Model RL Expert Think2Drive
Other
161 stars 12 forks source link

GCC version #8

Closed xiaobh1519 closed 4 months ago

xiaobh1519 commented 5 months ago

Hi, when I try "pip install -v -e . " to Install your repo, I met error like this: [23/89] g++ -MMD -MF /mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/project/Bench2DriveZoo/build/temp.linux-x86_64-cpython-38/mmcv/ops/csrc/pytorch/cpu/modulated_deform_conv.o.d -pthread -B /mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DMMCV_WITH_CUDA -I/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/project/Bench2DriveZoo/mmcv/ops/csrc/common -I/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/project/Bench2DriveZoo/mmcv/ops/csrc/common/cuda -I/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include -I/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/TH -I/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/THC -I/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/include -I/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/include/python3.8 -c -c /mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/project/Bench2DriveZoo/mmcv/ops/csrc/pytorch/cpu/modulated_deform_conv.cpp -o /mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/project/Bench2DriveZoo/build/temp.linux-x86_64-cpython-38/mmcv/ops/csrc/pytorch/cpu/modulated_deform_conv.o -std=c++17 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 FAILED: /mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/project/Bench2DriveZoo/build/temp.linux-x86_64-cpython-38/mmcv/ops/csrc/pytorch/cpu/modulated_deform_conv.o g++ -MMD -MF /mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/project/Bench2DriveZoo/build/temp.linux-x86_64-cpython-38/mmcv/ops/csrc/pytorch/cpu/modulated_deform_conv.o.d -pthread -B /mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DMMCV_WITH_CUDA -I/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/project/Bench2DriveZoo/mmcv/ops/csrc/common -I/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/project/Bench2DriveZoo/mmcv/ops/csrc/common/cuda -I/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include -I/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/TH -I/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/THC -I/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/include -I/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/include/python3.8 -c -c /mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/project/Bench2DriveZoo/mmcv/ops/csrc/pytorch/cpu/modulated_deform_conv.cpp -o /mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/project/Bench2DriveZoo/build/temp.linux-x86_64-cpython-38/mmcv/ops/csrc/pytorch/cpu/modulated_deform_conv.o -std=c++17 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ In file included from /mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/ATen/core/TensorBase.h:14, from /mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:38, from /mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/ATen/core/Tensor.h:3, from /mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3, from /mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/function_hook.h:3, from /mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/cpp_hook.h:2, from /mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/variable.h:6, from /mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/autograd.h:3, from /mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/autograd.h:3, from /mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:7, from /mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/torch/extension.h:5, from /mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/project/Bench2DriveZoo/mmcv/ops/csrc/common/pytorch_cpp_helper.hpp:3, from /mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/project/Bench2DriveZoo/mmcv/ops/csrc/pytorch/cpu/modulated_deform_conv.cpp:2: /mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/c10/util/C++17.h:13:2: error: #error "You're trying to build PyTorch with a too old version of GCC. We need GCC 9 or later."

error \

  ^~~~~
In file included from /mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/c10/core/Backend.h:5,
                 from /mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/c10/core/Layout.h:3,
                 from /mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:12,
                 from /mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/ATen/core/Tensor.h:3,
                 from /mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3,
                 from /mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/function_hook.h:3,
                 from /mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/cpp_hook.h:2,
                 from /mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/variable.h:6,
                 from /mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/autograd.h:3,
                 from /mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/autograd.h:3,
                 from /mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:7,
                 from /mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/torch/extension.h:5,
                 from /mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/project/Bench2DriveZoo/mmcv/ops/csrc/common/pytorch_cpp_helper.hpp:3,
                 from /mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/project/Bench2DriveZoo/mmcv/ops/csrc/pytorch/cpu/modulated_deform_conv.cpp:2:
/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:752:73:   in ‘constexpr’ expansion of ‘c10::DispatchKeySet(AutogradCPU)’
/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in ‘constexpr’ expansion of ‘c10::toBackendComponent(k)’
/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:752:73: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_cpu_ks = DispatchKeySet(DispatchKey::AutogradCPU);
                                                                         ^
/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:753:73:   in ‘constexpr’ expansion of ‘c10::DispatchKeySet(AutogradIPU)’
/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in ‘constexpr’ expansion of ‘c10::toBackendComponent(k)’
/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:753:73: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_ipu_ks = DispatchKeySet(DispatchKey::AutogradIPU);
                                                                         ^
/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:754:73:   in ‘constexpr’ expansion of ‘c10::DispatchKeySet(AutogradXPU)’
/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in ‘constexpr’ expansion of ‘c10::toBackendComponent(k)’
/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:754:73: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_xpu_ks = DispatchKeySet(DispatchKey::AutogradXPU);
                                                                         ^
/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:755:75:   in ‘constexpr’ expansion of ‘c10::DispatchKeySet(AutogradCUDA)’
/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in ‘constexpr’ expansion of ‘c10::toBackendComponent(k)’
/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:755:75: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_cuda_ks = DispatchKeySet(DispatchKey::AutogradCUDA);
                                                                           ^
/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:756:73:   in ‘constexpr’ expansion of ‘c10::DispatchKeySet(AutogradXLA)’
/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in ‘constexpr’ expansion of ‘c10::toBackendComponent(k)’
/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:756:73: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_xla_ks = DispatchKeySet(DispatchKey::AutogradXLA);
                                                                         ^
/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:757:75:   in ‘constexpr’ expansion of ‘c10::DispatchKeySet(AutogradLazy)’
/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in ‘constexpr’ expansion of ‘c10::toBackendComponent(k)’
/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:757:75: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_lazy_ks = DispatchKeySet(DispatchKey::AutogradLazy);
                                                                           ^
/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:758:75:   in ‘constexpr’ expansion of ‘c10::DispatchKeySet(AutogradMeta)’
/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in ‘constexpr’ expansion of ‘c10::toBackendComponent(k)’
/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:758:75: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_meta_ks = DispatchKeySet(DispatchKey::AutogradMeta);
                                                                           ^
/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:759:73:   in ‘constexpr’ expansion of ‘c10::DispatchKeySet(AutogradMPS)’
/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in ‘constexpr’ expansion of ‘c10::toBackendComponent(k)’
/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:759:73: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_mps_ks = DispatchKeySet(DispatchKey::AutogradMPS);
                                                                         ^
/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:760:73:   in ‘constexpr’ expansion of ‘c10::DispatchKeySet(AutogradHPU)’
/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in ‘constexpr’ expansion of ‘c10::toBackendComponent(k)’
/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:760:73: error: overflow in constant expression [-fpermissive]
 constexpr auto autograd_hpu_ks = DispatchKeySet(DispatchKey::AutogradHPU);
                                                                         ^
/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:762:52:   in ‘constexpr’ expansion of ‘c10::DispatchKeySet(AutogradPrivateUse1)’
/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in ‘constexpr’ expansion of ‘c10::toBackendComponent(k)’
/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:762:52: error: overflow in constant expression [-fpermissive]
     DispatchKeySet(DispatchKey::AutogradPrivateUse1);
                                                    ^
/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:764:52:   in ‘constexpr’ expansion of ‘c10::DispatchKeySet(AutogradPrivateUse2)’
/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in ‘constexpr’ expansion of ‘c10::toBackendComponent(k)’
/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:764:52: error: overflow in constant expression [-fpermissive]
     DispatchKeySet(DispatchKey::AutogradPrivateUse2);
                                                    ^
/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:766:52:   in ‘constexpr’ expansion of ‘c10::DispatchKeySet(AutogradPrivateUse3)’
/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:236:42:   in ‘constexpr’ expansion of ‘c10::toBackendComponent(k)’
/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/c10/core/DispatchKeySet.h:766:52: error: overflow in constant expression [-fpermissive]
     DispatchKeySet(DispatchKey::AutogradPrivateUse3);
                                                    ^
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
  File "/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 2107, in _run_ninja_build
    subprocess.run(
  File "/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/subprocess.py", line 516, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['ninja', '-v', '-j', '23']' 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 "/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/project/Bench2DriveZoo/setup.py", line 181, in <module>
    setup(
  File "/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/setuptools/__init__.py", line 103, in setup
    return distutils.core.setup(**attrs)
  File "/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 184, in setup
    return run_commands(dist)
  File "/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/setuptools/_distutils/core.py", line 200, in run_commands
    dist.run_commands()
  File "/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
    self.run_command(cmd)
  File "/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/setuptools/dist.py", line 976, in run_command
    super().run_command(command)
  File "/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
    cmd_obj.run()
  File "/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/setuptools/command/develop.py", line 36, in run
    self.install_for_development()
  File "/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/setuptools/command/develop.py", line 113, in install_for_development
    self.run_command('build_ext')
  File "/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command
    self.distribution.run_command(command)
  File "/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/setuptools/dist.py", line 976, in run_command
    super().run_command(command)
  File "/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
    cmd_obj.run()
  File "/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 93, in run
    _build_ext.run(self)
  File "/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 359, in run
    self.build_extensions()
  File "/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 870, in build_extensions
    build_ext.build_extensions(self)
  File "/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 479, in build_extensions
    self._build_extensions_serial()
  File "/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 505, in _build_extensions_serial
    self.build_extension(ext)
  File "/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/setuptools/command/build_ext.py", line 254, in build_extension
    _build_ext.build_extension(self, ext)
  File "/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/Cython/Distutils/build_ext.py", line 135, in build_extension
    super(build_ext, self).build_extension(ext)
  File "/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/setuptools/_distutils/command/build_ext.py", line 560, in build_extension
    objects = self.compiler.compile(
  File "/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 683, in unix_wrap_ninja_compile
    _write_ninja_file_and_compile_objects(
  File "/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1783, in _write_ninja_file_and_compile_objects
    _run_ninja_build(
  File "/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 2123, in _run_ninja_build
    raise RuntimeError(message) from e
RuntimeError: Error compiling objects for extension
error: subprocess-exited-with-error

× python setup.py develop did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
full command: /mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/bin/python -c '
exec(compile('"'"''"'"''"'"'
# This is <pip-setuptools-caller> -- a caller that pip uses to run setup.py
#
# - It imports setuptools before invoking setup.py, to enable projects that directly
#   import from `distutils.core` to work with newer packaging standards.
# - It provides a clear error message when setuptools is not installed.
# - It sets `sys.argv[0]` to the underlying `setup.py`, when invoking `setup.py` so
#   setuptools doesn'"'"'t think the script is `-c`. This avoids the following warning:
#     manifest_maker: standard file '"'"'-c'"'"' not found".
# - It generates a shim setup.py, for handling setup.cfg-only projects.
import os, sys, tokenize

try:
    import setuptools
except ImportError as error:
    print(
        "ERROR: Can not execute `setup.py` since setuptools is not available in "
        "the build environment.",
        file=sys.stderr,
    )
    sys.exit(1)

__file__ = %r
sys.argv[0] = __file__

if os.path.exists(__file__):
    filename = __file__
    with tokenize.open(__file__) as f:
        setup_py_code = f.read()
else:
    filename = "<auto-generated setuptools caller>"
    setup_py_code = "from setuptools import setup; setup()"

exec(compile(setup_py_code, filename, "exec"))
'"'"''"'"''"'"' % ('"'"'/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/project/Bench2DriveZoo/setup.py'"'"',), "<pip-setuptools-caller>", "exec"))' develop --no-deps
cwd: /mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/project/Bench2DriveZoo/

error: subprocess-exited-with-error

× python setup.py develop did not run successfully. │ exit code: 1 ╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip. Could you please tell me your gcc version?

jayyoung0802 commented 5 months ago

Hi, I find error in your log, "/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/c10/util/C++17.h:13:2: error: #error "You're trying to build PyTorch with a too old version of GCC. We need GCC 9 or later." You need install GCC correctly.

xiaobh1519 commented 5 months ago

Hi, I find error in your log, "/mnt/dolphinfs/hdd_pool/docker/user/hadoop-mlm/xiaobaihui/miniconda3/envs/b2d_zoo/lib/python3.8/site-packages/torch/include/c10/util/C++17.h:13:2: error: #error "You're trying to build PyTorch with a too old version of GCC. We need GCC 9 or later." You need install GCC correctly.

Thanks for quick reply!