Skip to content

Instantly share code, notes, and snippets.

@mrgnr
Created March 20, 2021 11:58
Show Gist options
  • Save mrgnr/cfc0b6684b328d26c51b549662919f37 to your computer and use it in GitHub Desktop.
Save mrgnr/cfc0b6684b328d26c51b549662919f37 to your computer and use it in GitHub Desktop.
eBPFSnitch build errors on Ubuntu 20.10
root@681ba8b10304:/ebpfsnitch/build# cmake ..
-- The C compiler identification is Clang 11.0.0
-- The CXX compiler identification is Clang 11.0.0
-- Check for working C compiler: /usr/bin/clang
-- Check for working C compiler: /usr/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/clang++
-- Check for working CXX compiler: /usr/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake (found version "1.71.0") found components: system program_options
-- Configuring done
-- Generating done
-- Build files have been written to: /ebpfsnitch/build
root@681ba8b10304:/ebpfsnitch/build# make
make[1]: Entering directory '/ebpfsnitch/build'
make[2]: Entering directory '/ebpfsnitch/build'
make[2]: Leaving directory '/ebpfsnitch/build'
[ 16%] Built target probes
make[2]: Entering directory '/ebpfsnitch/build'
make[2]: Leaving directory '/ebpfsnitch/build'
make[2]: Entering directory '/ebpfsnitch/build'
[ 25%] Building CXX object CMakeFiles/ebpfsnitchd.dir/rule_engine.cpp.o
In file included from /ebpfsnitch/rule_engine.cpp:4:
In file included from /usr/include/boost/bimap.hpp:13:
In file included from /usr/include/boost/bimap/bimap.hpp:61:
/usr/include/boost/bimap/detail/bimap_core.hpp:408:35: error: no member named 'rebind' in 'std::allocator<void>'
BOOST_NESTED_TEMPLATE rebind<relation>::other
^
/usr/include/boost/bimap/bimap.hpp:137:12: note: in instantiation of template class 'boost::bimaps::detail::bimap_core<field_t, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, mpl_::na, mpl_::na, mpl_::na>' requested here
public ::boost::bimaps::detail::bimap_core<KeyTypeA,KeyTypeB,AP1,AP2,AP3>,
^
/ebpfsnitch/rule_engine.cpp:15:28: note: in instantiation of template class 'boost::bimaps::bimap<field_t, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, mpl_::na, mpl_::na, mpl_::na>' requested here
boost::assign::list_of<g_field_map_type::relation>
^
In file included from /ebpfsnitch/rule_engine.cpp:4:
In file included from /usr/include/boost/bimap.hpp:13:
In file included from /usr/include/boost/bimap/bimap.hpp:61:
In file included from /usr/include/boost/bimap/detail/bimap_core.hpp:34:
/usr/include/boost/multi_index_container.hpp:1087:20: error: type 'int' cannot be used prior to '::' because it has no members
typedef typename MultiIndexContainer::index_type_list index_type_list;
^
/usr/include/boost/bimap/detail/bimap_core.hpp:417:9: note: in instantiation of template class 'boost::multi_index::index<int, boost::bimaps::relation::member_at::left>' requested here
index<core_type, logic_left_tag>::type left_index;
^
/usr/include/boost/bimap/bimap.hpp:137:12: note: in instantiation of template class 'boost::bimaps::detail::bimap_core<field_t, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, mpl_::na, mpl_::na, mpl_::na>' requested here
public ::boost::bimaps::detail::bimap_core<KeyTypeA,KeyTypeB,AP1,AP2,AP3>,
^
/ebpfsnitch/rule_engine.cpp:15:28: note: in instantiation of template class 'boost::bimaps::bimap<field_t, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, mpl_::na, mpl_::na, mpl_::na>' requested here
boost::assign::list_of<g_field_map_type::relation>
^
In file included from /ebpfsnitch/rule_engine.cpp:4:
In file included from /usr/include/boost/bimap.hpp:13:
In file included from /usr/include/boost/bimap/bimap.hpp:61:
In file included from /usr/include/boost/bimap/detail/bimap_core.hpp:34:
/usr/include/boost/multi_index_container.hpp:1096:3: error: static_assert failed due to requirement 'index_found' "index_found"
BOOST_STATIC_ASSERT(index_found);
^ ~~~~~~~~~~~
/usr/include/boost/static_assert.hpp:70:41: note: expanded from macro 'BOOST_STATIC_ASSERT'
# define BOOST_STATIC_ASSERT( ... ) static_assert(__VA_ARGS__, #__VA_ARGS__)
^ ~~~~~~~~~~~
In file included from /ebpfsnitch/rule_engine.cpp:4:
In file included from /usr/include/boost/bimap.hpp:13:
In file included from /usr/include/boost/bimap/bimap.hpp:61:
In file included from /usr/include/boost/bimap/detail/bimap_core.hpp:34:
/usr/include/boost/multi_index_container.hpp:1087:20: error: type 'int' cannot be used prior to '::' because it has no members
typedef typename MultiIndexContainer::index_type_list index_type_list;
^
/usr/include/boost/bimap/detail/bimap_core.hpp:420:9: note: in instantiation of template class 'boost::multi_index::index<int, boost::bimaps::relation::member_at::right>' requested here
index<core_type,logic_right_tag>::type right_index;
^
/usr/include/boost/bimap/bimap.hpp:137:12: note: in instantiation of template class 'boost::bimaps::detail::bimap_core<field_t, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, mpl_::na, mpl_::na, mpl_::na>' requested here
public ::boost::bimaps::detail::bimap_core<KeyTypeA,KeyTypeB,AP1,AP2,AP3>,
^
/ebpfsnitch/rule_engine.cpp:15:28: note: in instantiation of template class 'boost::bimaps::bimap<field_t, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, mpl_::na, mpl_::na, mpl_::na>' requested here
boost::assign::list_of<g_field_map_type::relation>
^
In file included from /ebpfsnitch/rule_engine.cpp:4:
In file included from /usr/include/boost/bimap.hpp:13:
In file included from /usr/include/boost/bimap/bimap.hpp:61:
In file included from /usr/include/boost/bimap/detail/bimap_core.hpp:34:
/usr/include/boost/multi_index_container.hpp:1096:3: error: static_assert failed due to requirement 'index_found' "index_found"
BOOST_STATIC_ASSERT(index_found);
^ ~~~~~~~~~~~
/usr/include/boost/static_assert.hpp:70:41: note: expanded from macro 'BOOST_STATIC_ASSERT'
# define BOOST_STATIC_ASSERT( ... ) static_assert(__VA_ARGS__, #__VA_ARGS__)
^ ~~~~~~~~~~~
In file included from /ebpfsnitch/rule_engine.cpp:4:
In file included from /usr/include/boost/bimap.hpp:13:
In file included from /usr/include/boost/bimap/bimap.hpp:61:
/usr/include/boost/bimap/detail/bimap_core.hpp:434:8: error: no type named 'type' in 'boost::multi_index::index<int, boost::bimaps::relation::member_at::left>'
>::type relation_set_core_index;
~~~^~~~
/usr/include/boost/bimap/bimap.hpp:137:12: note: in instantiation of template class 'boost::bimaps::detail::bimap_core<field_t, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, mpl_::na, mpl_::na, mpl_::na>' requested here
public ::boost::bimaps::detail::bimap_core<KeyTypeA,KeyTypeB,AP1,AP2,AP3>,
^
/ebpfsnitch/rule_engine.cpp:15:28: note: in instantiation of template class 'boost::bimaps::bimap<field_t, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, mpl_::na, mpl_::na, mpl_::na>' requested here
boost::assign::list_of<g_field_map_type::relation>
^
In file included from /ebpfsnitch/rule_engine.cpp:4:
In file included from /usr/include/boost/bimap.hpp:13:
In file included from /usr/include/boost/bimap/bimap.hpp:61:
In file included from /usr/include/boost/bimap/detail/bimap_core.hpp:43:
In file included from /usr/include/boost/bimap/detail/manage_bimap_key.hpp:26:
In file included from /usr/include/boost/bimap/set_of.hpp:40:
/usr/include/boost/bimap/views/set_view.hpp:42:9: error: type 'int' cannot be used prior to '::' because it has no members
CoreIndex,
^
/usr/include/boost/bimap/bimap.hpp:141:12: note: in instantiation of template class 'boost::bimaps::views::set_view<int>' requested here
public ::boost::bimaps::detail::bimap_core<KeyTypeA,KeyTypeB,AP1,AP2,AP3>
^
/ebpfsnitch/rule_engine.cpp:15:28: note: in instantiation of template class 'boost::bimaps::bimap<field_t, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, mpl_::na, mpl_::na, mpl_::na>' requested here
boost::assign::list_of<g_field_map_type::relation>
^
In file included from /ebpfsnitch/rule_engine.cpp:4:
In file included from /usr/include/boost/bimap.hpp:13:
In file included from /usr/include/boost/bimap/bimap.hpp:61:
In file included from /usr/include/boost/bimap/detail/bimap_core.hpp:43:
In file included from /usr/include/boost/bimap/detail/manage_bimap_key.hpp:26:
In file included from /usr/include/boost/bimap/set_of.hpp:40:
In file included from /usr/include/boost/bimap/views/set_view.hpp:22:
/usr/include/boost/bimap/detail/set_view_base.hpp:171:60: error: type 'int' cannot be used prior to '::' because it has no members
set_view_iterator<BOOST_DEDUCED_TYPENAME Index:: iterator>,
^
/usr/include/boost/bimap/views/set_view.hpp:46:12: note: in instantiation of template class 'boost::bimaps::detail::set_view_base<boost::bimaps::views::set_view<int>, int>' requested here
public ::boost::bimaps::detail::
^
/usr/include/boost/bimap/bimap.hpp:141:12: note: in instantiation of template class 'boost::bimaps::views::set_view<int>' requested here
public ::boost::bimaps::detail::bimap_core<KeyTypeA,KeyTypeB,AP1,AP2,AP3>
^
/ebpfsnitch/rule_engine.cpp:15:28: note: in instantiation of template class 'boost::bimaps::bimap<field_t, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, mpl_::na, mpl_::na, mpl_::na>' requested here
boost::assign::list_of<g_field_map_type::relation>
^
In file included from /ebpfsnitch/rule_engine.cpp:4:
In file included from /usr/include/boost/bimap.hpp:13:
In file included from /usr/include/boost/bimap/bimap.hpp:61:
In file included from /usr/include/boost/bimap/detail/bimap_core.hpp:43:
In file included from /usr/include/boost/bimap/detail/manage_bimap_key.hpp:26:
In file included from /usr/include/boost/bimap/set_of.hpp:40:
In file included from /usr/include/boost/bimap/views/set_view.hpp:22:
/usr/include/boost/bimap/detail/set_view_base.hpp:177:36: error: type 'int' cannot be used prior to '::' because it has no members
typedef BOOST_DEDUCED_TYPENAME Index::value_type::left_value_type left_type_;
^
/usr/include/boost/bimap/detail/set_view_base.hpp:179:36: error: type 'int' cannot be used prior to '::' because it has no members
typedef BOOST_DEDUCED_TYPENAME Index::value_type::right_value_type right_type_;
^
/usr/include/boost/bimap/detail/set_view_base.hpp:181:36: error: type 'int' cannot be used prior to '::' because it has no members
typedef BOOST_DEDUCED_TYPENAME Index::value_type value_type_;
^
/usr/include/boost/bimap/detail/set_view_base.hpp:184:62: error: type 'int' cannot be used prior to '::' because it has no members
set_view_iterator<BOOST_DEDUCED_TYPENAME Index::iterator> iterator_;
^
In file included from /ebpfsnitch/rule_engine.cpp:4:
In file included from /usr/include/boost/bimap.hpp:13:
In file included from /usr/include/boost/bimap/bimap.hpp:61:
In file included from /usr/include/boost/bimap/detail/bimap_core.hpp:43:
In file included from /usr/include/boost/bimap/detail/manage_bimap_key.hpp:26:
In file included from /usr/include/boost/bimap/set_of.hpp:40:
/usr/include/boost/bimap/views/set_view.hpp:51:9: error: type 'int' cannot be used prior to '::' because it has no members
CoreIndex,
^
/usr/include/boost/bimap/bimap.hpp:141:12: note: in instantiation of template class 'boost::bimaps::views::set_view<int>' requested here
public ::boost::bimaps::detail::bimap_core<KeyTypeA,KeyTypeB,AP1,AP2,AP3>
^
/ebpfsnitch/rule_engine.cpp:15:28: note: in instantiation of template class 'boost::bimaps::bimap<field_t, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, mpl_::na, mpl_::na, mpl_::na>' requested here
boost::assign::list_of<g_field_map_type::relation>
^
In file included from /ebpfsnitch/rule_engine.cpp:4:
In file included from /usr/include/boost/bimap.hpp:13:
In file included from /usr/include/boost/bimap/bimap.hpp:61:
In file included from /usr/include/boost/bimap/detail/bimap_core.hpp:43:
In file included from /usr/include/boost/bimap/detail/manage_bimap_key.hpp:26:
In file included from /usr/include/boost/bimap/set_of.hpp:39:
/usr/include/boost/bimap/views/map_view.hpp:40:12: error: 'boost::bimaps::detail::bimap_core<field_t, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, mpl_::na, mpl_::na, mpl_::na>::core_type' (aka 'int') is not a class, namespace, or enumeration
public BOOST_BIMAP_MAP_VIEW_CONTAINER_ADAPTOR(
^
/usr/include/boost/bimap/detail/map_view_base.hpp:55:35: note: expanded from macro 'BOOST_BIMAP_MAP_VIEW_CONTAINER_ADAPTOR'
BOOST_DEDUCED_TYPENAME BIMAP::core_type:: \
^
/usr/include/boost/bimap/views/map_view.hpp:135:55: note: in instantiation of template class 'boost::bimaps::views::map_view<boost::bimaps::relation::member_at::left, boost::bimaps::detail::bimap_core<field_t, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, mpl_::na, mpl_::na, mpl_::na>>' requested here
public : BOOST_BIMAP_MAP_VIEW_EXTRA_TYPEDEFS_BODY(map_view_,left)
^
/usr/include/boost/bimap/bimap.hpp:146:12: note: in instantiation of template class 'boost::bimaps::detail::left_map_view_extra_typedefs<boost::bimaps::views::map_view<boost::bimaps::relation::member_at::left, boost::bimaps::detail::bimap_core<field_t, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, mpl_::na, mpl_::na, mpl_::na>>>' requested here
public ::boost::bimaps::detail:: left_map_view_extra_typedefs<
^
/ebpfsnitch/rule_engine.cpp:15:28: note: in instantiation of template class 'boost::bimaps::bimap<field_t, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, mpl_::na, mpl_::na, mpl_::na>' requested here
boost::assign::list_of<g_field_map_type::relation>
^
In file included from /ebpfsnitch/rule_engine.cpp:4:
In file included from /usr/include/boost/bimap.hpp:13:
In file included from /usr/include/boost/bimap/bimap.hpp:61:
In file included from /usr/include/boost/bimap/detail/bimap_core.hpp:43:
In file included from /usr/include/boost/bimap/detail/manage_bimap_key.hpp:26:
In file included from /usr/include/boost/bimap/set_of.hpp:39:
/usr/include/boost/bimap/views/map_view.hpp:50:13: error: 'boost::bimaps::detail::bimap_core<field_t, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, mpl_::na, mpl_::na, mpl_::na>::core_type' (aka 'int') is not a class, namespace, or enumeration
typedef BOOST_BIMAP_MAP_VIEW_CONTAINER_ADAPTOR(
^
/usr/include/boost/bimap/detail/map_view_base.hpp:55:35: note: expanded from macro 'BOOST_BIMAP_MAP_VIEW_CONTAINER_ADAPTOR'
BOOST_DEDUCED_TYPENAME BIMAP::core_type:: \
^
In file included from /ebpfsnitch/rule_engine.cpp:4:
In file included from /usr/include/boost/bimap.hpp:13:
In file included from /usr/include/boost/bimap/bimap.hpp:61:
In file included from /usr/include/boost/bimap/detail/bimap_core.hpp:43:
In file included from /usr/include/boost/bimap/detail/manage_bimap_key.hpp:26:
In file included from /usr/include/boost/bimap/set_of.hpp:39:
/usr/include/boost/bimap/views/map_view.hpp:71:11: error: using declaration refers into 'unique_map_view_access_::', which is not a base class of 'map_view<boost::bimaps::relation::member_at::left, boost::bimaps::detail::bimap_core<field_t, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, mpl_::na, mpl_::na, mpl_::na>>'
using unique_map_view_access_::at;
^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/boost/bimap/views/map_view.hpp:72:11: error: using declaration refers into 'unique_map_view_access_::', which is not a base class of 'map_view<boost::bimaps::relation::member_at::left, boost::bimaps::detail::bimap_core<field_t, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, mpl_::na, mpl_::na, mpl_::na>>'
using unique_map_view_access_::operator[];
^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/boost/bimap/views/map_view.hpp:135:14: error: no type named 'const_reverse_iterator' in 'boost::bimaps::views::map_view<boost::bimaps::relation::member_at::left, boost::bimaps::detail::bimap_core<field_t, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, mpl_::na, mpl_::na, mpl_::na>>'
public : BOOST_BIMAP_MAP_VIEW_EXTRA_TYPEDEFS_BODY(map_view_,left)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/boost/bimap/views/map_view.hpp:123:54: note: expanded from macro 'BOOST_BIMAP_MAP_VIEW_EXTRA_TYPEDEFS_BODY'
BOOST_BIMAP_MAP_VIEW_EXTRA_TYPEDEF(MAP_VIEW,SIDE,const_reverse_iterator) \
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
/usr/include/boost/bimap/views/map_view.hpp:116:42: note: expanded from macro 'BOOST_BIMAP_MAP_VIEW_EXTRA_TYPEDEF'
typedef BOOST_DEDUCED_TYPENAME MAP_VIEW::TYPENAME \
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
/usr/include/boost/bimap/bimap.hpp:146:12: note: in instantiation of template class 'boost::bimaps::detail::left_map_view_extra_typedefs<boost::bimaps::views::map_view<boost::bimaps::relation::member_at::left, boost::bimaps::detail::bimap_core<field_t, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, mpl_::na, mpl_::na, mpl_::na>>>' requested here
public ::boost::bimaps::detail:: left_map_view_extra_typedefs<
^
/ebpfsnitch/rule_engine.cpp:15:28: note: in instantiation of template class 'boost::bimaps::bimap<field_t, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, mpl_::na, mpl_::na, mpl_::na>' requested here
boost::assign::list_of<g_field_map_type::relation>
^
In file included from /ebpfsnitch/rule_engine.cpp:4:
In file included from /usr/include/boost/bimap.hpp:13:
In file included from /usr/include/boost/bimap/bimap.hpp:61:
In file included from /usr/include/boost/bimap/detail/bimap_core.hpp:43:
In file included from /usr/include/boost/bimap/detail/manage_bimap_key.hpp:26:
In file included from /usr/include/boost/bimap/set_of.hpp:39:
/usr/include/boost/bimap/views/map_view.hpp:135:14: error: no type named 'key_compare' in 'boost::bimaps::views::map_view<boost::bimaps::relation::member_at::left, boost::bimaps::detail::bimap_core<field_t, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, mpl_::na, mpl_::na, mpl_::na>>'
public : BOOST_BIMAP_MAP_VIEW_EXTRA_TYPEDEFS_BODY(map_view_,left)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/boost/bimap/views/map_view.hpp:126:54: note: expanded from macro 'BOOST_BIMAP_MAP_VIEW_EXTRA_TYPEDEFS_BODY'
BOOST_BIMAP_MAP_VIEW_EXTRA_TYPEDEF(MAP_VIEW,SIDE,key_compare)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
/usr/include/boost/bimap/views/map_view.hpp:116:42: note: expanded from macro 'BOOST_BIMAP_MAP_VIEW_EXTRA_TYPEDEF'
typedef BOOST_DEDUCED_TYPENAME MAP_VIEW::TYPENAME \
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [CMakeFiles/ebpfsnitchd.dir/build.make:93: CMakeFiles/ebpfsnitchd.dir/rule_engine.cpp.o] Error 1
make[2]: Leaving directory '/ebpfsnitch/build'
make[1]: *** [CMakeFiles/Makefile2:78: CMakeFiles/ebpfsnitchd.dir/all] Error 2
make[1]: Leaving directory '/ebpfsnitch/build'
make: *** [Makefile:130: all] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment