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 swift-weak-self-check, reference 0.7.0 (1bbad2), with Swift 6.1 for Wasm on 4 Sep 2025 20:26:27 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:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.67.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/p-x9/swift-weak-self-check.git
Reference: 0.7.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/p-x9/swift-weak-self-check
 * tag               0.7.0      -> FETCH_HEAD
HEAD is now at 1bbad28 Merge pull request #22 from p-x9/feature/migrate-deprecated-api
Cloned https://github.com/p-x9/swift-weak-self-check.git
Revision (git rev-parse @):
1bbad286af0a19f7a90d16003551d04d3f2f14b3
SUCCESS checkout https://github.com/p-x9/swift-weak-self-check.git at 0.7.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/p-x9/swift-weak-self-check.git
https://github.com/p-x9/swift-weak-self-check.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-argument-parser",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.2.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-argument-parser.git"
    },
    {
      "identity" : "swift-syntax",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "509.0.0",
            "upper_bound" : "602.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/swiftlang/swift-syntax.git"
    },
    {
      "identity" : "swift-indexstore",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.3.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/kateinoigakukun/swift-indexstore.git"
    },
    {
      "identity" : "yams",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "5.0.1",
            "upper_bound" : "6.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/jpsim/Yams.git"
    },
    {
      "identity" : "swift-source-reporter",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.2.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/p-x9/swift-source-reporter.git"
    }
  ],
  "manifest_display_name" : "swift-weak-self-check",
  "name" : "swift-weak-self-check",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "weak-self-check",
      "targets" : [
        "weak-self-check"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "WeakSelfCheckBuildToolPlugin",
      "targets" : [
        "WeakSelfCheckBuildToolPlugin"
      ],
      "type" : {
        "plugin" : null
      }
    },
    {
      "name" : "WeakSelfCheckCommandPlugin",
      "targets" : [
        "WeakSelfCheckCommandPlugin"
      ],
      "type" : {
        "plugin" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "weak_self_check",
      "module_type" : "SwiftTarget",
      "name" : "weak-self-check",
      "path" : "Sources/weak-self-check",
      "product_dependencies" : [
        "ArgumentParser",
        "Yams",
        "SwiftIndexStore"
      ],
      "product_memberships" : [
        "weak-self-check",
        "WeakSelfCheckBuildToolPlugin",
        "WeakSelfCheckCommandPlugin"
      ],
      "sources" : [
        "Config.swift",
        "Extension/FileManager+.swift",
        "Extension/ReportType+.swift",
        "main.swift"
      ],
      "target_dependencies" : [
        "WeakSelfCheckCore"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "WeakSelfCheckCoreTests",
      "module_type" : "SwiftTarget",
      "name" : "WeakSelfCheckCoreTests",
      "path" : "Tests/WeakSelfCheckCoreTests",
      "product_dependencies" : [
        "SwiftSyntax",
        "SwiftSyntaxBuilder"
      ],
      "sources" : [
        "WeakSelfCheckCoreTests.swift"
      ],
      "target_dependencies" : [
        "WeakSelfCheckCore"
      ],
      "type" : "test"
    },
    {
      "c99name" : "WeakSelfCheckCore",
      "module_type" : "SwiftTarget",
      "name" : "WeakSelfCheckCore",
      "path" : "Sources/WeakSelfCheckCore",
      "product_dependencies" : [
        "SwiftSyntax",
        "SwiftParser",
        "SwiftIndexStore",
        "SwiftSyntaxBuilder",
        "SourceReporter"
      ],
      "product_memberships" : [
        "weak-self-check",
        "WeakSelfCheckBuildToolPlugin",
        "WeakSelfCheckCommandPlugin"
      ],
      "sources" : [
        "ClosureWeakSelfChecker.swift",
        "Extension/ClosureCapture+.swift",
        "Extension/FunctionParameterSyntax+.swift",
        "Extension/IndexStoreSymbol+.swift",
        "Extension/MemberAccessExprSyntax+.swift",
        "Extension/String+.swift",
        "Extension/Syntax+.swift",
        "Extension/TypeSyntaxProtocol+.swift",
        "Model/WhiteListElement.swift",
        "SelfAccessDetector.swift",
        "Util/demangle.swift",
        "WeakSelfChecker.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "WeakSelfCheckCommandPlugin",
      "module_type" : "PluginTarget",
      "name" : "WeakSelfCheckCommandPlugin",
      "path" : "Plugins/WeakSelfCheckCommandPlugin",
      "plugin_capability" : {
        "intent" : {
          "description" : "Check whether `self` is captured by weak reference in Closure.",
          "type" : "custom",
          "verb" : "weak-self-check"
        },
        "permissions" : [
        ],
        "type" : "command"
      },
      "product_memberships" : [
        "WeakSelfCheckCommandPlugin"
      ],
      "sources" : [
        "plugin.swift"
      ],
      "target_dependencies" : [
        "weak-self-check"
      ],
      "type" : "plugin"
    },
    {
      "c99name" : "WeakSelfCheckBuildToolPlugin",
      "module_type" : "PluginTarget",
      "name" : "WeakSelfCheckBuildToolPlugin",
      "path" : "Plugins/WeakSelfCheckBuildToolPlugin",
      "plugin_capability" : {
        "type" : "buildTool"
      },
      "product_memberships" : [
        "WeakSelfCheckBuildToolPlugin"
      ],
      "sources" : [
        "plugin.swift"
      ],
      "target_dependencies" : [
        "weak-self-check"
      ],
      "type" : "plugin"
    }
  ],
  "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:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:eb0758f51dbd6991fb9e51dedbfbcbec142ffc0d3b9b8ad91fa19d35e5136f0a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/kateinoigakukun/swift-indexstore.git
Fetching https://github.com/p-x9/swift-source-reporter.git
Fetching https://github.com/jpsim/Yams.git
Fetching https://github.com/apple/swift-argument-parser.git
Fetching https://github.com/swiftlang/swift-syntax.git
[1/47] Fetching swift-source-reporter
[48/370] Fetching swift-source-reporter, swift-indexstore
[371/11506] Fetching swift-source-reporter, swift-indexstore, yams
[1151/83356] Fetching swift-source-reporter, swift-indexstore, yams, swift-syntax
[2315/99048] Fetching swift-source-reporter, swift-indexstore, yams, swift-syntax, swift-argument-parser
Fetched https://github.com/p-x9/swift-source-reporter.git from cache (2.99s)
[58047/99001] Fetching swift-indexstore, yams, swift-syntax, swift-argument-parser
Fetched https://github.com/jpsim/Yams.git from cache (3.09s)
[50503/87865] Fetching swift-indexstore, swift-syntax, swift-argument-parser
Fetched https://github.com/kateinoigakukun/swift-indexstore.git from cache (10.02s)
Fetched https://github.com/apple/swift-argument-parser.git from cache (10.03s)
Fetched https://github.com/swiftlang/swift-syntax.git from cache (10.08s)
Computing version for https://github.com/p-x9/swift-source-reporter.git
Computed https://github.com/p-x9/swift-source-reporter.git at 0.2.0 (10.64s)
Computing version for https://github.com/kateinoigakukun/swift-indexstore.git
Computed https://github.com/kateinoigakukun/swift-indexstore.git at 0.4.0 (0.62s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.6.1 (0.56s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 601.0.1 (2.77s)
Computing version for https://github.com/jpsim/Yams.git
Computed https://github.com/jpsim/Yams.git at 5.4.0 (0.62s)
Creating working copy for https://github.com/p-x9/swift-source-reporter.git
Working copy of https://github.com/p-x9/swift-source-reporter.git resolved at 0.2.0
Creating working copy for https://github.com/jpsim/Yams.git
Working copy of https://github.com/jpsim/Yams.git resolved at 5.4.0
Creating working copy for https://github.com/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at 601.0.1
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.6.1
Creating working copy for https://github.com/kateinoigakukun/swift-indexstore.git
Working copy of https://github.com/kateinoigakukun/swift-indexstore.git resolved at 0.4.0
/host/spi-builder-workspace/Plugins/WeakSelfCheckCommandPlugin/plugin.swift:37:17: warning: 'launchPath' is deprecated: renamed to 'executableURL'
 35 |
 36 |         let process = Process()
 37 |         process.launchPath = tool.url.path
    |                 |- warning: 'launchPath' is deprecated: renamed to 'executableURL'
    |                 `- note: use 'executableURL' instead
 38 |         process.arguments = [
 39 |             path,
[1/1] Compiling plugin WeakSelfCheckCommandPlugin
[2/2] Compiling plugin WeakSelfCheckBuildToolPlugin
[3/3] Compiling plugin GenerateManual
[4/4] Compiling plugin GenerateDoccReference
Building for debugging...
[4/93] Write sources
[30/93] Compiling _CIndexStore dummy.c
[31/93] Compiling _SwiftSyntaxCShims dummy.c
[33/93] Compiling _CIndexStore dummy.c
[34/93] Write sources
[42/93] Compiling writer.c
[43/93] Compiling reader.c
[44/93] Compiling api.c
[45/93] Compiling writer.c
[46/93] Compiling reader.c
[47/93] Compiling parser.c
[48/93] Compiling emitter.c
[49/93] Compiling parser.c
[50/93] Write swift-version-24593BA9C3E375BF.txt
[51/93] Compiling api.c
[52/93] Compiling scanner.c
[53/93] Compiling emitter.c
[54/93] Compiling scanner.c
[56/145] Emitting module SwiftSyntax600
[57/145] Compiling Yams Tag.swift
[58/145] Compiling Yams YamlAnchorProviding.swift
[59/147] Compiling Yams Resolver.swift
[60/147] Compiling Yams String+Yams.swift
[61/149] Emitting module SwiftSyntax601
[62/149] Compiling SwiftSyntax601 Empty.swift
[63/149] Compiling SwiftSyntax510 Empty.swift
[64/149] Emitting module SwiftSyntax510
[65/149] Compiling SwiftSyntax601 Empty.swift
[66/149] Emitting module SwiftSyntax601
[67/151] Emitting module SwiftSyntax600
[68/152] Emitting module SwiftSyntax510
[69/152] Compiling SwiftSyntax510 Empty.swift
[70/152] Compiling SwiftSyntax600 Empty.swift
[78/155] Compiling Yams Node.Scalar.swift
[79/155] Compiling Yams Node.Sequence.swift
[80/155] Compiling Yams Node.swift
[81/193] Compiling SwiftSyntax509 Empty.swift
[82/193] Emitting module SwiftSyntax509
[83/193] Compiling SwiftSyntax509 Empty.swift
[84/193] Emitting module SwiftSyntax509
[87/261] Compiling SwiftSyntax Assert.swift
[88/261] Compiling SwiftSyntax BumpPtrAllocator.swift
[89/261] Compiling SwiftSyntax CommonAncestor.swift
[90/261] Compiling SwiftSyntax Convenience.swift
[91/261] Compiling SwiftSyntax CustomTraits.swift
[92/261] Compiling SwiftSyntax EditorPlaceholder.swift
[93/261] Compiling SwiftSyntax RawSyntax.swift
/host/spi-builder-workspace/.build/checkouts/Yams/Sources/Yams/Representer.swift:307:45: error: cannot find 'DBL_DECIMAL_DIG' in scope
305 |         // Since `NumberFormatter` creates a string with insufficient precision for Decode,
306 |         // it uses with `String(format:...)`
307 |         let string = String(format: "%.*g", DBL_DECIMAL_DIG, self)
    |                                             `- error: cannot find 'DBL_DECIMAL_DIG' in scope
308 |         // "%*.g" does not use scientific notation if the exponent is less than –4.
309 |         // So fallback to using `NumberFormatter` if string does not uses scientific notation.
[94/261] Compiling SwiftSyntax RawSyntaxLayoutView.swift
/host/spi-builder-workspace/.build/checkouts/Yams/Sources/Yams/Representer.swift:307:45: error: cannot find 'DBL_DECIMAL_DIG' in scope
305 |         // Since `NumberFormatter` creates a string with insufficient precision for Decode,
306 |         // it uses with `String(format:...)`
307 |         let string = String(format: "%.*g", DBL_DECIMAL_DIG, self)
    |                                             `- error: cannot find 'DBL_DECIMAL_DIG' in scope
308 |         // "%*.g" does not use scientific notation if the exponent is less than –4.
309 |         // So fallback to using `NumberFormatter` if string does not uses scientific notation.
[95/261] Compiling SwiftSyntax RawSyntaxNodeProtocol.swift
/host/spi-builder-workspace/.build/checkouts/Yams/Sources/Yams/Representer.swift:307:45: error: cannot find 'DBL_DECIMAL_DIG' in scope
305 |         // Since `NumberFormatter` creates a string with insufficient precision for Decode,
306 |         // it uses with `String(format:...)`
307 |         let string = String(format: "%.*g", DBL_DECIMAL_DIG, self)
    |                                             `- error: cannot find 'DBL_DECIMAL_DIG' in scope
308 |         // "%*.g" does not use scientific notation if the exponent is less than –4.
309 |         // So fallback to using `NumberFormatter` if string does not uses scientific notation.
[96/261] Compiling SwiftSyntax SourceLength.swift
[97/261] Compiling SwiftSyntax SourceLocation.swift
[98/261] Emitting module Yams
[99/261] Compiling SwiftSyntax SourcePresence.swift
[100/261] Compiling SwiftSyntax SwiftSyntaxCompatibility.swift
[101/261] Compiling SwiftSyntax Identifier.swift
[102/261] Compiling SwiftSyntax MemoryLayout.swift
[103/261] Compiling SwiftSyntax MissingNodeInitializers.swift
[104/261] Compiling SwiftSyntax AbsolutePosition.swift
[105/261] Compiling SwiftSyntax AbsoluteRawSyntax.swift
[106/261] Compiling SwiftSyntax AbsoluteSyntaxInfo.swift
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:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:eb0758f51dbd6991fb9e51dedbfbcbec142ffc0d3b9b8ad91fa19d35e5136f0a
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
/host/spi-builder-workspace/Plugins/WeakSelfCheckCommandPlugin/plugin.swift:37:17: warning: 'launchPath' is deprecated: renamed to 'executableURL'
 35 |
 36 |         let process = Process()
 37 |         process.launchPath = tool.url.path
    |                 |- warning: 'launchPath' is deprecated: renamed to 'executableURL'
    |                 `- note: use 'executableURL' instead
 38 |         process.arguments = [
 39 |             path,
[1/1] Compiling plugin WeakSelfCheckCommandPlugin
[2/2] Compiling plugin WeakSelfCheckBuildToolPlugin
[3/3] Compiling plugin GenerateManual
[4/4] Compiling plugin GenerateDoccReference
Building for debugging...
[4/43] Write swift-version-24593BA9C3E375BF.txt
[6/55] Emitting module SwiftSyntax601
[7/55] Compiling SwiftSyntax601 Empty.swift
[8/64] Emitting module SwiftSyntax509
[9/74] Compiling SwiftSyntax510 Empty.swift
[10/74] Emitting module SwiftSyntax510
[11/97] Emitting module SwiftSyntax600
[12/97] Compiling SwiftSyntax601 Empty.swift
[13/97] Compiling SwiftSyntax600 Empty.swift
[14/98] Emitting module SwiftSyntax601
[16/99] Compiling SwiftSyntax509 Empty.swift
[17/100] Emitting module SwiftSyntax600
[18/100] Compiling SwiftSyntax600 Empty.swift
[24/132] Compiling SwiftSyntax510 Empty.swift
[25/132] Emitting module SwiftSyntax510
[26/133] Compiling Yams Resolver.swift
[27/133] Compiling Yams String+Yams.swift
[28/135] Emitting module SwiftSyntax509
[29/135] Compiling SwiftSyntax509 Empty.swift
[31/200] Compiling SwiftSyntax Tokens.swift
[32/200] Compiling SwiftSyntax TriviaPieces.swift
[34/202] Compiling SwiftSyntax RawSyntaxNodesAB.swift
[35/202] Compiling SwiftSyntax SourceLocation.swift
[36/209] Compiling SwiftSyntax SyntaxTraits.swift
/host/spi-builder-workspace/.build/checkouts/Yams/Sources/Yams/Representer.swift:307:45: error: cannot find 'DBL_DECIMAL_DIG' in scope
305 |         // Since `NumberFormatter` creates a string with insufficient precision for Decode,
306 |         // it uses with `String(format:...)`
307 |         let string = String(format: "%.*g", DBL_DECIMAL_DIG, self)
    |                                             `- error: cannot find 'DBL_DECIMAL_DIG' in scope
308 |         // "%*.g" does not use scientific notation if the exponent is less than –4.
309 |         // So fallback to using `NumberFormatter` if string does not uses scientific notation.
[37/209] Compiling SwiftSyntax SyntaxVisitor.swift
/host/spi-builder-workspace/.build/checkouts/Yams/Sources/Yams/Representer.swift:307:45: error: cannot find 'DBL_DECIMAL_DIG' in scope
305 |         // Since `NumberFormatter` creates a string with insufficient precision for Decode,
306 |         // it uses with `String(format:...)`
307 |         let string = String(format: "%.*g", DBL_DECIMAL_DIG, self)
    |                                             `- error: cannot find 'DBL_DECIMAL_DIG' in scope
308 |         // "%*.g" does not use scientific notation if the exponent is less than –4.
309 |         // So fallback to using `NumberFormatter` if string does not uses scientific notation.
[38/209] Compiling SwiftSyntax TokenKind.swift
/host/spi-builder-workspace/.build/checkouts/Yams/Sources/Yams/Representer.swift:307:45: error: cannot find 'DBL_DECIMAL_DIG' in scope
305 |         // Since `NumberFormatter` creates a string with insufficient precision for Decode,
306 |         // it uses with `String(format:...)`
307 |         let string = String(format: "%.*g", DBL_DECIMAL_DIG, self)
    |                                             `- error: cannot find 'DBL_DECIMAL_DIG' in scope
308 |         // "%*.g" does not use scientific notation if the exponent is less than –4.
309 |         // So fallback to using `NumberFormatter` if string does not uses scientific notation.
[39/211] Compiling SwiftIndexStore OptionSetDisplayable.swift
[40/212] Compiling SwiftIndexStore LibIndexStore.swift
/host/spi-builder-workspace/.build/checkouts/swift-indexstore/Sources/SwiftIndexStore/LibIndexStore.swift:24:21: error: cannot find 'RTLD_LAZY' in scope
 22 |         typealias Dylib = UnsafeMutableRawPointer
 23 |
 24 |         var flags = RTLD_LAZY | RTLD_LOCAL
    |                     `- error: cannot find 'RTLD_LAZY' in scope
 25 |
 26 |         #if os(macOS)
/host/spi-builder-workspace/.build/checkouts/swift-indexstore/Sources/SwiftIndexStore/LibIndexStore.swift:24:33: error: cannot find 'RTLD_LOCAL' in scope
 22 |         typealias Dylib = UnsafeMutableRawPointer
 23 |
 24 |         var flags = RTLD_LAZY | RTLD_LOCAL
    |                                 `- error: cannot find 'RTLD_LOCAL' in scope
 25 |
 26 |         #if os(macOS)
/host/spi-builder-workspace/.build/checkouts/swift-indexstore/Sources/SwiftIndexStore/LibIndexStore.swift:30:21: error: cannot find 'dlopen' in scope
 28 |         #endif
 29 |
 30 |         let dylib = dlopen(url.path, flags)!
    |                     `- error: cannot find 'dlopen' in scope
 31 |         var api = indexstore_functions_t()
 32 |         func requireSym<T>(_ dylib: Dylib, _ symbol: String) throws -> T {
/host/spi-builder-workspace/.build/checkouts/swift-indexstore/Sources/SwiftIndexStore/LibIndexStore.swift:33:29: error: cannot find 'dlsym' in scope
 31 |         var api = indexstore_functions_t()
 32 |         func requireSym<T>(_ dylib: Dylib, _ symbol: String) throws -> T {
 33 |             guard let sym = dlsym(dylib, symbol) else {
    |                             `- error: cannot find 'dlsym' in scope
 34 |                 throw IndexStoreError.missingSymbol(symbol)
 35 |             }
/host/spi-builder-workspace/.build/checkouts/swift-indexstore/Sources/SwiftIndexStore/LibIndexStore.swift:91:32: error: cannot find 'Process' in scope
 89 |
 90 |     public static func linuxSwiftDir() throws -> URL {
 91 |         let (binPath, _) = try Process.exec(bin: "/usr/bin/which", arguments: ["swift"])
    |                                `- error: cannot find 'Process' in scope
 92 |         return URL(
 93 |             fileURLWithPath: binPath
/host/spi-builder-workspace/.build/checkouts/swift-indexstore/Sources/SwiftIndexStore/LibIndexStore.swift:100:38: error: cannot find 'Process' in scope
 98 |
 99 |     private static func macOSDeveloperDir() throws -> URL {
100 |         var (stdoutContent, _) = try Process.exec(
    |                                      `- error: cannot find 'Process' in scope
101 |             bin: "/usr/bin/xcode-select",
102 |             arguments: ["--print-path"]
[41/212] Compiling SwiftIndexStore IndexStoreUnit.swift
[42/212] Compiling SwiftIndexStore UnfairLock.swift
[43/212] Compiling SwiftSyntax RawSyntaxTokenView.swift
[44/212] Compiling SwiftSyntax SourceEdit.swift
[45/212] Compiling SwiftSyntax SourceLength.swift
[46/212] Compiling SwiftSyntax MissingNodeInitializers.swift
[47/212] Compiling SwiftSyntax RawSyntax.swift
[48/212] Emitting module Yams
error: emit-module command failed with exit code 1 (use -v to see invocation)
[49/212] Emitting module SwiftIndexStore
/host/spi-builder-workspace/.build/checkouts/swift-indexstore/Sources/SwiftIndexStore/LibIndexStore.swift:24:21: error: cannot find 'RTLD_LAZY' in scope
 22 |         typealias Dylib = UnsafeMutableRawPointer
 23 |
 24 |         var flags = RTLD_LAZY | RTLD_LOCAL
    |                     `- error: cannot find 'RTLD_LAZY' in scope
 25 |
 26 |         #if os(macOS)
/host/spi-builder-workspace/.build/checkouts/swift-indexstore/Sources/SwiftIndexStore/LibIndexStore.swift:24:33: error: cannot find 'RTLD_LOCAL' in scope
 22 |         typealias Dylib = UnsafeMutableRawPointer
 23 |
 24 |         var flags = RTLD_LAZY | RTLD_LOCAL
    |                                 `- error: cannot find 'RTLD_LOCAL' in scope
 25 |
 26 |         #if os(macOS)
/host/spi-builder-workspace/.build/checkouts/swift-indexstore/Sources/SwiftIndexStore/LibIndexStore.swift:30:21: error: cannot find 'dlopen' in scope
 28 |         #endif
 29 |
 30 |         let dylib = dlopen(url.path, flags)!
    |                     `- error: cannot find 'dlopen' in scope
 31 |         var api = indexstore_functions_t()
 32 |         func requireSym<T>(_ dylib: Dylib, _ symbol: String) throws -> T {
/host/spi-builder-workspace/.build/checkouts/swift-indexstore/Sources/SwiftIndexStore/Process+Extension.swift:3:11: error: cannot find type 'Process' in scope
 1 | import Foundation
 2 |
 3 | extension Process {
   |           `- error: cannot find type 'Process' in scope
 4 |     enum ProcessError: Error {
 5 |         case nonZeroExit(
[50/212] Compiling SwiftSyntax Identifier.swift
[51/212] Compiling SwiftSyntax MemoryLayout.swift
[52/212] Compiling Yams YamlError.swift
[53/212] Compiling Yams YamlTagProviding.swift
[54/212] Compiling SwiftIndexStore Process+Extension.swift
/host/spi-builder-workspace/.build/checkouts/swift-indexstore/Sources/SwiftIndexStore/Process+Extension.swift:3:11: error: cannot find type 'Process' in scope
 1 | import Foundation
 2 |
 3 | extension Process {
   |           `- error: cannot find type 'Process' in scope
 4 |     enum ProcessError: Error {
 5 |         case nonZeroExit(
/host/spi-builder-workspace/.build/checkouts/swift-indexstore/Sources/SwiftIndexStore/Process+Extension.swift:6:13: error: cannot find type 'TerminationReason' in scope
 4 |     enum ProcessError: Error {
 5 |         case nonZeroExit(
 6 |             TerminationReason, Int32, command: String,
   |             `- error: cannot find type 'TerminationReason' in scope
 7 |             stdout: String, stderr: String
 8 |         )
[55/212] Compiling SwiftIndexStore SwiftIndexStore.swift
[59/212] Compiling SwiftSyntax SyntaxEnum.swift
[60/212] Compiling SwiftSyntax SyntaxKind.swift
[61/212] Compiling SwiftSyntax SyntaxRewriter.swift
[62/212] Emitting module ArgumentParserToolInfo
BUILD FAILURE 6.1 wasm