Skip to content

Zephyr SDK 0.16.9-rc2 breaks build if <zephyr/posix/time.h> is included #205

@schneider-engineering

Description

@schneider-engineering

CONFIG_POSIX_CLOCK=y is set. Downgrading to v0.26.14 helped.

Error:

In file included from /builds/x/zephyr/include/zephyr/posix/time.h:61,
                 from /builds/x/firmware/app/src/time_utils.c:3:
/builds/x/zephyr/include/zephyr/posix/posix_types.h:33:18: error: conflicting types for 'clockid_t'; have 'uint32_t' {aka 'unsigned int'}
   33 | typedef uint32_t clockid_t;
      |                  ^~~~~~~~~
In file included from /builds/x/zephyr/include/zephyr/posix/posix_types.h:11:
/opt/toolchains/zephyr-sdk-0.16.9-rc2/arm-zephyr-eabi/picolibc/include/sys/types.h:217:25: note: previous declaration of 'clockid_t' with type 'clockid_t' {aka 'long unsigned int'}
  217 | typedef __clockid_t     clockid_t;
      |                         ^~~~~~~~~

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