Skip to content

fix(release): build Linux on Ubuntu 22.04's glibc, 0.1.1 - #8

Merged
y0sif merged 1 commit into
mainfrom
fix/glibc-container
Oct 26, 2026
Merged

y0sif merged 1 commit into
mainfrom
fix/glibc-container

Conversation

@y0sif

@y0sif y0sif commented Oct 26, 2026

Copy link
Copy Markdown
Owner

lawh 0.1.0's Linux binaries print a loader warning at every start on glibc older than 2.39 (Ubuntu 22.04, Debian 12), and once more for each math worker:

lawh: /lib/x86_64-linux-gnu/libc.so.6: weak version `GLIBC_2.39' not found (required by lawh)

lawh still runs and exports there. The cause: built on Ubuntu 24.04, Rust std's weak pidfd_spawnp and pidfd_getpid carry the GLIBC_2.39 version. Built against glibc 2.35 they carry none (checked with a test program built in ubuntu:22.04).

  • The two Linux builds run in an ubuntu:22.04 container (pinned by digest) on the same runners. An image doesn't retire with a runner, unlike ubuntu-22.04 (2027-04-17).
  • The glibc floor step counts weak references too, and fails above 2.35, the floor the README states.
  • The smoke test fails on any stderr output from --version or the export, which runs on glibc 2.35 in the container.
  • Version 0.1.1.

🤖 Generated with Claude Code

Built on Ubuntu 24.04, std's weak pidfd_spawnp and pidfd_getpid carried GLIBC_2.39, so on an older glibc (Ubuntu 22.04, Debian 12) the loader printed "weak version `GLIBC_2.39' not found" at every start of lawh 0.1.0 and of each math worker. The Linux builds now run in an ubuntu:22.04 container, the glibc floor counts weak references and fails above 2.35, and the smoke test fails on any stderr output.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@y0sif
y0sif merged commit b3543ac into main Oct 26, 2026
24 checks passed
@y0sif
y0sif deleted the fix/glibc-container branch October 26, 2026 10:26
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