<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div class="">*** I am hitting the mailing list with two questions because I’m not sure they’re sufficiently related to be in the same email. Much of this information will be the identical between them, but the traces will be different. ***</div>
<div class=""><br class="">
</div>
<div class="">I am trying to build the simplest of demo applications from the Robot Operating System (ROS) on top of RTEMS.</div>
<div class=""><br class="">
</div>
<div class="">I have a .c file (talker_init.c) that contains my Init function and a .cpp file (talker.cpp) that contains a function creating a ROS talker (just looping “hello world [counter value]”). The Init function in the .c file calls the talker function
in the .cpp file.</div>
<div class=""><br class="">
</div>
<div class="">The ROS libraries rely on Boost libraries. I think I’ve figured out how to get waf to find them (at least, that’s not where I appear to have problems).</div>
<div class=""><br class="">
</div>
<div class="">My 'waf configure' command seems to complete without error.</div>
<div class=""><br class="">
</div>
<div class="">When I 'waf build -v’, I get a slew of errors.</div>
<div class=""><br class="">
</div>
<div class="">1. A trace from the first set of errors is below. Basically, all of the ‘using ::[something]’ statements in ctime produce similar error.</div>
<div class=""><br class="">
</div>
<div class="">2. A trace from the second set of errors is also below. I get many errors associated with boost elements being out of scope. I can build this just fine when I’m not cross-compiling for RTEMS.</div>
<div class=""><br class="">
</div>
<div class="">I am using MacO Catalina 10.15.2 on a MacBook Pro.</div>
<div class=""><br class="">
</div>
<div class="">I have added my own project directory within the rtems-examples repository and effectively copied a wscript file from another example project, so I’m still relying on the top-level wscript file and the additional elements in the rtems_waf directory.</div>
<div class=""><br class="">
</div>
<div class="">Mike</div>
<div class=""><br class="">
</div>
<div class="">---</div>
<div class=""><br class="">
</div>
<div class=""><font face="Monaco" size="1" class=""><span style="font-style: normal;" class="">examples $ ./waf build</span></font></div>
<div class=""><font face="Monaco" size="1" class=""><span style="font-style: normal;" class="">Waf: Entering directory `/Users/michaeldodson/projects/rtems_root/examples/build/riscv-rtems5-rv64imac_medany'</span></font></div>
<div class=""><font face="Monaco" size="1" class=""><span style="font-style: normal;" class="">[1/4] Compiling ros/talker/talker.cpp</span></font></div>
<div class=""><font face="Monaco" size="1" class=""><span style="font-style: normal;" class="">[2/4] Compiling ros/talker/talker_init.c</span></font></div>
<div class=""><font face="Monaco" size="1" class=""><span style="font-style: normal;" class="">In file included from /Users/michaeldodson/projects/rtems_root/rtems/5/lib/gcc/riscv-rtems5/9.2.0/include/c++/bits/locale_facets_nonio.h:39,</span></font></div>
<div class=""><font face="Monaco" size="1" class=""><span style="font-style: normal;" class=""> from /Users/michaeldodson/projects/rtems_root/rtems/5/lib/gcc/riscv-rtems5/9.2.0/include/c++/locale:41,</span></font></div>
<div class=""><font face="Monaco" size="1" class=""><span style="font-style: normal;" class=""> from /Users/michaeldodson/projects/rtems_root/rtems/5/lib/gcc/riscv-rtems5/9.2.0/include/c++/iomanip:43,</span></font></div>
<div class=""><font face="Monaco" size="1" class=""><span style="font-style: normal;" class=""> from /usr/local/include/boost/math/policies/error_handling.hpp:12,</span></font></div>
<div class=""><font face="Monaco" size="1" class=""><span style="font-style: normal;" class=""> from /usr/local/include/boost/math/special_functions/round.hpp:14,</span></font></div>
<div class=""><font face="Monaco" size="1" class=""><span style="font-style: normal;" class=""> from ../../../../ros/melodic_catkin_ws/install_isolated/include/ros/time.h:58,</span></font></div>
<div class=""><font face="Monaco" size="1" class=""><span style="font-style: normal;" class=""> from ../../../../ros/melodic_catkin_ws/install_isolated/include/ros/ros.h:38,</span></font></div>
<div class=""><font face="Monaco" size="1" class=""><span style="font-style: normal;" class=""> from ../../ros/talker/talker.cpp:1:</span></font></div>
<div class=""><font face="Monaco" size="1" class=""><span style="font-style: normal;" class="">/Users/michaeldodson/projects/rtems_root/rtems/5/lib/gcc/riscv-rtems5/9.2.0/include/c++/ctime:64:11: error: '::clock' has not been declared</span></font></div>
<div class=""><font face="Monaco" size="1" class=""><span style="font-style: normal;" class=""> 64 | using ::clock;</span></font></div>
<div class=""><font face="Monaco" size="1" class=""><span style="font-style: normal;" class=""> | ^~~~~</span></font></div>
</body>
</html>