Skip to content

Build with CONFIG_POSIX_API=y fails on main #96886

@dkouba-atym

Description

@dkouba-atym

Describe the bug

I switched an existing project from v4.2-branch to main today and my application now fails to build. I was able to narrow the issue down to the config value CONFIG_POSIX_API=y using a freshly checked out version of Zephyr and the hello_world sample.

Regression

  • This is a regression.

Steps to reproduce

This can be replicated with a fresh project and the following build command:

west build -b rpi_pico2/rp2350a/m33/w zephyr/samples/hello_world -- -DCONFIG_POSIX_API=y

The failure is not board specific from what I can tell. I have also tried:

  • pico_plus2/rp2350b/m33
  • rpi_pico2/rp2350a/m33

Relevant log output

/Users/dankouba/zephyrproject/zephyr/lib/posix/options/timer.c: In function 'zephyr_timer_wrapper':
/Users/dankouba/zephyrproject/zephyr/lib/posix/options/timer.c:57:23: error: 'struct sigevent' has no member named 'sigev_notify_function'
   57 |         if (timer->evp.sigev_notify_function == NULL) {
      |

Impact

Major – Severely degrades functionality; workaround is difficult or unavailable.

Environment

OS: Mac OSX

Additional Context

No response

Metadata

Metadata

Assignees

Labels

area: POSIXPOSIX API LibrarybugThe issue is a bug, or the PR is fixing a bugpriority: lowLow impact/importance bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions