ros2 / rclcpp

rclcpp (ROS Client Library for C++)
Apache License 2.0
537 stars 417 forks source link

Humble - Ubuntu 20.04 - Link Error #2641

Open Ryanf55 opened 5 days ago

Ryanf55 commented 5 days ago

Bug report

Required Info:

Steps to reproduce issue

vcs import --input humble_min.repos
colcon build --cmake-args -DBUILD_TESTING=OFF

Logs:

Finished <<< rclcpp [0.48s]                       
Starting >>> rosbag2_test_common
Starting >>> rclcpp_lifecycle
Starting >>> rclcpp_action
Starting >>> rclcpp_components
Finished <<< rosbag2_test_common [0.21s]                                                                                                       
Starting >>> rosbag2_storage
Finished <<< rclcpp_lifecycle [0.27s]                                                                                                                                
Starting >>> test_tracetools
Finished <<< rclcpp_action [0.28s]
--- stderr: rclcpp_components  

--- stderr: rclcpp_components                                                                                                             
/usr/bin/ld: /ws/ubuntu20.04/install/rcl/lib/librcl.so: undefined reference to `rosidl_typesupport_c__get_message_type_support_handle__rcl_interfaces__msg__Log'

...
install/rclcpp/lib/librclcpp.so: undefined reference to `rosidl_message_type_support_t const* rosidl_typesupport_cpp::get_message_type_support_handle<rcl_interfaces::msg::SetParametersResult_<std::allocator<void> > >()'

Expected behavior

A configure error if there is a missing dependency

Actual behavior

A link error, I suspect from not properly calling find_package before linking a target.

Additional information

fujitatomoya commented 5 days ago

@Ryanf55 you might already know that Ubuntu Focal is Tier 3 platform for Humble, https://www.ros.org/reps/rep-2000.html#humble-hawksbill-may-2022-may-2027.

Ryanf55 commented 5 days ago

@Ryanf55 you might already know that Ubuntu Focal is Tier 3 platform for Humble, https://www.ros.org/reps/rep-2000.html#humble-hawksbill-may-2022-may-2027.

Yep. It's on hardware that can't be updated to the tier one OS.