Open soroushoraki opened 1 year ago
Same problems met! Does anyone know how to resolve this error?
Same problems met! Does anyone know how to resolve this error?
Hey, I resolved the problem by installing ‘mmcv==0.4.3’ before step ‘d’.
Thank you so much for your quick reply and help!
I found it here: https://github.com/HsiaX/mmcv-0.4.3, and followed the cmd:
git clone https://github.com/open-mmlab/mmcv.git cd mmcv pip install -e
Is this correct, please?
I tried the above cmds, the following errors appear:
Obtaining file:///home/yi/mmskeleton/mmcv Preparing metadata (setup.py) ... done Requirement already satisfied: addict in /home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages (from mmcv==2.0.0) (2.4.0) Requirement already satisfied: mmengine>=0.2.0 in /home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages (from mmcv==2.0.0) (0.7.4) Requirement already satisfied: numpy in /home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages (from mmcv==2.0.0) (1.19.2) Requirement already satisfied: packaging in /home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages (from mmcv==2.0.0) (23.1) Requirement already satisfied: Pillow in /home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages (from mmcv==2.0.0) (9.0.1) Requirement already satisfied: pyyaml in /home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages (from mmcv==2.0.0) (6.0) Requirement already satisfied: yapf in /home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages (from mmcv==2.0.0) (0.33.0) Requirement already satisfied: rich in /home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages (from mmengine>=0.2.0->mmcv==2.0.0) (13.4.1) Requirement already satisfied: termcolor in /home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages (from mmengine>=0.2.0->mmcv==2.0.0) (2.3.0) Requirement already satisfied: matplotlib in /home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages (from mmengine>=0.2.0->mmcv==2.0.0) (3.5.3) Requirement already satisfied: opencv-python>=3 in /home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages (from mmengine>=0.2.0->mmcv==2.0.0) (4.7.0.72) Requirement already satisfied: tomli>=2.0.1 in /home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages (from yapf->mmcv==2.0.0) (2.0.1) Requirement already satisfied: kiwisolver>=1.0.1 in /home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages (from matplotlib->mmengine>=0.2.0->mmcv==2.0.0) (1.4.4) Requirement already satisfied: python-dateutil>=2.7 in /home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages (from matplotlib->mmengine>=0.2.0->mmcv==2.0.0) (2.8.2) Requirement already satisfied: pyparsing>=2.2.1 in /home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages (from matplotlib->mmengine>=0.2.0->mmcv==2.0.0) (3.0.9) Requirement already satisfied: fonttools>=4.22.0 in /home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages (from matplotlib->mmengine>=0.2.0->mmcv==2.0.0) (4.38.0) Requirement already satisfied: cycler>=0.10 in /home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages (from matplotlib->mmengine>=0.2.0->mmcv==2.0.0) (0.11.0) Requirement already satisfied: pygments<3.0.0,>=2.13.0 in /home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages (from rich->mmengine>=0.2.0->mmcv==2.0.0) (2.15.1) Requirement already satisfied: typing-extensions<5.0,>=4.0.0 in /home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages (from rich->mmengine>=0.2.0->mmcv==2.0.0) (4.6.3) Requirement already satisfied: markdown-it-py<3.0.0,>=2.2.0 in /home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages (from rich->mmengine>=0.2.0->mmcv==2.0.0) (2.2.0) Requirement already satisfied: mdurl~=0.1 in /home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages (from markdown-it-py<3.0.0,>=2.2.0->rich->mmengine>=0.2.0->mmcv==2.0.0) (0.1.2) Requirement already satisfied: six>=1.5 in /home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages (from python-dateutil>=2.7->matplotlib->mmengine>=0.2.0->mmcv==2.0.0) (1.16.0) Installing collected packages: mmcv Running setup.py develop for mmcv error: subprocess-exited-with-error
× python setup.py develop did not run successfully.
│ exit code: 1
╰─> [57 lines of output]
running develop
running egg_info
writing mmcv.egg-info/PKG-INFO
writing dependency_links to mmcv.egg-info/dependency_links.txt
writing requirements to mmcv.egg-info/requires.txt
writing top-level names to mmcv.egg-info/top_level.txt
reading manifest file 'mmcv.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
adding license file 'LICENSES.md'
writing manifest file 'mmcv.egg-info/SOURCES.txt'
running build_ext
building 'mmcv._ext' extension
gcc -pthread -B /home/yi/anaconda3/envs/open-mmlab/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DMMCV_WITH_CUDA -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/pytorch -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/common -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/common/cuda -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-10.0/include -I/home/yi/anaconda3/envs/open-mmlab/include/python3.7m -c ./mmcv/ops/csrc/pytorch/active_rotated_filter.cpp -o build/temp.linux-x86_64-cpython-37/./mmcv/ops/csrc/pytorch/active_rotated_filter.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
gcc -pthread -B /home/yi/anaconda3/envs/open-mmlab/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DMMCV_WITH_CUDA -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/pytorch -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/common -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/common/cuda -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-10.0/include -I/home/yi/anaconda3/envs/open-mmlab/include/python3.7m -c ./mmcv/ops/csrc/pytorch/assign_score_withk.cpp -o build/temp.linux-x86_64-cpython-37/./mmcv/ops/csrc/pytorch/assign_score_withk.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
gcc -pthread -B /home/yi/anaconda3/envs/open-mmlab/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DMMCV_WITH_CUDA -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/pytorch -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/common -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/common/cuda -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-10.0/include -I/home/yi/anaconda3/envs/open-mmlab/include/python3.7m -c ./mmcv/ops/csrc/pytorch/ball_query.cpp -o build/temp.linux-x86_64-cpython-37/./mmcv/ops/csrc/pytorch/ball_query.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
gcc -pthread -B /home/yi/anaconda3/envs/open-mmlab/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DMMCV_WITH_CUDA -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/pytorch -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/common -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/common/cuda -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-10.0/include -I/home/yi/anaconda3/envs/open-mmlab/include/python3.7m -c ./mmcv/ops/csrc/pytorch/bbox_overlaps.cpp -o build/temp.linux-x86_64-cpython-37/./mmcv/ops/csrc/pytorch/bbox_overlaps.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
gcc -pthread -B /home/yi/anaconda3/envs/open-mmlab/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DMMCV_WITH_CUDA -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/pytorch -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/common -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/common/cuda -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-10.0/include -I/home/yi/anaconda3/envs/open-mmlab/include/python3.7m -c ./mmcv/ops/csrc/pytorch/bezier_align.cpp -o build/temp.linux-x86_64-cpython-37/./mmcv/ops/csrc/pytorch/bezier_align.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
gcc -pthread -B /home/yi/anaconda3/envs/open-mmlab/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DMMCV_WITH_CUDA -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/pytorch -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/common -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/common/cuda -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-10.0/include -I/home/yi/anaconda3/envs/open-mmlab/include/python3.7m -c ./mmcv/ops/csrc/pytorch/bias_act.cpp -o build/temp.linux-x86_64-cpython-37/./mmcv/ops/csrc/pytorch/bias_act.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
gcc -pthread -B /home/yi/anaconda3/envs/open-mmlab/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DMMCV_WITH_CUDA -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/pytorch -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/common -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/common/cuda -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-10.0/include -I/home/yi/anaconda3/envs/open-mmlab/include/python3.7m -c ./mmcv/ops/csrc/pytorch/border_align.cpp -o build/temp.linux-x86_64-cpython-37/./mmcv/ops/csrc/pytorch/border_align.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
gcc -pthread -B /home/yi/anaconda3/envs/open-mmlab/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DMMCV_WITH_CUDA -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/pytorch -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/common -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/common/cuda -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-10.0/include -I/home/yi/anaconda3/envs/open-mmlab/include/python3.7m -c ./mmcv/ops/csrc/pytorch/box_iou_quadri.cpp -o build/temp.linux-x86_64-cpython-37/./mmcv/ops/csrc/pytorch/box_iou_quadri.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
gcc -pthread -B /home/yi/anaconda3/envs/open-mmlab/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DMMCV_WITH_CUDA -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/pytorch -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/common -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/common/cuda -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-10.0/include -I/home/yi/anaconda3/envs/open-mmlab/include/python3.7m -c ./mmcv/ops/csrc/pytorch/box_iou_rotated.cpp -o build/temp.linux-x86_64-cpython-37/./mmcv/ops/csrc/pytorch/box_iou_rotated.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
gcc -pthread -B /home/yi/anaconda3/envs/open-mmlab/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DMMCV_WITH_CUDA -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/pytorch -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/common -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/common/cuda -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-10.0/include -I/home/yi/anaconda3/envs/open-mmlab/include/python3.7m -c ./mmcv/ops/csrc/pytorch/carafe.cpp -o build/temp.linux-x86_64-cpython-37/./mmcv/ops/csrc/pytorch/carafe.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
gcc -pthread -B /home/yi/anaconda3/envs/open-mmlab/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DMMCV_WITH_CUDA -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/pytorch -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/common -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/common/cuda -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-10.0/include -I/home/yi/anaconda3/envs/open-mmlab/include/python3.7m -c ./mmcv/ops/csrc/pytorch/carafe_naive.cpp -o build/temp.linux-x86_64-cpython-37/./mmcv/ops/csrc/pytorch/carafe_naive.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
gcc -pthread -B /home/yi/anaconda3/envs/open-mmlab/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DMMCV_WITH_CUDA -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/pytorch -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/common -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/common/cuda -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-10.0/include -I/home/yi/anaconda3/envs/open-mmlab/include/python3.7m -c ./mmcv/ops/csrc/pytorch/chamfer_distance.cpp -o build/temp.linux-x86_64-cpython-37/./mmcv/ops/csrc/pytorch/chamfer_distance.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
gcc -pthread -B /home/yi/anaconda3/envs/open-mmlab/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DMMCV_WITH_CUDA -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/pytorch -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/common -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/common/cuda -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-10.0/include -I/home/yi/anaconda3/envs/open-mmlab/include/python3.7m -c ./mmcv/ops/csrc/pytorch/contour_expand.cpp -o build/temp.linux-x86_64-cpython-37/./mmcv/ops/csrc/pytorch/contour_expand.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
./mmcv/ops/csrc/pytorch/contour_expand.cpp: In function ‘std::vector<std::vector<int> > contour_expand(at::Tensor, at::Tensor, int, int)’:
./mmcv/ops/csrc/pytorch/contour_expand.cpp:101:47: error: expected primary-expression before ‘>’ token
auto ptr_data = kernel_mask.data_ptr<uint8_t>();
^
./mmcv/ops/csrc/pytorch/contour_expand.cpp:101:49: error: expected primary-expression before ‘)’ token
auto ptr_data = kernel_mask.data_ptr<uint8_t>();
^
./mmcv/ops/csrc/pytorch/contour_expand.cpp:104:63: error: expected primary-expression before ‘>’ token
auto data_label_map = internal_kernel_label.data_ptr<int32_t>();
^
./mmcv/ops/csrc/pytorch/contour_expand.cpp:104:65: error: expected primary-expression before ‘)’ token
auto data_label_map = internal_kernel_label.data_ptr<int32_t>();
^
/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/setuptools/command/easy_install.py:147: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
EasyInstallDeprecationWarning,
/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
setuptools.SetuptoolsDeprecationWarning,
error: command '/usr/bin/gcc' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× python setup.py develop did not run successfully.
│ exit code: 1
╰─> [57 lines of output]
running develop
running egg_info
writing mmcv.egg-info/PKG-INFO
writing dependency_links to mmcv.egg-info/dependency_links.txt
writing requirements to mmcv.egg-info/requires.txt
writing top-level names to mmcv.egg-info/top_level.txt
reading manifest file 'mmcv.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
adding license file 'LICENSES.md'
writing manifest file 'mmcv.egg-info/SOURCES.txt'
running build_ext
building 'mmcv._ext' extension
gcc -pthread -B /home/yi/anaconda3/envs/open-mmlab/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DMMCV_WITH_CUDA -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/pytorch -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/common -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/common/cuda -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-10.0/include -I/home/yi/anaconda3/envs/open-mmlab/include/python3.7m -c ./mmcv/ops/csrc/pytorch/active_rotated_filter.cpp -o build/temp.linux-x86_64-cpython-37/./mmcv/ops/csrc/pytorch/active_rotated_filter.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
gcc -pthread -B /home/yi/anaconda3/envs/open-mmlab/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DMMCV_WITH_CUDA -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/pytorch -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/common -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/common/cuda -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-10.0/include -I/home/yi/anaconda3/envs/open-mmlab/include/python3.7m -c ./mmcv/ops/csrc/pytorch/assign_score_withk.cpp -o build/temp.linux-x86_64-cpython-37/./mmcv/ops/csrc/pytorch/assign_score_withk.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
gcc -pthread -B /home/yi/anaconda3/envs/open-mmlab/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DMMCV_WITH_CUDA -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/pytorch -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/common -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/common/cuda -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-10.0/include -I/home/yi/anaconda3/envs/open-mmlab/include/python3.7m -c ./mmcv/ops/csrc/pytorch/ball_query.cpp -o build/temp.linux-x86_64-cpython-37/./mmcv/ops/csrc/pytorch/ball_query.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
gcc -pthread -B /home/yi/anaconda3/envs/open-mmlab/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DMMCV_WITH_CUDA -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/pytorch -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/common -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/common/cuda -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-10.0/include -I/home/yi/anaconda3/envs/open-mmlab/include/python3.7m -c ./mmcv/ops/csrc/pytorch/bbox_overlaps.cpp -o build/temp.linux-x86_64-cpython-37/./mmcv/ops/csrc/pytorch/bbox_overlaps.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
gcc -pthread -B /home/yi/anaconda3/envs/open-mmlab/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DMMCV_WITH_CUDA -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/pytorch -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/common -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/common/cuda -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-10.0/include -I/home/yi/anaconda3/envs/open-mmlab/include/python3.7m -c ./mmcv/ops/csrc/pytorch/bezier_align.cpp -o build/temp.linux-x86_64-cpython-37/./mmcv/ops/csrc/pytorch/bezier_align.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
gcc -pthread -B /home/yi/anaconda3/envs/open-mmlab/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DMMCV_WITH_CUDA -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/pytorch -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/common -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/common/cuda -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-10.0/include -I/home/yi/anaconda3/envs/open-mmlab/include/python3.7m -c ./mmcv/ops/csrc/pytorch/bias_act.cpp -o build/temp.linux-x86_64-cpython-37/./mmcv/ops/csrc/pytorch/bias_act.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
gcc -pthread -B /home/yi/anaconda3/envs/open-mmlab/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DMMCV_WITH_CUDA -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/pytorch -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/common -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/common/cuda -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-10.0/include -I/home/yi/anaconda3/envs/open-mmlab/include/python3.7m -c ./mmcv/ops/csrc/pytorch/border_align.cpp -o build/temp.linux-x86_64-cpython-37/./mmcv/ops/csrc/pytorch/border_align.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
gcc -pthread -B /home/yi/anaconda3/envs/open-mmlab/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DMMCV_WITH_CUDA -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/pytorch -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/common -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/common/cuda -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-10.0/include -I/home/yi/anaconda3/envs/open-mmlab/include/python3.7m -c ./mmcv/ops/csrc/pytorch/box_iou_quadri.cpp -o build/temp.linux-x86_64-cpython-37/./mmcv/ops/csrc/pytorch/box_iou_quadri.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
gcc -pthread -B /home/yi/anaconda3/envs/open-mmlab/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DMMCV_WITH_CUDA -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/pytorch -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/common -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/common/cuda -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-10.0/include -I/home/yi/anaconda3/envs/open-mmlab/include/python3.7m -c ./mmcv/ops/csrc/pytorch/box_iou_rotated.cpp -o build/temp.linux-x86_64-cpython-37/./mmcv/ops/csrc/pytorch/box_iou_rotated.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
gcc -pthread -B /home/yi/anaconda3/envs/open-mmlab/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DMMCV_WITH_CUDA -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/pytorch -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/common -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/common/cuda -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-10.0/include -I/home/yi/anaconda3/envs/open-mmlab/include/python3.7m -c ./mmcv/ops/csrc/pytorch/carafe.cpp -o build/temp.linux-x86_64-cpython-37/./mmcv/ops/csrc/pytorch/carafe.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
gcc -pthread -B /home/yi/anaconda3/envs/open-mmlab/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DMMCV_WITH_CUDA -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/pytorch -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/common -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/common/cuda -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-10.0/include -I/home/yi/anaconda3/envs/open-mmlab/include/python3.7m -c ./mmcv/ops/csrc/pytorch/carafe_naive.cpp -o build/temp.linux-x86_64-cpython-37/./mmcv/ops/csrc/pytorch/carafe_naive.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
gcc -pthread -B /home/yi/anaconda3/envs/open-mmlab/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DMMCV_WITH_CUDA -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/pytorch -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/common -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/common/cuda -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-10.0/include -I/home/yi/anaconda3/envs/open-mmlab/include/python3.7m -c ./mmcv/ops/csrc/pytorch/chamfer_distance.cpp -o build/temp.linux-x86_64-cpython-37/./mmcv/ops/csrc/pytorch/chamfer_distance.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
gcc -pthread -B /home/yi/anaconda3/envs/open-mmlab/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DMMCV_WITH_CUDA -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/pytorch -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/common -I/home/yi/mmskeleton/mmcv/mmcv/ops/csrc/common/cuda -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/TH -I/home/yi/anaconda3/envs/open-mmlab/lib/python3.7/site-packages/torch/include/THC -I/usr/local/cuda-10.0/include -I/home/yi/anaconda3/envs/open-mmlab/include/python3.7m -c ./mmcv/ops/csrc/pytorch/contour_expand.cpp -o build/temp.linux-x86_64-cpython-37/./mmcv/ops/csrc/pytorch/contour_expand.o -std=c++14 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=1
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
./mmcv/ops/csrc/pytorch/contour_expand.cpp: In function ‘std::vector<std::vector
note: This error originates from a subprocess, and is likely not a problem with pip.
Do you know how to handle it, please?
When I am following the steps in GETTING_STARTED.md, in step "d", I get the following error:
./mmcv/ops/csrc/pytorch/contour_expand.cpp: In function ‘std::vector<std::vector<int> > contour_expand(at::Tensor, at::Tensor, int, int)’: ./mmcv/ops/csrc/pytorch/contour_expand.cpp:101:47: error: expected primary-expression before ‘>’ token 101 | auto ptr_data = kernel_mask.data_ptr<uint8_t>(); | ^ ./mmcv/ops/csrc/pytorch/contour_expand.cpp:101:49: error: expected primary-expression before ‘)’ token 101 | auto ptr_data = kernel_mask.data_ptr<uint8_t>(); | ^ ./mmcv/ops/csrc/pytorch/contour_expand.cpp:104:63: error: expected primary-expression before ‘>’ token 104 | auto data_label_map = internal_kernel_label.data_ptr<int32_t>(); | ^ ./mmcv/ops/csrc/pytorch/contour_expand.cpp:104:65: error: expected primary-expression before ‘)’ token 104 | auto data_label_map = internal_kernel_label.data_ptr<int32_t>(); | ^ In file included from /localhome/soa32/anaconda3/envs/skl/lib/python3.7/site-packages/torch/include/c10/core/MemoryFormat.h:5, from /localhome/soa32/anaconda3/envs/skl/lib/python3.7/site-packages/torch/include/ATen/core/Tensor.h:5, from /localhome/soa32/anaconda3/envs/skl/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:2, from /localhome/soa32/anaconda3/envs/skl/lib/python3.7/site-packages/torch/include/ATen/Context.h:4, from /localhome/soa32/anaconda3/envs/skl/lib/python3.7/site-packages/torch/include/ATen/ATen.h:5, from /localhome/soa32/anaconda3/envs/skl/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3, from /tmp/easy_install-b9kflikk/mmcv-2.0.0/mmcv/ops/csrc/common/pytorch_cpp_helper.hpp:3, from ./mmcv/ops/csrc/pytorch/contour_expand.cpp:6: /localhome/soa32/anaconda3/envs/skl/lib/python3.7/site-packages/torch/include/c10/util/ArrayRef.h: In instantiation of ‘constexpr c10::ArrayRef<T>::ArrayRef(const std::initializer_list<_Tp>&) [with T = long int]’: /localhome/soa32/anaconda3/envs/skl/lib/python3.7/site-packages/torch/include/c10/core/TensorImpl.h:1456:34: required from here /localhome/soa32/anaconda3/envs/skl/lib/python3.7/site-packages/torch/include/c10/util/ArrayRef.h:103:39: warning: initializing ‘c10::ArrayRef<long int>::Data’ from ‘std::initializer_list<long int>::begin’ does not extend the lifetime of the underlying array [-Winit-list-lifetime] 103 | : Data(Vec.begin() == Vec.end() ? static_cast<T*>(nullptr) : Vec.begin()), /localhome/soa32/anaconda3/envs/skl/lib/python3.7/site-packages/torch/include/c10/util/ArrayRef.h: In instantiation of ‘constexpr c10::ArrayRef<T>::ArrayRef(const std::initializer_list<_Tp>&) [with T = unsigned char]’: /localhome/soa32/anaconda3/envs/skl/lib/python3.7/site-packages/torch/include/ATen/NativeFunctions.h:47:1: required from here /localhome/soa32/anaconda3/envs/skl/lib/python3.7/site-packages/torch/include/c10/util/ArrayRef.h:103:39: warning: initializing ‘c10::ArrayRef<unsigned char>::Data’ from ‘std::initializer_list<unsigned char>::begin’ does not extend the lifetime of the underlying array [-Winit-list-lifetime] /localhome/soa32/anaconda3/envs/skl/lib/python3.7/site-packages/torch/include/c10/util/ArrayRef.h: In instantiation of ‘constexpr c10::ArrayRef<T>::ArrayRef(const std::initializer_list<_Tp>&) [with T = signed char]’: /localhome/soa32/anaconda3/envs/skl/lib/python3.7/site-packages/torch/include/ATen/NativeFunctions.h:47:1: required from here /localhome/soa32/anaconda3/envs/skl/lib/python3.7/site-packages/torch/include/c10/util/ArrayRef.h:103:39: warning: initializing ‘c10::ArrayRef<signed char>::Data’ from ‘std::initializer_list<signed char>::begin’ does not extend the lifetime of the underlying array [-Winit-list-lifetime] /localhome/soa32/anaconda3/envs/skl/lib/python3.7/site-packages/torch/include/c10/util/ArrayRef.h: In instantiation of ‘constexpr c10::ArrayRef<T>::ArrayRef(const std::initializer_list<_Tp>&) [with T = short int]’: /localhome/soa32/anaconda3/envs/skl/lib/python3.7/site-packages/torch/include/ATen/NativeFunctions.h:47:1: required from here /localhome/soa32/anaconda3/envs/skl/lib/python3.7/site-packages/torch/include/c10/util/ArrayRef.h:103:39: warning: initializing ‘c10::ArrayRef<short int>::Data’ from ‘std::initializer_list<short int>::begin’ does not extend the lifetime of the underlying array [-Winit-list-lifetime] /localhome/soa32/anaconda3/envs/skl/lib/python3.7/site-packages/torch/include/c10/util/ArrayRef.h: In instantiation of ‘constexpr c10::ArrayRef<T>::ArrayRef(const std::initializer_list<_Tp>&) [with T = int]’: /localhome/soa32/anaconda3/envs/skl/lib/python3.7/site-packages/torch/include/ATen/NativeFunctions.h:47:1: required from here /localhome/soa32/anaconda3/envs/skl/lib/python3.7/site-packages/torch/include/c10/util/ArrayRef.h:103:39: warning: initializing ‘c10::ArrayRef<int>::Data’ from ‘std::initializer_list<int>::begin’ does not extend the lifetime of the underlying array [-Winit-list-lifetime] /localhome/soa32/anaconda3/envs/skl/lib/python3.7/site-packages/torch/include/c10/util/ArrayRef.h: In instantiation of ‘constexpr c10::ArrayRef<T>::ArrayRef(const std::initializer_list<_Tp>&) [with T = float]’: /localhome/soa32/anaconda3/envs/skl/lib/python3.7/site-packages/torch/include/ATen/NativeFunctions.h:47:1: required from here /localhome/soa32/anaconda3/envs/skl/lib/python3.7/site-packages/torch/include/c10/util/ArrayRef.h:103:39: warning: initializing ‘c10::ArrayRef<float>::Data’ from ‘std::initializer_list<float>::begin’ does not extend the lifetime of the underlying array [-Winit-list-lifetime] /localhome/soa32/anaconda3/envs/skl/lib/python3.7/site-packages/torch/include/c10/util/ArrayRef.h: In instantiation of ‘constexpr c10::ArrayRef<T>::ArrayRef(const std::initializer_list<_Tp>&) [with T = double]’: /localhome/soa32/anaconda3/envs/skl/lib/python3.7/site-packages/torch/include/ATen/NativeFunctions.h:47:1: required from here /localhome/soa32/anaconda3/envs/skl/lib/python3.7/site-packages/torch/include/c10/util/ArrayRef.h:103:39: warning: initializing ‘c10::ArrayRef<double>::Data’ from ‘std::initializer_list<double>::begin’ does not extend the lifetime of the underlying array [-Winit-list-lifetime] error: Setup script exited with error: command '/usr/bin/gcc' failed with exit code 1
I tried multiple things, but it does not get resolved. Does anyone know how to resolve this error?