Closed NikolaZgonjanin closed 1 year ago
Hi, I can't reperduce this compile error :
rclc git:(humble) colcon build
Starting >>> rclc
Finished <<< rclc [30.1s]
Starting >>> rclc_lifecycle
Starting >>> rclc_parameter
Finished <<< rclc_lifecycle [15.5s]
Finished <<< rclc_parameter [30.7s]
Starting >>> rclc_examples
Finished <<< rclc_examples [12.5s]
Summary: 4 packages finished [1min 14s]
But I believe this error warning: implicit declaration of function ‘rcl_timer_init2’; did you mean ‘rcl_timer_init’? [-Wimplicit-function-declaration]
is caused by the lasted commit of rclc: humble
#387
could you info the commit hash of rcl
? maybe rcl repo need to update.
How would I go about that? I can't find in the docs where it's located nor if there is a way to check the version. I'm presuming I have the latest one as I tested it on a freshly installed ROS2 Humble and it still gave me the error.
I see, please check your rclc branch, in humble
branch, timer.c
: https://github.com/ros2/rclc/blob/7af20545ec3c11b2dcf1f99fc3705f10c45b6e2b/rclc/src/rclc/timer.c#L35
but in 'rolling' it's
https://github.com/ros2/rclc/blob/d263be2057e39f1f702f014548c60f06b5a51333/rclc/src/rclc/timer.c#L36,
I believe that you're building rclc: rolling with distro humble
rclc
checkout to humble and try again
That was it, thank you very much. I forgot to switch branches when cloning again, so full mistakes on me 😅
Steps to reproduce
Expected behavior
The workspace builds with no errors
Actual behavior
After entering
colcon build
command for the second time, the error log bellow is shown and the build failsAdditional information
Changing the
rcl_timer_init2
torcl_timer_init
in both~/rclc_ws/rclc/rclc/src/rclc/timer.c:36:18
and~/rclc_ws/rclc/rclc/test/rclc/test_executor.cpp:575:7
did not resolve the issue.Aditionally no info was found on this online hence why I'm opening up the issue.
Micro-ROS When following the Micro-ROS tutorial there were no issues related to RCLC, but when trying to install just RCLC in a seperate workspace, this error occurs