The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build pkl-swift, reference 0.5.0 (e581b0), with Swift 6.1 for Wasm on 28 Jul 2025 17:13:34 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/apple/pkl-swift.git
Reference: 0.5.0
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.5.0      -> FETCH_HEAD
HEAD is now at e581b00 Update xcode to 16.4.0 (#58)
Cloned https://github.com/apple/pkl-swift.git
Revision (git rev-parse @):
e581b0004eccebc55b5b347d5849b6c36022f9b2
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/apple/pkl-swift.git at 0.5.0
========================================
Build
========================================
Selected platform:         wasm
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" : "swift-argument-parser",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.2.3",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-argument-parser"
    },
    {
      "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"
    }
  ],
  "products" : [
    {
      "name" : "MessagePack",
      "targets" : [
        "MessagePack"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "PklSwift",
      "targets" : [
        "PklSwift"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "pkl-gen-swift",
      "targets" : [
        "pkl-gen-swift"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "test-external-reader",
      "targets" : [
        "test-external-reader"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "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" : "pkl_gen_swift",
      "module_type" : "SwiftTarget",
      "name" : "pkl-gen-swift",
      "path" : "Sources/pkl-gen-swift",
      "product_dependencies" : [
        "ArgumentParser"
      ],
      "product_memberships" : [
        "pkl-gen-swift"
      ],
      "resources" : [
        {
          "path" : "/host/spi-builder-workspace/Sources/pkl-gen-swift/Resources/VERSION.txt",
          "rule" : {
            "embed_in_code" : {
            }
          }
        }
      ],
      "sources" : [
        "Generated/GeneratorSettings.pkl.swift",
        "PklGenSwift.swift",
        "PklSwiftGenerator.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/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",
        "pkl-gen-swift",
        "test-external-reader"
      ],
      "sources" : [
        "Discovery.cpp"
      ],
      "type" : "library"
    },
    {
      "c99name" : "PklSwift",
      "module_type" : "SwiftTarget",
      "name" : "PklSwift",
      "path" : "Sources/PklSwift",
      "product_dependencies" : [
        "SemanticVersion"
      ],
      "product_memberships" : [
        "PklSwift",
        "pkl-gen-swift",
        "test-external-reader"
      ],
      "sources" : [
        "API/DataSize.swift",
        "API/Duration.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",
        "pkl-gen-swift",
        "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" : "5.10"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:8f9255989265d824b88e7d572b1a334a0dc9b701075ede1970390db95d315c35
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/nicklockwood/SwiftFormat
[1/15579] Fetching swift-argument-parser
[7479/66068] Fetching swift-argument-parser, swiftformat
Fetching https://github.com/apple/swift-system
Fetching https://github.com/SwiftPackageIndex/SemanticVersion
Fetching https://github.com/swiftlang/swift-docc-plugin
Fetched https://github.com/apple/swift-argument-parser from cache (1.19s)
[4545/50489] Fetching swiftformat
[4546/52583] Fetching swiftformat, swift-docc-plugin
[4777/52953] Fetching swiftformat, swift-docc-plugin, semanticversion
[5587/57636] Fetching swiftformat, swift-docc-plugin, semanticversion, swift-system
Fetched https://github.com/SwiftPackageIndex/SemanticVersion from cache (0.40s)
[7203/57266] Fetching swiftformat, swift-docc-plugin, swift-system
Fetched https://github.com/swiftlang/swift-docc-plugin from cache (0.51s)
Fetched https://github.com/apple/swift-system from cache (0.56s)
[6059/50489] Fetching swiftformat
Fetched https://github.com/nicklockwood/SwiftFormat from cache (26.64s)
Computing version for https://github.com/SwiftPackageIndex/SemanticVersion
Computed https://github.com/SwiftPackageIndex/SemanticVersion at 0.5.1 (30.38s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.6.1 (0.68s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.4.5 (0.90s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3436] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.45s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.19s)
Computing version for https://github.com/apple/swift-system
Computed https://github.com/apple/swift-system at 1.6.0 (0.81s)
Computing version for https://github.com/nicklockwood/SwiftFormat
Computed https://github.com/nicklockwood/SwiftFormat at 0.57.2 (0.97s)
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/nicklockwood/SwiftFormat
Working copy of https://github.com/nicklockwood/SwiftFormat resolved at 0.57.2
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.0
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
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.1
[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
[12/29] Write embedded_resources.swift
[13/29] Write sources
[14/29] Compiling CSystem shims.c
[15/29] Write swift-version-24593BA9C3E375BF.txt
[16/29] Compiling PklSwiftInternals Discovery.cpp
[18/66] Compiling SemanticVersion SemanticVersion.swift
[19/66] Compiling SystemPackage FilePathSyntax.swift
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
    |                                                         `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
    |                              `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD)
[20/66] Compiling SystemPackage FilePathTemp.swift
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
    |                                                         `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
    |                              `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD)
[21/66] Compiling SystemPackage FilePathTempPosix.swift
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
    |                                                         `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
    |                              `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD)
[22/66] Compiling SystemPackage FilePathTempWindows.swift
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
    |                                                         `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
    |                              `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD)
[23/70] Compiling SemanticVersion SemanticVersion+LosslessStringConvertible.swift
[24/70] Emitting module ArgumentParserToolInfo
[25/70] Compiling ArgumentParserToolInfo ToolInfo.swift
[26/71] Compiling SystemPackage Errno.swift
[27/71] Compiling SystemPackage ErrnoWindows.swift
[28/71] Compiling SystemPackage FileDescriptor.swift
[29/71] Compiling SystemPackage FileHelpers.swift
[30/71] Compiling SystemPackage FileOperations.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[31/71] Emitting module SystemPackage
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
    |                                                         `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
    |                              `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD)
[33/71] Compiling SystemPackage Syscalls.swift
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
    |                              `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD)
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
    |                                                         `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:252:10: error: cannot find 'umask' in scope
250 |   _ mode: CInterop.Mode
251 | ) -> CInterop.Mode {
252 |   return umask(mode)
    |          `- error: cannot find 'umask' in scope
253 | }
254 |
[34/71] Compiling SystemPackage WindowsSyscallAdapters.swift
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
    |                              `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD)
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
    |                                                         `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:252:10: error: cannot find 'umask' in scope
250 |   _ mode: CInterop.Mode
251 | ) -> CInterop.Mode {
252 |   return umask(mode)
    |          `- error: cannot find 'umask' in scope
253 | }
254 |
[35/71] Compiling SystemPackage MachPort.swift
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
    |                              `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD)
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
    |                                                         `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:252:10: error: cannot find 'umask' in scope
250 |   _ mode: CInterop.Mode
251 | ) -> CInterop.Mode {
252 |   return umask(mode)
    |          `- error: cannot find 'umask' in scope
253 | }
254 |
[36/71] Compiling SystemPackage PlatformString.swift
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
    |                              `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD)
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
    |                                                         `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:252:10: error: cannot find 'umask' in scope
250 |   _ mode: CInterop.Mode
251 | ) -> CInterop.Mode {
252 |   return umask(mode)
    |          `- error: cannot find 'umask' in scope
253 | }
254 |
[37/71] Compiling SystemPackage FilePath.swift
[38/71] Compiling SystemPackage FilePathComponentView.swift
[39/71] Compiling SystemPackage FilePathComponents.swift
[40/71] Compiling SystemPackage FilePathParsing.swift
[41/71] Compiling SystemPackage FilePathString.swift
[41/71] Wrapping AST for ArgumentParserToolInfo for debugging
[43/71] Compiling SystemPackage FilePathWindows.swift
[44/71] Compiling SystemPackage FilePermissions.swift
[45/71] Compiling SystemPackage IOCompletion.swift
[46/71] Compiling SystemPackage IORequest.swift
[47/71] Compiling SystemPackage Constants.swift
[48/71] Compiling SystemPackage Exports.swift
[49/71] Compiling SystemPackage Mocking.swift
[50/71] Compiling SystemPackage RawBuffer.swift
[51/71] Compiling SystemPackage IORing.swift
[52/71] Compiling SystemPackage RawIORequest.swift
[53/71] Compiling SystemPackage Backcompat.swift
[54/71] Compiling SystemPackage CInterop.swift
[55/115] Compiling ArgumentParser OptionGroup.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[56/115] Compiling ArgumentParser AsyncParsableCommand.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[57/115] Compiling ArgumentParser CommandConfiguration.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[58/115] Compiling ArgumentParser CommandGroup.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[59/115] Compiling ArgumentParser EnumerableFlag.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[60/115] Compiling ArgumentParser ExpressibleByArgument.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsing/CommandParser.swift:17:30: error: no such module 'Dispatch'
 15 | internal import class Foundation.ProcessInfo
 16 | #else
 17 | @preconcurrency import class Dispatch.DispatchSemaphore
    |                              `- error: no such module 'Dispatch'
 18 | import class Foundation.NSLock
 19 | import class Foundation.ProcessInfo
[61/121] Compiling ArgumentParser Option.swift
[62/121] Compiling ArgumentParser SplitArguments.swift
[63/121] Compiling ArgumentParser DumpHelpGenerator.swift
[64/121] Compiling ArgumentParser HelpCommand.swift
[65/121] Emitting module SemanticVersion
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:8f9255989265d824b88e7d572b1a334a0dc9b701075ede1970390db95d315c35
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Tests/PklSwiftTests/Fixtures/Collections2.pkl
[0/1] Planning build
[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/18] Write swift-version-24593BA9C3E375BF.txt
[7/55] Compiling SystemPackage Syscalls.swift
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
    |                              `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD)
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
    |                                                         `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:252:10: error: cannot find 'umask' in scope
250 |   _ mode: CInterop.Mode
251 | ) -> CInterop.Mode {
252 |   return umask(mode)
    |          `- error: cannot find 'umask' in scope
253 | }
254 |
[8/55] Compiling SystemPackage WindowsSyscallAdapters.swift
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
    |                              `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD)
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
    |                                                         `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:252:10: error: cannot find 'umask' in scope
250 |   _ mode: CInterop.Mode
251 | ) -> CInterop.Mode {
252 |   return umask(mode)
    |          `- error: cannot find 'umask' in scope
253 | }
254 |
[9/55] Compiling SystemPackage MachPort.swift
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
    |                              `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD)
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
    |                                                         `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:252:10: error: cannot find 'umask' in scope
250 |   _ mode: CInterop.Mode
251 | ) -> CInterop.Mode {
252 |   return umask(mode)
    |          `- error: cannot find 'umask' in scope
253 | }
254 |
[10/55] Compiling SystemPackage PlatformString.swift
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
    |                              `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD)
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
    |                                                         `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:252:10: error: cannot find 'umask' in scope
250 |   _ mode: CInterop.Mode
251 | ) -> CInterop.Mode {
252 |   return umask(mode)
    |          `- error: cannot find 'umask' in scope
253 | }
254 |
[11/55] Compiling SystemPackage IORing.swift
[12/55] Compiling SystemPackage RawIORequest.swift
[13/55] Compiling SystemPackage Backcompat.swift
[14/55] Compiling SystemPackage CInterop.swift
[15/59] Compiling SystemPackage Constants.swift
[16/59] Compiling SystemPackage Exports.swift
[17/59] Compiling SystemPackage Mocking.swift
[18/59] Compiling SystemPackage RawBuffer.swift
[19/59] Compiling SemanticVersion SemanticVersion.swift
[20/59] Compiling SemanticVersion SemanticVersion+LosslessStringConvertible.swift
[21/59] Compiling SystemPackage FilePathSyntax.swift
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
    |                                                         `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
    |                              `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD)
[22/59] Compiling SystemPackage FilePathTemp.swift
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
    |                                                         `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
    |                              `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD)
[23/59] Compiling SystemPackage FilePathTempPosix.swift
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
    |                                                         `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
    |                              `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD)
[24/59] Compiling SystemPackage FilePathTempWindows.swift
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
    |                                                         `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
    |                              `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD)
[25/59] Compiling SystemPackage FilePathWindows.swift
[26/59] Compiling SystemPackage FilePermissions.swift
[27/59] Compiling SystemPackage IOCompletion.swift
[28/59] Compiling SystemPackage IORequest.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[29/59] Emitting module SystemPackage
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
    |                                                         `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
    |                              `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD)
[30/59] Compiling SystemPackage Errno.swift
[31/59] Compiling SystemPackage ErrnoWindows.swift
[32/59] Compiling SystemPackage FileDescriptor.swift
[33/59] Compiling SystemPackage FileHelpers.swift
[34/59] Compiling SystemPackage FileOperations.swift
[35/59] Emitting module SemanticVersion
[36/59] Compiling SemanticVersion SemanticVersion+Codable.swift
[37/60] Emitting module ArgumentParserToolInfo
[38/60] Compiling ArgumentParserToolInfo ToolInfo.swift
[39/61] Compiling SystemPackage SystemString.swift
[40/61] Compiling SystemPackage Util+StringArray.swift
[41/61] Compiling SystemPackage Util.swift
[42/61] Compiling SystemPackage UtilConsumers.swift
[45/61] Compiling SystemPackage FilePath.swift
[46/61] Compiling SystemPackage FilePathComponentView.swift
[47/61] Compiling SystemPackage FilePathComponents.swift
[48/61] Compiling SystemPackage FilePathParsing.swift
[49/61] Compiling SystemPackage FilePathString.swift
[49/60] Wrapping AST for SemanticVersion for debugging
BUILD FAILURE 6.1 wasm