Building OT_COMISSIONER gives error #9697
Unanswered
guillermovidalsule
asked this question in
Q&A
Replies: 2 comments
-
Hi, what's "BBB"? Could you provide the complete output of the build command in an attached txt file? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hello!
According to https://stackoverflow.com/questions/48149323/what-does-the-gcc-warning-project-parameter-passing-for-x-changed-in-gcc-7-1-m most of the output are warnings and can be ignored. But there are some errors and it ends up getting killed, usually at interpreter / interpreter_test if I'm not wrong. I'm attaching the error message in a txt file: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to build and configure the commissioner following this guide: https://openthread.io/guides/commissioner/build.md
However, when I execute the command
ninja -j1
I get the following error:Notes
[21/253] Building CXX object src/app/cli/CMakeFiles/interpreter-test.dir/interpreter_test.cpp.o
it stays there for a very long time (>30min) and then it says:c++: fatal error: Killed signal terminated program cc1plus compilation terminated. ninja: build stopped: subcommand failed.
[2/256] Building CXX object src/app/CMakeFiles/commissioner-app.dir/commissioner_app.cpp.o ../src/app/commissioner_app.cpp: In member function ‘virtual ot::commissioner::Error ot::commissioner::CommissionerApp::SetPanId(ot::commissioner::PanId, ot::commissioner::CommissionerApp::MilliSeconds)’: ../src/app/commissioner_app.cpp:690:7: note: parameter passing for argument of type ‘ot::commissioner::PanId’ changed in GCC 7.1 Error CommissionerApp::SetPanId(PanId aPanId, MilliSeconds aDelay) ^~~~~~~~~~~~~~~ In file included from /usr/include/c++/8/map:60, from ../src/app/commissioner_app.hpp:44, from ../src/app/commissioner_app.cpp:34: /usr/include/c++/8/bits/stl_tree.h: In member function ‘std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::size_type std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::erase(const _Key&) [with _Key = ot::commissioner::CommissionerApp::JoinerKey; _Val = std::pair<const ot::commissioner::CommissionerApp::JoinerKey, ot::commissioner::JoinerInfo>; _KeyOfValue = std::_Select1st<std::pair<const ot::commissioner::CommissionerApp::JoinerKey, ot::commissioner::JoinerInfo> >; _Compare = std::less<ot::commissioner::CommissionerApp::JoinerKey>; _Alloc = std::allocator<std::pair<const ot::commissioner::CommissionerApp::JoinerKey, ot::commissioner::JoinerInfo> >]’: /usr/include/c++/8/bits/stl_tree.h:2518:7: note: parameter passing for argument of type ‘std::_Rb_tree<ot::commissioner::CommissionerApp::JoinerKey, std::pair<const ot::commissioner::CommissionerApp::JoinerKey, ot::commissioner::JoinerInfo>, std::_Select1st<std::pair<const ot::commissioner::CommissionerApp::JoinerKey, ot::commissioner::JoinerInfo> >, std::less<ot::commissioner::CommissionerApp::JoinerKey>, std::allocator<std::pair<const ot::commissioner::CommissionerApp::JoinerKey, ot::commissioner::JoinerInfo> > >::const_iterator’ {aka ‘std::_Rb_tree_const_iterator<std::pair<const ot::commissioner::CommissionerApp::JoinerKey, ot::commissioner::JoinerInfo> >’} changed in GCC 7.1 _M_erase_aux(__p.first, __p.second); ^~~~~~~~~~~~ /usr/include/c++/8/bits/stl_tree.h: In member function ‘std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::erase(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator) [with _Key = ot::commissioner::CommissionerApp::JoinerKey; _Val = std::pair<const ot::commissioner::CommissionerApp::JoinerKey, ot::commissioner::JoinerInfo>; _KeyOfValue = std::_Select1st<std::pair<const ot::commissioner::CommissionerApp::JoinerKey, ot::commissioner::JoinerInfo> >; _Compare = std::less<ot::commissioner::CommissionerApp::JoinerKey>; _Alloc = std::allocator<std::pair<const ot::commissioner::CommissionerApp::JoinerKey, ot::commissioner::JoinerInfo> >]’: /usr/include/c++/8/bits/stl_tree.h:1141:2: note: parameter passing for argument of type ‘std::_Rb_tree<ot::commissioner::CommissionerApp::JoinerKey, std::pair<const ot::commissioner::CommissionerApp::JoinerKey, ot::commissioner::JoinerInfo>, std::_Select1st<std::pair<const ot::commissioner::CommissionerApp::JoinerKey, ot::commissioner::JoinerInfo> >, std::less<ot::commissioner::CommissionerApp::JoinerKey>, std::allocator<std::pair<const ot::commissioner::CommissionerApp::JoinerKey, ot::commissioner::JoinerInfo> > >::const_iterator’ {aka ‘std::_Rb_tree_const_iterator<std::pair<const ot::commissioner::CommissionerApp::JoinerKey, ot::commissioner::JoinerInfo> >’} changed in GCC 7.1 _M_erase_aux(__position); ^~~~~~~~~~~~ /usr/include/c++/8/bits/stl_tree.h: In member function ‘void std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_erase_aux(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator, std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator) [with _Key = ot::commissioner::CommissionerApp::JoinerKey; _Val = std::pair<const ot::commissioner::CommissionerApp::JoinerKey, ot::commissioner::JoinerInfo>; _KeyOfValue = std::_Select1st<std::pair<const ot::commissioner::CommissionerApp::JoinerKey, ot::commissioner::JoinerInfo> >; _Compare = std::less<ot::commissioner::CommissionerApp::JoinerKey>; _Alloc = std::allocator<std::pair<const ot::commissioner::CommissionerApp::JoinerKey, ot::commissioner::JoinerInfo> >]’: /usr/include/c++/8/bits/stl_tree.h:2500:5: note: parameter passing for argument of type ‘std::_Rb_tree<ot::commissioner::CommissionerApp::JoinerKey, std::pair<const ot::commissioner::CommissionerApp::JoinerKey, ot::commissioner::JoinerInfo>, std::_Select1st<std::pair<const ot::commissioner::CommissionerApp::JoinerKey, ot::commissioner::JoinerInfo> >, std::less<ot::commissioner::CommissionerApp::JoinerKey>, std::allocator<std::pair<const ot::commissioner::CommissionerApp::JoinerKey, ot::commissioner::JoinerInfo> > >::const_iterator’ {aka ‘std::_Rb_tree_const_iterator<std::pair<const ot::commissioner::CommissionerApp::JoinerKey, ot::commissioner::JoinerInfo> >’} changed in GCC 7.1 _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/c++/8/bits/stl_tree.h:2500:5: note: parameter passing for argument of type ‘std::_Rb_tree<ot::commissioner::CommissionerApp::JoinerKey, std::pair<const ot::commissioner::CommissionerApp::JoinerKey, ot::commissioner::JoinerInfo>, std::_Select1st<std::pair<const ot::commissioner::CommissionerApp::JoinerKey, ot::commissioner::JoinerInfo> >, std::less<ot::commissioner::CommissionerApp::JoinerKey>, std::allocator<std::pair<const ot::commissioner::CommissionerApp::JoinerKey, ot::commissioner::JoinerInfo> > >::const_iterator’ {aka ‘std::_Rb_tree_const_iterator<std::pair<const ot::commissioner::CommissionerApp::JoinerKey, ot::commissioner::JoinerInfo> >’} changed in GCC 7.1 /usr/include/c++/8/bits/stl_tree.h:2507:4: note: parameter passing for argument of type ‘std::_Rb_tree_const_iterator<std::pair<const ot::commissioner::CommissionerApp::JoinerKey, ot::commissioner::JoinerInfo> >’ changed in GCC 7.1 _M_erase_aux(__first++); ^~~~~~~~~~~~ /usr/include/c++/8/bits/stl_tree.h: In member function ‘void std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_erase_aux(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator) [with _Key = ot::commissioner::CommissionerApp::JoinerKey; _Val = std::pair<const ot::commissioner::CommissionerApp::JoinerKey, ot::commissioner::JoinerInfo>; _KeyOfValue = std::_Select1st<std::pair<const ot::commissioner::CommissionerApp::JoinerKey, ot::commissioner::JoinerInfo> >; _Compare = std::less<ot::commissioner::CommissionerApp::JoinerKey>; _Alloc = std::allocator<std::pair<const ot::commissioner::CommissionerApp::JoinerKey, ot::commissioner::JoinerInfo> >]’: /usr/include/c++/8/bits/stl_tree.h:2486:5: note: parameter passing for argument of type ‘std::_Rb_tree<ot::commissioner::CommissionerApp::JoinerKey, std::pair<const ot::commissioner::CommissionerApp::JoinerKey, ot::commissioner::JoinerInfo>, std::_Select1st<std::pair<const ot::commissioner::CommissionerApp::JoinerKey, ot::commissioner::JoinerInfo> >, std::less<ot::commissioner::CommissionerApp::JoinerKey>, std::allocator<std::pair<const ot::commissioner::CommissionerApp::JoinerKey, ot::commissioner::JoinerInfo> > >::const_iterator’ {aka ‘std::_Rb_tree_const_iterator<std::pair<const ot::commissioner::CommissionerApp::JoinerKey, ot::commissioner::JoinerInfo> >’} changed in GCC 7.1 _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>:: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I don't even know where to start to fix this error, please help me.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions