kuka-isir / rtt_lwr

OROCOS/ROS components for light weight robots at ISIR
http://rtt-lwr.rtfd.io
Other
50 stars 26 forks source link

build err when catkin build --workspace ~/isir/lwr_ws #19

Open dbdxnuliba opened 4 years ago

dbdxnuliba commented 4 years ago

on ubunut16.04 xenomai3 gazebo8 image Errors << rtt_gazebo_embedded:make /home/dell/isir/lwr_ws/logs/rtt_gazebo_embedded/build.make.002.log
In file included from /usr/xenomai/include/cobalt/wrappers.h:21:0, from /usr/xenomai/include/cobalt/stdio.h:28, from /usr/include/wchar.h:36, from /usr/include/c++/5/cwchar:44, from /usr/include/c++/5/bits/postypes.h:40, from /usr/include/c++/5/bits/char_traits.h:40, from /usr/include/c++/5/string:40, from /usr/include/gazebo-8/gazebo/common/Animation.hh:20, from /usr/include/gazebo-8/gazebo/common/common.hh:5, from /usr/include/gazebo-8/gazebo/gazebo_core.hh:19, from /usr/include/gazebo-8/gazebo/gazebo.hh:20, from /home/dell/isir/lwr_ws/src/rtt_gazebo_embedded/include/rtt_gazebo_embedded/rtt_gazebo_embedded.hh:5, from /home/dell/isir/lwr_ws/src/rtt_gazebo_embedded/src/rtt_gazebo_embedded.cc:1: /usr/include/tbb/machine/gcc_generic.h:114:16: error: expected unqualified-id before ‘{’ token inline int clz(unsigned int x){ return __builtin_clz(x);}; ^ /usr/include/tbb/machine/gcc_generic.h:114:16: error: expected ‘)’ before ‘{’ token In file included from /usr/local/include/boost/asio/handler_type.hpp:20:0, from /usr/local/include/boost/asio/async_result.hpp:19, from /usr/local/include/boost/asio.hpp:20, from /usr/include/gazebo-8/gazebo/transport/Connection.hh:23, from /usr/include/gazebo-8/gazebo/transport/transport.hh:3, from /usr/include/gazebo-8/gazebo/gazebo_core.hh:22, from /usr/include/gazebo-8/gazebo/gazebo.hh:20, from /home/dell/isir/lwr_ws/src/rtt_gazebo_embedded/include/rtt_gazebo_embedded/rtt_gazebo_embedded.hh:5, from /home/dell/isir/lwr_ws/src/rtt_gazebo_embedded/src/rtt_gazebo_embedded.cc:1: /usr/local/include/boost/asio/detail/push_options.hpp:71:40: error: expected ‘}’ before end of line /usr/local/include/boost/asio/detail/push_options.hpp:71:40: error: expected ‘}’ before end of line /usr/local/include/boost/asio/detail/push_options.hpp:71:40: error: expected ‘}’ before end of line /usr/local/include/boost/asio/detail/push_options.hpp:71:40: error: expected declaration before end of line make[2]: [CMakeFiles/rtt_gazebo_embedded.dir/src/rtt_gazebo_embedded.cc.o] Error 1 make[1]: [CMakeFiles/rtt_gazebo_embedded.dir/all] Error 2 make[1]: Waiting for unfinished jobs.... In file included from /usr/xenomai/include/cobalt/wrappers.h:21:0, from /usr/xenomai/include/cobalt/stdio.h:28, from /usr/include/wchar.h:36, from /usr/include/c++/5/cwchar:44, from /usr/include/c++/5/bits/postypes.h:40, from /usr/include/c++/5/bits/char_traits.h:40, from /usr/include/c++/5/string:40, from /home/dell/isir/orocos-2.9_ws/install/include/rtt/OperationInterface.hpp:42, from /home/dell/isir/orocos-2.9_ws/install/include/rtt/Service.hpp:43, from /home/dell/isir/orocos-2.9_ws/install/include/rtt/TaskContext.hpp:44, from /home/dell/isir/lwr_ws/src/rtt_gazebo_embedded/example/model_plugin_example.cpp:1: /usr/include/tbb/machine/gcc_generic.h:114:16: error: expected unqualified-id before ‘{’ token inline int clz(unsigned int x){ return __builtin_clz(x);}; ^ /usr/include/tbb/machine/gcc_generic.h:114:16: error: expected ‘)’ before ‘{’ token In file included from /usr/local/include/boost/asio/handler_type.hpp:20:0, from /usr/local/include/boost/asio/async_result.hpp:19, from /usr/local/include/boost/asio.hpp:20, from /usr/include/gazebo-8/gazebo/transport/Connection.hh:23, from /usr/include/gazebo-8/gazebo/transport/transport.hh:3, from /usr/include/gazebo-8/gazebo/gazebo_core.hh:22, from /usr/include/gazebo-8/gazebo/gazebo.hh:20, from /home/dell/isir/lwr_ws/src/rtt_gazebo_embedded/example/model_plugin_example.cpp:5: /usr/local/include/boost/asio/detail/push_options.hpp:71:40: error: expected ‘}’ before end of line /usr/local/include/boost/asio/detail/push_options.hpp:71:40: error: expected ‘}’ before end of line /usr/local/include/boost/asio/detail/push_options.hpp:71:40: error: expected ‘}’ before end of line /usr/local/include/boost/asio/detail/push_options.hpp:71:40: error: expected declaration before end of line make[2]: [example/CMakeFiles/model_plugin_example.dir/model_plugin_example.cpp.o] Error 1 make[1]: [example/CMakeFiles/model_plugin_example.dir/all] Error 2 make: [all] Error 2

ahoarau commented 4 years ago

This has been addressed at : https://gitlab.denx.de/Xenomai/xenomai/commit/9f6e9ba592ed7459539c585f49fac46bb198f3e8 Just update your xenomai !