Skip to content

Humble build error from point_types.h #1219

Closed
@shmpwk

Description

Checklist

  • I've read the contribution guidelines.
  • I've searched other issues and no duplicate issues were found.
  • I'm convinced that this is not my fault but a bug.

Description

Humble build error which comes from #include <pcl/point_types.h>.

https://github.com/autowarefoundation/autoware.universe/runs/7160982397?check_suite_focus=true#step:7:4112

The error log says

In file included from /usr/include/pcl-1.12/pcl/point_types.h:354,
                 from /__w/autoware.universe/autoware.universe/map/map_tf_generator/src/pcd_map_tf_generator_node.cpp:22:
/usr/include/pcl-1.12/pcl/impl/point_types.hpp:241:12: error: ISO C++ prohibits anonymous structs [-Werror=pedantic]

Expected behavior

no build error

Actual behavior

build error

Steps to reproduce

  1. colcon build map_tf_generator which cmake is this version https://github.com/autowarefoundation/autoware.universe/blob/4b3ca871df6262721c12b6200f17426e9a93a02a/map/map_tf_generator/CMakeLists.txt

Versions

  • ROS2 humble

Possible causes

PointCloudLibrary/pcl#2303

Additional context

No response

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