Skip to content

linux-aarch64 release UAT: a with get source build against a system package (glfw over xorg) cannot see the host's headers under the SDK sysroot; sdl's dbus chain is meson (D171 exclusion) #2903

Closed

Description

@ehartford

The linux-aarch64 release leg for v0.16.0.2 (tools/release_local.w, tools/docker/linux-aarch64, source fb8ba12) is green through the gate, :test, :test-green, :last-green and :battery-checks, then :release-uat fails two scenarios, so the platform has no v0.16.0.2 asset yet (D180: the release is not done without it).

uat: raylib_spiral  FAIL  step 3: `with get c.raylib`: raylib/6.0 requires glfw/3.4, which could not be installed
uat: sdl            FAIL  step 3: `with get c.sdl`:    sdl/3.4.16 requires dbus/1.15.8, which could not be installed
uat: 13 scenarios: 8 pass, 3 skip, 2 FAIL

1. glfw: a source build against a system package cannot see the host's headers (with get defect)

Conan Center has no armv8 Linux binary for glfw, so with get builds it from source through the compiler's own cmake, ninja and with cc (the D171 in-scope path). The recipe's xorg/system and opengl/system requirements resolve as system packages (conan_write_known_system_package: empty include_paths, link names only, "the link's to find on the machine that links", HostLibs). The compile then fails on every unit (step-3.stdout of the scenario, kept in the with-aarch64 docker volume):

[1/24] Building C object src/CMakeFiles/glfw.dir/null_joystick.c.o
FAILED: [code=1] src/CMakeFiles/glfw.dir/null_joystick.c.o
…/.build/tools/cc -D_DEFAULT_SOURCE -D_GLFW_X11 -I…/glfw-3.4/include …
…/glfw-3.4/src/x11_platform.h:32:10: fatal error: 'X11/Xlib.h' file not found

with cc on Linux compiles with --sysroot=<the SDK's libc> (ClangDriver, "if not cc_caller_names("--sysroot"): args.push("--sysroot=" ++ libc)"), so /usr/include is not searched, and a system package contributes no include directory. The container image has libx11-dev and the rest (Dockerfile line 21–22); the headers are there, the compile never looks. On darwin and linux-x86_64 glfw is a Conan binary, so this path never ran.

The model is half-built: HostLibs finds a system package's libraries on the host at link time, but nothing finds its headers at compile time. The fix belongs in the configure of a source build whose requirements include a system package: add the host's include directories after the sysroot's (-idirafter /usr/include and the multiarch dir, so the SDK's libc headers still win and only host-only headers such as X11/ resolve from the host), the same way HostLibs asks the host for library directories. Windows builds every package from source too, with no system packages, so it is unaffected.

Also: the failure message said "did not build (the compiler's output is above)" without "; the build step failed", though ninja printed 24 FAILED units: conan_run_tool's rc for cmake --build -- -k 0 read 0. Check what cmake returned there.

2. dbus: a meson build (D171: the platform comes off the scenario)

SDL's Linux chain requires dbus, a Conan binary on linux-x86_64 and a source build on linux-aarch64; dbus builds with meson (the recipe's patch 0001-meson-Use-check_header-to-confirm-headers-work.patch fails to apply, and a meson build needs Python, a host tool). Per uat/README.md "Which scenarios, on which platforms": take linux-aarch64 off sdl.uat's platforms: line (darwin, windows, linux-x86_64) with the reason, and add the row to the README table. The scenario has no platforms: line today, so it runs everywhere.

Route

Fix 1 in with get (its own iterate-tier test: a source build of glfw in the arm64 container), make the D171 edit for 2, rerun the container leg (tools/release_local.w --skip-darwin), publish the linux-aarch64 compiler and SDK. With #2902 this is the content of v0.16.0.3.

Activity

  1. ehartford commented on Nov 2, 2026

    @ehartford
    ContributorAuthor

    Fixed in #2904 (with cc on Linux searches the host's include directories after the SDK's; sdl.uat lists its platforms per D171) and released in v0.16.0.3; linux-aarch64 has been published with every release since.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions