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 main (1bbad2), with Swift 6.1 for Wasm on 4 Sep 2025 20:27:05 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images: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: 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/p-x9/swift-weak-self-check
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
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 main
========================================
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-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images: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/jpsim/Yams.git
Fetching https://github.com/swiftlang/swift-syntax.git
Fetching https://github.com/apple/swift-argument-parser.git
Fetching https://github.com/p-x9/swift-source-reporter.git
Fetching https://github.com/kateinoigakukun/swift-indexstore.git
[1/47] Fetching swift-source-reporter
[48/370] Fetching swift-source-reporter, swift-indexstore
[346/11506] Fetching swift-source-reporter, swift-indexstore, yams
[1015/83356] Fetching swift-source-reporter, swift-indexstore, yams, swift-syntax
[2068/99048] Fetching swift-source-reporter, swift-indexstore, yams, swift-syntax, swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser.git from cache (2.13s)
[23513/83356] Fetching swift-source-reporter, swift-indexstore, yams, swift-syntax
Fetched https://github.com/p-x9/swift-source-reporter.git from cache (10.27s)
Fetched https://github.com/kateinoigakukun/swift-indexstore.git from cache (10.27s)
Fetched https://github.com/jpsim/Yams.git from cache (10.33s)
Fetched https://github.com/swiftlang/swift-syntax.git from cache (10.35s)
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.96s)
Computing version for https://github.com/kateinoigakukun/swift-indexstore.git
Computed https://github.com/kateinoigakukun/swift-indexstore.git at 0.4.0 (0.59s)
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.63s)
Computing version for https://github.com/swiftlang/swift-syntax.git
Computed https://github.com/swiftlang/swift-syntax.git at 601.0.1 (2.75s)
Computing version for https://github.com/jpsim/Yams.git
Computed https://github.com/jpsim/Yams.git at 5.4.0 (0.63s)
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/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
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/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at 601.0.1
/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
[20/93] Compiling _CIndexStore dummy.c
[21/93] Compiling _SwiftSyntaxCShims dummy.c
[21/93] Write sources
[25/93] Compiling _SwiftSyntaxCShims dummy.c
[26/93] Compiling writer.c
[27/93] Write sources
[40/93] Compiling reader.c
[41/93] Compiling _CIndexStore dummy.c
[42/93] Compiling parser.c
[43/93] Compiling writer.c
[44/93] Compiling reader.c
[45/93] Compiling api.c
[45/93] Write sources
[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/95] Compiling scanner.c
[56/125] Emitting module SwiftSyntax510
[57/127] Emitting module SwiftSyntax509
[58/127] Compiling SwiftSyntax509 Empty.swift
[59/128] Emitting module SwiftSyntax600
[60/128] Compiling SwiftSyntax600 Empty.swift
[61/128] Compiling SwiftSyntax510 Empty.swift
[62/130] Emitting module SwiftSyntax601
[63/130] Compiling SwiftSyntax601 Empty.swift
[64/131] Compiling SwiftSyntax600 Empty.swift
[65/131] Emitting module SwiftSyntax600
[66/131] Compiling SwiftSyntax601 Empty.swift
[67/132] Emitting module SwiftSyntax601
[69/133] Emitting module SwiftSyntax510
[70/133] Compiling SwiftSyntax510 Empty.swift
[77/183] Emitting module Yams
[78/253] Emitting module SwiftSyntax509
[79/253] Compiling SwiftSyntax509 Empty.swift
[81/259] Emitting module ArgumentParserToolInfo
[82/259] Compiling SwiftSyntax SyntaxChildren.swift
[83/259] Compiling SwiftSyntax SyntaxCollection.swift
[84/259] Compiling SwiftSyntax SyntaxHashable.swift
[85/259] Compiling SwiftSyntax SyntaxEnum.swift
[86/259] Compiling ArgumentParserToolInfo ToolInfo.swift
[87/260] Compiling SwiftSyntax SourceLocation.swift
[88/260] Compiling SwiftSyntax SourcePresence.swift
[89/260] Compiling SwiftSyntax SwiftSyntaxCompatibility.swift
[90/260] Compiling SwiftSyntax SyntaxProtocol.swift
[91/260] Compiling SwiftSyntax SyntaxText.swift
[92/260] Compiling SwiftSyntax SyntaxTreeViewMode.swift
[93/260] Compiling SwiftSyntax TokenDiagnostic.swift
[94/260] Compiling SwiftSyntax TokenSequence.swift
[95/260] Compiling SwiftSyntax TokenSyntax.swift
[96/260] Compiling SwiftSyntax SyntaxKind.swift
[97/260] Compiling SwiftSyntax SyntaxRewriter.swift
[99/260] Compiling SwiftSyntax SyntaxIdentifier.swift
[100/260] Compiling SwiftSyntax SyntaxNodeFactory.swift
[101/260] Compiling SwiftSyntax SyntaxNodeStructure.swift
[102/260] Compiling SwiftSyntax Syntax.swift
[103/260] Compiling SwiftSyntax SyntaxArena.swift
[104/260] Compiling SwiftSyntax SyntaxArenaAllocatedBuffer.swift
[105/261] Compiling SwiftIndexStore IndexStoreUnit.swift
[107/326] Compiling SwiftSyntax SourceLength.swift
[108/326] Compiling SwiftSyntax AbsolutePosition.swift
[109/328] Compiling SwiftSyntax SwiftSyntaxCompatibility.swift
[110/328] Compiling SwiftSyntax Syntax.swift
[111/330] Compiling SourceReporter CallbackReporter.swift
[112/330] Emitting module SourceReporter
[113/330] Compiling SourceReporter ReporterProtocol.swift
[114/330] Compiling SourceReporter XcodeReporter.swift
[115/330] Compiling SourceReporter ReportType.swift
[116/330] Compiling SourceReporter CompositeReporter.swift
[117/330] Compiling SourceReporter Report.swift
[119/331] Compiling SwiftIndexStore IndexStoreUnit.swift
[120/331] Compiling SwiftIndexStore LibIndexStore.swift
[123/376] Compiling ArgumentParser BashCompletionsGenerator.swift
[124/376] Compiling ArgumentParser CompletionsGenerator.swift
[125/376] Compiling SwiftIndexStore UnfairLock.swift
[126/376] Emitting module SwiftIndexStore
[127/376] Compiling SwiftIndexStore OptionSetDisplayable.swift
[128/376] Compiling SwiftIndexStore SwiftIndexStore.swift
[129/376] Compiling SwiftIndexStore Process+Extension.swift
[130/377] Wrapping AST for Yams for debugging
[131/377] Wrapping AST for SwiftSyntax601 for debugging
[133/377] Compiling SwiftIndexStore UnfairLock.swift
[134/377] Emitting module SourceReporter
[135/377] Compiling SourceReporter CallbackReporter.swift
[136/377] Compiling ArgumentParser Option.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.
[137/377] Compiling ArgumentParser OptionGroup.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.
[138/377] Compiling ArgumentParser AsyncParsableCommand.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.
[139/377] Compiling ArgumentParser CommandConfiguration.swift
[140/377] Compiling ArgumentParser CommandGroup.swift
[141/377] Compiling SourceReporter ReporterProtocol.swift
[142/377] Compiling SourceReporter XcodeReporter.swift
[143/377] Compiling SourceReporter CompositeReporter.swift
[144/377] Compiling SourceReporter ReportType.swift
[145/377] Compiling SourceReporter Report.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[146/378] 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(
[148/378] Wrapping AST for SwiftSyntax600 for debugging
[150/378] 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"]
[151/378] Compiling SwiftIndexStore OptionSetDisplayable.swift
[152/378] Compiling SwiftIndexStore SwiftIndexStore.swift
[153/378] 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 |         )
[154/378] Compiling ArgumentParser ParsableArguments.swift
[155/378] Compiling ArgumentParser ParsableCommand.swift
[155/378] Wrapping AST for SwiftSyntax510 for debugging
[156/378] Emitting module ArgumentParserToolInfo
[157/378] Compiling ArgumentParser ArgumentHelp.swift
[158/378] Compiling ArgumentParser ArgumentVisibility.swift
[159/378] Compiling ArgumentParser CompletionKind.swift
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images: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/73] Compiling SwiftSyntax600 Empty.swift
[7/73] Emitting module SwiftSyntax600
[8/75] Emitting module SwiftSyntax510
[9/75] Compiling SwiftSyntax510 Empty.swift
[10/77] Compiling SwiftSyntax600 Empty.swift
[11/97] Emitting module SwiftSyntax600
[12/98] Compiling SwiftSyntax601 Empty.swift
[13/98] Emitting module SwiftSyntax601
[14/99] Compiling SwiftSyntax601 Empty.swift
[15/99] Emitting module SwiftSyntax601
[19/99] Emitting module SwiftSyntax510
[20/99] Compiling SwiftSyntax510 Empty.swift
[24/103] Emitting module SwiftSyntax509
[25/103] Compiling SwiftSyntax509 Empty.swift
[26/103] Emitting module SwiftSyntax509
[27/114] Compiling SwiftSyntax509 Empty.swift
[28/115] Compiling Yams Resolver.swift
[29/115] Compiling Yams String+Yams.swift
[30/115] Compiling Yams Tag.swift
[31/115] Compiling Yams YamlAnchorProviding.swift
[36/143] Compiling SourceReporter CallbackReporter.swift
[37/143] Compiling SwiftIndexStore OptionSetDisplayable.swift
[38/144] 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"]
[39/144] Compiling SwiftIndexStore OptionSetDisplayable.swift
[42/145] Compiling SourceReporter ReportType.swift
[43/147] Compiling SourceReporter ReporterProtocol.swift
[44/147] Compiling SourceReporter XcodeReporter.swift
[45/147] Emitting module SourceReporter
[46/147] Compiling Yams Parser.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.
[47/147] Compiling Yams RedundancyAliasingStrategy.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.
[48/147] Compiling Yams Representer.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.
[49/147] Emitting module SourceReporter
[50/147] Compiling SwiftIndexStore LibIndexStore.swift
[51/147] Compiling SwiftIndexStore IndexStoreUnit.swift
[52/147] Compiling SwiftIndexStore IndexStoreRelation.swift
[53/147] Compiling SwiftIndexStore IndexStoreSymbol.swift
[54/147] Compiling SwiftIndexStore IndexStoreError.swift
[55/147] Compiling SwiftIndexStore IndexStoreOccurrence.swift
[56/147] Compiling SwiftIndexStore IndexStoreUnit.swift
[57/147] Compiling SourceReporter ReporterProtocol.swift
[58/147] Compiling SourceReporter ReportType.swift
[59/147] Compiling SourceReporter XcodeReporter.swift
[60/147] Compiling SourceReporter CompositeReporter.swift
[61/147] Compiling SourceReporter Report.swift
[62/212] Compiling SwiftIndexStore UnfairLock.swift
[65/212] Emitting module Yams
[66/212] Compiling SourceReporter Report.swift
[67/212] Compiling SourceReporter CompositeReporter.swift
[68/212] Compiling SourceReporter CallbackReporter.swift
[69/213] Compiling SwiftSyntax AbsoluteSyntaxInfo.swift
[70/213] Compiling SwiftSyntax Assert.swift
[71/213] Compiling SwiftSyntax MemoryLayout.swift
[72/213] Compiling SwiftSyntax MissingNodeInitializers.swift
[73/213] Emitting module Yams
[74/213] Compiling SwiftSyntax SourceLocation.swift
[75/213] Compiling SwiftSyntax SourcePresence.swift
[76/213] Compiling SwiftSyntax SwiftSyntaxCompatibility.swift
[77/213] Compiling SwiftSyntax Convenience.swift
[78/213] Compiling SwiftSyntax CustomTraits.swift
[79/213] Compiling SwiftSyntax EditorPlaceholder.swift
[80/213] Compiling SwiftIndexStore Process+Extension.swift
[81/213] Compiling SwiftIndexStore SwiftIndexStore.swift
[82/213] Emitting module SwiftIndexStore
error: emit-module command failed with exit code 1 (use -v to see invocation)
/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(
[85/214] Compiling SwiftSyntax AbsolutePosition.swift
[86/214] Compiling SwiftSyntax AbsoluteRawSyntax.swift
[87/280] Wrapping AST for SwiftSyntax510 for debugging
[89/280] Compiling ArgumentParserToolInfo ToolInfo.swift
[90/280] Emitting module ArgumentParserToolInfo
[91/281] Compiling SwiftSyntax MemoryLayout.swift
[92/281] Compiling SwiftSyntax MissingNodeInitializers.swift
[93/281] Wrapping AST for SwiftSyntax509 for debugging
[95/281] Compiling SwiftIndexStore SwiftIndexStore.swift
[96/281] 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 |         )
[96/281] Wrapping AST for SwiftIndexStore for debugging
[97/281] Compiling SwiftSyntax Syntax.swift
[98/281] Compiling SwiftSyntax SyntaxArena.swift
[99/281] Compiling SwiftSyntax SyntaxArenaAllocatedBuffer.swift
[100/281] Compiling SwiftSyntax SourceLocation.swift
[101/281] Compiling SwiftSyntax SourcePresence.swift
[102/281] Compiling SwiftSyntax SwiftSyntaxCompatibility.swift
BUILD FAILURE 6.1 wasm