I've tried building both the latest tag (v1.3.1), as well as the current master (cc3f4f9ca83195e97fdee78bb08facfff5fe774c) , but both fail with a bunch of compiler errors.
My system:
OS: Arch Linux
Compiler: g++ (GCC) 11.1.0
the errors:
/usr/include/c++/11.1.0/bits/stl_vector.h:336:49: error: invalid use of incomplete type 'class std::function<std::pair<std::__cxx11::basic_string<char>, bool>(const std::vector<std::pair<std::__cxx11::basic_string<char>, std::vector<EMANE::Any> > >&) noexcept>'
336 | _M_impl._M_end_of_storage - _M_impl._M_start);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11.1.0/functional:59,
from /usr/include/c++/11.1.0/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/11.1.0/algorithm:74,
from ../../include/emane/configurationinfo.inl:33,
from ../../include/emane/configurationinfo.h:213,
from ../../include/emane/configurationupdate.h:36,
from ../../include/emane/application/configurationcontroller.h:34,
from configurationcontroller.cc:33:
/usr/include/c++/11.1.0/type_traits:849:52: error: static assertion failed: template argument must be a complete class or an unbounded array
849 | static_assert(std::__is_complete_or_unbounded(__type_identity<_Tp>{}),
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/11.1.0/bits/stl_construct.h:177:51: error: static assertion failed: value type is destructible
177 | static_assert(is_destructible<_Value_type>::value,
| ^~~~~
/usr/include/c++/11.1.0/bits/stl_construct.h:177:51: note: 'std::integral_constant<bool, false>::value' evaluates to false
/usr/include/c++/11.1.0/bits/stl_construct.h:184:25: error: invalid use of incomplete type 'std::iterator_traits<std::function<std::pair<std::__cxx11::basic_string<char>, bool>(const std::vector<std::pair<std::__cxx11::basic_string<char>, std::vector<EMANE::Any> > >&) noexcept>*>::value_type' {aka 'class std::function<std::pair<std::__cxx11::basic_string<char>, bool>(const std::vector<std::pair<std::__cxx11::basic_string<char>, std::vector<EMANE::Any> > >&) noexcept>'}
184 | std::_Destroy_aux<__has_trivial_destructor(_Value_type)>::
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11.1.0/functional:59,
from /usr/include/c++/11.1.0/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/11.1.0/algorithm:74,
from ../../include/emane/configurationinfo.inl:33,
from ../../include/emane/configurationinfo.h:213,
from ../../include/emane/configurationupdate.h:36,
from ../../include/emane/application/configurationcontroller.h:34,
from configurationcontroller.cc:33:
/usr/include/c++/11.1.0/ext/new_allocator.h:129:13: error: invalid application of '__alignof__' to incomplete type 'std::function<std::pair<std::__cxx11::basic_string<char>, bool>(const std::vector<std::pair<std::__cxx11::basic_string<char>, std::vector<EMANE::Any> > >&) noexcept>'
129 | if (alignof(_Tp) > __STDCPP_DEFAULT_NEW_ALIGNMENT__)
| ^~~~~~~~~~~~
/usr/include/c++/11.1.0/ext/new_allocator.h:133:37: error: invalid application of 'sizeof' to incomplete type 'std::function<std::pair<std::__cxx11::basic_string<char>, bool>(const std::vector<std::pair<std::__cxx11::basic_string<char>, std::vector<EMANE::Any> > >&) noexcept>'
133 | __t * sizeof(_Tp),
| ^~~~~~~~~~~
/usr/include/c++/11.1.0/ext/new_allocator.h:135:48: error: invalid application of '__alignof__' to incomplete type 'std::function<std::pair<std::__cxx11::basic_string<char>, bool>(const std::vector<std::pair<std::__cxx11::basic_string<char>, std::vector<EMANE::Any> > >&) noexcept>'
135 | std::align_val_t(alignof(_Tp)));
| ^~~~~~~~~~~~
/usr/include/c++/11.1.0/ext/new_allocator.h:141:35: error: invalid application of 'sizeof' to incomplete type 'std::function<std::pair<std::__cxx11::basic_string<char>, bool>(const std::vector<std::pair<std::__cxx11::basic_string<char>, std::vector<EMANE::Any> > >&) noexcept>'
141 | , __t * sizeof(_Tp)
| ^~~~~~~~~~~
Considering that it seems to involve includes from /usr/include/c++/11.1.0/. I guess that it's an incompatibility with the 11.1.0 gcc-release.
However, my c++ experience is very limited, so I'm not entirely sure that's what is going on.
Hello,
I've tried building both the latest tag (
v1.3.1
), as well as the currentmaster
(cc3f4f9ca83195e97fdee78bb08facfff5fe774c) , but both fail with a bunch of compiler errors.My system:
g++ (GCC) 11.1.0
the errors:
Considering that it seems to involve includes from
/usr/include/c++/11.1.0/
. I guess that it's an incompatibility with the11.1.0
gcc-release. However, my c++ experience is very limited, so I'm not entirely sure that's what is going on.