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 Arena, reference main (6ce0ff), with Swift 6.1 for Wasm on 28 May 2025 23:23:54 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/finestructure/Arena.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/finestructure/Arena
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 6ce0ff3 Merge pull request #99 from finestructure/support-visionOS
Cloned https://github.com/finestructure/Arena.git
Revision (git rev-parse @):
6ce0ff3f992d81563d864b639f94b43f021aefe0
SUCCESS checkout https://github.com/finestructure/Arena.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/finestructure/Arena.git
https://github.com/finestructure/Arena.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-argument-parser",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.2.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-argument-parser"
    },
    {
      "identity" : "parser",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.0.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/finestructure/Parser"
    },
    {
      "identity" : "shellout",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.0.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/JohnSundell/ShellOut.git"
    },
    {
      "identity" : "path.swift",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/mxcl/Path.swift.git"
    },
    {
      "identity" : "semanticversion",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.2.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/SwiftPackageIndex/SemanticVersion"
    },
    {
      "identity" : "swift-snapshot-testing",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.7.2",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/pointfreeco/swift-snapshot-testing.git"
    }
  ],
  "manifest_display_name" : "Arena",
  "name" : "Arena",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    }
  ],
  "products" : [
    {
      "name" : "arena",
      "targets" : [
        "ArenaCLI"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "ArenaCore",
      "targets" : [
        "ArenaCore"
      ],
      "type" : {
        "library" : [
          "dynamic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ArenaTests",
      "module_type" : "SwiftTarget",
      "name" : "ArenaTests",
      "path" : "Tests/ArenaTests",
      "product_dependencies" : [
        "SnapshotTesting"
      ],
      "sources" : [
        "ArenaTests.swift",
        "IntegrationTests.swift",
        "ManifestTests.swift",
        "OutputListener.swift",
        "PackageGeneratorTests.swift",
        "ParserTests.swift",
        "RegressionTests.swift",
        "Utils.swift"
      ],
      "target_dependencies" : [
        "ArenaCore"
      ],
      "type" : "test"
    },
    {
      "c99name" : "ArenaCore",
      "module_type" : "SwiftTarget",
      "name" : "ArenaCore",
      "path" : "Sources/ArenaCore",
      "product_dependencies" : [
        "ArgumentParser",
        "Parser",
        "Path",
        "SemanticVersion",
        "ShellOut"
      ],
      "product_memberships" : [
        "arena",
        "ArenaCore"
      ],
      "sources" : [
        "AppError.swift",
        "ArenaCommand.swift",
        "Dependency.swift",
        "Environment.swift",
        "Extensions.swift",
        "FileManager.swift",
        "Github.swift",
        "Helpers.swift",
        "Manifest.swift",
        "PackageGenerator.swift",
        "Parser+ext.swift",
        "Platform.swift",
        "PlatformVersion.swift",
        "PlaygroundBook.swift",
        "Progress.swift",
        "RefSpec.swift",
        "Requirement.swift",
        "Scheme.swift",
        "String+ext.swift",
        "Version.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "ArenaCLI",
      "module_type" : "SwiftTarget",
      "name" : "ArenaCLI",
      "path" : "Sources/ArenaCLI",
      "product_memberships" : [
        "arena"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "ArenaCore"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "5.6"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/pointfreeco/swift-snapshot-testing.git
Fetching https://github.com/SwiftPackageIndex/SemanticVersion
Fetching https://github.com/finestructure/Parser
Fetching https://github.com/mxcl/Path.swift.git
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/JohnSundell/ShellOut.git
[1/323] Fetching semanticversion
[324/1382] Fetching semanticversion, path.swift
[768/2342] Fetching semanticversion, path.swift, shellout
[2343/2497] Fetching semanticversion, path.swift, shellout, parser
Fetched https://github.com/finestructure/Parser from cache (0.32s)
Fetched https://github.com/JohnSundell/ShellOut.git from cache (0.32s)
[1/13189] Fetching swift-snapshot-testing
[661/28540] Fetching swift-snapshot-testing, swift-argument-parser
Fetched https://github.com/mxcl/Path.swift.git from cache (0.96s)
Fetched https://github.com/SwiftPackageIndex/SemanticVersion from cache (0.96s)
Fetched https://github.com/apple/swift-argument-parser from cache (0.97s)
[4353/13189] Fetching swift-snapshot-testing
Fetched https://github.com/pointfreeco/swift-snapshot-testing.git from cache (2.80s)
Computing version for https://github.com/JohnSundell/ShellOut.git
Computed https://github.com/JohnSundell/ShellOut.git at 2.3.0 (4.82s)
Computing version for https://github.com/finestructure/Parser
Computed https://github.com/finestructure/Parser at 0.2.1 (0.54s)
Computing version for https://github.com/mxcl/Path.swift.git
Computed https://github.com/mxcl/Path.swift.git at 1.4.1 (0.50s)
Computing version for https://github.com/SwiftPackageIndex/SemanticVersion
Computed https://github.com/SwiftPackageIndex/SemanticVersion at 0.4.0 (0.69s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 0.5.0 (0.69s)
Computing version for https://github.com/pointfreeco/swift-snapshot-testing.git
Computed https://github.com/pointfreeco/swift-snapshot-testing.git at 1.18.4 (0.74s)
Fetching https://github.com/pointfreeco/swift-custom-dump
Fetching https://github.com/swiftlang/swift-syntax
[1/4581] Fetching swift-custom-dump
[4582/75033] Fetching swift-custom-dump, swift-syntax
Fetched https://github.com/pointfreeco/swift-custom-dump from cache (5.40s)
Fetched https://github.com/swiftlang/swift-syntax from cache (5.45s)
Computing version for https://github.com/pointfreeco/swift-custom-dump
Computed https://github.com/pointfreeco/swift-custom-dump at 1.3.3 (5.93s)
Fetching https://github.com/pointfreeco/xctest-dynamic-overlay
[1/5458] Fetching xctest-dynamic-overlay
Fetched https://github.com/pointfreeco/xctest-dynamic-overlay from cache (0.63s)
Computing version for https://github.com/swiftlang/swift-syntax
Computed https://github.com/swiftlang/swift-syntax at 601.0.1 (1.29s)
Computing version for https://github.com/pointfreeco/xctest-dynamic-overlay
Computed https://github.com/pointfreeco/xctest-dynamic-overlay at 1.5.2 (0.44s)
Creating working copy for https://github.com/swiftlang/swift-syntax
Working copy of https://github.com/swiftlang/swift-syntax resolved at 601.0.1
Creating working copy for https://github.com/pointfreeco/swift-snapshot-testing.git
Working copy of https://github.com/pointfreeco/swift-snapshot-testing.git resolved at 1.18.4
Creating working copy for https://github.com/SwiftPackageIndex/SemanticVersion
Working copy of https://github.com/SwiftPackageIndex/SemanticVersion resolved at 0.4.0
Creating working copy for https://github.com/finestructure/Parser
Working copy of https://github.com/finestructure/Parser resolved at 0.2.1
Creating working copy for https://github.com/mxcl/Path.swift.git
Working copy of https://github.com/mxcl/Path.swift.git resolved at 1.4.1
Creating working copy for https://github.com/JohnSundell/ShellOut.git
Working copy of https://github.com/JohnSundell/ShellOut.git resolved at 2.3.0
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 0.5.0
Creating working copy for https://github.com/pointfreeco/xctest-dynamic-overlay
Working copy of https://github.com/pointfreeco/xctest-dynamic-overlay resolved at 1.5.2
Creating working copy for https://github.com/pointfreeco/swift-custom-dump
Working copy of https://github.com/pointfreeco/swift-custom-dump resolved at 1.3.3
Building for debugging...
[0/22] Write sources
[2/22] Copying Documentation.docc
[2/22] Write sources
[9/22] Write swift-version-24593BA9C3E375BF.txt
[11/46] Emitting module ArgumentParserToolInfo
[12/46] Compiling ArgumentParserToolInfo ToolInfo.swift
[13/46] Compiling Parser Match.swift
[14/47] Wrapping AST for ArgumentParserToolInfo for debugging
error: emit-module command failed with exit code 1 (use -v to see invocation)
[16/81] Emitting module ArgumentParser
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:61:40: error: cannot find 'EXIT_SUCCESS' in scope
 59 |
 60 |   /// An exit code that indicates successful completion of a command.
 61 |   public static let success = ExitCode(EXIT_SUCCESS)
    |                                        `- error: cannot find 'EXIT_SUCCESS' in scope
 62 |
 63 |   /// An exit code that indicates that the command failed.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:64:40: error: cannot find 'EXIT_FAILURE' in scope
 62 |
 63 |   /// An exit code that indicates that the command failed.
 64 |   public static let failure = ExitCode(EXIT_FAILURE)
    |                                        `- error: cannot find 'EXIT_FAILURE' in scope
 65 |
 66 |   /// An exit code that indicates that the user provided invalid input.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:70:50: error: cannot find 'EX_USAGE' in scope
 68 |   public static let validationFailure = ExitCode(ERROR_BAD_ARGUMENTS)
 69 | #else
 70 |   public static let validationFailure = ExitCode(EX_USAGE)
    |                                                  `- error: cannot find 'EX_USAGE' in scope
 71 | #endif
 72 |
[17/81] Compiling ArgumentParser BashCompletionsGenerator.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Completions/CompletionsGenerator.swift:49:26: error: cannot find 'getenv' in scope
 47 | #else
 48 |     // FIXME: This retrieves the user's preferred shell, not necessarily the one currently in use.
 49 |     guard let shellVar = getenv("SHELL") else { return nil }
    |                          `- error: cannot find 'getenv' in scope
 50 |     let shellParts = String(cString: shellVar).split(separator: "/")
 51 |     return CompletionShell(rawValue: String(shellParts.last ?? ""))
[18/81] Compiling ArgumentParser CompletionsGenerator.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Completions/CompletionsGenerator.swift:49:26: error: cannot find 'getenv' in scope
 47 | #else
 48 |     // FIXME: This retrieves the user's preferred shell, not necessarily the one currently in use.
 49 |     guard let shellVar = getenv("SHELL") else { return nil }
    |                          `- error: cannot find 'getenv' in scope
 50 |     let shellParts = String(cString: shellVar).split(separator: "/")
 51 |     return CompletionShell(rawValue: String(shellParts.last ?? ""))
[19/81] Compiling ArgumentParser FishCompletionsGenerator.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Completions/CompletionsGenerator.swift:49:26: error: cannot find 'getenv' in scope
 47 | #else
 48 |     // FIXME: This retrieves the user's preferred shell, not necessarily the one currently in use.
 49 |     guard let shellVar = getenv("SHELL") else { return nil }
    |                          `- error: cannot find 'getenv' in scope
 50 |     let shellParts = String(cString: shellVar).split(separator: "/")
 51 |     return CompletionShell(rawValue: String(shellParts.last ?? ""))
[20/81] Compiling ArgumentParser ZshCompletionsGenerator.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Completions/CompletionsGenerator.swift:49:26: error: cannot find 'getenv' in scope
 47 | #else
 48 |     // FIXME: This retrieves the user's preferred shell, not necessarily the one currently in use.
 49 |     guard let shellVar = getenv("SHELL") else { return nil }
    |                          `- error: cannot find 'getenv' in scope
 50 |     let shellParts = String(cString: shellVar).split(separator: "/")
 51 |     return CompletionShell(rawValue: String(shellParts.last ?? ""))
[21/81] Compiling ArgumentParser Argument.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Completions/CompletionsGenerator.swift:49:26: error: cannot find 'getenv' in scope
 47 | #else
 48 |     // FIXME: This retrieves the user's preferred shell, not necessarily the one currently in use.
 49 |     guard let shellVar = getenv("SHELL") else { return nil }
    |                          `- error: cannot find 'getenv' in scope
 50 |     let shellParts = String(cString: shellVar).split(separator: "/")
 51 |     return CompletionShell(rawValue: String(shellParts.last ?? ""))
/host/spi-builder-workspace/.build/checkouts/Path.swift/Sources/Path.swift:3:13: error: no such module 'Darwin'
  1 | import Foundation
  2 | #if !os(Linux)
  3 | import func Darwin.realpath
    |             `- error: no such module 'Darwin'
  4 | let _realpath = Darwin.realpath
  5 | #else
/host/spi-builder-workspace/.build/checkouts/Path.swift/Sources/Path.swift:3:13: error: no such module 'Darwin'
  1 | import Foundation
  2 | #if !os(Linux)
  3 | import func Darwin.realpath
    |             `- error: no such module 'Darwin'
  4 | let _realpath = Darwin.realpath
  5 | #else
[24/86] Compiling SemanticVersion resource_bundle_accessor.swift
/host/spi-builder-workspace/.build/checkouts/Path.swift/Sources/Path.swift:3:13: error: no such module 'Darwin'
  1 | import Foundation
  2 | #if !os(Linux)
  3 | import func Darwin.realpath
    |             `- error: no such module 'Darwin'
  4 | let _realpath = Darwin.realpath
  5 | #else
/host/spi-builder-workspace/.build/checkouts/Path.swift/Sources/Path.swift:3:13: error: no such module 'Darwin'
  1 | import Foundation
  2 | #if !os(Linux)
  3 | import func Darwin.realpath
    |             `- error: no such module 'Darwin'
  4 | let _realpath = Darwin.realpath
  5 | #else
error: emit-module command failed with exit code 1 (use -v to see invocation)
[27/86] Emitting module Path
/host/spi-builder-workspace/.build/checkouts/Path.swift/Sources/Path.swift:3:13: error: no such module 'Darwin'
  1 | import Foundation
  2 | #if !os(Linux)
  3 | import func Darwin.realpath
    |             `- error: no such module 'Darwin'
  4 | let _realpath = Darwin.realpath
  5 | #else
[28/86] Compiling Path PathToBool.swift
/host/spi-builder-workspace/.build/checkouts/Path.swift/Sources/Path.swift:3:13: error: no such module 'Darwin'
  1 | import Foundation
  2 | #if !os(Linux)
  3 | import func Darwin.realpath
    |             `- error: no such module 'Darwin'
  4 | let _realpath = Darwin.realpath
  5 | #else
[29/86] Emitting module SemanticVersion
[30/86] Compiling Parser CharacterSet+ext.swift
[31/86] Emitting module Parser
[32/86] Compiling Path Path+FileManager.swift
/host/spi-builder-workspace/.build/checkouts/Path.swift/Sources/Path.swift:3:13: error: no such module 'Darwin'
  1 | import Foundation
  2 | #if !os(Linux)
  3 | import func Darwin.realpath
    |             `- error: no such module 'Darwin'
  4 | let _realpath = Darwin.realpath
  5 | #else
[33/86] Compiling SemanticVersion NSRegularExpression+ext.swift
[34/86] Compiling SemanticVersion SemanticVersion+Codable.swift
[35/86] Compiling Path Path+StringConvertibles.swift
/host/spi-builder-workspace/.build/checkouts/Path.swift/Sources/Path.swift:3:13: error: no such module 'Darwin'
  1 | import Foundation
  2 | #if !os(Linux)
  3 | import func Darwin.realpath
    |             `- error: no such module 'Darwin'
  4 | let _realpath = Darwin.realpath
  5 | #else
[36/86] Compiling Path Path.swift
/host/spi-builder-workspace/.build/checkouts/Path.swift/Sources/Path.swift:3:13: error: no such module 'Darwin'
  1 | import Foundation
  2 | #if !os(Linux)
  3 | import func Darwin.realpath
    |             `- error: no such module 'Darwin'
  4 | let _realpath = Darwin.realpath
  5 | #else
[37/86] Compiling Path Path+ls.swift
/host/spi-builder-workspace/.build/checkouts/Path.swift/Sources/Path.swift:3:13: error: no such module 'Darwin'
  1 | import Foundation
  2 | #if !os(Linux)
  3 | import func Darwin.realpath
    |             `- error: no such module 'Darwin'
  4 | let _realpath = Darwin.realpath
  5 | #else
[38/86] Compiling SemanticVersion SemanticVersion.swift
[39/87] Compiling Parser Parser+zip.swift
[40/87] Compiling Parser Parser.swift
[41/88] Compiling ShellOut ShellOut.swift
/host/spi-builder-workspace/.build/checkouts/ShellOut/Sources/ShellOut.swift:8:8: error: no such module 'Dispatch'
  6 |
  7 | import Foundation
  8 | import Dispatch
    |        `- error: no such module 'Dispatch'
  9 |
 10 | // MARK: - API
error: emit-module command failed with exit code 1 (use -v to see invocation)
[42/88] Emitting module ShellOut
/host/spi-builder-workspace/.build/checkouts/ShellOut/Sources/ShellOut.swift:8:8: error: no such module 'Dispatch'
  6 |
  7 | import Foundation
  8 | import Dispatch
    |        `- error: no such module 'Dispatch'
  9 |
 10 | // MARK: - API
[43/88] Compiling ArgumentParser ArgumentHelp.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:61:40: error: cannot find 'EXIT_SUCCESS' in scope
 59 |
 60 |   /// An exit code that indicates successful completion of a command.
 61 |   public static let success = ExitCode(EXIT_SUCCESS)
    |                                        `- error: cannot find 'EXIT_SUCCESS' in scope
 62 |
 63 |   /// An exit code that indicates that the command failed.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:64:40: error: cannot find 'EXIT_FAILURE' in scope
 62 |
 63 |   /// An exit code that indicates that the command failed.
 64 |   public static let failure = ExitCode(EXIT_FAILURE)
    |                                        `- error: cannot find 'EXIT_FAILURE' in scope
 65 |
 66 |   /// An exit code that indicates that the user provided invalid input.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:70:50: error: cannot find 'EX_USAGE' in scope
 68 |   public static let validationFailure = ExitCode(ERROR_BAD_ARGUMENTS)
 69 | #else
 70 |   public static let validationFailure = ExitCode(EX_USAGE)
    |                                                  `- error: cannot find 'EX_USAGE' in scope
 71 | #endif
 72 |
[44/88] Compiling ArgumentParser CompletionKind.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:61:40: error: cannot find 'EXIT_SUCCESS' in scope
 59 |
 60 |   /// An exit code that indicates successful completion of a command.
 61 |   public static let success = ExitCode(EXIT_SUCCESS)
    |                                        `- error: cannot find 'EXIT_SUCCESS' in scope
 62 |
 63 |   /// An exit code that indicates that the command failed.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:64:40: error: cannot find 'EXIT_FAILURE' in scope
 62 |
 63 |   /// An exit code that indicates that the command failed.
 64 |   public static let failure = ExitCode(EXIT_FAILURE)
    |                                        `- error: cannot find 'EXIT_FAILURE' in scope
 65 |
 66 |   /// An exit code that indicates that the user provided invalid input.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:70:50: error: cannot find 'EX_USAGE' in scope
 68 |   public static let validationFailure = ExitCode(ERROR_BAD_ARGUMENTS)
 69 | #else
 70 |   public static let validationFailure = ExitCode(EX_USAGE)
    |                                                  `- error: cannot find 'EX_USAGE' in scope
 71 | #endif
 72 |
[45/88] Compiling ArgumentParser Errors.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:61:40: error: cannot find 'EXIT_SUCCESS' in scope
 59 |
 60 |   /// An exit code that indicates successful completion of a command.
 61 |   public static let success = ExitCode(EXIT_SUCCESS)
    |                                        `- error: cannot find 'EXIT_SUCCESS' in scope
 62 |
 63 |   /// An exit code that indicates that the command failed.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:64:40: error: cannot find 'EXIT_FAILURE' in scope
 62 |
 63 |   /// An exit code that indicates that the command failed.
 64 |   public static let failure = ExitCode(EXIT_FAILURE)
    |                                        `- error: cannot find 'EXIT_FAILURE' in scope
 65 |
 66 |   /// An exit code that indicates that the user provided invalid input.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:70:50: error: cannot find 'EX_USAGE' in scope
 68 |   public static let validationFailure = ExitCode(ERROR_BAD_ARGUMENTS)
 69 | #else
 70 |   public static let validationFailure = ExitCode(EX_USAGE)
    |                                                  `- error: cannot find 'EX_USAGE' in scope
 71 | #endif
 72 |
[46/88] Compiling ArgumentParser Flag.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:61:40: error: cannot find 'EXIT_SUCCESS' in scope
 59 |
 60 |   /// An exit code that indicates successful completion of a command.
 61 |   public static let success = ExitCode(EXIT_SUCCESS)
    |                                        `- error: cannot find 'EXIT_SUCCESS' in scope
 62 |
 63 |   /// An exit code that indicates that the command failed.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:64:40: error: cannot find 'EXIT_FAILURE' in scope
 62 |
 63 |   /// An exit code that indicates that the command failed.
 64 |   public static let failure = ExitCode(EXIT_FAILURE)
    |                                        `- error: cannot find 'EXIT_FAILURE' in scope
 65 |
 66 |   /// An exit code that indicates that the user provided invalid input.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:70:50: error: cannot find 'EX_USAGE' in scope
 68 |   public static let validationFailure = ExitCode(ERROR_BAD_ARGUMENTS)
 69 | #else
 70 |   public static let validationFailure = ExitCode(EX_USAGE)
    |                                                  `- error: cannot find 'EX_USAGE' in scope
 71 | #endif
 72 |
[47/88] Compiling ArgumentParser NameSpecification.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:61:40: error: cannot find 'EXIT_SUCCESS' in scope
 59 |
 60 |   /// An exit code that indicates successful completion of a command.
 61 |   public static let success = ExitCode(EXIT_SUCCESS)
    |                                        `- error: cannot find 'EXIT_SUCCESS' in scope
 62 |
 63 |   /// An exit code that indicates that the command failed.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:64:40: error: cannot find 'EXIT_FAILURE' in scope
 62 |
 63 |   /// An exit code that indicates that the command failed.
 64 |   public static let failure = ExitCode(EXIT_FAILURE)
    |                                        `- error: cannot find 'EXIT_FAILURE' in scope
 65 |
 66 |   /// An exit code that indicates that the user provided invalid input.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:70:50: error: cannot find 'EX_USAGE' in scope
 68 |   public static let validationFailure = ExitCode(ERROR_BAD_ARGUMENTS)
 69 | #else
 70 |   public static let validationFailure = ExitCode(EX_USAGE)
    |                                                  `- error: cannot find 'EX_USAGE' in scope
 71 | #endif
 72 |
[48/88] Compiling ArgumentParser Option.swift
[49/88] Compiling ArgumentParser OptionGroup.swift
[50/88] Compiling ArgumentParser CommandConfiguration.swift
[51/88] Compiling ArgumentParser EnumerableFlag.swift
[52/88] Compiling ArgumentParser ExpressibleByArgument.swift
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Usage/HelpGenerator.swift:358:11: error: cannot find 'winsize' in scope
356 |           height: Int(csbi.srWindow.Bottom - csbi.srWindow.Top) + 1)
357 | #else
358 |   var w = winsize()
    |           `- error: cannot find 'winsize' in scope
359 | #if os(OpenBSD)
360 |   // TIOCGWINSZ is a complex macro, so we need the flattened value.
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Usage/HelpGenerator.swift:364:13: error: cannot find 'ioctl' in scope
362 |   let err = ioctl(STDOUT_FILENO, tiocgwinsz, &w)
363 | #else
364 |   let err = ioctl(STDOUT_FILENO, TIOCGWINSZ, &w)
    |             `- error: cannot find 'ioctl' in scope
365 | #endif
366 |   let width = Int(w.ws_col)
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Usage/HelpGenerator.swift:364:19: error: cannot find 'STDOUT_FILENO' in scope
362 |   let err = ioctl(STDOUT_FILENO, tiocgwinsz, &w)
363 | #else
364 |   let err = ioctl(STDOUT_FILENO, TIOCGWINSZ, &w)
    |                   `- error: cannot find 'STDOUT_FILENO' in scope
365 | #endif
366 |   let width = Int(w.ws_col)
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Usage/HelpGenerator.swift:364:34: error: cannot find 'TIOCGWINSZ' in scope
362 |   let err = ioctl(STDOUT_FILENO, tiocgwinsz, &w)
363 | #else
364 |   let err = ioctl(STDOUT_FILENO, TIOCGWINSZ, &w)
    |                                  `- error: cannot find 'TIOCGWINSZ' in scope
365 | #endif
366 |   let width = Int(w.ws_col)
/host/spi-builder-workspace/.build/checkouts/swift-argument-parser/Sources/ArgumentParser/Parsable Properties/Errors.swift:61:40: error: cannot find 'EXIT_SUCCESS' in scope
 59 |
 60 |   /// An exit code that indicates successful completion of a command.
 61 |   public static let success = ExitCode(EXIT_SUCCESS)
    |                                        `- error: cannot find 'EXIT_SUCCESS' in scope
 62 |
 63 |   /// An exit code that indicates that the command failed.
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/13] Write swift-version-24593BA9C3E375BF.txt
[2/37] Emitting module SemanticVersion
[3/37] Compiling SemanticVersion resource_bundle_accessor.swift
[4/37] Compiling Parser CharacterSet+ext.swift
[5/37] Emitting module Parser
[6/37] Compiling Path PathToBool.swift
/host/spi-builder-workspace/.build/checkouts/Path.swift/Sources/Path.swift:3:13: error: no such module 'Darwin'
  1 | import Foundation
  2 | #if !os(Linux)
  3 | import func Darwin.realpath
    |             `- error: no such module 'Darwin'
  4 | let _realpath = Darwin.realpath
  5 | #else
[7/38] Compiling Path Extensions.swift
/host/spi-builder-workspace/.build/checkouts/Path.swift/Sources/Path.swift:3:13: error: no such module 'Darwin'
  1 | import Foundation
  2 | #if !os(Linux)
  3 | import func Darwin.realpath
    |             `- error: no such module 'Darwin'
  4 | let _realpath = Darwin.realpath
  5 | #else
[8/38] Compiling Path Path+Attributes.swift
/host/spi-builder-workspace/.build/checkouts/Path.swift/Sources/Path.swift:3:13: error: no such module 'Darwin'
  1 | import Foundation
  2 | #if !os(Linux)
  3 | import func Darwin.realpath
    |             `- error: no such module 'Darwin'
  4 | let _realpath = Darwin.realpath
  5 | #else
error: emit-module command failed with exit code 1 (use -v to see invocation)
[9/38] Emitting module ShellOut
/host/spi-builder-workspace/.build/checkouts/ShellOut/Sources/ShellOut.swift:8:8: error: no such module 'Dispatch'
  6 |
  7 | import Foundation
  8 | import Dispatch
    |        `- error: no such module 'Dispatch'
  9 |
 10 | // MARK: - API
[10/38] Compiling ShellOut ShellOut.swift
/host/spi-builder-workspace/.build/checkouts/ShellOut/Sources/ShellOut.swift:8:8: error: no such module 'Dispatch'
  6 |
  7 | import Foundation
  8 | import Dispatch
    |        `- error: no such module 'Dispatch'
  9 |
 10 | // MARK: - API
[11/38] Compiling Path Path+StringConvertibles.swift
/host/spi-builder-workspace/.build/checkouts/Path.swift/Sources/Path.swift:3:13: error: no such module 'Darwin'
  1 | import Foundation
  2 | #if !os(Linux)
  3 | import func Darwin.realpath
    |             `- error: no such module 'Darwin'
  4 | let _realpath = Darwin.realpath
  5 | #else
[12/38] Compiling Parser Match.swift
[13/38] Compiling Parser Parser+zip.swift
BUILD FAILURE 6.1 wasm