The Swift Package Index logo.Swift Package Index

Build Information

Failed to build pkl-swift, reference 0.8.2 (40e5de), with Swift 6.1 for Android on 3 Mar 2026 04:41:19 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/apple/pkl-swift.git
Reference: 0.8.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.8.2      -> FETCH_HEAD
HEAD is now at 40e5dec Prepare release 0.8.2
Cloned https://github.com/apple/pkl-swift.git
Revision (git rev-parse @):
40e5decb9481c8c5d8c64389255166023c936900
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/apple/pkl-swift.git at 0.8.2
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/apple/pkl-swift.git
https://github.com/apple/pkl-swift.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "cxx_language_standard" : "c++20",
  "dependencies" : [
    {
      "identity" : "swift-system",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.2.1",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-system"
    },
    {
      "identity" : "semanticversion",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.4.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/SwiftPackageIndex/SemanticVersion"
    },
    {
      "identity" : "swift-docc-plugin",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.1.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/swiftlang/swift-docc-plugin"
    },
    {
      "identity" : "swiftformat",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.55.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/nicklockwood/SwiftFormat"
    }
  ],
  "manifest_display_name" : "pkl-swift",
  "name" : "pkl-swift",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "13.0"
    },
    {
      "name" : "ios",
      "version" : "16.0"
    },
    {
      "name" : "tvos",
      "version" : "16.0"
    },
    {
      "name" : "watchos",
      "version" : "9.0"
    },
    {
      "name" : "visionos",
      "version" : "1.0"
    }
  ],
  "products" : [
    {
      "name" : "MessagePack",
      "targets" : [
        "MessagePack"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "PklSwift",
      "targets" : [
        "PklSwift"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "test-external-reader",
      "targets" : [
        "test-external-reader"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "swift_languages_versions" : [
    "5",
    "6"
  ],
  "targets" : [
    {
      "c99name" : "test_external_reader",
      "module_type" : "SwiftTarget",
      "name" : "test-external-reader",
      "path" : "Sources/test-external-reader",
      "product_memberships" : [
        "test-external-reader"
      ],
      "sources" : [
        "TestExternalReader.swift"
      ],
      "target_dependencies" : [
        "PklSwift"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "PklSwiftTests",
      "module_type" : "SwiftTarget",
      "name" : "PklSwiftTests",
      "path" : "Tests/PklSwiftTests",
      "sources" : [
        "API/DataSizeTests.swift",
        "API/DurationTests.swift",
        "Decoder/PklDecoderTest.swift",
        "EvaluatorManagerTest.swift",
        "EvaluatorTest.swift",
        "ExternalReaderClientTest.swift",
        "Fixtures/Generated/AnyType.pkl.swift",
        "Fixtures/Generated/ApiTypes.pkl.swift",
        "Fixtures/Generated/Classes.pkl.swift",
        "Fixtures/Generated/Collections.pkl.swift",
        "Fixtures/Generated/Collections2.pkl.swift",
        "Fixtures/Generated/ExtendedModule.pkl.swift",
        "Fixtures/Generated/OpenModule.pkl.swift",
        "Fixtures/Generated/UnionTypes.pkl.swift",
        "Fixtures/Generated/UnusedClass.pkl.swift",
        "Fixtures/Generated/UnusedClassDefs.pkl.swift",
        "Fixtures/Generated/pkl_swift_example_Poly.pkl.swift",
        "Fixtures/Generated/pkl_swift_lib1.pkl.swift",
        "FixturesTest.swift",
        "ProjectTest.swift"
      ],
      "target_dependencies" : [
        "PklSwift"
      ],
      "type" : "test"
    },
    {
      "c99name" : "PklSwiftInternals",
      "module_type" : "ClangTarget",
      "name" : "PklSwiftInternals",
      "path" : "Sources/PklSwiftInternals",
      "product_memberships" : [
        "PklSwift",
        "test-external-reader"
      ],
      "sources" : [
        "Discovery.cpp"
      ],
      "type" : "library"
    },
    {
      "c99name" : "PklSwift",
      "module_type" : "SwiftTarget",
      "name" : "PklSwift",
      "path" : "Sources/PklSwift",
      "product_dependencies" : [
        "SemanticVersion"
      ],
      "product_memberships" : [
        "PklSwift",
        "test-external-reader"
      ],
      "sources" : [
        "API/Class.swift",
        "API/DataSize.swift",
        "API/Duration.swift",
        "API/TypeAlias.swift",
        "Decoder/PklDecoder.swift",
        "Decoder/PklMapDecodingContainer.swift",
        "Decoder/PklSingleValueDecodingContainer.swift",
        "Decoder/PklTypedDecodingContainer.swift",
        "Decoder/PklUnkeyedDecodingContainer.swift",
        "Evaluator.swift",
        "EvaluatorManager.swift",
        "EvaluatorOptions.swift",
        "ExternalReaderClient.swift",
        "Logger.swift",
        "Message.swift",
        "MessageTransport.swift",
        "ModuleSource.swift",
        "PklCodingKey.swift",
        "PklEvaluatorSettings.swift",
        "Project.swift",
        "Reader.swift",
        "TypeRegistry.swift",
        "Utils.swift",
        "locks.swift"
      ],
      "target_dependencies" : [
        "MessagePack",
        "PklSwiftInternals"
      ],
      "type" : "library"
    },
    {
      "c99name" : "MessagePackTests",
      "module_type" : "SwiftTarget",
      "name" : "MessagePackTests",
      "path" : "Tests/MessagePackTests",
      "sources" : [
        "MessagePackDecodingTests.swift",
        "MessagePackEncodingTests.swift"
      ],
      "target_dependencies" : [
        "MessagePack"
      ],
      "type" : "test"
    },
    {
      "c99name" : "MessagePack",
      "module_type" : "SwiftTarget",
      "name" : "MessagePack",
      "path" : "Sources/MessagePack",
      "product_dependencies" : [
        "SystemPackage"
      ],
      "product_memberships" : [
        "MessagePack",
        "PklSwift",
        "test-external-reader"
      ],
      "sources" : [
        "AnyCodingKey.swift",
        "Box.swift",
        "Decoder/KeyedDecodingContainer.swift",
        "Decoder/KeyedSingleDecodingContainer.swift",
        "Decoder/MessagePackDecoder.swift",
        "Decoder/SingleValueDecodingContainer.swift",
        "Decoder/UnkeyedDecodingContainer.swift",
        "Decoder/UnkeyedMapDecodingContainer.swift",
        "Decoder/_MessagePackDecoder.swift",
        "Encoder/KeyedEncodingContainer.swift",
        "Encoder/MessagePackEncoder.swift",
        "Encoder/SingleValueEncodingContainer.swift",
        "Encoder/UnkeyedEncodingContainer.swift",
        "FixedWidthInteger.swift",
        "IO.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:08fa5f1bd27c53c71ebe7c2842e29d52715d90da2c5b8f52513c9039c232613d
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Fetching https://github.com/apple/swift-system
Fetching https://github.com/swiftlang/swift-docc-plugin
Fetching https://github.com/SwiftPackageIndex/SemanticVersion
Fetching https://github.com/nicklockwood/SwiftFormat
[1/417] Fetching semanticversion
[418/2588] Fetching semanticversion, swift-docc-plugin
[657/8184] Fetching semanticversion, swift-docc-plugin, swift-system
Fetched https://github.com/swiftlang/swift-docc-plugin from cache (0.40s)
[1/55317] Fetching swiftformat
Fetched https://github.com/apple/swift-system from cache (0.44s)
Fetched https://github.com/SwiftPackageIndex/SemanticVersion from cache (33.23s)
Fetched https://github.com/nicklockwood/SwiftFormat from cache (34.01s)
Computing version for https://github.com/SwiftPackageIndex/SemanticVersion
Computed https://github.com/SwiftPackageIndex/SemanticVersion at 0.5.1 (39.93s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.4.6 (0.59s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3666] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.38s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.04s)
Computing version for https://github.com/apple/swift-system
Computed https://github.com/apple/swift-system at 1.6.4 (0.62s)
Computing version for https://github.com/nicklockwood/SwiftFormat
Computed https://github.com/nicklockwood/SwiftFormat at 0.59.1 (0.57s)
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-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
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/swiftlang/swift-docc-plugin
Working copy of https://github.com/swiftlang/swift-docc-plugin resolved at 1.4.6
Creating working copy for https://github.com/nicklockwood/SwiftFormat
Working copy of https://github.com/nicklockwood/SwiftFormat resolved at 0.59.1
[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] Write swift-version-24593BA9C3E375BF.txt
[10/53] Compiling PklSwiftInternals Discovery.cpp
[12/53] Emitting module SystemPackage
[13/57] Compiling SystemPackage FilePathSyntax.swift
[14/57] Compiling SystemPackage FilePathTemp.swift
[15/57] Compiling SystemPackage FilePathTempPosix.swift
[16/57] Compiling SystemPackage FilePathTempWindows.swift
[17/57] Compiling SemanticVersion SemanticVersion.swift
[18/57] Compiling SystemPackage SystemString.swift
[19/57] Compiling SystemPackage Util+StringArray.swift
[20/57] Compiling SystemPackage Util.swift
[21/57] Compiling SystemPackage UtilConsumers.swift
[22/57] Compiling SystemPackage FilePath.swift
[23/57] Compiling SystemPackage FilePathComponentView.swift
[24/57] Compiling SystemPackage FilePathComponents.swift
[25/57] Compiling SystemPackage FilePathParsing.swift
[26/57] Compiling SystemPackage FilePathString.swift
[27/57] Compiling SystemPackage Errno.swift
[28/57] Compiling SystemPackage ErrnoWindows.swift
[29/57] Compiling SystemPackage FileDescriptor.swift
[30/57] Compiling SystemPackage FileHelpers.swift
[31/57] Compiling SystemPackage FileOperations.swift
[32/57] Compiling SystemPackage FilePathWindows.swift
[33/57] Compiling SystemPackage FilePermissions.swift
[34/57] Compiling SystemPackage IOCompletion.swift
[35/57] Compiling SystemPackage IORequest.swift
[36/57] Compiling SystemPackage Syscalls.swift
[37/57] Compiling SystemPackage WindowsSyscallAdapters.swift
[38/57] Compiling SystemPackage MachPort.swift
[39/57] Compiling SystemPackage PlatformString.swift
[40/57] Compiling SystemPackage Constants.swift
[41/57] Compiling SystemPackage Exports.swift
[42/57] Compiling SystemPackage Mocking.swift
[43/57] Compiling SystemPackage RawBuffer.swift
[44/57] Compiling SystemPackage IORing.swift
[45/57] Compiling SystemPackage RawIORequest.swift
[46/57] Compiling SystemPackage Backcompat.swift
[47/57] Compiling SystemPackage CInterop.swift
[49/58] Compiling SemanticVersion SemanticVersion+LosslessStringConvertible.swift
[50/58] Compiling SemanticVersion SemanticVersion+Codable.swift
[51/58] Emitting module SemanticVersion
[52/59] Wrapping AST for SemanticVersion for debugging
[53/59] Wrapping AST for SystemPackage for debugging
[55/74] Emitting module MessagePack
[56/75] Compiling MessagePack UnkeyedEncodingContainer.swift
[57/75] Compiling MessagePack FixedWidthInteger.swift
[58/75] Compiling MessagePack _MessagePackDecoder.swift
[59/75] Compiling MessagePack KeyedEncodingContainer.swift
[60/75] Compiling MessagePack UnkeyedDecodingContainer.swift
[61/75] Compiling MessagePack UnkeyedMapDecodingContainer.swift
[62/75] Compiling MessagePack MessagePackEncoder.swift
/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 {
[63/75] Compiling MessagePack SingleValueEncodingContainer.swift
/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 {
[64/75] Compiling MessagePack IO.swift
[65/75] Compiling MessagePack KeyedDecodingContainer.swift
[66/75] Compiling MessagePack KeyedSingleDecodingContainer.swift
[67/75] Compiling MessagePack AnyCodingKey.swift
[68/75] Compiling MessagePack Box.swift
[69/75] Compiling MessagePack MessagePackDecoder.swift
/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)
[70/75] Compiling MessagePack SingleValueDecodingContainer.swift
/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)
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:08fa5f1bd27c53c71ebe7c2842e29d52715d90da2c5b8f52513c9039c232613d
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
[1/1] Compiling plugin SwiftFormatPlugin
[2/2] Compiling plugin Swift-DocC Preview
[3/3] Compiling plugin Swift-DocC
Building for debugging...
[3/11] Write swift-version-24593BA9C3E375BF.txt
[5/46] Compiling SemanticVersion SemanticVersion.swift
[6/46] Emitting module SemanticVersion
[7/46] Compiling SemanticVersion SemanticVersion+Codable.swift
[8/46] Compiling SemanticVersion SemanticVersion+LosslessStringConvertible.swift
[10/47] Compiling SystemPackage FilePathWindows.swift
[11/47] Compiling SystemPackage FilePermissions.swift
[12/47] Compiling SystemPackage IOCompletion.swift
[13/47] Compiling SystemPackage IORequest.swift
[14/47] Compiling SystemPackage Syscalls.swift
[15/47] Compiling SystemPackage WindowsSyscallAdapters.swift
[16/47] Compiling SystemPackage MachPort.swift
[17/47] Compiling SystemPackage PlatformString.swift
[18/47] Compiling SystemPackage Constants.swift
[19/47] Compiling SystemPackage Exports.swift
[20/47] Compiling SystemPackage Mocking.swift
[21/47] Compiling SystemPackage RawBuffer.swift
[22/51] Emitting module SystemPackage
[23/51] Compiling SystemPackage FilePathSyntax.swift
[24/51] Compiling SystemPackage FilePathTemp.swift
[25/51] Compiling SystemPackage FilePathTempPosix.swift
[26/51] Compiling SystemPackage FilePathTempWindows.swift
[27/51] Compiling SystemPackage IORing.swift
[28/51] Compiling SystemPackage RawIORequest.swift
[29/51] Compiling SystemPackage Backcompat.swift
[30/51] Compiling SystemPackage CInterop.swift
[31/51] Compiling SystemPackage Errno.swift
[32/51] Compiling SystemPackage ErrnoWindows.swift
[33/51] Compiling SystemPackage FileDescriptor.swift
[34/51] Compiling SystemPackage FileHelpers.swift
[35/51] Compiling SystemPackage FileOperations.swift
[36/50] Compiling SystemPackage FilePath.swift
[37/50] Compiling SystemPackage FilePathComponentView.swift
[38/50] Compiling SystemPackage FilePathComponents.swift
[39/50] Compiling SystemPackage FilePathParsing.swift
[40/50] Compiling SystemPackage FilePathString.swift
[41/50] Compiling SystemPackage SystemString.swift
[42/50] Compiling SystemPackage Util+StringArray.swift
[43/50] Compiling SystemPackage Util.swift
[44/50] Compiling SystemPackage UtilConsumers.swift
[46/65] Compiling MessagePack UnkeyedEncodingContainer.swift
[47/65] Compiling MessagePack FixedWidthInteger.swift
[48/66] Compiling MessagePack UnkeyedDecodingContainer.swift
[49/66] Compiling MessagePack UnkeyedMapDecodingContainer.swift
[50/66] Compiling MessagePack _MessagePackDecoder.swift
[51/66] Compiling MessagePack KeyedEncodingContainer.swift
[52/66] Compiling MessagePack MessagePackDecoder.swift
/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)
[53/66] Compiling MessagePack SingleValueDecodingContainer.swift
/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)
[54/66] Emitting module MessagePack
[55/66] Compiling MessagePack KeyedDecodingContainer.swift
[56/66] Compiling MessagePack KeyedSingleDecodingContainer.swift
[57/66] Compiling MessagePack AnyCodingKey.swift
[58/66] Compiling MessagePack Box.swift
[59/66] Compiling MessagePack MessagePackEncoder.swift
/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 {
[60/66] Compiling MessagePack SingleValueEncodingContainer.swift
/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 {
[61/66] Compiling MessagePack IO.swift
BUILD FAILURE 6.1 android