Skip to content

rcutils/src/time_unix.c fails on foxy #105

Description

@Bamelink

Time_unix.c fails

  • Hardware: STM32F4_Discovery
  • RTOS: Zephyr
  • Installation type: module
  • Version: foxy

Steps to reproduce the issue

I have taken the folder "modules/libmicroros" from the foxy branch and added them to my application. When building, the following output happens:

/home/jan/zephyrproject/autonomous-system-controller/Software/application/modules/libmicroros/micro_ros_src/src/rcutils/src/time_unix.c:33:10: fatal error: posix/time.h: No such file or directory
   33 | #include <posix/time.h>  //  Points to Zephyr toolchain posix time implementation
      |          ^~~~~~~~~~~~~~

There the include path for Zephyr is wrong (at least for my tested versions 3.1.0 and 3.2.0). Is has to be

#include <zephyr/posix/time.h>

Changing this makes it compile and link without any error.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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