Skip to content

Keep kernal-api within the glibc 2.17 (manylinux_2_17) floor fbuild ships; add a link-time guard #395

Open

Description

@zackees

Context

This crate is linked into fbuild's fbuild-daemon / fbuild binaries and
its PyO3 wheel. Those ship as manylinux_2_17 (glibc ≥ 2.17) for x86_64
and aarch64. Tracking issue: FastLED/fbuild#1629.

Any use of a glibc symbol newer than 2.17 here breaks fbuild's release link or,
worse, its wheel at import time on older distros. Typical traps are libc
wrappers that are newer than the syscall itself:

  • memfd_create (glibc 2.27)
  • getrandom (2.25)
  • copy_file_range (2.27)
  • close_range (2.34)
  • pidfd_* (2.36)
  • statx (2.28)
  • renameat2 (2.28)
  • gettid (2.30)

Use libc::syscall(SYS_…) for those, with a runtime fallback, because the
kernel floor is older too: manylinux2014 is Linux 3.10. fbuild just hit exactly
this with memfd_create, and it only surfaced when cross-linking against a
glibc-2.17 sysroot.

Measured

As linked into fbuild today, the whole graph is within the floor:

  • x86_64 max is GLIBC_2.16
  • aarch64 max is GLIBC_2.17

Measured with objdump -T on release fbuild-daemon built with
soldr build --target {x86_64,aarch64}-unknown-linux-gnu. So this is a
guard request, not a current breakage.

Ask

  • In existing CI, cross-link a test/bin for x86_64-unknown-linux-gnu and
    aarch64-unknown-linux-gnu against a glibc-2.17 sysroot (soldr build --target …, not the host toolchain). Fail if
    objdump -T … | grep -o 'GLIBC_[0-9.]*' | sort -Vu | tail -1 exceeds 2.17.
  • Keep newer-than-3.10 kernel features behind runtime fallbacks.

Fix together with FastLED/fbuild#1629.

Activity

  1. zackees commented on Oct 2, 2026

    @zackees
    CollaboratorAuthor

    Sibling issues to fix together: FastLED/fbuild#1629 (tracking), forge-ci/zccache#1878, #395, zackees/running-process#1301, forge-ci/zccache#1879 (APE toolchain cache bypass).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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