Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] SUMO Linux Build
  • From: Michael Behrisch <oss@xxxxxxxxxxx>
  • Date: Wed, 30 May 2018 17:23:39 +0200
  • Autocrypt: addr=oss@xxxxxxxxxxx; prefer-encrypt=mutual; keydata= xsDiBFLSvucRBACGsasS4GeIWs1CFNTOYmp3ScQ2ZTJLJWQxhPliwtHTzLsErYu9Y7e8qDov iHFviYyaNuceUNoACm1e4MT4eu0DmM2Wk3y/jjD6hfm7L0EZNPxQhj+CJf2oZAm2ezCe7/si xZ2d7TCO8yWavOGbF0EVi/ZDIJqVgupu6WBpv/NCewCg65HQiS1wm+1w1MdFYxKCmXzbv08D /iWXX3tzabbCrLlUum8hBgBpJEHRtlic2uaGsKm8Fize4tfLZkTBbTYLYXfcx2Oq9+lINPTW h9jnbCjAjErRWLTjNTQjel0JnDryCnqabub/R3wScR/EHRDBeS9L6YRj0xdVd2qIaArtSYRR auKPNc4M2qZNEFSM37cXC7avhpdeA/99oJf4qyVly4RxHmekAmj9UJjRx17x9xX8t9uzUuSt AeTh+kQ3o5jK7veU6/F/+pPyi96EOzym9BJA8pgXC8hLWNjOajI10filkdQ26QsfHOpUdPSZ 4Duyw9Ayj8loagEnnAONmU/xE0QlyVBANIut0W+SNqPScYXfnBbVOaG3Hc0mTWljaGFlbCBC ZWhyaXNjaCA8bWljaGFlbEBiZWhyaXNjaC5kZT7CZgQTEQIAJgIbIwcLCQgHAwIBBhUIAgkK CwQWAgMBAh4BAheABQJS0sKXAhkBAAoJEDwQ/pbRcKYp+SEAoMJSvUzfk3u6EA1nMlMVSk85 nHhoAJ0VE5xLi2ni8j9wdx+uga7XGLtjhs7ATQRS0r7nEAQAkQLdzlu3i/Ddziadm2c/60ZX bcY3FYhHHfsKUHC/QING+lu3uHG0nPaElPTAHTr8UdFMbmpXkRs9+1v1RAvHBWW95BbUXZeu oBsoCm+4Jdktu+PeVxGKhOwQRdR30A4y/bIeRn7iMzkZKoQh0lE3ZEbs0T8TUHBGBUqwEhIv Y0MAAwUD/RXrkwtUiR61/bT96eMaxGtO15AqvlM8DYQ3Xs6EH09QlGzr/i0+usi01wGoh13p YGjzEDtTqO+lNs9AtS7nZAHA3cCWzLmdEXw6EY7IH4X7zOpKoj+JtLNjUd2Nzvhyl48LT217 g8GmCACL6Wo/G+fZ+30Mny+gWbDtEGXNIv7fwkkEGBECAAkFAlLSvucCGwwACgkQPBD+ltFw pimNZQCgnN5oibnjl7r2SVle6hgUMcckfN4AoMYRjy/Tqz9tq8TSUqNcOTjlMR7D
  • Delivered-to: sumo-user@xxxxxxxxxxx
  • List-archive: <https://dev.eclipse.org/mailman/private/sumo-user>
  • List-help: <mailto:sumo-user-request@eclipse.org?subject=help>
  • List-subscribe: <https://dev.eclipse.org/mailman/listinfo/sumo-user>, <mailto:sumo-user-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://dev.eclipse.org/mailman/options/sumo-user>, <mailto:sumo-user-request@eclipse.org?subject=unsubscribe>
  • Openpgp: preference=signencrypt
  • User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0

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 <jmonreal@xxxxxxxxx
> <mailto:jmonreal@xxxxxxxxx>> 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
> sumo-user@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from this list, visit
> https://dev.eclipse.org/mailman/listinfo/sumo-user
> 


Attachment: signature.asc
Description: OpenPGP digital signature


Back to the top