Skip to content

build: Link Windows-MSVC and macOS Rust targets on Linux (soldr LLVM bundle needs host libxml2.so.2) #695

Closed

Description

@zackees

Part of the cross-platform meta.

Problem

The local gate's cross lane (ci/local_gate.py lane_cross) only type-checks x86_64-pc-windows-msvc and both macOS targets. A comment there explains that Soldr's LLVM bundle links lld-link/ld64.lld against the host's libxml2.so.2, which ubuntu-26.04 does not ship. Until those targets link on Linux, macOS and Windows link errors only show up on native runners.

Change

  • Make Soldr's LLVM bundle self-contained: statically link or vendor libxml2, or link LLVM without it. This is likely an upstream Soldr change; file it there and link it here.
  • Then turn the cross lane's check into test --no-run for those targets.

Acceptance

  • soldr cargo test --workspace --no-run --target x86_64-pc-windows-msvc (and aarch64-apple-darwin) links on ubuntu-26.04.
  • The cross lane does it.

Activity

  1. zackees commented on Oct 15, 2026

    @zackees
    MemberAuthor

    Claiming (from #897; the maintainer asked to ingest the soldr fix). Plan, one PR:

    1. RED: the cross lane links (soldr cargo test --workspace --tests --no-run) for x86_64-pc-windows-msvc, aarch64-apple-darwin and x86_64-apple-darwin, still on soldr 0.9.31. It should fail at link time (lld needs the host's libxml2.so.2).
    2. GREEN: bump CI to soldr 0.9.33 (fix(llvm, darwin): self-contained managed lld (#3774); link-only lld selection for Darwin C/C++ (#3776) forge-ci/soldr#3775, self-contained lld) and the matching setup-soldr. The soldr release is in progress.
  2. added
    claimed
    on Oct 15, 2026
  3. github-actions commented on Oct 15, 2026

    @github-actions

    Claim bot: @zackees, you already hold 2 claims, the limit. Finish or release one (Releasing <item>) first.

  4. zackees commented on Oct 16, 2026

    @zackees
    MemberAuthor

    Fixed by #925 (merged as 6af9ff7). On Linux, the cross lane now links every test binary for x86_64-pc-windows-msvc, aarch64-apple-darwin and x86_64-apple-darwin, on soldr 0.9.33 with setup-soldr v0.9.86. The merge-queue run on the landed commit passed Rust Cross Lint (run 38831633918). Still open: the standalone soldr cc/c++ for msvc/Darwin (CMake cross build, #697) and running the Windows tests under Wine (#696).

  5. removed
    claimed
    on Oct 16, 2026
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

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions