Build Information
Failed to build pkl-swift, reference 0.7.2 (d40f08), with Swift 6.2 for Android on 1 Dec 2025 19:39:58 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/apple/pkl-swift.git
Reference: 0.7.2
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
* tag 0.7.2 -> FETCH_HEAD
HEAD is now at d40f084 Prepare 0.7.2 release
Cloned https://github.com/apple/pkl-swift.git
Revision (git rev-parse @):
d40f084bd85d1a2c871ca6542a7c4ebfc9bc6f65
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/apple/pkl-swift.git at 0.7.2
========================================
Build
========================================
Selected platform: android
Swift version: 6.2
Building package at path: $PWD
https://github.com/apple/pkl-swift.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:c3fe93b3f7c9edfd66b4287786a9b8caf7805f96d7219e301e257b4e0de911bb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Fetching https://github.com/apple/swift-system
Fetching https://github.com/SwiftPackageIndex/SemanticVersion
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/nicklockwood/SwiftFormat
Fetching https://github.com/swiftlang/swift-docc-plugin
[1/387] Fetching semanticversion
[388/2545] Fetching semanticversion, swift-docc-plugin
[626/19422] Fetching semanticversion, swift-docc-plugin, swift-argument-parser
[1133/24604] Fetching semanticversion, swift-docc-plugin, swift-argument-parser, swift-system
Fetched https://github.com/SwiftPackageIndex/SemanticVersion from cache (0.47s)
[1609/24217] Fetching swift-docc-plugin, swift-argument-parser, swift-system
[24218/77339] Fetching swift-docc-plugin, swift-argument-parser, swift-system, swiftformat
Fetched https://github.com/swiftlang/swift-docc-plugin from cache (1.32s)
Fetched https://github.com/apple/swift-argument-parser from cache (1.32s)
[8370/58304] Fetching swift-system, swiftformat
Fetched https://github.com/apple/swift-system from cache (33.59s)
Fetched https://github.com/nicklockwood/SwiftFormat from cache (34.54s)
Computing version for https://github.com/SwiftPackageIndex/SemanticVersion
Computed https://github.com/SwiftPackageIndex/SemanticVersion at 0.5.1 (36.59s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.4.5 (0.36s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3583] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.36s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.81s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.6.2 (0.36s)
Computing version for https://github.com/apple/swift-system
Computed https://github.com/apple/swift-system at 1.6.3 (0.40s)
Computing version for https://github.com/nicklockwood/SwiftFormat
Computed https://github.com/nicklockwood/SwiftFormat at 0.58.7 (0.39s)
Creating working copy for https://github.com/nicklockwood/SwiftFormat
Working copy of https://github.com/nicklockwood/SwiftFormat resolved at 0.58.7
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.6.2
Creating working copy for https://github.com/apple/swift-system
Working copy of https://github.com/apple/swift-system resolved at 1.6.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
Creating working copy for https://github.com/SwiftPackageIndex/SemanticVersion
Working copy of https://github.com/SwiftPackageIndex/SemanticVersion resolved at 0.5.1
Creating working copy for https://github.com/swiftlang/swift-docc-plugin
Working copy of https://github.com/swiftlang/swift-docc-plugin resolved at 1.4.5
[1/1] Compiling plugin SwiftFormatPlugin
[2/2] Compiling plugin Swift-DocC Preview
[3/3] Compiling plugin Swift-DocC
[4/4] Compiling plugin GenerateManual
[5/5] Compiling plugin GenerateDoccReference
Building for debugging...
[5/29] Write sources
[5/29] Write embedded_resources.swift
[10/29] Write sources
[14/29] Compiling CSystem shims.c
[15/29] Write swift-version--6B0C4D200E742BB1.txt
[16/66] Compiling PklSwiftInternals Discovery.cpp
[18/66] Compiling SystemPackage Errno.swift
[19/66] Compiling SystemPackage ErrnoWindows.swift
[20/66] Compiling SystemPackage FileDescriptor.swift
[21/66] Compiling SystemPackage FileHelpers.swift
[22/66] Compiling SystemPackage FileOperations.swift
[23/66] Emitting module SystemPackage
[24/70] Compiling SemanticVersion SemanticVersion+LosslessStringConvertible.swift
[25/70] Compiling SemanticVersion SemanticVersion.swift
[26/70] Compiling SystemPackage FilePath.swift
[27/70] Compiling SystemPackage FilePathComponentView.swift
[28/70] Compiling SystemPackage FilePathComponents.swift
[29/70] Compiling SystemPackage FilePathParsing.swift
[30/70] Compiling SystemPackage FilePathString.swift
[31/70] Compiling ArgumentParserToolInfo ToolInfo.swift
[32/70] Emitting module ArgumentParserToolInfo
[33/71] Wrapping AST for ArgumentParserToolInfo for debugging
[35/115] Emitting module ArgumentParser
[36/121] Compiling ArgumentParser BashCompletionsGenerator.swift
[37/121] Compiling ArgumentParser CompletionsGenerator.swift
[38/121] Compiling ArgumentParser FishCompletionsGenerator.swift
[39/121] Compiling ArgumentParser ZshCompletionsGenerator.swift
[40/121] Compiling ArgumentParser Platform.swift
[41/121] Compiling ArgumentParser SequenceExtensions.swift
[42/121] Compiling ArgumentParser StringExtensions.swift
[43/121] Compiling ArgumentParser SwiftExtensions.swift
[44/121] Compiling ArgumentParser OptionGroup.swift
[45/121] Compiling ArgumentParser AsyncParsableCommand.swift
[46/121] Compiling ArgumentParser CommandConfiguration.swift
[47/121] Compiling ArgumentParser CommandGroup.swift
[48/121] Compiling ArgumentParser ParsedValues.swift
[49/121] Compiling ArgumentParser ParserError.swift
[50/121] Compiling ArgumentParser ParsableArguments.swift
[51/121] Compiling ArgumentParser ParsableCommand.swift
[52/121] Compiling ArgumentParser EnumerableFlag.swift
[53/121] Compiling ArgumentParser ExpressibleByArgument.swift
[54/121] Compiling ArgumentParser CollectionExtensions.swift
[55/121] Compiling ArgumentParser Mutex.swift
[56/121] Compiling ArgumentParser ArgumentDecoder.swift
[57/121] Compiling ArgumentParser ArgumentDefinition.swift
[58/121] Compiling ArgumentParser ArgumentSet.swift
[59/121] Compiling ArgumentParser CommandParser.swift
[61/122] Compiling ArgumentParser ArgumentVisibility.swift
[62/122] Compiling ArgumentParser CompletionKind.swift
[63/122] Compiling ArgumentParser Errors.swift
[64/122] Compiling ArgumentParser Flag.swift
[65/122] Compiling ArgumentParser NameSpecification.swift
[66/122] Compiling ArgumentParser Option.swift
[66/122] Wrapping AST for SystemPackage for debugging
[68/137] Compiling ArgumentParser Tree.swift
[69/137] Compiling ArgumentParser CodingKeyValidator.swift
[70/137] Compiling ArgumentParser NonsenseFlagsValidator.swift
[71/137] Compiling ArgumentParser ParsableArgumentsValidation.swift
[72/137] Compiling ArgumentParser PositionalArgumentsValidator.swift
[73/137] Compiling ArgumentParser UniqueNamesValidator.swift
[80/137] Emitting module SemanticVersion
[81/137] Compiling SemanticVersion SemanticVersion+Codable.swift
[82/138] Wrapping AST for SemanticVersion for debugging
[84/138] Compiling MessagePack AnyCodingKey.swift
[85/138] Compiling MessagePack Box.swift
[86/138] Compiling MessagePack _MessagePackDecoder.swift
[87/138] Compiling MessagePack KeyedEncodingContainer.swift
[88/138] Compiling MessagePack UnkeyedDecodingContainer.swift
[89/138] Compiling MessagePack UnkeyedMapDecodingContainer.swift
[94/138] Compiling ArgumentParser Argument.swift
[95/138] Compiling ArgumentParser ArgumentDiscussion.swift
[96/138] Compiling ArgumentParser ArgumentHelp.swift
[103/138] Compiling MessagePack UnkeyedEncodingContainer.swift
[104/138] Compiling MessagePack FixedWidthInteger.swift
[109/138] Compiling MessagePack KeyedDecodingContainer.swift
[110/138] Compiling MessagePack KeyedSingleDecodingContainer.swift
[111/138] Compiling MessagePack MessagePackDecoder.swift
[112/138] Compiling MessagePack SingleValueDecodingContainer.swift
[113/138] Compiling MessagePack MessagePackEncoder.swift
[114/138] Compiling MessagePack SingleValueEncodingContainer.swift
[115/139] Wrapping AST for ArgumentParser for debugging
/host/spi-builder-workspace/Sources/MessagePack/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 {
/host/spi-builder-workspace/Sources/MessagePack/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 {
/host/spi-builder-workspace/Sources/MessagePack/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)
/host/spi-builder-workspace/Sources/MessagePack/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)
[127/140] Emitting module MessagePack
[132/140] Compiling MessagePack IO.swift
BUILD FAILURE 6.2 android