Skip to content

Conversation

@BKPepe
Copy link
Member

@BKPepe BKPepe commented Sep 29, 2025

Maintainer: me
Compile and run tested: NO
Currently don't have aarch64 env.

On OpenWrt buildbots, I noticed that syslog-ng fails for aarch64 and x86_64, because these two targets has enabled KERNEL_IO_URING [1] and syslog-ng detects it, wants to use it and thus it fails on buildbots:

In file included from iv_private.h:35,
                 from iv_event.c:27:
iv_private_posix.h:110:49: error: field 'ring' has incomplete type
  110 |                         struct io_uring         ring;
      |                                                 ^~~~
iv_private_posix.h:113:57: error: field 'ts' has incomplete type
  113 |                         struct __kernel_timespec        ts;
      |                                                         ^~
make[9]: *** [Makefile:575: iv_event.lo] Error 1

[1] https://github.com/openwrt/openwrt/blob/0147d213ffaf52a444bf0dd0c2ccd9b929ef448c/config/Config-kernel.in#L571


Buildbots failure:

OpenWrt 24.10: https://downloads.openwrt.org/releases/faillogs-24.10/aarch64_cortex-a53/packages/syslog-ng/compile.txt

OpenWrt snapshot: https://downloads.openwrt.org/snapshots/faillogs/aarch64_cortex-a53/packages/syslog-ng/compile.txt

@BKPepe BKPepe force-pushed the syslog-ng_add_iiburing branch from 2c14eff to cd5537a Compare September 29, 2025 07:33
@BKPepe
Copy link
Member Author

BKPepe commented Sep 29, 2025

Similar commits for:

@BKPepe
Copy link
Member Author

BKPepe commented Sep 29, 2025

It looks I'll need to prepare build env for aarch64 to take a look at it further. Unfortunately, this was not discovered by GitHub Actions when updating it - #26785. At least OpenWrt buildbots discovered it.

@BKPepe BKPepe force-pushed the syslog-ng_add_iiburing branch from cd5537a to 36df81c Compare October 2, 2025 07:36
@Neustradamus
Copy link

@BKPepe: Good job on it :)

@APCCV
Copy link
Contributor

APCCV commented Oct 27, 2025

Well, for what it is worth...
I have aarch64 devices (MT-6000 Flint2), and I use syslog-ng.

I upgraded to 24.10.4 with owut removing syslog-ng, and built the syslog-ng package separately using the SDK. With the SDK, the package builds fine without this PR. The package runs fine in 20.10.4.

The build failure is with the build bots... the package itself does not need this PR, at least on aarch64, and at least on a Mediatek device.

@BKPepe BKPepe force-pushed the syslog-ng_add_iiburing branch from b923dea to 761016b Compare October 28, 2025 10:44
@BKPepe
Copy link
Member Author

BKPepe commented Oct 28, 2025

This depends on #27717

@BKPepe BKPepe changed the title syslog-ng: add liburing dependency if KERNEL_IO_URING is selected syslog-ng: add ivykis dependency to fix building with enabled KERNEL_IO_URING Oct 28, 2025
Replace embedded ivykis with a separate package to improve
dependency management and enable library reuse.

The ivykis library now properly supports io_uring when
CONFIG_KERNEL_IO_URING is enabled.

Signed-off-by: Josef Schlehofer <[email protected]>
@BKPepe BKPepe force-pushed the syslog-ng_add_iiburing branch from 761016b to 839ec70 Compare October 29, 2025 06:57
@BKPepe BKPepe merged commit 8fcf45d into openwrt:master Oct 29, 2025
7 of 12 checks passed
@BKPepe
Copy link
Member Author

BKPepe commented Oct 29, 2025

Backported to OpenWrt 24.10 - 607aa2a

BKPepe added a commit to BKPepe/turris-build that referenced this pull request Oct 30, 2025
This patch was added to fix something, but
the solution is different [1]. This
is just a workaround, which works, but
the newly added dependency ivykis will be
required when I will switch syslog-ng
to use cMake instead of autotools.

[1] openwrt/packages#27551

Signed-off-by: Josef Schlehofer <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants