Skip to content

Build failed with latest ros2 rolling source builds  #4816

@chanhhoang99

Description

@chanhhoang99

Bug report

Required Info:

  • Operating System:
    • Ubuntu 24.04.1 LTS
  • ROS2 Version:
    • rolling ridley
  • Version or commit hash:
  • DDS implementation:
    • Fast-RTPS

Steps to reproduce issue

Build ros2 from source: https://docs.ros.org/en/rolling/Installation/Alternatives/Ubuntu-Development-Setup.html

Then follow instruction to build nav2 https://docs.nav2.org/development_guides/build_docs/index.html

Expected behavior

Build should be passed

Actual behavior

Received failure log:

In file included from /home/server/nav2_ws/src/navigation2/nav2_util/src/robot_utils.cpp:21:
/home/server/ros2_ws/install/tf2/include/tf2/tf2/convert.h:39:7: error: #warning CONVERT_HEADER_DEPERCATION [-Werror=cpp]
   39 |     # warning CONVERT_HEADER_DEPERCATION
      |       ^~~~~~~
In file included from /home/server/nav2_ws/src/navigation2/nav2_util/include/nav2_util/robot_utils.hpp:27,
                 from /home/server/nav2_ws/src/navigation2/nav2_util/src/robot_utils.cpp:22:
/home/server/ros2_ws/install/tf2/include/tf2/tf2/time.h:36:7: error: #warning TIME_HEADER_DEPERCATION [-Werror=cpp]
   36 |     # warning TIME_HEADER_DEPERCATION
      |       ^~~~~~~
In file included from /home/server/nav2_ws/src/navigation2/nav2_util/include/nav2_util/robot_utils.hpp:28:
/home/server/ros2_ws/install/tf2/include/tf2/tf2/transform_datatypes.h:39:7: error: #warning TRANSFORM_DATATYPES_HEADER_DEPERCATION [-Werror=cpp]
   39 |     # warning TRANSFORM_DATATYPES_HEADER_DEPERCATION
      |       ^~~~~~~
In file included from /home/server/nav2_ws/src/navigation2/nav2_util/src/costmap.cpp:18:
/home/server/ros2_ws/install/tf2/include/tf2/tf2/LinearMath/Quaternion.h:23:7: error: #warning QUATERNION_HEADER_DEPERCATION [-Werror=cpp]
   23 |     # warning QUATERNION_HEADER_DEPERCATION
      |       ^~~~~~~
cc1plus: all warnings being treated as errors

Additional information

There is change from upstream of ros2/tf2 headers, should we use -Wno-error=cpp to ignore this error ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions