[Buildroot] [PATCH 2020.02.x] package/systemd: bump required toolchain headers for systemd-networkd

Michael Nosthoff buildroot at heine.tech
Tue Sep 16 14:51:17 UTC 2025


Hi Collin, all,

On Tuesday, September 16, 2025 16:19 CEST, Colin Foster <colin.foster at in-advantage.com> wrote:

> Hello,
> 
> On Mon, Aug 18, 2025 at 08:42:35AM +0200, Christian Hitz via buildroot wrote:
> > From: Christian Hitz <christian.hitz at bbv.ch>
> > 
> > Since 256.12 systemd-networkd requires kernel >=5.4 due to the inclusion of
> > the sockios.h header, which uses the SIOCGSTAMP_OLD macro.
> 
> FYI, this seems to break in 2024.02.6. The
> TOOLCHAIN_EKTERNAL_BOOTLIN_*_STABLE refer to
> BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_19.
> 
> However, the website https://toolchains.bootlin.com/ suggests the
> stable headers are 5.4.296. Perhaps those toolchains only need updating?
> 
> It isn't immediately clear which headers are in ARM 14.2.rel1, but that
> claims to be AT_LEAST_4_20
> 
> The end result I'm seeing is systemd-networkd doesn't compile.
> Compilation failed in 2025.02.5, actually, due to the same macro.
> 
> Does this need an upstream patch?
> 

I ran into the same issue when bumping our build to 2025.02.5. We are building
for arm32 and use the default arm toolchain which contains Kernel Headers 4.20 (I verified this
in the linux/version.h file).

The solution for our build was dropping the header from the systemd src. It doesn't
seem to be required atm. See patch here: https://gitlab.com/-/snippets/4888828

Nevertheless I now see the warning introduced by the Patch from Christian in 2025.02.6.
I guess I need to revert it in our build. Until we can move to a newer toolchain.
I think we will move to the bootlin toolchain when bumping 2025.08 because it has
the matching headers while the arm-toolchain even in the latest release (which is not
bumped in buildroot yet) is still on 4.20.

I thought about proposing the patch for the 2025.02.x branch but I'm not sure if it breaks on
other Toolchain variants.

Regards,
Michael

> 
> Colin Foster
> _______________________________________________
> buildroot mailing list
> buildroot at buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot



More information about the buildroot mailing list