Problem
swift-kernel does not compile on Windows, and crashes the compiler on the 6.4.x and main nightly toolchains. Neither is visible from this repository's recent runs, because they were push-event runs: the Windows and main-nightly legs were skipped, and the 6.4.x-nightly leg is advisory there. The failures surfaced in a full-tier workflow_dispatch run of a downstream consumer.
1. Windows (Swift 6.3, debug) — source error
Sources/Kernel File/Kernel.File.Clone.Error+code.swift:34:31: error: type 'Error.Code' has no member 'POSIX'
Ten instances, in Kernel.File.Clone.Error+code.swift (lines 34, 37, 40, 41, 44, 47, 50) and Kernel.File.Direct.Error+code.swift (lines 38, 41, 44). The POSIX member of Error.Code appears not to exist on the Windows platform leg.
2. Ubuntu, Swift 6.4.x nightly and Swift main nightly (release) — compiler crash
swift-frontend: /home/build-user/swift/lib/SILGen/SILGenLValue.cpp:3203:
LValue SILGenBorrowedBaseVisitor::getLookupExprBaseLValue(LookupExpr *, AccessSemantics,
SGFAccessKind, LValueOptions, AccessStrategy &): Assertion `!e->getType()->is<LValueType>()' failed.
3. While evaluating request ASTLoweringRequest(Lowering AST to SIL for module Kernel_Completion)
Build config: +assertions
*** Program crashed: Aborted *** (signal 6)
The nightly containers are the fleet's assertions-enabled compilers, so this is a SIL-validity signal against Kernel Completion sources rather than a nightly flake. It reproduces on both nightly legs.
Evidence
Full-tier workflow_dispatch run of swift-foundations/swift-application, which reaches swift-kernel transitively through swift-environment:
https://github.com/swift-foundations/swift-application/actions/runs/30629823992
Windows job log carries the ten Error.Code errors; both nightly job logs carry the SILGen assertion. Every other leg of that run is green, and the consumer package contributes no code to either failure — the build never reaches it.
For contrast, this repository's own most recent main run (https://github.com/swift-foundations/swift-kernel/actions/runs/30629349263, head 64a70679) concluded success with Windows, macOS, and main-nightly skipped — a push-tier result, not full-tier coverage.
Proposed outcome
Both legs build: a full-tier workflow_dispatch run of swift-kernel at head with Windows green and the two nightly legs green (or, for the nightly crash, an isolated reproducer filed against the toolchain and the source shape adjusted so lowering succeeds).
Observable: the same downstream full-tier run above goes green on Windows and both nightly legs without changes to the consumer.
Compatibility and migration impact
Windows currently cannot build at all, so no working Windows consumer can regress. The nightly crash blocks the assertions-enabled SIL gate for every package whose closure includes Kernel Completion.
Problem
swift-kerneldoes not compile on Windows, and crashes the compiler on the 6.4.x and main nightly toolchains. Neither is visible from this repository's recent runs, because they werepush-event runs: the Windows and main-nightly legs were skipped, and the 6.4.x-nightly leg is advisory there. The failures surfaced in a full-tierworkflow_dispatchrun of a downstream consumer.1. Windows (Swift 6.3, debug) — source error
Ten instances, in
Kernel.File.Clone.Error+code.swift(lines 34, 37, 40, 41, 44, 47, 50) andKernel.File.Direct.Error+code.swift(lines 38, 41, 44). ThePOSIXmember ofError.Codeappears not to exist on the Windows platform leg.2. Ubuntu, Swift 6.4.x nightly and Swift main nightly (release) — compiler crash
The nightly containers are the fleet's assertions-enabled compilers, so this is a SIL-validity signal against
Kernel Completionsources rather than a nightly flake. It reproduces on both nightly legs.Evidence
Full-tier
workflow_dispatchrun ofswift-foundations/swift-application, which reachesswift-kerneltransitively throughswift-environment:https://github.com/swift-foundations/swift-application/actions/runs/30629823992
Windows job log carries the ten
Error.Codeerrors; both nightly job logs carry the SILGen assertion. Every other leg of that run is green, and the consumer package contributes no code to either failure — the build never reaches it.For contrast, this repository's own most recent
mainrun (https://github.com/swift-foundations/swift-kernel/actions/runs/30629349263, head64a70679) concludedsuccesswith Windows, macOS, and main-nightly skipped — apush-tier result, not full-tier coverage.Proposed outcome
Both legs build: a full-tier
workflow_dispatchrun ofswift-kernelat head with Windows green and the two nightly legs green (or, for the nightly crash, an isolated reproducer filed against the toolchain and the source shape adjusted so lowering succeeds).Observable: the same downstream full-tier run above goes green on Windows and both nightly legs without changes to the consumer.
Compatibility and migration impact
Windows currently cannot build at all, so no working Windows consumer can regress. The nightly crash blocks the assertions-enabled SIL gate for every package whose closure includes
Kernel Completion.