Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
4irdev opened this issue Jul 29, 2022 · 0 comments
Open

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

4irdev opened this issue Jul 29, 2022 · 0 comments

Comments

@4irdev
Copy link

4irdev commented Jul 29, 2022

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....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant