Closed xiaobh1519 closed 4 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.
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!
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 \
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?