Compilation error
See original GitHub issuehas anyone met the following compilation error?
Compiling mmdet/ops/nms/src/soft_nms_cpu.pyx because it changed.
[1/1] Cythonizing mmdet/ops/nms/src/soft_nms_cpu.pyx
running develop
running egg_info
creating mmdet.egg-info
writing dependency_links to mmdet.egg-info/dependency_links.txt
writing top-level names to mmdet.egg-info/top_level.txt
writing requirements to mmdet.egg-info/requires.txt
writing mmdet.egg-info/PKG-INFO
writing manifest file 'mmdet.egg-info/SOURCES.txt'
reading manifest file 'mmdet.egg-info/SOURCES.txt'
writing manifest file 'mmdet.egg-info/SOURCES.txt'
running build_ext
/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/utils/cpp_extension.py:191: UserWarning:
!! WARNING !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Your compiler (g++ 4.8) may be ABI-incompatible with PyTorch!
Please use a compiler that is ABI-compatible with GCC 4.9 and above.
See https://gcc.gnu.org/onlinedocs/libstdc++/manual/abi.html.
See https://gist.github.com/goldsborough/d466f43e8ffc948ff92de7486c5216d6
for instructions on how to install GCC 4.9 or higher.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! WARNING !!
warnings.warn(ABI_INCOMPATIBILITY_WARNING.format(compiler))
building 'mmdet.ops.nms.soft_nms_cpu' extension
creating build
creating build/temp.linux-x86_64-3.5
creating build/temp.linux-x86_64-3.5/mmdet
creating build/temp.linux-x86_64-3.5/mmdet/ops
creating build/temp.linux-x86_64-3.5/mmdet/ops/nms
creating build/temp.linux-x86_64-3.5/mmdet/ops/nms/src
gcc -pthread -B /home/wangtao/anaconda2/envs/pytorch1.0py3.5/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/numpy/core/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/include/python3.5m -c mmdet/ops/nms/src/soft_nms_cpu.cpp -o build/temp.linux-x86_64-3.5/mmdet/ops/nms/src/soft_nms_cpu.o -Wno-unused-function -Wno-write-strings -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=soft_nms_cpu -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
In file included from /home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/numpy/core/include/numpy/ndarraytypes.h:1816:0,
from /home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/numpy/core/include/numpy/ndarrayobject.h:18,
from /home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from mmdet/ops/nms/src/soft_nms_cpu.cpp:638:
/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it by " \
^
mmdet/ops/nms/src/soft_nms_cpu.cpp: In function ‘PyObject* __pyx_pf_5mmdet_3ops_3nms_12soft_nms_cpu_soft_nms_cpu(PyObject*, PyArrayObject*, float, unsigned int, float, float)’:
mmdet/ops/nms/src/soft_nms_cpu.cpp:2495:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
__pyx_t_10 = ((__pyx_v_pos < __pyx_v_N) != 0);
^
mmdet/ops/nms/src/soft_nms_cpu.cpp:3006:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
__pyx_t_10 = ((__pyx_v_pos < __pyx_v_N) != 0);
^
creating build/lib.linux-x86_64-3.5
creating build/lib.linux-x86_64-3.5/mmdet
creating build/lib.linux-x86_64-3.5/mmdet/ops
creating build/lib.linux-x86_64-3.5/mmdet/ops/nms
g++ -pthread -shared -L/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib -B /home/wangtao/anaconda2/envs/pytorch1.0py3.5/compiler_compat -Wl,-rpath=/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib,--no-as-needed build/temp.linux-x86_64-3.5/mmdet/ops/nms/src/soft_nms_cpu.o -o build/lib.linux-x86_64-3.5/mmdet/ops/nms/soft_nms_cpu.cpython-35m-x86_64-linux-gnu.so
building 'mmdet.ops.roi_align.roi_align_cuda' extension
creating build/temp.linux-x86_64-3.5/mmdet/ops/roi_align
creating build/temp.linux-x86_64-3.5/mmdet/ops/roi_align/src
gcc -pthread -B /home/wangtao/anaconda2/envs/pytorch1.0py3.5/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/torch/csrc/api/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/TH -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/THC -I/home/wangtao/cuda-9.0-cudnn72/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/include/python3.5m -c mmdet/ops/roi_align/src/roi_align_cuda.cpp -o build/temp.linux-x86_64-3.5/mmdet/ops/roi_align/src/roi_align_cuda.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=roi_align_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
/home/wangtao/cuda-9.0-cudnn72/bin/nvcc -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/torch/csrc/api/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/TH -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/THC -I/home/wangtao/cuda-9.0-cudnn72/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/include/python3.5m -c mmdet/ops/roi_align/src/roi_align_kernel.cu -o build/temp.linux-x86_64-3.5/mmdet/ops/roi_align/src/roi_align_kernel.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --compiler-options '-fPIC' -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=roi_align_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
creating build/lib.linux-x86_64-3.5/mmdet/ops/roi_align
g++ -pthread -shared -L/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib -B /home/wangtao/anaconda2/envs/pytorch1.0py3.5/compiler_compat -Wl,-rpath=/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib,--no-as-needed build/temp.linux-x86_64-3.5/mmdet/ops/roi_align/src/roi_align_cuda.o build/temp.linux-x86_64-3.5/mmdet/ops/roi_align/src/roi_align_kernel.o -L/home/wangtao/cuda-9.0-cudnn72/lib64 -lcudart -o build/lib.linux-x86_64-3.5/mmdet/ops/roi_align/roi_align_cuda.cpython-35m-x86_64-linux-gnu.so
building 'mmdet.ops.roi_pool.roi_pool_cuda' extension
creating build/temp.linux-x86_64-3.5/mmdet/ops/roi_pool
creating build/temp.linux-x86_64-3.5/mmdet/ops/roi_pool/src
gcc -pthread -B /home/wangtao/anaconda2/envs/pytorch1.0py3.5/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/torch/csrc/api/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/TH -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/THC -I/home/wangtao/cuda-9.0-cudnn72/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/include/python3.5m -c mmdet/ops/roi_pool/src/roi_pool_cuda.cpp -o build/temp.linux-x86_64-3.5/mmdet/ops/roi_pool/src/roi_pool_cuda.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=roi_pool_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
/home/wangtao/cuda-9.0-cudnn72/bin/nvcc -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/torch/csrc/api/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/TH -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/THC -I/home/wangtao/cuda-9.0-cudnn72/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/include/python3.5m -c mmdet/ops/roi_pool/src/roi_pool_kernel.cu -o build/temp.linux-x86_64-3.5/mmdet/ops/roi_pool/src/roi_pool_kernel.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --compiler-options '-fPIC' -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=roi_pool_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
creating build/lib.linux-x86_64-3.5/mmdet/ops/roi_pool
g++ -pthread -shared -L/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib -B /home/wangtao/anaconda2/envs/pytorch1.0py3.5/compiler_compat -Wl,-rpath=/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib,--no-as-needed build/temp.linux-x86_64-3.5/mmdet/ops/roi_pool/src/roi_pool_cuda.o build/temp.linux-x86_64-3.5/mmdet/ops/roi_pool/src/roi_pool_kernel.o -L/home/wangtao/cuda-9.0-cudnn72/lib64 -lcudart -o build/lib.linux-x86_64-3.5/mmdet/ops/roi_pool/roi_pool_cuda.cpython-35m-x86_64-linux-gnu.so
building 'mmdet.ops.nms.nms_cpu' extension
gcc -pthread -B /home/wangtao/anaconda2/envs/pytorch1.0py3.5/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/torch/csrc/api/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/TH -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/THC -I/home/wangtao/cuda-9.0-cudnn72/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/include/python3.5m -c mmdet/ops/nms/src/nms_cpu.cpp -o build/temp.linux-x86_64-3.5/mmdet/ops/nms/src/nms_cpu.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=nms_cpu -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
g++ -pthread -shared -L/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib -B /home/wangtao/anaconda2/envs/pytorch1.0py3.5/compiler_compat -Wl,-rpath=/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib,--no-as-needed build/temp.linux-x86_64-3.5/mmdet/ops/nms/src/nms_cpu.o -L/home/wangtao/cuda-9.0-cudnn72/lib64 -lcudart -o build/lib.linux-x86_64-3.5/mmdet/ops/nms/nms_cpu.cpython-35m-x86_64-linux-gnu.so
building 'mmdet.ops.nms.nms_cuda' extension
gcc -pthread -B /home/wangtao/anaconda2/envs/pytorch1.0py3.5/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/torch/csrc/api/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/TH -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/THC -I/home/wangtao/cuda-9.0-cudnn72/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/include/python3.5m -c mmdet/ops/nms/src/nms_cuda.cpp -o build/temp.linux-x86_64-3.5/mmdet/ops/nms/src/nms_cuda.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=nms_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
/home/wangtao/cuda-9.0-cudnn72/bin/nvcc -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/torch/csrc/api/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/TH -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/THC -I/home/wangtao/cuda-9.0-cudnn72/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/include/python3.5m -c mmdet/ops/nms/src/nms_kernel.cu -o build/temp.linux-x86_64-3.5/mmdet/ops/nms/src/nms_kernel.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --compiler-options '-fPIC' -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=nms_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
g++ -pthread -shared -L/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib -B /home/wangtao/anaconda2/envs/pytorch1.0py3.5/compiler_compat -Wl,-rpath=/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib,--no-as-needed build/temp.linux-x86_64-3.5/mmdet/ops/nms/src/nms_cuda.o build/temp.linux-x86_64-3.5/mmdet/ops/nms/src/nms_kernel.o -L/home/wangtao/cuda-9.0-cudnn72/lib64 -lcudart -o build/lib.linux-x86_64-3.5/mmdet/ops/nms/nms_cuda.cpython-35m-x86_64-linux-gnu.so
building 'mmdet.ops.dcn.deform_conv_cuda' extension
creating build/temp.linux-x86_64-3.5/mmdet/ops/dcn
creating build/temp.linux-x86_64-3.5/mmdet/ops/dcn/src
gcc -pthread -B /home/wangtao/anaconda2/envs/pytorch1.0py3.5/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/torch/csrc/api/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/TH -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/THC -I/home/wangtao/cuda-9.0-cudnn72/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/include/python3.5m -c mmdet/ops/dcn/src/deform_conv_cuda.cpp -o build/temp.linux-x86_64-3.5/mmdet/ops/dcn/src/deform_conv_cuda.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=deform_conv_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
/home/wangtao/cuda-9.0-cudnn72/bin/nvcc -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/torch/csrc/api/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/TH -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/THC -I/home/wangtao/cuda-9.0-cudnn72/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/include/python3.5m -c mmdet/ops/dcn/src/deform_conv_cuda_kernel.cu -o build/temp.linux-x86_64-3.5/mmdet/ops/dcn/src/deform_conv_cuda_kernel.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --compiler-options '-fPIC' -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=deform_conv_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
creating build/lib.linux-x86_64-3.5/mmdet/ops/dcn
g++ -pthread -shared -L/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib -B /home/wangtao/anaconda2/envs/pytorch1.0py3.5/compiler_compat -Wl,-rpath=/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib,--no-as-needed build/temp.linux-x86_64-3.5/mmdet/ops/dcn/src/deform_conv_cuda.o build/temp.linux-x86_64-3.5/mmdet/ops/dcn/src/deform_conv_cuda_kernel.o -L/home/wangtao/cuda-9.0-cudnn72/lib64 -lcudart -o build/lib.linux-x86_64-3.5/mmdet/ops/dcn/deform_conv_cuda.cpython-35m-x86_64-linux-gnu.so
building 'mmdet.ops.dcn.deform_pool_cuda' extension
gcc -pthread -B /home/wangtao/anaconda2/envs/pytorch1.0py3.5/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/torch/csrc/api/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/TH -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/THC -I/home/wangtao/cuda-9.0-cudnn72/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/include/python3.5m -c mmdet/ops/dcn/src/deform_pool_cuda.cpp -o build/temp.linux-x86_64-3.5/mmdet/ops/dcn/src/deform_pool_cuda.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=deform_pool_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
/home/wangtao/cuda-9.0-cudnn72/bin/nvcc -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/torch/csrc/api/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/TH -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/THC -I/home/wangtao/cuda-9.0-cudnn72/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/include/python3.5m -c mmdet/ops/dcn/src/deform_pool_cuda_kernel.cu -o build/temp.linux-x86_64-3.5/mmdet/ops/dcn/src/deform_pool_cuda_kernel.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --compiler-options '-fPIC' -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=deform_pool_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
g++ -pthread -shared -L/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib -B /home/wangtao/anaconda2/envs/pytorch1.0py3.5/compiler_compat -Wl,-rpath=/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib,--no-as-needed build/temp.linux-x86_64-3.5/mmdet/ops/dcn/src/deform_pool_cuda.o build/temp.linux-x86_64-3.5/mmdet/ops/dcn/src/deform_pool_cuda_kernel.o -L/home/wangtao/cuda-9.0-cudnn72/lib64 -lcudart -o build/lib.linux-x86_64-3.5/mmdet/ops/dcn/deform_pool_cuda.cpython-35m-x86_64-linux-gnu.so
building 'mmdet.ops.sigmoid_focal_loss.sigmoid_focal_loss_cuda' extension
creating build/temp.linux-x86_64-3.5/mmdet/ops/sigmoid_focal_loss
creating build/temp.linux-x86_64-3.5/mmdet/ops/sigmoid_focal_loss/src
gcc -pthread -B /home/wangtao/anaconda2/envs/pytorch1.0py3.5/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/torch/csrc/api/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/TH -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/THC -I/home/wangtao/cuda-9.0-cudnn72/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/include/python3.5m -c mmdet/ops/sigmoid_focal_loss/src/sigmoid_focal_loss.cpp -o build/temp.linux-x86_64-3.5/mmdet/ops/sigmoid_focal_loss/src/sigmoid_focal_loss.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=sigmoid_focal_loss_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
mmdet/ops/sigmoid_focal_loss/src/sigmoid_focal_loss.cpp: In function ‘at::Tensor SigmoidFocalLoss_forward(const at::Tensor&, const at::Tensor&, int, float, float)’:
mmdet/ops/sigmoid_focal_loss/src/sigmoid_focal_loss.cpp:25:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
mmdet/ops/sigmoid_focal_loss/src/sigmoid_focal_loss.cpp: In function ‘at::Tensor SigmoidFocalLoss_backward(const at::Tensor&, const at::Tensor&, const at::Tensor&, int, float, float)’:
mmdet/ops/sigmoid_focal_loss/src/sigmoid_focal_loss.cpp:36:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
/home/wangtao/cuda-9.0-cudnn72/bin/nvcc -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/torch/csrc/api/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/TH -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/THC -I/home/wangtao/cuda-9.0-cudnn72/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/include/python3.5m -c mmdet/ops/sigmoid_focal_loss/src/sigmoid_focal_loss_cuda.cu -o build/temp.linux-x86_64-3.5/mmdet/ops/sigmoid_focal_loss/src/sigmoid_focal_loss_cuda.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --compiler-options '-fPIC' -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=sigmoid_focal_loss_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
creating build/lib.linux-x86_64-3.5/mmdet/ops/sigmoid_focal_loss
g++ -pthread -shared -L/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib -B /home/wangtao/anaconda2/envs/pytorch1.0py3.5/compiler_compat -Wl,-rpath=/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib,--no-as-needed build/temp.linux-x86_64-3.5/mmdet/ops/sigmoid_focal_loss/src/sigmoid_focal_loss.o build/temp.linux-x86_64-3.5/mmdet/ops/sigmoid_focal_loss/src/sigmoid_focal_loss_cuda.o -L/home/wangtao/cuda-9.0-cudnn72/lib64 -lcudart -o build/lib.linux-x86_64-3.5/mmdet/ops/sigmoid_focal_loss/sigmoid_focal_loss_cuda.cpython-35m-x86_64-linux-gnu.so
building 'mmdet.ops.masked_conv.masked_conv2d_cuda' extension
creating build/temp.linux-x86_64-3.5/mmdet/ops/masked_conv
creating build/temp.linux-x86_64-3.5/mmdet/ops/masked_conv/src
gcc -pthread -B /home/wangtao/anaconda2/envs/pytorch1.0py3.5/compiler_compat -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/torch/csrc/api/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/TH -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/THC -I/home/wangtao/cuda-9.0-cudnn72/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/include/python3.5m -c mmdet/ops/masked_conv/src/masked_conv2d_cuda.cpp -o build/temp.linux-x86_64-3.5/mmdet/ops/masked_conv/src/masked_conv2d_cuda.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=masked_conv2d_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
/home/wangtao/cuda-9.0-cudnn72/bin/nvcc -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/torch/csrc/api/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/TH -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch/lib/include/THC -I/home/wangtao/cuda-9.0-cudnn72/include -I/home/wangtao/anaconda2/envs/pytorch1.0py3.5/include/python3.5m -c mmdet/ops/masked_conv/src/masked_conv2d_kernel.cu -o build/temp.linux-x86_64-3.5/mmdet/ops/masked_conv/src/masked_conv2d_kernel.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --compiler-options '-fPIC' -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=masked_conv2d_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
creating build/lib.linux-x86_64-3.5/mmdet/ops/masked_conv
g++ -pthread -shared -L/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib -B /home/wangtao/anaconda2/envs/pytorch1.0py3.5/compiler_compat -Wl,-rpath=/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib,--no-as-needed build/temp.linux-x86_64-3.5/mmdet/ops/masked_conv/src/masked_conv2d_cuda.o build/temp.linux-x86_64-3.5/mmdet/ops/masked_conv/src/masked_conv2d_kernel.o -L/home/wangtao/cuda-9.0-cudnn72/lib64 -lcudart -o build/lib.linux-x86_64-3.5/mmdet/ops/masked_conv/masked_conv2d_cuda.cpython-35m-x86_64-linux-gnu.so
copying build/lib.linux-x86_64-3.5/mmdet/ops/nms/soft_nms_cpu.cpython-35m-x86_64-linux-gnu.so -> mmdet/ops/nms
copying build/lib.linux-x86_64-3.5/mmdet/ops/roi_align/roi_align_cuda.cpython-35m-x86_64-linux-gnu.so -> mmdet/ops/roi_align
copying build/lib.linux-x86_64-3.5/mmdet/ops/roi_pool/roi_pool_cuda.cpython-35m-x86_64-linux-gnu.so -> mmdet/ops/roi_pool
copying build/lib.linux-x86_64-3.5/mmdet/ops/nms/nms_cpu.cpython-35m-x86_64-linux-gnu.so -> mmdet/ops/nms
copying build/lib.linux-x86_64-3.5/mmdet/ops/nms/nms_cuda.cpython-35m-x86_64-linux-gnu.so -> mmdet/ops/nms
copying build/lib.linux-x86_64-3.5/mmdet/ops/dcn/deform_conv_cuda.cpython-35m-x86_64-linux-gnu.so -> mmdet/ops/dcn
copying build/lib.linux-x86_64-3.5/mmdet/ops/dcn/deform_pool_cuda.cpython-35m-x86_64-linux-gnu.so -> mmdet/ops/dcn
copying build/lib.linux-x86_64-3.5/mmdet/ops/sigmoid_focal_loss/sigmoid_focal_loss_cuda.cpython-35m-x86_64-linux-gnu.so -> mmdet/ops/sigmoid_focal_loss
copying build/lib.linux-x86_64-3.5/mmdet/ops/masked_conv/masked_conv2d_cuda.cpython-35m-x86_64-linux-gnu.so -> mmdet/ops/masked_conv
Creating /home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/mmdet.egg-link (link to .)
Adding mmdet 0.6.0+5b9c5dd to easy-install.pth file
Installed /home/wangtao/prj/mmdetection
Processing dependencies for mmdet==0.6.0+5b9c5dd
Searching for torch>=1.1
Reading https://pypi.org/simple/torch/
Downloading https://files.pythonhosted.org/packages/56/9b/a241f6e3d1df013e65e0b03b17e46bd9517036cd9ba9d8cb9384df396e3b/torch-1.1.0-cp35-cp35m-manylinux1_x86_64.whl#sha256=d7d48a3472688debf86ba9ba61b570d6ed0529413dacaa8408b84db878079395
Best match: torch 1.1.0
Processing torch-1.1.0-cp35-cp35m-manylinux1_x86_64.whl
Installing torch-1.1.0-cp35-cp35m-manylinux1_x86_64.whl to /home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages
writing requirements to /home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch-1.1.0-py3.5-linux-x86_64.egg/EGG-INFO/requires.txt
Adding torch 1.1.0 to easy-install.pth file
Installing convert-onnx-to-caffe2 script to /home/wangtao/anaconda2/envs/pytorch1.0py3.5/bin
Installing convert-caffe2-to-onnx script to /home/wangtao/anaconda2/envs/pytorch1.0py3.5/bin
Installed /home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/torch-1.1.0-py3.5-linux-x86_64.egg
Searching for pycocotools
Reading https://pypi.org/simple/pycocotools/
Downloading https://files.pythonhosted.org/packages/96/84/9a07b1095fd8555ba3f3d519517c8743c2554a245f9476e5e39869f948d2/pycocotools-2.0.0.tar.gz#sha256=cbb8c2fbab80450a67ee9879c63b0bc8a69e58dd9a0153d55de404c0d383a94b
Best match: pycocotools 2.0.0
Processing pycocotools-2.0.0.tar.gz
Writing /tmp/easy_install-2bt7w16b/pycocotools-2.0.0/setup.cfg
Running pycocotools-2.0.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-2bt7w16b/pycocotools-2.0.0/egg-dist-tmp-b5d5jkcl
Compiling pycocotools/_mask.pyx because it depends on /home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Includes/numpy/__init__.pxd.
[1/1] Cythonizing pycocotools/_mask.pyx
/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /tmp/easy_install-2bt7w16b/pycocotools-2.0.0/pycocotools/_mask.pyx
tree = Parsing.p_module(s, pxd, full_module_name)
Traceback (most recent call last):
File "Cython/Compiler/Visitor.py", line 180, in Cython.Compiler.Visitor.TreeVisitor._visit
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/ParseTreeTransforms.py", line 2215, in visit_FuncDefNode
node.body = node.body.analyse_expressions(node.local_scope)
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Nodes.py", line 436, in analyse_expressions
for stat in self.stats]
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Nodes.py", line 436, in <listcomp>
for stat in self.stats]
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Nodes.py", line 6675, in analyse_expressions
self.item = self.item.coerce_to(self.target.type, env)
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/ExprNodes.py", line 952, in coerce_to
src = PyTypeTestNode(src, dst_type, env)
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/ExprNodes.py", line 12999, in __init__
assert dst_type.is_extension_type or dst_type.is_builtin_type, "PyTypeTest on non extension type"
AssertionError: PyTypeTest on non extension type
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/setuptools/sandbox.py", line 154, in save_modules
yield saved
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/setuptools/sandbox.py", line 195, in setup_context
yield
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/setuptools/sandbox.py", line 250, in run_setup
_execfile(setup_script, ns)
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/setuptools/sandbox.py", line 45, in _execfile
exec(code, globals, locals)
File "/tmp/easy_install-2bt7w16b/pycocotools-2.0.0/setup.py", line 29, in <module>
def _minimal_ext_cmd(cmd):
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Build/Dependencies.py", line 1096, in cythonize
cythonize_one(*args)
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Build/Dependencies.py", line 1202, in cythonize_one
result = compile_single(pyx_file, options, full_module_name=full_module_name)
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Main.py", line 727, in compile_single
return run_pipeline(source, options, full_module_name)
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Main.py", line 515, in run_pipeline
err, enddata = Pipeline.run_pipeline(pipeline, source)
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Pipeline.py", line 355, in run_pipeline
data = run(phase, data)
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Pipeline.py", line 335, in run
return phase(data)
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/ParseTreeTransforms.py", line 1597, in __call__
return super_class.__call__(root)
File "Cython/Compiler/Visitor.py", line 355, in Cython.Compiler.Visitor.EnvTransform.__call__
File "Cython/Compiler/Visitor.py", line 302, in Cython.Compiler.Visitor.CythonTransform.__call__
File "Cython/Compiler/Visitor.py", line 284, in Cython.Compiler.Visitor.VisitorTransform.__call__
File "Cython/Compiler/Visitor.py", line 182, in Cython.Compiler.Visitor.TreeVisitor._visit
File "Cython/Compiler/Visitor.py", line 180, in Cython.Compiler.Visitor.TreeVisitor._visit
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/ParseTreeTransforms.py", line 1607, in visit_ModuleNode
node.analyse_declarations(self.current_env())
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/ModuleNode.py", line 124, in analyse_declarations
self.body.analyse_declarations(env)
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Nodes.py", line 431, in analyse_declarations
stat.analyse_declarations(env)
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Nodes.py", line 431, in analyse_declarations
stat.analyse_declarations(env)
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Nodes.py", line 7914, in analyse_declarations
self.module_name, self.pos, relative_level=0 if self.is_absolute else -1)
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Symtab.py", line 1270, in find_module
module_name, relative_to=relative_to, pos=pos, absolute_fallback=absolute_fallback)
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Main.py", line 232, in find_module
err, result = self.process_pxd(source_desc, scope, qualified_name)
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Main.py", line 146, in process_pxd
result = Pipeline.run_pipeline(pipeline, source_desc)
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Pipeline.py", line 355, in run_pipeline
data = run(phase, data)
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Pipeline.py", line 335, in run
return phase(data)
File "Cython/Compiler/Visitor.py", line 302, in Cython.Compiler.Visitor.CythonTransform.__call__
File "Cython/Compiler/Visitor.py", line 284, in Cython.Compiler.Visitor.VisitorTransform.__call__
File "Cython/Compiler/Visitor.py", line 182, in Cython.Compiler.Visitor.TreeVisitor._visit
File "Cython/Compiler/Visitor.py", line 180, in Cython.Compiler.Visitor.TreeVisitor._visit
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/ParseTreeTransforms.py", line 2210, in visit_ModuleNode
self.visitchildren(node)
File "Cython/Compiler/Visitor.py", line 247, in Cython.Compiler.Visitor.VisitorTransform.visitchildren
File "Cython/Compiler/Visitor.py", line 251, in Cython.Compiler.Visitor.VisitorTransform.visitchildren
File "Cython/Compiler/Visitor.py", line 260, in Cython.Compiler.Visitor.VisitorTransform._process_children
File "Cython/Compiler/Visitor.py", line 221, in Cython.Compiler.Visitor.TreeVisitor._visitchildren
File "Cython/Compiler/Visitor.py", line 193, in Cython.Compiler.Visitor.TreeVisitor._visitchild
File "Cython/Compiler/Visitor.py", line 182, in Cython.Compiler.Visitor.TreeVisitor._visit
File "Cython/Compiler/Visitor.py", line 180, in Cython.Compiler.Visitor.TreeVisitor._visit
File "Cython/Compiler/Visitor.py", line 312, in Cython.Compiler.Visitor.CythonTransform.visit_Node
File "Cython/Compiler/Visitor.py", line 260, in Cython.Compiler.Visitor.VisitorTransform._process_children
File "Cython/Compiler/Visitor.py", line 219, in Cython.Compiler.Visitor.TreeVisitor._visitchildren
File "Cython/Compiler/Visitor.py", line 193, in Cython.Compiler.Visitor.TreeVisitor._visitchild
File "Cython/Compiler/Visitor.py", line 182, in Cython.Compiler.Visitor.TreeVisitor._visit
File "Cython/Compiler/Visitor.py", line 180, in Cython.Compiler.Visitor.TreeVisitor._visit
File "Cython/Compiler/Visitor.py", line 312, in Cython.Compiler.Visitor.CythonTransform.visit_Node
File "Cython/Compiler/Visitor.py", line 260, in Cython.Compiler.Visitor.VisitorTransform._process_children
File "Cython/Compiler/Visitor.py", line 219, in Cython.Compiler.Visitor.TreeVisitor._visitchildren
File "Cython/Compiler/Visitor.py", line 193, in Cython.Compiler.Visitor.TreeVisitor._visitchild
File "Cython/Compiler/Visitor.py", line 188, in Cython.Compiler.Visitor.TreeVisitor._visit
File "Cython/Compiler/Visitor.py", line 148, in Cython.Compiler.Visitor.TreeVisitor._raise_compiler_error
Cython.Compiler.Errors.CompilerCrash:
Error compiling Cython file:
------------------------------------------------------------
...
if PyDataType_HASSUBARRAY(d):
return <tuple>d.subarray.shape
else:
return ()
cdef inline char* _util_dtypestring(dtype descr, char* f, char* end, int* offset) except NULL:
^
------------------------------------------------------------
/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Includes/numpy/__init__.pxd:842:5: Compiler crash in AnalyseExpressionsTransform
ModuleNode.body = StatListNode(__init__.pxd:17:0)
StatListNode.stats[41] = StatListNode(__init__.pxd:842:5)
StatListNode.stats[0] = CFuncDefNode(__init__.pxd:842:5,
args = [...]/4,
inline_in_pxd = True,
modifiers = [...]/1,
visibility = 'private')
Compiler crash traceback from this point on:
File "Cython/Compiler/Visitor.py", line 180, in Cython.Compiler.Visitor.TreeVisitor._visit
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/ParseTreeTransforms.py", line 2215, in visit_FuncDefNode
node.body = node.body.analyse_expressions(node.local_scope)
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Nodes.py", line 436, in analyse_expressions
for stat in self.stats]
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Nodes.py", line 436, in <listcomp>
for stat in self.stats]
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Nodes.py", line 6675, in analyse_expressions
self.item = self.item.coerce_to(self.target.type, env)
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/ExprNodes.py", line 952, in coerce_to
src = PyTypeTestNode(src, dst_type, env)
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/ExprNodes.py", line 12999, in __init__
assert dst_type.is_extension_type or dst_type.is_builtin_type, "PyTypeTest on non extension type"
AssertionError: PyTypeTest on non extension type
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "setup.py", line 199, in <module>
zip_safe=False)
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/setuptools/__init__.py", line 140, in setup
return distutils.core.setup(**attrs)
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/distutils/core.py", line 148, in setup
dist.run_commands()
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/setuptools/command/develop.py", line 38, in run
self.install_for_development()
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/setuptools/command/develop.py", line 154, in install_for_development
self.process_distribution(None, self.dist, not self.no_deps)
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/setuptools/command/easy_install.py", line 749, in process_distribution
[requirement], self.local_index, self.easy_install
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/pkg_resources/__init__.py", line 777, in resolve
replace_conflicting=replace_conflicting
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/pkg_resources/__init__.py", line 1060, in best_match
return self.obtain(req, installer)
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/pkg_resources/__init__.py", line 1072, in obtain
return installer(requirement)
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/setuptools/command/easy_install.py", line 676, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/setuptools/command/easy_install.py", line 702, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/setuptools/command/easy_install.py", line 887, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/setuptools/command/easy_install.py", line 1155, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/setuptools/command/easy_install.py", line 1141, in run_setup
run_setup(setup_script, args)
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/setuptools/sandbox.py", line 253, in run_setup
raise
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/contextlib.py", line 77, in __exit__
self.gen.throw(type, value, traceback)
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/setuptools/sandbox.py", line 195, in setup_context
yield
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/contextlib.py", line 77, in __exit__
self.gen.throw(type, value, traceback)
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/setuptools/sandbox.py", line 166, in save_modules
saved_exc.resume()
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/setuptools/sandbox.py", line 141, in resume
six.reraise(type, exc, self._tb)
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/setuptools/_vendor/six.py", line 685, in reraise
raise value.with_traceback(tb)
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/setuptools/sandbox.py", line 154, in save_modules
yield saved
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/setuptools/sandbox.py", line 195, in setup_context
yield
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/setuptools/sandbox.py", line 250, in run_setup
_execfile(setup_script, ns)
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/setuptools/sandbox.py", line 45, in _execfile
exec(code, globals, locals)
File "/tmp/easy_install-2bt7w16b/pycocotools-2.0.0/setup.py", line 29, in <module>
def _minimal_ext_cmd(cmd):
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Build/Dependencies.py", line 1096, in cythonize
cythonize_one(*args)
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Build/Dependencies.py", line 1202, in cythonize_one
result = compile_single(pyx_file, options, full_module_name=full_module_name)
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Main.py", line 727, in compile_single
return run_pipeline(source, options, full_module_name)
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Main.py", line 515, in run_pipeline
err, enddata = Pipeline.run_pipeline(pipeline, source)
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Pipeline.py", line 355, in run_pipeline
data = run(phase, data)
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Pipeline.py", line 335, in run
return phase(data)
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/ParseTreeTransforms.py", line 1597, in __call__
return super_class.__call__(root)
File "Cython/Compiler/Visitor.py", line 355, in Cython.Compiler.Visitor.EnvTransform.__call__
File "Cython/Compiler/Visitor.py", line 302, in Cython.Compiler.Visitor.CythonTransform.__call__
File "Cython/Compiler/Visitor.py", line 284, in Cython.Compiler.Visitor.VisitorTransform.__call__
File "Cython/Compiler/Visitor.py", line 182, in Cython.Compiler.Visitor.TreeVisitor._visit
File "Cython/Compiler/Visitor.py", line 180, in Cython.Compiler.Visitor.TreeVisitor._visit
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/ParseTreeTransforms.py", line 1607, in visit_ModuleNode
node.analyse_declarations(self.current_env())
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/ModuleNode.py", line 124, in analyse_declarations
self.body.analyse_declarations(env)
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Nodes.py", line 431, in analyse_declarations
stat.analyse_declarations(env)
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Nodes.py", line 431, in analyse_declarations
stat.analyse_declarations(env)
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Nodes.py", line 7914, in analyse_declarations
self.module_name, self.pos, relative_level=0 if self.is_absolute else -1)
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Symtab.py", line 1270, in find_module
module_name, relative_to=relative_to, pos=pos, absolute_fallback=absolute_fallback)
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Main.py", line 232, in find_module
err, result = self.process_pxd(source_desc, scope, qualified_name)
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Main.py", line 146, in process_pxd
result = Pipeline.run_pipeline(pipeline, source_desc)
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Pipeline.py", line 355, in run_pipeline
data = run(phase, data)
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Pipeline.py", line 335, in run
return phase(data)
File "Cython/Compiler/Visitor.py", line 302, in Cython.Compiler.Visitor.CythonTransform.__call__
File "Cython/Compiler/Visitor.py", line 284, in Cython.Compiler.Visitor.VisitorTransform.__call__
File "Cython/Compiler/Visitor.py", line 182, in Cython.Compiler.Visitor.TreeVisitor._visit
File "Cython/Compiler/Visitor.py", line 180, in Cython.Compiler.Visitor.TreeVisitor._visit
File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/ParseTreeTransforms.py", line 2210, in visit_ModuleNode
self.visitchildren(node)
File "Cython/Compiler/Visitor.py", line 247, in Cython.Compiler.Visitor.VisitorTransform.visitchildren
File "Cython/Compiler/Visitor.py", line 251, in Cython.Compiler.Visitor.VisitorTransform.visitchildren
File "Cython/Compiler/Visitor.py", line 260, in Cython.Compiler.Visitor.VisitorTransform._process_children
File "Cython/Compiler/Visitor.py", line 221, in Cython.Compiler.Visitor.TreeVisitor._visitchildren
File "Cython/Compiler/Visitor.py", line 193, in Cython.Compiler.Visitor.TreeVisitor._visitchild
File "Cython/Compiler/Visitor.py", line 182, in Cython.Compiler.Visitor.TreeVisitor._visit
File "Cython/Compiler/Visitor.py", line 180, in Cython.Compiler.Visitor.TreeVisitor._visit
File "Cython/Compiler/Visitor.py", line 312, in Cython.Compiler.Visitor.CythonTransform.visit_Node
File "Cython/Compiler/Visitor.py", line 260, in Cython.Compiler.Visitor.VisitorTransform._process_children
File "Cython/Compiler/Visitor.py", line 219, in Cython.Compiler.Visitor.TreeVisitor._visitchildren
File "Cython/Compiler/Visitor.py", line 193, in Cython.Compiler.Visitor.TreeVisitor._visitchild
File "Cython/Compiler/Visitor.py", line 182, in Cython.Compiler.Visitor.TreeVisitor._visit
File "Cython/Compiler/Visitor.py", line 180, in Cython.Compiler.Visitor.TreeVisitor._visit
File "Cython/Compiler/Visitor.py", line 312, in Cython.Compiler.Visitor.CythonTransform.visit_Node
File "Cython/Compiler/Visitor.py", line 260, in Cython.Compiler.Visitor.VisitorTransform._process_children
File "Cython/Compiler/Visitor.py", line 219, in Cython.Compiler.Visitor.TreeVisitor._visitchildren
File "Cython/Compiler/Visitor.py", line 193, in Cython.Compiler.Visitor.TreeVisitor._visitchild
File "Cython/Compiler/Visitor.py", line 188, in Cython.Compiler.Visitor.TreeVisitor._visit
File "Cython/Compiler/Visitor.py", line 148, in Cython.Compiler.Visitor.TreeVisitor._raise_compiler_error
setuptools.sandbox.UnpickleableException: CompilerCrash((<FileSourceDescriptor:/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Includes/numpy/__init__.pxd>, 842, 5), 'AnalyseExpressionsTransform', 'Compiler crash in AnalyseExpressionsTransform\n\nModuleNode.body = StatListNode(__init__.pxd:17:0)\nStatListNode.stats[41] = StatListNode(__init__.pxd:842:5)\nStatListNode.stats[0] = CFuncDefNode(__init__.pxd:842:5,\n args = [...]/4,\n inline_in_pxd = True,\n modifiers = [...]/1,\n visibility = \'private\')\n\nCompiler crash traceback from this point on:\n File "Cython/Compiler/Visitor.py", line 180, in Cython.Compiler.Visitor.TreeVisitor._visit\n File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/ParseTreeTransforms.py", line 2215, in visit_FuncDefNode\n node.body = node.body.analyse_expressions(node.local_scope)\n File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Nodes.py", line 436, in analyse_expressions\n for stat in self.stats]\n File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Nodes.py", line 436, in <listcomp>\n for stat in self.stats]\n File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/Nodes.py", line 6675, in analyse_expressions\n self.item = self.item.coerce_to(self.target.type, env)\n File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/ExprNodes.py", line 952, in coerce_to\n src = PyTypeTestNode(src, dst_type, env)\n File "/home/wangtao/anaconda2/envs/pytorch1.0py3.5/lib/python3.5/site-packages/Cython/Compiler/ExprNodes.py", line 12999, in __init__\n assert dst_type.is_extension_type or dst_type.is_builtin_type, "PyTypeTest on non extension type"\nAssertionError: PyTypeTest on non extension type', AssertionError('PyTypeTest on non extension type',), <traceback object at 0x7ffac3d1a5c8>)
Issue Analytics
- State:
- Created 4 years ago
- Comments:10
Top Results From Across the Web
Compilation error - Wikipedia
Compilation error refers to a state when a compiler fails to compile a piece of computer program source code, either due to errors...
Read more >What Is a Compilation Error? (with picture) - EasyTechJunkie
A compilation error is an error in building a machine code file for a computer language. Many computer languages compile their source code ......
Read more >Difference between Compile Time Errors and Runtime Errors
Compile-Time Errors: Errors that occur when you violate the rules of writing syntax are known as Compile-Time errors. This compiler error ...
Read more >Reading/Fixing Compilation Errors
An attempted compile cycle with many errors can be overwhelming, but approaching the problem in a systematic way will help wade through the...
Read more >7.3. Compile Errors and Warnings
A compile error happens when the compiler reports something wrong with your program, and does not produce a machine-language translation.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
same problem…
any solutions?
update: solved by installing nccl-2+ from NVidia-nccl-download
met same error, it may result from the unicode characters in annotations
fix my problem