Skip to content

build :gate is red on Linux: pcre2/zlib/tommyds/c-algorithms drift checks fail against glibc headers #2060

Closed

Description

@ehartford

On Linux x86_64 (eric-5090, glibc host headers via the pinned linux SDK), build :gate fails before its gate target: five drift checks are red. Reproduced identically on origin/wave-d65c 1089933 (a clean worktree, release built from that commit), so it does not come from any change on that stack.

  • zlib-drift-check, pcre2-drift-check, tommyds-drift-check: migrate exits 1. zlib's stderr: migrate: parse error: call to undeclared function 'fopen64'; ISO C99 and later do not support implicit function declarations / failed while scanning project for adler32.c. The migrator's C parse of the reference sources fails under glibc's headers (the _LARGEFILE64_SOURCE / fopen64 path).
  • c-algorithms-drift-check: the migrator succeeds, but 4 modules differ from the checked-in corpus (alloc_testing.w, defs.w, framework.w, test_cpp.w). Example: generated defs.w adds pub type __locale_data = opaque, a glibc-internal type the darwin-promoted corpus does not have.
  • corpus-drift-check: skipped, because it depends on pcre2-drift-check.

Expected: the drift checks pass on every host the gate runs on. Either the migrator's output is host-independent for these corpora, or the drift check compares against the corpus for the target it was promoted for. As it stands, :gate cannot be green on Linux, so agents told to build on Linux cannot run the gate there.

Repro: in a Linux worktree with the pinned SDK, run WITH=<driver> <driver> build :zlib-drift-check, then read out/tmp/action-scratch/zlib-drift-check/zlib-corpus.stderr.

Activity

  1. added 2 commits that reference this issue on Oct 3, 2026
  2. ehartford commented on Oct 3, 2026

    @ehartford
    ContributorAuthor

    Also on this host: the three test/behavior/behav_sqlite_facade_*.w tests fail at link on stage1 of wave-d65e 5ca27ec — ld.lld: error: undefined reference: dlclose@GLIBC_2.34 ... referenced by /usr/lib/x86_64-linux-gnu/libsqlite3.so (disallowed by --no-allow-shlib-undefined): the host's libsqlite3.so wants a newer glibc than the 2.28 sysroot. Compilation and the facade pass; only the link fails.

  3. added 4 commits that reference this issue on Oct 4, 2026
  4. ehartford commented on Oct 5, 2026

    @ehartford
    ContributorAuthor

    Verified on eric-5090 (Linux x86_64) at main 3f1aa3d, driven by the pinned seed: build :gate is all green in 776 s, including the four drift checks (pcre2-wo-drift, zlib-wo-drift, tommyds-wo-drift, c_algorithms-wo-drift) and corpus-drift-check. The C-model work merged in #2064.

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