ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Here is the relevant section of https://build.ros2.org/job/Hbin_uJ64__tuw_object_msgs__ubuntu_jammy_amd64__binary/91/ and https://build.ros2.org/job/Fbin_uF64__tuw_airskin_msgs__ubuntu_focal_amd64__binary/91/ appears to have the same issue.
The log excerpt in the question is part of CMake's diagnostic output. Whenever that's encountered it's important to find the the line
-- Configuring incomplete, errors occurred!
and look above that in order to find the actual problem.
14:34:22 CMake Error at /opt/ros/humble/share/rosidl_generator_c/cmake/rosidl_generator_c_generate_interfaces.cmake:179 (find_package):
14:34:22 By not providing "Findament_cmake_cppcheck.cmake" in CMAKE_MODULE_PATH this
14:34:22 project has asked CMake to find a package configuration file provided by
14:34:22 "ament_cmake_cppcheck", but CMake did not find one.
14:34:22
14:34:22 Could not find a package configuration file provided by
14:34:22 "ament_cmake_cppcheck" with any of the following names:
14:34:22
14:34:22 ament_cmake_cppcheckConfig.cmake
14:34:22 ament_cmake_cppcheck-config.cmake
Although the dependency on ament_cmake_cppcheck
is coming from https://github.com/ros2/rosidl/blame/rolling/rosidl_generator_c/cmake/rosidl_generator_c_generate_interfaces.cmake#L198 and none of that has directly changed recently. I don't have an immediate answer for what the best way to proceed is since adding the dependency in your package isn't quite correct (although I think it would mask the problem) but the inclusion of ament_cmake_cppcheck is conditional within the CMake configuration site yet it isn't possible to make dependencies in package.xml conditional, so a case could be made that rosidl_generate_c ought to either test_depend
or buildtool_export_depend
ament_cmake_cppcheck
.
2 | No.2 Revision |
Here is the relevant section of https://build.ros2.org/job/Hbin_uJ64__tuw_object_msgs__ubuntu_jammy_amd64__binary/91/ and https://build.ros2.org/job/Fbin_uF64__tuw_airskin_msgs__ubuntu_focal_amd64__binary/91/ appears to have the same issue.
The log excerpt in the question is part of CMake's diagnostic output. Whenever that's encountered it's important to find the the line
-- Configuring incomplete, errors occurred!
and look above that in order to find the actual problem.
14:34:22 CMake Error at /opt/ros/humble/share/rosidl_generator_c/cmake/rosidl_generator_c_generate_interfaces.cmake:179 (find_package):
14:34:22 By not providing "Findament_cmake_cppcheck.cmake" in CMAKE_MODULE_PATH this
14:34:22 project has asked CMake to find a package configuration file provided by
14:34:22 "ament_cmake_cppcheck", but CMake did not find one.
14:34:22
14:34:22 Could not find a package configuration file provided by
14:34:22 "ament_cmake_cppcheck" with any of the following names:
14:34:22
14:34:22 ament_cmake_cppcheckConfig.cmake
14:34:22 ament_cmake_cppcheck-config.cmake
Although the dependency on ament_cmake_cppcheck
is coming from https://github.com/ros2/rosidl/blame/rolling/rosidl_generator_c/cmake/rosidl_generator_c_generate_interfaces.cmake#L198 and none of that has directly changed recently. I don't have an immediate answer for what the best way to proceed is since adding the dependency in your package isn't quite correct (although I think it would mask the problem) but the inclusion of ament_cmake_cppcheck is conditional within the CMake configuration site yet it isn't possible to make dependencies in package.xml conditional, so a case could be made that rosidl_generate_c ought to either test_depend
or buildtool_export_depend
ament_cmake_cppcheck
.
The issue on Foxy devel jobs is that with https://github.com/ros/rosdistro/pull/37746 merged ros_buildfarm can no longer "find" foxy because it is only looking in active distributions. In the future it would make more sense to disable the Foxy build farm jobs before merging that change.