DCNv2 icon indicating copy to clipboard operation
DCNv2 copied to clipboard

Build error parameter packs not expanded with ‘...’

Open chudomozg opened this issue 2 years ago • 0 comments

Hello, I've tried to build DCNv2 on Ubuntu with python 3.8 in venv. sudo ~/work/projects/pricetag-ocr/venv/bin/python setup.py build develop

So I have error: `In file included from /home/tis/work/projects/pricetag-ocr/venv/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:11, from /home/tis/work/projects/pricetag-ocr/venv/lib/python3.8/site-packages/torch/include/ATen/Context.h:4, from /home/tis/work/projects/pricetag-ocr/venv/lib/python3.8/site-packages/torch/include/ATen/ATen.h:5, from /home/tis/work/projects/pricetag-ocr/libocr/srcCenterNet/lib/models/networks/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15: /home/tis/work/projects/pricetag-ocr/venv/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:322:7: note: declared here 322 | T * data() const { | ^~~~ /usr/bin/nvcc -DWITH_CUDA -I/home/tis/work/projects/pricetag-ocr/libocr/srcCenterNet/lib/models/networks/DCNv2/src -I/home/tis/work/projects/pricetag-ocr/venv/lib/python3.8/site-packages/torch/include -I/home/tis/work/projects/pricetag-ocr/venv/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/tis/work/projects/pricetag-ocr/venv/lib/python3.8/site-packages/torch/include/TH -I/home/tis/work/projects/pricetag-ocr/venv/lib/python3.8/site-packages/torch/include/THC -I/home/tis/work/projects/pricetag-ocr/venv/include -I/usr/include/python3.8 -c /home/tis/work/projects/pricetag-ocr/libocr/srcCenterNet/lib/models/networks/DCNv2/src/cuda/dcn_v2_cuda.cu -o build/temp.linux-x86_64-3.8/home/tis/work/projects/pricetag-ocr/libocr/srcCenterNet/lib/models/networks/DCNv2/src/cuda/dcn_v2_cuda.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options '-fPIC' -DCUDA_HAS_FP16=1 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=sm_75 -std=c++11 /home/tis/work/projects/pricetag-ocr/venv/lib/python3.8/site-packages/torch/include/c10/core/TensorTypeSet.h(44): warning #68-D: integer conversion resulted in a change of sign

/home/tis/work/projects/pricetag-ocr/venv/lib/python3.8/site-packages/torch/include/c10/core/TensorTypeSet.h(44): warning #68-D: integer conversion resulted in a change of sign

/usr/include/c++/11/bits/std_function.h:435:145: error: parameter packs not expanded with ‘...’: 435 | function(_Functor&& __f) | ^ /usr/include/c++/11/bits/std_function.h:435:145: note: ‘_ArgTypes’ /usr/include/c++/11/bits/std_function.h:530:146: error: parameter packs not expanded with ‘...’: 530 | operator=(_Functor&& __f) | ^ /usr/include/c++/11/bits/std_function.h:530:146: note: ‘_ArgTypes’ error: command '/usr/bin/nvcc' failed with exit code 1 ` I don't have idea, what's the problem....

chudomozg avatar Jul 29 '22 01:07 chudomozg