You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Published LLVM SDK assets cannot bootstrap sdk-ninja: dangling bin/clang links, cmake without share/, aarch64 assets without cmake/ninja #1259
Since #1210 added .github/actions/source-sdk, every PR's linux x86_64, linux aarch64, windows x86_64 and windows aarch64 lanes fail in sdk-ninja (e.g. #1258, run 35614097023; main run 35633742287):
linux x86_64 (v0.15.1with-llvm-sdk-22.1.6-linux-x86_64.tar.zst): bin/clang -> clang-22 and bin/clang++ -> clang are symlinks and clang-22 is not in the archive; there is no share/ (cmake's modules). missing bootstrap SDK clang: .deps/llvm-22.1.6-linux-x86_64/bin/clang.
windows x86_64 (v0.15.1): cmake.exe without share/cmake-* → CMake Error: Could not find CMAKE_ROOT.
linux aarch64 / windows aarch64 (sdk-linux-aarch64, sdk-windows-aarch64 releases): older builds, bin/clang present, no cmake/ninja.
None of these was produced by build/sdk.w's packager (no With code or workflow writes .tar.zst; the tarball owner is lazarus, 2026-06-08) — they predate it, and the packager itself would have refused two of them (it requires the CMake modules) but did not select the driver the clang links point to either.
Fix branch sdk-package-bootstraps: the packager selects bin/clang-<major> and refuses an archive that cannot bootstrap; the CI action seeds generation zero from the runner's toolchain (loudly) until an asset produced by this action is published on every platform. Remaining: republish the SDK assets on all five platforms from a packager-produced archive and bump WITH_SDK_VERSION pins (release runbook). Related: #1156 (linux-aarch64 seed runtime), #1074.
source-sdk: seed bootstrap tools by symlink (unix) or with their trees (Windows), from the runner's tool, never the asset's own #1265: generation zero. The fetched assets cannot bootstrap, so a seeded run uses the runner's clang/cmake/ninja to build stage 1, then rebuilds the SDK with stage 1's own tools (stage 2) and packages only stage 2 — nothing host-compiled is published. The seed is a symlink on unix (a copied cmake/clang loses share/cmake-* / lib/clang) and a copy with those trees on Windows, taken from the first PATH candidate outside the bootstrap prefix (Windows command -v found the asset's own cmake.exe, without .exe).
Then: publish the five stage-2 packages as the SDK release, bump WITH_SDK_VERSION/WITH_SDK_SHA256 in the workflows, and remove the seeding in the same PR — from then on a fetched asset that cannot bootstrap is a hard failure.
Fact for the record: the published windows x86_64 v0.15.1 asset has bin/cmake.exe, clang.exe, clang++.exe, ninja.exe and no share/ at all (473 entries, bin/ and lib/ only); the binary looks for share/cmake-4.2, which the packager selects.
Activity
ehartford commentedon Sep 21, 2026
Plan, per Eric: the SDK contains only binaries we built, built by a toolchain we built.
share/cmake-*/lib/clang) and a copy with those trees on Windows, taken from the first PATH candidate outside the bootstrap prefix (Windowscommand -vfound the asset's owncmake.exe, without.exe).WITH_SDK_VERSION/WITH_SDK_SHA256in the workflows, and remove the seeding in the same PR — from then on a fetched asset that cannot bootstrap is a hard failure.Fact for the record: the published windows x86_64
v0.15.1asset hasbin/cmake.exe,clang.exe,clang++.exe,ninja.exeand noshare/at all (473 entries,bin/andlib/only); the binary looks forshare/cmake-4.2, which the packager selects.