Skip to content

bundles: cross compilers embed no .wo yet — per-target pcre2 bundles for the cross/win lanes #946

Closed

Description

@ehartford

What

Batch C3 (branch wo-c3) embeds the pcre2 bundle (object, manifest, interface) only in the native release binary; the bootstrap-lib and the four cross embedded-object sets carry zero-length slot blobs (the compiler reads an empty manifest as "not present"). A native compiler asked to cross-link a program that needs pcre2 gets a hard error (built for target darwin_aarch64 but this link targets …), never a silent mixed-target link.

Fix

wo_bundle (build/wo.w) already keys a store slot per <target>-<abi_sha>; the cross lanes need their own pcre2-wo builds (--target=<triple> through the release compiler, the way the cross regex-runtime-ir targets run today) and the cross embedded-objects must embed those slots. Until C4 retires the shim, the cross lanes still link regex_runtime.o, so nothing is broken today; this becomes required when the shim goes.

Activity

  1. ehartford commented on Sep 3, 2026

    @ehartford
    ContributorAuthor

    Fixed on main: 7a8b8b8 (with check reads --target so a cross bundle's interface fingerprint is taken under its target) and c541e8d (per-target bundle plans; every cross compiler embeds the pcre2 bundle built for its own target; empty slot blobs remain only for bootstrap-lib). All four cross slots build under --target with per-slot fingerprint agreement; the cross embedded objects carry the blobs at exact sizes; a cross link with no matching bundle refuses per D38. Cross compiler binaries themselves cannot be linked on this box (no cross LLVM SDKs); CI links them. Battery green, pushed, reseeded.

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