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

compile DCNv2 failed #726

Open
QQQQZW opened this issue Jun 2, 2020 · 2 comments
Open

compile DCNv2 failed #726

QQQQZW opened this issue Jun 2, 2020 · 2 comments

Comments

@QQQQZW
Copy link

QQQQZW commented Jun 2, 2020

(centernet) C:\Users\QZW\CenterNet-windows\src\lib\models\networks\DCNv2>python setup.py build develop
running build
running build_ext
D:\Users\QZW\Anaconda3\envs\centernet\lib\site-packages\torch\utils\cpp_extension.py:196: UserWarning:

                           !! WARNING !!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Your compiler (cl 19.00.24210) 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 '_ext' extension
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DWITH_CUDA -IC:\Users\QZW\CenterNet-windows\src\lib\models\networks\DCNv2\src -ID:\Users\QZW\Anaconda3\envs\centernet\lib\site-packages\torch\include -ID:\Users\QZW\Anaconda3\envs\centernet\lib\site-packages\torch\include\torch\csrc\api\include -ID:\Users\QZW\Anaconda3\envs\centernet\lib\site-packages\torch\include\TH -ID:\Users\QZW\Anaconda3\envs\centernet\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\include" -ID:\Users\QZW\Anaconda3\envs\centernet\include -ID:\Users\QZW\Anaconda3\envs\centernet\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include" /EHsc /TpC:\Users\QZW\CenterNet-windows\src\lib\models\networks\DCNv2\src\vision.cpp /Fobuild\temp.win-amd64-3.6\Release\Users\QZW\CenterNet-windows\src\lib\models\networks\DCNv2\src\vision.obj /MD /wd4819 /EHsc -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0
vision.cpp
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\cstddef(7): fatal error C1083: 无法打开包括文 件: “stddef.h”: No such file or directory
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe' failed with exit status 2

@imjal
Copy link

imjal commented Jul 7, 2020

In order to compile the DCN_v2 repository, you need GCC version at least 4.9. There's pretty much no way around it, if you can't upgrade on your system I suggest going to the cloud.

@Fansgithub2019
Copy link

(centernet) C:\Users\QZW\CenterNet-windows\src\lib\models\networks\DCNv2>python setup.py build develop running build running build_ext D:\Users\QZW\Anaconda3\envs\centernet\lib\site-packages\torch\utils\cpp_extension.py:196: UserWarning:

                           !! WARNING !!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Your compiler (cl 19.00.24210) 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 '_ext' extension C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DWITH_CUDA -IC:\Users\QZW\CenterNet-windows\src\lib\models\networks\DCNv2\src -ID:\Users\QZW\Anaconda3\envs\centernet\lib\site-packages\torch\include -ID:\Users\QZW\Anaconda3\envs\centernet\lib\site-packages\torch\include\torch\csrc\api\include -ID:\Users\QZW\Anaconda3\envs\centernet\lib\site-packages\torch\include\TH -ID:\Users\QZW\Anaconda3\envs\centernet\lib\site-packages\torch\include\THC "-IC:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\include" -ID:\Users\QZW\Anaconda3\envs\centernet\include -ID:\Users\QZW\Anaconda3\envs\centernet\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include" /EHsc /TpC:\Users\QZW\CenterNet-windows\src\lib\models\networks\DCNv2\src\vision.cpp /Fobuild\temp.win-amd64-3.6\Release\Users\QZW\CenterNet-windows\src\lib\models\networks\DCNv2\src\vision.obj /MD /wd4819 /EHsc -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 vision.cpp C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\cstddef(7): fatal error C1083: 无法打开包括文 件: “stddef.h”: No such file or directory error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe' failed with exit status 2

I'm also get this problem,so have you resolved the problems?

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

3 participants