Skip to content

Conversation

@rlubos
Copy link
Contributor

@rlubos rlubos commented May 24, 2024

Socket service library uses eventfd, which does not work with native_posix platform, hence need to exclude it from samples that now rely on socket services.

Fixes #73434

Socket service library uses eventfd, which does not work with
native_posix platform, hence need to exclude it from samples that now
rely on socket services.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
@pdgendt
Copy link
Contributor

pdgendt commented May 24, 2024

Alternative would be to use socketpair instead, which is supported on native.

@cfriedt
Copy link
Member

cfriedt commented May 24, 2024

Alternative would be to use socketpair instead, which is supported on native.

The down-side of socketpair is that it consumes 2x the file descriptors

Copy link
Contributor

@pdgendt pdgendt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be nice to have eventfd supported on posix too

@jukkar
Copy link
Member

jukkar commented May 24, 2024

Would be nice to have eventfd supported on posix too

IMHO even more nicer is if we could remove native_posix because of various issues with it 👢 👋 😀

@cfriedt
Copy link
Member

cfriedt commented May 24, 2024

Would be nice to have eventfd supported on posix too

Technically, we could have everything everywhere if we just generated namespaced syscall wrappers and avoided linking or including anything from the host libc.

The Linux system call tables get updated.. /me looks at watch.. every decade or so 🤷🏼‍♂️

It's effectively

  1. copy-paste from the Bionic Libc
  2. ask for BSD license exception
  3. profit

rlubos added a commit to rlubos/sdk-zephyr that referenced this pull request May 27, 2024
… lib is used

Socket service library uses eventfd, which does not work with
native_posix platform, hence need to exclude it from samples that now
rely on socket services.

Upstream PR: zephyrproject-rtos/zephyr#73256

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
@aescolar aescolar added the Trivial Changes that can be reviewed by anyone, i.e. doc changes, minor build system tweaks, etc. label May 29, 2024
@henrikbrixandersen henrikbrixandersen merged commit 63d4037 into zephyrproject-rtos:main May 29, 2024
anangl pushed a commit to anangl/sdk-zephyr that referenced this pull request Jul 1, 2024
… lib is used

Socket service library uses eventfd, which does not work with
native_posix platform, hence need to exclude it from samples that now
rely on socket services.

Upstream PR: zephyrproject-rtos/zephyr#73256

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
(cherry picked from commit b0630e5)
@rlubos rlubos deleted the samples/net-disable-native-posix-testing branch July 1, 2024 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Networking area: POSIX POSIX API Library area: Samples Samples area: Sockets Networking sockets Trivial Changes that can be reviewed by anyone, i.e. doc changes, minor build system tweaks, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Several samples which need EVENTFD fail to build for native_posix[//64]

9 participants