*** 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.  ***

I am trying to build the simplest of demo applications from the Robot Operating 
System (ROS) on top of RTEMS.

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.

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).

My 'waf configure' command seems to complete without error.

When I 'waf build -v’, I get a slew of errors.

1.  A trace from the first set of errors is below.  Basically, all of the 
‘using ::[something]’ statements in ctime produce similar error.

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.

I am using MacO Catalina 10.15.2 on a MacBook Pro.

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.

Mike

---

examples $ ./waf build
Waf: Entering directory 
`/Users/michaeldodson/projects/rtems_root/examples/build/riscv-rtems5-rv64imac_medany'
[1/4] Compiling ros/talker/talker.cpp
[2/4] Compiling ros/talker/talker_init.c
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,
                 from 
/Users/michaeldodson/projects/rtems_root/rtems/5/lib/gcc/riscv-rtems5/9.2.0/include/c++/locale:41,
                 from 
/Users/michaeldodson/projects/rtems_root/rtems/5/lib/gcc/riscv-rtems5/9.2.0/include/c++/iomanip:43,
                 from 
/usr/local/include/boost/math/policies/error_handling.hpp:12,
                 from 
/usr/local/include/boost/math/special_functions/round.hpp:14,
                 from 
../../../../ros/melodic_catkin_ws/install_isolated/include/ros/time.h:58,
                 from 
../../../../ros/melodic_catkin_ws/install_isolated/include/ros/ros.h:38,
                 from ../../ros/talker/talker.cpp:1:
/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
   64 |   using ::clock;
      |           ^~~~~
_______________________________________________
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

Reply via email to