Skip to content

ci: build the Linux binaries on Debian bookworm (glibc 2.36) - #19

Merged
mlainez merged 3 commits into
mainfrom
ci-bookworm-glibc
Oct 19, 2026
Merged

mlainez merged 3 commits into
mainfrom
ci-bookworm-glibc

Conversation

@mlainez

@mlainez mlainez commented Oct 19, 2026

Copy link
Copy Markdown
Owner

Addresses the glibc part of #18.

The nightly Linux binaries required glibc 2.38, so they would not start on Debian bookworm (2.36), the last Debian release with 32-bit x86 kernels. The only symbols above 2.36 were __isoc23_strtol/__isoc23_strtoul: GCC 13 on the noble runner substitutes them for every strtol/strtoul call (std::stoi, std::stoul).

  • The four Linux legs now build inside a debian:bookworm container (GCC 12, glibc 2.36). The Windows legs are unchanged and still use the runner's MinGW.
  • The ports.ubuntu.com step is gone: Debian serves armhf and arm64 from its main mirror.
  • device_profile.h now includes <cstddef> for size_t. GCC 12's <vector> does not pull it in, so the bookworm build failed without it.

Verified locally

  • Builds: all four Linux legs built in debian:bookworm containers with the same packages and commands as the workflow.
  • glibc floor: the highest version any built binary needs is now GLIBC_2.36 (libemusc.so 2.34), down from 2.38.
  • Runs on bookworm: each archive ran on a stock debian:bookworm of its own architecture (amd64, i386, arm64 and armhf via qemu): emuscd --help starts, and emusc-render renders 5 s of SC-55 audio. All four renders are identical (same peak and same non-zero sample count).

🤖 Generated with Claude Code

GCC 12's headers do not pull it in through <vector>.

Assisted-by: Claude:claude-opus-5-5
Linking against the runner's glibc 2.39 made the nightly binaries require
glibc 2.38 (__isoc23_strtol/strtoul), which locks out Debian bookworm, the
last release with 32-bit x86 kernels.

Assisted-by: Claude:claude-opus-5-5
@mlainez

mlainez commented Oct 19, 2026

Copy link
Copy Markdown
Owner Author

The first CI run failed at "Create release archive". Inside a job container, ${{github.workspace}} still expands to the runner's host path, so cmake --install staged the tree where the container's tar couldn't see it. 6da370d stages it under $GITHUB_WORKSPACE instead.

With that, the whole run is green: all six builds and the test job. The four Linux archives this run built were downloaded and run on a stock debian:bookworm (glibc 2.36) of their own architecture:

archive highest glibc symbol emuscd --help 5 s SC-55 render
linux-x64 2.36 starts identical
linux-x86 (i386) 2.36 starts identical
linux-arm64 2.36 starts identical
linux-arm32 (armhf) 2.36 starts identical

@mlainez
mlainez merged commit bb7c401 into main Oct 19, 2026
16 checks passed
@mlainez
mlainez deleted the ci-bookworm-glibc branch October 19, 2026 13:24
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.

1 participant