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

Code compilation error #20

Open
PGDneedoffer opened this issue Oct 14, 2020 · 2 comments
Open

Code compilation error #20

PGDneedoffer opened this issue Oct 14, 2020 · 2 comments

Comments

@PGDneedoffer
Copy link

when I run python setup.py develop, it appears
/usr/local/include/c++/7.4.0/bits/basic_string.tcc: In instantiation of'static std::basic_string<_CharT, _Traits, _Alloc>::_Rep* appears std::basic_string<_CharT, _Traits, _Alloc>::_Rep::_S_create(std::basic_string<_CharT, _Traits, _Alloc>::size_type, std::basic_string<_CharT, _Traits, _Alloc>::size_type, const _Alloc> ) [with _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>; std::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]':
/usr/local/include/c++/7.4.0/bits/basic_string.tcc:578:28: required from'static _CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct(_InIterator, _InIterator, const _Alloc& , std::forward_iterator_tag) [with _FwdIterator = const char16_t*; _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>]'
/usr/local/include/c++/7.4.0/bits/basic_string.h:5042:20: required from'static _CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct_aux(_InIterator, _InIterator, const _Alloc& , std::__false_type) [with _InIterator = const char16_t*; _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>]'
/usr/local/include/c++/7.4.0/bits/basic_string.h:5063:24: required from'static _CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct(_InIterator, _InIterator, const _Alloc& ) [with _InIterator = const char16_t*; _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>]'
/usr/local/include/c++/7.4.0/bits/basic_string.tcc:656:134: required from'std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, std::basic_string< _CharT, _Traits, _Alloc>::size_type, const _Alloc&) [with _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>; std::basic_string<_Charits, _Alloc_Traits ::size_type = long unsigned int]'
/usr/local/include/c++/7.4.0/bits/basic_string.h:6688:95: required from here
/usr/local/include/c++/7.4.0/bits/basic_string.tcc:1067:16: error: cannot call member function'void std::basic_string<_CharT, _Traits, _Alloc>::_Rep::_M_set_sharable() [with _CharT = char16_t; _Traits = std::char_traits<char16_t>; _Alloc = std::allocator<char16_t>]' without object
__p->_M_set_sharable();
~~~~~~~~~^~
/usr/local/include/c++/7.4.0/bits/basic_string.tcc: In instantiation of'static std::basic_string<_CharT, _Traits, _Alloc>::_Rep* std::basic_string<_CharT, _Traits, _Alloc> ::_Rep::_S_create(std::basic_string<_CharT, _Traits, _Alloc>::size_type, std::basic_string<_CharT, _Traits, _Alloc>::size_type, const _Alloc&) [with _CharT = char32_t; _Traits = std: :char_traits<char32_t>; _Alloc = std::allocator<char32_t>; std::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]':
/usr/local/include/c++/7.4.0/bits/basic_string.tcc:578:28: required from'static _CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct(_InIterator, _InIterator, const _Alloc& , std::forward_iterator_tag) [with _FwdIterator = const char32_t*; _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>]'
/usr/local/include/c++/7.4.0/bits/basic_string.h:5042:20: required from'static _CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct_aux(_InIterator, _InIterator, const _Alloc& , std::__false_type) [with _InIterator = const char32_t*; _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>]'
/usr/local/include/c++/7.4.0/bits/basic_string.h:5063:24: required from'static _CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct(_InIterator, _InIterator, const _Alloc& ) [with _InIterator = const char32_t*; _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>]'
/usr/local/include/c++/7.4.0/bits/basic_string.tcc:656:134: required from'std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, std::basic_string< _CharT, _Traits, _Alloc>::size_type, const _Alloc&) [with _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>; std::basic_string<_Charits, _Alloc_Traits ::size_type = long unsigned int]'
/usr/local/include/c++/7.4.0/bits/basic_string.h:6693:95: required from here
/usr/local/include/c++/7.4.0/bits/basic_string.tcc:1067:16: error: cannot call member function'void std::basic_string<_CharT, _Traits, _Alloc>::_Rep::_M_set_sharable() [with _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>]' without object
error: command'/usr/local/cuda/bin/nvcc' failed with exit status 1

My system is Centos7, gcc7.4.0, cuda10.1, have you encountered such an error, how can I solve this compilation error?

@PGDneedoffer
Copy link
Author

我上面的编译报错后运行测试代码报错:ImportError: cannot import name 'corner_pool_ext' from 'mmdet.ops.corner_pool' (/home/deployer/RepPointsV2-master/mmdet/ops/corner_pool/init.py)

@cuihu1998
Copy link

the code can only be compiled by GCC 5.4.0, and this version is very hard to install.

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

2 participants