Skip to content

Windows LLVM SDK is not published in tagged releases (present in 1 of the last 15), so a released Windows compiler has no SDK to link with #1145

Closed

Description

@joshhickson

Summary

The Windows LLVM SDK is published only sporadically. It is present in 1 of the last 15 releases and absent from every recent tagged release, including the current v0.15.2.1. Linux and macOS SDKs ship in tagged releases normally.

Consequence: a Windows user who downloads a tagged release gets a compiler that cannot link, and there is no Windows SDK in that release to point LLVM_PREFIX at.

Reproduction

curl -fsSL "https://api.github.com/repos/withlang-dev/with/releases?per_page=15" \
  | python -c "
import json,sys
for r in json.load(sys.stdin):
    sdk=[a for a in r['assets'] if 'windows-x86_64' in a['name'] and 'sdk' in a['name'].lower() and a['name'].endswith('.tar.gz')]
    print(f\"{r['tag_name']:<46} sdk={'YES' if sdk else 'no'}\")"

Actual

Release Windows x86_64 SDK
nightly-20260907-34132069721-1-8a729db8d01f yes (268 MiB)
v0.15.2.1 no
v0.15.2.0 no
v0.15.1.8 no
v0.15.1.7 no
(10 further releases) no

Meanwhile v0.15.2.1 does publish with-llvm-sdk-22.1.6-darwin-aarch64.tar.gz, …-linux-aarch64.tar.gz and …-linux-x86_64.tar.gz.

Expected

If the Windows release binary requires an SDK to link (it does — see #1075), the matching Windows SDK should be published in the same release.

Why this may matter more than it looks

I suspect this is upstream of the user-facing half of #1075: a Windows user installing from a tagged release has no SDK available at all, so there is nothing to set LLVM_PREFIX to without going asset-hunting through older nightlies. It may also mean the Windows release UAT lane did not run for this release — build/release_uat.w:376-425 drives with init -> with get c.raylib -> with check -> with run, and that sequence currently fails on Windows (filed separately).

Related but distinct: #1079 (the release-asset lookup is broken by line-by-line JSON parsing) — that is about failing to find a published asset; this is about the asset not being published.

Environment

With v0.15.2.1 (release asset with-windows-x86_64.exe, sha256 8f4817f2c4a3a916515ec93fd8a8f228bc9cfcd423689c5977dc564efc02a115, matching the with-windows-x86_64.exe pin in seed.lock)
Host Windows 11 Home 10.0.26200, x86_64
LLVM SDK with-llvm-sdk-22.1.6-windows-x86_64.tar.gz taken from nightly-20260907-34132069721-1-8a729db8d01f, with LLVM_PREFIX set (see the linked issue on SDK packaging)

First-time install on a machine with no prior With and no system LLVM.

Activity

  1. ehartford commented on Oct 25, 2026

    @ehartford
    Contributor

    Triage 2026-10-25, with v0.15.3.0 (main a261b65): reproduced. The latest tagged release, v0.15.2.1, and the three before it carry no Windows SDK asset, and the newest nightly (nightly-20261025-local-1-c88f3eeff0bc) carries only with-windows-x86_64.exe. Since #1937 the Windows compiler is meant to bring its own linker and C runtime, so the next tagged release decides whether a separate SDK is still needed.

    $ gh release view v0.15.2.1 --json assets --jq '[.assets[].name | select(contains("sdk") and contains("windows"))]'
    []
    

    pre-release: the release itself is where this is fixed; the next tag must ship either the self-contained compiler or the SDK, verified on a machine with no LLVM.

  2. ehartford commented on Oct 25, 2026

    @ehartford
    Contributor

    Fix campaign 2026-10-25: closing. This does not reproduce on the current Windows compiler.

    Since #1915/#1937 the Windows compiler carries its own lld-link and C runtime, so it needs no SDK to link. I checked the published asset on the Windows VM. The VM has no LLVM installed and LLVM_PREFIX is unset (Environment variable LLVM_PREFIX not defined):

    > gh release download nightly-20261025-local-1-c88f3eeff0bc -p with-windows-x86_64.exe   # sha256 8249bc1d3defc97c…
    C:\Users\Eric\t1145b> C:\Users\Eric\t1145b\with.exe run hello.w
    hi
    

    The next tagged release ships this compiler. The release runbook's Windows verification is where that gets checked again.

    One defect turned up along the way and is filed separately as #2647. Run from cmd as a bare with.exe, the compiler re-invokes whichever with.exe is first on PATH for its own linker (unknown command '__ld' when that copy is older).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions