Hi, just for the sake of completeness. The error has been tracked and fixed here: https://github.com/eclipse/sumo/issues/4110
Best regards,
Michael
Am 28.05.2018 um 17:01 schrieb Jose Monreal Bailey:
> Sorry, wrong error log. This is the one:
>
> In file included from MSMeanData.cpp:33:
> In file included from ../../../src/microsim/MSEdgeControl.h:36:
> In file included from
> /bin/../lib64/gcc/x86_64-pc-linux-gnu/8.1.0/../../../../include/c++/8.1.0/map:60:
> /bin/../lib64/gcc/x86_64-pc-linux-gnu/8.1.0/../../../../include/c++/8.1.0/bits/stl_tree.h:452:7:
> error:
> static_assert failed due to requirement
> '__is_invocable<Named::NamedLikeComparatorIdLess<Named> &,
> MSLane *const &, MSLane *const &>{}' "comparison object must be
> invocable with two arguments of
> key type"
> static_assert(__is_invocable<_Compare&, const _Key&, const _Key&>{},
> ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /bin/../lib64/gcc/x86_64-pc-linux-gnu/8.1.0/../../../../include/c++/8.1.0/bits/stl_set.h:133:17:
> note:
> in instantiation of template class 'std::_Rb_tree<MSLane *, MSLane
> *, std::_Identity<MSLane *>,
> Named::NamedLikeComparatorIdLess<Named>, std::allocator<MSLane *>
>>' requested here
> _Rep_type _M_t; // Red-black tree representing set.
> ^
> ../../../src/microsim/MSEdgeControl.h:221:48: note: in instantiation of
> template class 'std::set<MSLane
> *, Named::NamedLikeComparatorIdLess<Named>, std::allocator<MSLane
> *> >' requested here
> std::set<MSLane*, Named::ComparatorIdLess> myChangedStateLanes;
> ^
> In file included from MSMeanData.cpp:33:
> In file included from ../../../src/microsim/MSEdgeControl.h:40:
> In file included from
> /bin/../lib64/gcc/x86_64-pc-linux-gnu/8.1.0/../../../../include/c++/8.1.0/set:61:
> /bin/../lib64/gcc/x86_64-pc-linux-gnu/8.1.0/../../../../include/c++/8.1.0/bits/stl_set.h:147:35:
> error:
> no type named 'const_iterator' in 'std::_Rb_tree<MSLane *, MSLane
> *, std::_Identity<MSLane *>,
> Named::NamedLikeComparatorIdLess<Named>, std::allocator<MSLane *> >'
> typedef typename _Rep_type::const_iterator iterator;
> ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
> ../../../src/microsim/MSEdgeControl.h:221:48: note: in instantiation of
> template class 'std::set<MSLane
> *, Named::NamedLikeComparatorIdLess<Named>, std::allocator<MSLane
> *> >' requested here
> std::set<MSLane*, Named::ComparatorIdLess> myChangedStateLanes;
> ^
> In file included from MSMeanData.cpp:33:
> In file included from ../../../src/microsim/MSEdgeControl.h:40:
> In file included from
> /bin/../lib64/gcc/x86_64-pc-linux-gnu/8.1.0/../../../../include/c++/8.1.0/set:61:
> /bin/../lib64/gcc/x86_64-pc-linux-gnu/8.1.0/../../../../include/c++/8.1.0/bits/stl_set.h:148:35:
> error:
> no type named 'const_iterator' in 'std::_Rb_tree<MSLane *, MSLane
> *, std::_Identity<MSLane *>,
> Named::NamedLikeComparatorIdLess<Named>, std::allocator<MSLane *> >'
> typedef typename _Rep_type::const_iterator const_iterator;
> ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
> /bin/../lib64/gcc/x86_64-pc-linux-gnu/8.1.0/../../../../include/c++/8.1.0/bits/stl_set.h:149:35:
> error:
> no type named 'const_reverse_iterator' in 'std::_Rb_tree<MSLane *,
> MSLane *, std::_Identity<MSLane
> *>, Named::NamedLikeComparatorIdLess<Named>, std::allocator<MSLane
> *> >'
> typedef typename _Rep_type::const_reverse_iterator reverse_iterator;
> ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
> /bin/../lib64/gcc/x86_64-pc-linux-gnu/8.1.0/../../../../include/c++/8.1.0/bits/stl_set.h:150:35:
> error:
> no type named 'const_reverse_iterator' in 'std::_Rb_tree<MSLane *,
> MSLane *, std::_Identity<MSLane
> *>, Named::NamedLikeComparatorIdLess<Named>, std::allocator<MSLane
> *> >'
> typedef typename _Rep_type::const_reverse_iterator
> const_reverse_iterator;
> ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
> /bin/../lib64/gcc/x86_64-pc-linux-gnu/8.1.0/../../../../include/c++/8.1.0/bits/stl_set.h:151:35:
> error:
> no type named 'size_type' in 'std::_Rb_tree<MSLane *, MSLane *,
> std::_Identity<MSLane *>,
> Named::NamedLikeComparatorIdLess<Named>, std::allocator<MSLane *> >'
> typedef typename _Rep_type::size_type size_type;
> ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
> /bin/../lib64/gcc/x86_64-pc-linux-gnu/8.1.0/../../../../include/c++/8.1.0/bits/stl_set.h:152:35:
> error:
> no type named 'difference_type' in 'std::_Rb_tree<MSLane *, MSLane
> *, std::_Identity<MSLane *>,
> Named::NamedLikeComparatorIdLess<Named>, std::allocator<MSLane *> >'
> typedef typename _Rep_type::difference_type difference_type;
> ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
> 7 errors generated.
>
> On 28 May 2018 at 15:57, Jose Monreal Bailey <[email protected]
> <mailto:[email protected]>> wrote:
>
> Good day everyone,
>
> I am trying to build sumo from master, but its failing with the
> latest GCC/G++ update,
>
> In file included from /usr/include/c++/8.1.0/map:60,
> from ../../../src/microsim/MSEdgeControl.h:36,
> from MSMeanData.cpp:33:
> /usr/include/c++/8.1.0/bits/stl_tree.h: In instantiation of ‘class
> std::_Rb_tree<MSLane*, MSLane*, std::_Identity<MSLane*>,
> Named::ComparatorIdLess, std::allocator<MSLane*> >’:
> /usr/include/c++/8.1.0/bits/stl_set.h:133:17: required from ‘class
> std::set<MSLane*, Named::ComparatorIdLess>’
> ../../../src/microsim/MSEdgeControl.h:221:48: required from here
> /usr/include/c++/8.1.0/bits/stl_tree.h:452:21: error: static
> assertion failed: comparison object must be invocable with two
> arguments of key type
> static_assert(__is_invocable<_Compare&, const _Key&, const
> _Key&>{},
>
>
> What are the recommendations?
>
> These are the steps I am doing:
>
> export SUMO_HOME=$PWD
> make -f Makefile.cvs
>
> ./configure CXX=clang++ CXXFLAGS="-stdlib=libstdc++
> -fsanitize=undefined,address,integer,unsigned-integer-overflow
> -fno-omit-frame-pointer
> -fsanitize-blacklist=$PWD/build/clang_sanitize_blacklist.txt"
>
> make
>
>
> Best regards,
> José
>
>
>
>
> _______________________________________________
> sumo-user mailing list
> [email protected]
> To change your delivery options, retrieve your password, or unsubscribe from
> this list, visit
> https://dev.eclipse.org/mailman/listinfo/sumo-user
>
signature.asc
Description: OpenPGP digital signature
_______________________________________________ sumo-user mailing list [email protected] To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/sumo-user
