colcon build fails on anything with messages now after ubuntu 20.04 foxy sudo apt upgrade
ROS2 Foxy "colcon build" now fails on Ubuntu 20.04 on many packages using messages - turtlebot3 still compiles, but if I compile anything with navigation2, such as botvac https://github.com/cpeavy2/botvac_node I get the error
stderr: nav_2d_msgs
make[2]: *** No rule to make target '/opt/ros/foxy/lib/libfastrtps.so.2.0.2', needed by 'libnav_2d_msgs__rosidl_typesupport_fastrtps_cpp.so'. Stop.
make[1]: *** [CMakeFiles/Makefile2:469: CMakeFiles/nav_2d_msgs__rosidl_typesupport_fastrtps_cpp.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
Or if I compile https://github.com/winstxnhdw/AutoCar... I get similar
stderr: ngeeann_av_msgs
make[2]: *** No rule to make target '/opt/ros/foxy/lib/libfastrtps.so.2.0.2', needed by 'libngeeann_av_msgs__rosidl_typesupport_fastrtps_cpp.so'. Stop.
make[1]: *** [CMakeFiles/Makefile2:499: CMakeFiles/ngeeann_av_msgs__rosidl_typesupport_fastrtps_cpp.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:141: all] Error 2
I notice that both failing unless I remove from the packages for anything msg dependent,
<depend>rosidl_default_generators</depend>
They then compile fine.
ps - this is after doing a sudo apt upgrade today, with the install within the past 8 weeks, so something about the foxy current build on Ubuntu 20.04 is causing this.
pps - turtlebot3 doesn't have the above depend
Example
Are all your packages updated? It looks like
ros-foxy-fastrtps
was updated from version2.0.2-2
to2.1.1-1
in the latest sync, which is probably whylibfastrtps.so.2.0.2
can't be found.I did sudo apt upgrade for the whole linux server, so looks like a dependency is missing maybe?
Oh, also in neato_botvac_ws if I run
In terms of cpu, this first happened on a Raspberry Pi running 20.04 so I tried sudo apt upgrade on an Intel VM Ubuntu 20.04 and the same happened. ROS2 was installed following the debian install method for both.