Build Information
Failed to build pkl-swift, reference main (a3e1ae), with Swift 6.3 for Wasm on 1 May 2026 02:51:50 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/apple/pkl-swift.git
Reference: main
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/apple/pkl-swift
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at a3e1aed Rename MessagePack module to PklMessagePack to avoid naming conflicts (#147)
Cloned https://github.com/apple/pkl-swift.git
Revision (git rev-parse @):
a3e1aedf0a7455f8809a57085decab738d6493d8
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/apple/pkl-swift.git at main
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.3
Building package at path: $PWD
https://github.com/apple/pkl-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Fetching https://github.com/nicklockwood/SwiftFormat
Fetching https://github.com/swiftlang/swift-docc-plugin
Fetching https://github.com/apple/swift-system
Fetching https://github.com/SwiftPackageIndex/SemanticVersion
[1/432] Fetching semanticversion
[433/2719] Fetching semanticversion, swift-docc-plugin
Fetched https://github.com/SwiftPackageIndex/SemanticVersion from cache (0.26s)
[252/2287] Fetching swift-docc-plugin
[322/7888] Fetching swift-docc-plugin, swift-system
[7217/64209] Fetching swift-docc-plugin, swift-system, swiftformat
Fetched https://github.com/swiftlang/swift-docc-plugin from cache (0.44s)
[7291/61922] Fetching swift-system, swiftformat
Fetched https://github.com/apple/swift-system from cache (0.54s)
[2817/56321] Fetching swiftformat
Fetched https://github.com/nicklockwood/SwiftFormat from cache (34.52s)
Computing version for https://github.com/SwiftPackageIndex/SemanticVersion
Computed https://github.com/SwiftPackageIndex/SemanticVersion at 0.5.3 (37.18s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.5.0 (0.52s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3708] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.42s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.01s)
Computing version for https://github.com/apple/swift-system
Computed https://github.com/apple/swift-system at 1.6.4 (0.53s)
Computing version for https://github.com/nicklockwood/SwiftFormat
Computed https://github.com/nicklockwood/SwiftFormat at 0.61.1 (0.55s)
Creating working copy for https://github.com/swiftlang/swift-docc-plugin
Working copy of https://github.com/swiftlang/swift-docc-plugin resolved at 1.5.0
Creating working copy for https://github.com/nicklockwood/SwiftFormat
Working copy of https://github.com/nicklockwood/SwiftFormat resolved at 0.61.1
Creating working copy for https://github.com/apple/swift-system
Working copy of https://github.com/apple/swift-system resolved at 1.6.4
Creating working copy for https://github.com/SwiftPackageIndex/SemanticVersion
Working copy of https://github.com/SwiftPackageIndex/SemanticVersion resolved at 0.5.3
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
[1/1] Compiling plugin SwiftFormatPlugin
[2/2] Compiling plugin Swift-DocC Preview
[3/3] Compiling plugin Swift-DocC
Building for debugging...
[3/18] Write sources
[8/18] Compiling CSystem shims.c
[9/18] Compiling PklSwiftInternals Discovery.cpp
[10/18] Write swift-version-24593BA9C3E375BF.txt
[12/53] Emitting module SemanticVersion
[13/53] Compiling SystemPackage FilePathSyntax.swift
[14/53] Compiling SystemPackage FilePathTemp.swift
[15/53] Compiling SystemPackage FilePathTempPosix.swift
[16/53] Compiling SystemPackage FilePathTempWindows.swift
[17/54] Compiling SemanticVersion SemanticVersion+LosslessStringConvertible.swift
[18/57] Compiling SystemPackage IORing.swift
[19/57] Compiling SystemPackage RawIORequest.swift
[20/57] Compiling SystemPackage Backcompat.swift
[21/57] Compiling SystemPackage CInterop.swift
[22/57] Compiling SystemPackage FilePathWindows.swift
[23/57] Compiling SystemPackage FilePermissions.swift
[24/57] Compiling SystemPackage IOCompletion.swift
[25/57] Compiling SystemPackage IORequest.swift
[26/57] Compiling SemanticVersion SemanticVersion.swift
[27/57] Compiling SystemPackage Syscalls.swift
[28/57] Compiling SystemPackage WindowsSyscallAdapters.swift
[29/57] Compiling SystemPackage MachPort.swift
[30/57] Compiling SystemPackage PlatformString.swift
[31/57] Compiling SystemPackage FilePath.swift
[32/57] Compiling SystemPackage FilePathComponentView.swift
[33/57] Compiling SystemPackage FilePathComponents.swift
[34/57] Compiling SystemPackage FilePathParsing.swift
[35/57] Compiling SystemPackage FilePathString.swift
[36/57] Compiling SystemPackage Constants.swift
[37/57] Compiling SystemPackage Exports.swift
[38/57] Compiling SystemPackage Mocking.swift
[39/57] Compiling SystemPackage RawBuffer.swift
[40/57] Emitting module SystemPackage
[41/57] Compiling SystemPackage Errno.swift
[42/57] Compiling SystemPackage ErrnoWindows.swift
[43/57] Compiling SystemPackage FileDescriptor.swift
[44/57] Compiling SystemPackage FileHelpers.swift
[45/57] Compiling SystemPackage FileOperations.swift
[46/57] Compiling SemanticVersion SemanticVersion+Codable.swift
[47/58] Wrapping AST for SemanticVersion for debugging
[49/58] Compiling SystemPackage SystemString.swift
[50/58] Compiling SystemPackage Util+StringArray.swift
[51/58] Compiling SystemPackage Util.swift
[52/58] Compiling SystemPackage UtilConsumers.swift
[53/59] Wrapping AST for SystemPackage for debugging
[55/74] Compiling PklMessagePack MessagePackEncoder.swift
/host/spi-builder-workspace/Sources/PklMessagePack/Encoder/SingleValueEncodingContainer.swift:230:54: error: cannot find 'NSEC_PER_SEC' in scope
228 |
229 | let seconds = Int64(integral)
230 | let nanoseconds = UInt32(fractional * Double(NSEC_PER_SEC))
| `- error: cannot find 'NSEC_PER_SEC' in scope
231 |
232 | if seconds < 0 || seconds > UInt32.max {
[56/74] Compiling PklMessagePack SingleValueEncodingContainer.swift
/host/spi-builder-workspace/Sources/PklMessagePack/Encoder/SingleValueEncodingContainer.swift:230:54: error: cannot find 'NSEC_PER_SEC' in scope
228 |
229 | let seconds = Int64(integral)
230 | let nanoseconds = UInt32(fractional * Double(NSEC_PER_SEC))
| `- error: cannot find 'NSEC_PER_SEC' in scope
231 |
232 | if seconds < 0 || seconds > UInt32.max {
[57/74] Compiling PklMessagePack UnkeyedEncodingContainer.swift
[58/74] Compiling PklMessagePack FixedWidthInteger.swift
[59/75] Compiling PklMessagePack _MessagePackDecoder.swift
[60/75] Compiling PklMessagePack KeyedEncodingContainer.swift
[61/75] Compiling PklMessagePack UnkeyedDecodingContainer.swift
[62/75] Compiling PklMessagePack UnkeyedMapDecodingContainer.swift
[63/75] Compiling PklMessagePack IO.swift
[64/75] Compiling PklMessagePack AnyCodingKey.swift
[65/75] Compiling PklMessagePack Box.swift
[66/75] Emitting module PklMessagePack
[67/75] Compiling PklMessagePack MessagePackDecoder.swift
/host/spi-builder-workspace/Sources/PklMessagePack/Decoder/MessagePackDecoder.swift:201:73: error: cannot find 'NSEC_PER_SEC' in scope
199 | }
200 |
201 | let timeInterval = TimeInterval(seconds) + nanoseconds / Double(NSEC_PER_SEC)
| `- error: cannot find 'NSEC_PER_SEC' in scope
202 |
203 | return Date(timeIntervalSince1970: timeInterval)
[68/75] Compiling PklMessagePack SingleValueDecodingContainer.swift
/host/spi-builder-workspace/Sources/PklMessagePack/Decoder/MessagePackDecoder.swift:201:73: error: cannot find 'NSEC_PER_SEC' in scope
199 | }
200 |
201 | let timeInterval = TimeInterval(seconds) + nanoseconds / Double(NSEC_PER_SEC)
| `- error: cannot find 'NSEC_PER_SEC' in scope
202 |
203 | return Date(timeIntervalSince1970: timeInterval)
[69/75] Compiling PklMessagePack KeyedDecodingContainer.swift
[70/75] Compiling PklMessagePack KeyedSingleDecodingContainer.swift
BUILD FAILURE 6.3 wasm