Skip to content

cppcheck 2.0 nightly failures on Windows #942

@nuclearsandwich

Description

@nuclearsandwich

Bug report

Required Info:

  • Operating System:
    • Windows
  • Installation type:
    • source build
  • Version or commit hash:
    • N/A
  • DDS implementation:
    • N/A
  • Client library (if applicable):
    • N/A

Steps to reproduce issue

Install cppcheck 2.0 via Chocolatey and build almost any ROS 2 package that uses cppcheck. https://ci.ros2.org/view/nightly/job/nightly_win_rel/1576/testReport/ has many examples.

Expected behavior

cppcheck tests pass

Actual behavior

Thousands of lines of output in failed cppcheck tests similar to these:

39: [src\rclpy\_rclpy.c:77]: (error: unknownMacro) There is an unknown macro here somewhere. Configuration is required. If RCUTILS_STRINGIFY is a macro then please configure it.
39: [src\rclpy\_rclpy.c:77]: (error: unknownMacro) There is an unknown macro here somewhere. Configuration is required. If RCUTILS_STRINGIFY is a macro then please configure it.
39: [src\rclpy\_rclpy.c:77]: (error: unknownMacro) There is an unknown macro here somewhere. Configuration is required. If RCUTILS_STRINGIFY is a macro then please configure it.
4: [test\test_component_manager.cpp:68]: (error: unknownMacro) There is an unknown macro here somewhere. Configuration is required. If ; is a macro then please configure it.
4: [test\test_component_manager.cpp:68]: (error: unknownMacro) There is an unknown macro here somewhere. Configuration is required. If ; is a macro then please configure it.
4: [test\test_component_manager.cpp:68]: (error: unknownMacro) There is an unknown macro here somewhere. Configuration is required. If ; is a macro then please configure it.
1: [src\rviz_default_plugins\robot\robot.cpp:252]: (error: unknownMacro) There is an unknown macro here somewhere. Configuration is required. If ; is a macro then please configure it.

Additional information

cppcheck 2.0 was published via chocolatey on 2020-06-08 after being released on 2020-05-20. cppcheck 2.0 is also available on macOS via homebrew but we have not yet updated the macOS hosts.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions