Skip to content

Code compilation error #20

@PGDneedoffer

Description

@PGDneedoffer

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions