Hi,
I am running on Ubuntu 20.04 ROS Foxy.
Following the instruction on navigation tutorial (https://navigation.ros.org/build_instructions/index.html) to build navigation stack. I downloaded the files from the repo git clone https://github.com/ros-planning/navigation2.git --branch foxy-devel
After running colcon build command, the building process failed while trying to build nav2_util with the following error message:
--- stderr: nav2_util
In file included from /opt/ros/foxy/include/test_msgs/action/fibonacci.hpp:9,
from /home/paulolui/navigation2_ws/src/navigation2/nav2_util/test/test_actions.cpp:22:
/opt/ros/foxy/include/test_msgs/action/detail/fibonacci__traits.hpp:23:25: error: expected initializer before ‘<’ token
23 | inline const char * name<test_msgs::action::Fibonacci_Goal>()
| ^
/opt/ros/foxy/include/test_msgs/action/detail/fibonacci__traits.hpp:52:25: error: expected initializer before ‘<’ token
52 | inline const char * name<test_msgs::action::Fibonacci_Result>()
| ^
/opt/ros/foxy/include/test_msgs/action/detail/fibonacci__traits.hpp:81:25: error: expected initializer before ‘<’ token
81 | inline const char * name<test_msgs::action::Fibonacci_Feedback>()
| ^
In file included from /opt/ros/foxy/include/test_msgs/action/fibonacci.hpp:9,
from /home/paulolui/navigation2_ws/src/navigation2/nav2_util/test/test_actions.cpp:22:
/opt/ros/foxy/include/test_msgs/action/detail/fibonacci__traits.hpp:116:25: error: expected initializer before ‘<’ token
116 | inline const char * name<test_msgs::action::Fibonacci_SendGoal_Request>()
| ^
In file included from /opt/ros/foxy/include/test_msgs/action/fibonacci.hpp:9,
from /home/paulolui/navigation2_ws/src/navigation2/nav2_util/test/test_actions.cpp:22:
/opt/ros/foxy/include/test_msgs/action/detail/fibonacci__traits.hpp:149:25: error: expected initializer before ‘<’ token
149 | inline const char * name<test_msgs::action::Fibonacci_SendGoal_Response>()
| ^
/opt/ros/foxy/include/test_msgs/action/detail/fibonacci__traits.hpp:178:25: error: expected initializer before ‘<’ token
178 | inline const char * name<test_msgs::action::Fibonacci_SendGoal>()
| ^
/opt/ros/foxy/include/test_msgs/action/detail/fibonacci__traits.hpp:238:25: error: expected initializer before ‘<’ token
238 | inline const char * name<test_msgs::action::Fibonacci_GetResult_Request>()
| ^
/opt/ros/foxy/include/test_msgs/action/detail/fibonacci__traits.hpp:272:25: error: expected initializer before ‘<’ token
272 | inline const char * name<test_msgs::action::Fibonacci_GetResult_Response>()
| ^
/opt/ros/foxy/include/test_msgs/action/detail/fibonacci__traits.hpp:301:25: error: expected initializer before ‘<’ token
301 | inline const char * name<test_msgs::action::Fibonacci_GetResult>()
| ^
/opt/ros/foxy/include/test_msgs/action/detail/fibonacci__traits.hpp:364:25: error: expected initializer before ‘<’ token
364 | inline const char * name<test_msgs::action::Fibonacci_FeedbackMessage>()
| ^
make[2]: *** [test/CMakeFiles/test_actions.dir/build.make:63: test/CMakeFiles/test_actions.dir/test_actions.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:443: test/CMakeFiles/test_actions.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:141: all] Error 2
---
Failed <<< nav2_util [38.2s, exited with code 2]
Summary: 6 packages finished [44.3s]
1 package failed: nav2_util
1 package had stderr output: nav2_util
22 packages not processed
Originally posted by PLui on ROS Answers with karma: 18 on 2020-09-17
Post score: 0
Original comments
Comment by mrunaljsarvaiya on 2020-10-12:
I'm having the same issue, did you figure this out?
Comment by chiyaan on 2022-09-16:
I have this issue in rolling distro..Any suggestions