<div dir="auto">Hi Mike,<div dir="auto"><br></div><div dir="auto">Just a thought, but it looks like you're compiling a 'c' program (based on file extension) with the c++ headers and libraries. This could be the source of the errors. </div><div dir="auto"><br></div><div dir="auto">Gedare</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jan 30, 2020, 9:13 AM M. Dodson <<a href="mailto:md403@cam.ac.uk">md403@cam.ac.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div style="word-wrap:break-word;line-break:after-white-space">
<div>*** 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><br>
</div>
<div>I am trying to build the simplest of demo applications from the Robot Operating System (ROS) on top of RTEMS.</div>
<div><br>
</div>
<div>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><br>
</div>
<div>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><br>
</div>
<div>My 'waf configure' command seems to complete without error.</div>
<div><br>
</div>
<div>When I 'waf build -v’, I get a slew of errors.</div>
<div><br>
</div>
<div>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><br>
</div>
<div>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><br>
</div>
<div>I am using MacO Catalina 10.15.2 on a MacBook Pro.</div>
<div><br>
</div>
<div>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><br>
</div>
<div>Mike</div>
<div><br>
</div>
<div>---</div>
<div><br>
</div>
<div><font face="Monaco" size="1"><span style="font-style:normal">examples $ ./waf build</span></font></div>
<div><font face="Monaco" size="1"><span style="font-style:normal">Waf: Entering directory `/Users/michaeldodson/projects/rtems_root/examples/build/riscv-rtems5-rv64imac_medany'</span></font></div>
<div><font face="Monaco" size="1"><span style="font-style:normal">[1/4] Compiling ros/talker/talker.cpp</span></font></div>
<div><font face="Monaco" size="1"><span style="font-style:normal">[2/4] Compiling ros/talker/talker_init.c</span></font></div>
<div><font face="Monaco" size="1"><span style="font-style:normal">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><font face="Monaco" size="1"><span style="font-style:normal">                 from /Users/michaeldodson/projects/rtems_root/rtems/5/lib/gcc/riscv-rtems5/9.2.0/include/c++/locale:41,</span></font></div>
<div><font face="Monaco" size="1"><span style="font-style:normal">                 from /Users/michaeldodson/projects/rtems_root/rtems/5/lib/gcc/riscv-rtems5/9.2.0/include/c++/iomanip:43,</span></font></div>
<div><font face="Monaco" size="1"><span style="font-style:normal">                 from /usr/local/include/boost/math/policies/error_handling.hpp:12,</span></font></div>
<div><font face="Monaco" size="1"><span style="font-style:normal">                 from /usr/local/include/boost/math/special_functions/round.hpp:14,</span></font></div>
<div><font face="Monaco" size="1"><span style="font-style:normal">                 from ../../../../ros/melodic_catkin_ws/install_isolated/include/ros/time.h:58,</span></font></div>
<div><font face="Monaco" size="1"><span style="font-style:normal">                 from ../../../../ros/melodic_catkin_ws/install_isolated/include/ros/ros.h:38,</span></font></div>
<div><font face="Monaco" size="1"><span style="font-style:normal">                 from ../../ros/talker/talker.cpp:1:</span></font></div>
<div><font face="Monaco" size="1"><span style="font-style:normal">/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><font face="Monaco" size="1"><span style="font-style:normal">   64 |   using ::clock;</span></font></div>
<div><font face="Monaco" size="1"><span style="font-style:normal">      |           ^~~~~</span></font></div>
</div>

_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@rtems.org" target="_blank" rel="noreferrer">users@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/users" rel="noreferrer noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/users</a></blockquote></div>