Skip to content

Linux releases are glibc-only (2.39 floor) — ship musl builds too #175

Closed

Description

@avrabe

What was measured

v0.37.0's Linux x86_64 release asset, downloaded from this repo and inspected on 2026-09-22:

$ file varve-producer
ELF 64-bit LSB pie executable, x86-64, dynamically linked,
interpreter /lib64/ld-linux-x86-64.so.2

$ strings -a varve-producer | grep -oE 'GLIBC_[0-9.]+' | sort -V | tail -1
GLIBC_2.39

So the binary is dynamically linked against glibc with a 2.39 floor.

Target glibc Runs this binary
Ubuntu 22.04 2.35 ✗
Debian 12 (bookworm) 2.36 ✗
RHEL 9 / Amazon Linux 2023 2.34 ✗
Ubuntu 20.04 2.31 ✗
Alpine / distroless-static musl / none ✗

Why this is being raised here

These binaries are ingested into the varve pulseengine realm's rolling layer — the pinned
toolchain an air-gapped or enterprise consumer installs. A layer's portability is the maximum
floor across its payloads, so one 2.39 payload sets the floor for the whole toolchain. Measured
across the realm on 2026-09-22:

Repo Release glibc floor
rivet v0.37.0 2.39
spar v0.40.0 2.39
synth v0.69.0 2.39
witness v0.43.0 2.39
sigil (wsc) v0.11.0 2.39
varve v0.37.0 2.39
ordeal v0.19.0 2.34
loom v1.4.1 2.34
meld v0.58.2 2.34
kiln v0.5.0 2.34

No repo in the org publishes a musl asset. The split between 2.34 and 2.39 is itself
unintended — it is which runner image the workflow happened to use, not a decision anyone made.

What is being asked for

Add the two musl targets to this repo's release matrix, alongside the existing gnu ones:

x86_64-unknown-linux-musl
aarch64-unknown-linux-musl

Keep the existing asset naming (varve-<tag>-<triple>.tar.gz) — varve derives asset names from
the Rust triple, so musl assets are picked up by a one-line change in the realm manifest and
nothing else. A musl build is statically linked and runs on every Linux above, including Alpine
and distroless-static.

Caveats worth stating rather than discovering: musl's allocator is slower under heavy
multi-threaded allocation, and a static binary cannot use glibc NSS or dlopen host libraries.
For a CLI that reads files and writes reports, neither usually applies — if this tool does either,
say so on this issue and the answer for it is "lower the gnu floor" instead.

The decision is the maintainer's

Three options, in the order I would pick them:

  1. musl beside gnu (recommended) — both assets ship; consumers choose; nothing regresses.
  2. musl replacing gnu — one artifact, maximal portability, loses NSS/dlopen.
  3. Keep gnu, lower the floor — build on ubuntu-22.04, giving a 2.35 floor. Cheapest, still
    excludes Alpine and distroless-static.

Filed from the varve side, where the floor is visible; the call belongs to this repo.

Activity

  1. avrabe commented on Sep 22, 2026

    @avrabe
    ContributorAuthor

    Filed across the realm on 2026-09-22, one per repo, each carrying that repo's own measurement:

    Repo Floor Issue
    rivet 2.39 pulseengine/rivet#980
    spar 2.39 pulseengine/spar#447
    synth 2.39 pulseengine/synth#1349
    witness 2.39 pulseengine/witness#234
    sigil (wsc) 2.39 pulseengine/sigil#279
    ordeal 2.34 pulseengine/ordeal#143
    loom 2.34 pulseengine/loom#388
    meld 2.34 pulseengine/meld#432
    kiln 2.34 pulseengine/kiln#514
    varve 2.39 this issue

    varve's own part is two-sided, and only the first half is this issue:

    1. Publish musl assets for varve and varve-producer — the same change asked of every other
      repo, and the one this repo can make without waiting for anyone.
    2. Say what a layer's floor is. varve is where the floor becomes visible and it currently says
      nothing about it: varve inspect reports platforms as triples, and a triple is a platform key,
      not a libc claim — the pulseengine-wasm realm already maps bytecodealliance's musl wac
      binaries onto x86_64-unknown-linux-gnu slots. A consumer installing the rolling layer on RHEL 9
      today gets binaries that will not start, and nothing in the layer, the manifest or inspect
      warned them. Whether that becomes a recorded annotation, an install-time check against the host's
      own glibc, or both, is a design question this issue should settle before the assets land.

    The second half is the reason this was worth measuring rather than assuming: no consumer-visible
    artifact in varve records the ABI a payload needs.

  2. avrabe commented on Sep 24, 2026

    @avrabe
    ContributorAuthor

    Decision (maintainer, 2026-09-24): the pulseengine layer's Linux payloads
    switch to musl.

    What that means for each side, because they are different asks:

    • The tool repos publish musl beside gnu — option 1 in each issue,
      unchanged. Keeping gnu costs one matrix entry and serves anyone who takes
      binaries directly.
    • The layer ingests the musl asset for its Linux platform keys. A consumer
      installing the rolling toolchain then gets statically linked binaries that
      run on RHEL 9, Debian 12, Amazon Linux 2023, Alpine and distroless-static
      — none of which can run what the layer ships today (measured GLIBC_2.39
      floor on six of ten payloads).

    The constraint anyone implementing this needs to know first

    musl cannot be a new platform key in varve. host_platform() maps Linux to
    {arch}-unknown-linux-gnu unconditionally:

    "linux" => format!("{arch}-unknown-linux-gnu"),

    So a payload keyed x86_64-unknown-linux-musl would match no host, never
    be selected at install, and fail closed with "carries no entry for platform
    x86_64-unknown-linux-gnu". The triple in a layer is a platform key, not a
    libc claim.

    The musl asset therefore fills the gnu-keyed slot, via asset-for:

    [[tool]]
    name    = "rivet"
    version = "v0.37.0"
    [tool.asset-for]
    "x86_64-unknown-linux-gnu"  = "rivet-v0.37.0-x86_64-unknown-linux-musl.tar.gz"
    "aarch64-unknown-linux-gnu" = "rivet-v0.37.0-aarch64-unknown-linux-musl.tar.gz"

    This is not a workaround invented for the occasion — the pulseengine-wasm
    realm already does exactly this for wac, whose upstream publishes musl
    binaries only.

    Sequencing

    varve goes first because it is ours and unblocked: v0.39.0 publishes musl
    assets for varve, varve-producer and varve-serve, and the layer switches
    varve-producer to them. Every other tool follows as its own issue lands, one
    asset-for block at a time — the switch is per payload, so the layer is never
    half-broken.

    Not before v0.39.0, deliberately: release.yml changes first execute when a
    tag is pushed, and #186 adds the gate that rehearses
    release-only actions on pull requests. Shipping an unrehearsed release-workflow
    change in front of a tag is the failure that gate exists to prevent.

  3. avrabe commented on Sep 24, 2026

    @avrabe
    ContributorAuthor

    Closing as done — evidence in the current tree:

    .github/workflows/release.yml builds the x86_64- and aarch64-unknown-linux-musl legs, citing this issue (landed in d692995, v0.39.0). The layer switch to musl is recorded in the decision comment above.

    Found by a sweep of all 50 open issues against main (2026-09-24): 18 were already resolved by the v0.28–v0.38 hardening wave and had simply never been closed. If this is wrong, reopen — the check was mechanical, not a judgement about scope.

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