The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftImportChecks, reference main (758ea9), with Swift 6.1 for Wasm on 20 Mar 2026 16:27:12 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.69.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/michaelversus/SwiftImportChecks.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/michaelversus/SwiftImportChecks
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 758ea99 bump up version
Cloned https://github.com/michaelversus/SwiftImportChecks.git
Revision (git rev-parse @):
758ea99a5b32379f56b649ff49a4505dfde9a5f0
SUCCESS checkout https://github.com/michaelversus/SwiftImportChecks.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/michaelversus/SwiftImportChecks.git
https://github.com/michaelversus/SwiftImportChecks.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"
    },
    {
      "identity" : "xcodeproj",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "8.8.0",
            "upper_bound" : "9.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/tuist/XcodeProj.git"
    },
    {
      "identity" : "swift-syntax",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "508.0.0",
            "upper_bound" : "509.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-syntax.git"
    },
    {
      "identity" : "yams",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "5.0.0",
            "upper_bound" : "6.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/jpsim/Yams.git"
    }
  ],
  "manifest_display_name" : "SwiftImportChecks",
  "name" : "SwiftImportChecks",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "14.0"
    }
  ],
  "products" : [
    {
      "name" : "SwiftImportChecks",
      "targets" : [
        "SwiftImportChecks"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftImportChecksTests",
      "module_type" : "SwiftTarget",
      "name" : "SwiftImportChecksTests",
      "path" : "Tests/SwiftImportChecksTests",
      "product_dependencies" : [
        "XcodeProj"
      ],
      "resources" : [
        {
          "path" : "/host/spi-builder-workspace/Tests/SwiftImportChecksTests/Example",
          "rule" : {
            "copy" : {
            }
          }
        }
      ],
      "sources" : [
        "CompositionRootTests.swift",
        "Configuration/ConfigErrorTests.swift",
        "Configuration/ConfigFactoryTests.swift",
        "Configuration/ConfigurationTests.swift",
        "DiagramBuilder/DiagramBuilderTests.swift",
        "Errors/ImplicitDependenciesErrorTests.swift",
        "Errors/SwiftImportChecksErrorTests.swift",
        "Extensions/StringExtensionsTests.swift",
        "Extensions/XCodeProjError+Extension.swift",
        "Mocks/ConfigFactoryMock.swift",
        "Mocks/FileManagerMock.swift",
        "Mocks/MockDiagramBuilder.swift",
        "SPMParsing/PackagesParserTests.swift",
        "SwiftImportChecksTests.swift",
        "SwiftSyntaxParsing/SwiftFilesParserTests.swift"
      ],
      "target_dependencies" : [
        "SwiftImportChecks"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftImportChecks",
      "module_type" : "SwiftTarget",
      "name" : "SwiftImportChecks",
      "path" : "Sources",
      "product_dependencies" : [
        "Yams",
        "ArgumentParser",
        "XcodeProj",
        "SwiftSyntax",
        "SwiftSyntaxParser"
      ],
      "product_memberships" : [
        "SwiftImportChecks"
      ],
      "sources" : [
        "CompositionRoot.swift",
        "Configuration/ConfigError.swift",
        "Configuration/ConfigFactory.swift",
        "Configuration/Configuration.swift",
        "Configuration/SystemImports.swift",
        "DiagramBuilder/DiagramBuilder.swift",
        "Errors/ImplicitDependenciesError.swift",
        "Errors/SwiftImportChecksError.swift",
        "Extensions/String+Extensions.swift",
        "Extensions/URL+Extensions.swift",
        "Protocols/FileManagerProtocol.swift",
        "SPMParsing/PackageSwiftFileVisitor.swift",
        "SPMParsing/PackagesParser.swift",
        "SPMParsing/SwiftPackageFile.swift",
        "SPMParsing/SwiftPackageTarget.swift",
        "SwiftImportChecks.swift",
        "SwiftSyntaxParsing/Comment.swift",
        "SwiftSyntaxParsing/Node.swift",
        "SwiftSyntaxParsing/Results.swift",
        "SwiftSyntaxParsing/SwiftFile.swift",
        "SwiftSyntaxParsing/SwiftFileVisitor.swift",
        "SwiftSyntaxParsing/SwiftFilesParser.swift",
        "SwiftSyntaxParsing/SwiftFunction.swift",
        "SwiftSyntaxParsing/SwiftType.swift",
        "XcodeProjectParsing/Target.swift",
        "XcodeProjectParsing/TargetValidator.swift",
        "XcodeProjectParsing/XcodeProjectParser.swift"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "6.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/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 swiftpackageindex/spi-images
Digest: sha256:a7b4552feb759c014e60bb7d16019351f72ce4b9f19dbbaa081e1f5551c90672
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/jpsim/Yams.git
Fetching https://github.com/tuist/XcodeProj.git
[1/24307] Fetching xcodeproj
[2/41598] Fetching xcodeproj, swift-argument-parser
[3886/53107] Fetching xcodeproj, swift-argument-parser, yams
Fetching https://github.com/apple/swift-syntax.git
[53108/127933] Fetching xcodeproj, swift-argument-parser, yams, swift-syntax
Fetched https://github.com/apple/swift-argument-parser from cache (3.53s)
[47040/110642] Fetching xcodeproj, yams, swift-syntax
Fetched https://github.com/jpsim/Yams.git from cache (3.59s)
[36280/99133] Fetching xcodeproj, swift-syntax
Fetched https://github.com/tuist/XcodeProj.git from cache (3.75s)
[14966/74826] Fetching swift-syntax
Fetched https://github.com/apple/swift-syntax.git from cache (9.09s)
Computing version for https://github.com/apple/swift-syntax.git
Computed https://github.com/apple/swift-syntax.git at 508.0.1 (15.00s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.7.0 (1.07s)
Computing version for https://github.com/jpsim/Yams.git
Computed https://github.com/jpsim/Yams.git at 5.4.0 (1.10s)
Computing version for https://github.com/tuist/XcodeProj.git
Computed https://github.com/tuist/XcodeProj.git at 8.27.7 (1.01s)
Fetching https://github.com/tadija/AEXML.git
Fetching https://github.com/kylef/PathKit.git
[1/2155] Fetching aexml
[411/3607] Fetching aexml, pathkit
Fetched https://github.com/kylef/PathKit.git from cache (0.56s)
Fetched https://github.com/tadija/AEXML.git from cache (0.58s)
Computing version for https://github.com/kylef/PathKit.git
Computed https://github.com/kylef/PathKit.git at 1.0.1 (4.61s)
Fetching https://github.com/kylef/Spectre.git
[1/1021] Fetching spectre
Fetched https://github.com/kylef/Spectre.git from cache (0.38s)
Computing version for https://github.com/tadija/AEXML.git
Computed https://github.com/tadija/AEXML.git at 4.7.0 (1.30s)
Computing version for https://github.com/kylef/Spectre.git
Computed https://github.com/kylef/Spectre.git at 0.10.1 (0.96s)
Creating working copy for https://github.com/tuist/XcodeProj.git
Working copy of https://github.com/tuist/XcodeProj.git resolved at 8.27.7
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/kylef/PathKit.git
Working copy of https://github.com/kylef/PathKit.git resolved at 1.0.1
Creating working copy for https://github.com/tadija/AEXML.git
Working copy of https://github.com/tadija/AEXML.git resolved at 4.7.0
Creating working copy for https://github.com/kylef/Spectre.git
Working copy of https://github.com/kylef/Spectre.git resolved at 0.10.1
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.7.0
Creating working copy for https://github.com/apple/swift-syntax.git
Working copy of https://github.com/apple/swift-syntax.git resolved at 508.0.1
[1/1] Compiling plugin GenerateManual
[2/2] Compiling plugin GenerateDoccReference
Building for debugging...
[2/37] Write sources
[13/37] Compiling writer.c
[14/37] Compiling reader.c
[15/37] Compiling parser.c
[16/37] Compiling api.c
[17/37] Compiling emitter.c
[18/37] Compiling scanner.c
[18/37] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[21/106] Emitting module PathKit
/host/spi-builder-workspace/.build/checkouts/PathKit/Sources/PathKit.swift:8:8: error: no such module 'Darwin'
  6 | let system_glob = Glibc.glob
  7 | #else
  8 | import Darwin
    |        `- error: no such module 'Darwin'
  9 |
 10 | let system_glob = Darwin.glob
[22/106] Emitting module Yams
[23/108] Emitting module ArgumentParserToolInfo
[24/108] Compiling ArgumentParserToolInfo ToolInfo.swift
[25/109] Compiling Yams Mark.swift
[26/109] Compiling Yams Node.Alias.swift
[27/109] Compiling Yams Node.Mapping.swift
[28/109] Compiling Yams Tag.swift
[29/109] Compiling Yams YamlAnchorProviding.swift
[30/109] Compiling AEXML Builders.swift
[31/109] Wrapping AST for ArgumentParserToolInfo for debugging
[33/155] Compiling PathKit PathKit.swift
/host/spi-builder-workspace/.build/checkouts/PathKit/Sources/PathKit.swift:8:8: error: no such module 'Darwin'
  6 | let system_glob = Glibc.glob
  7 | #else
  8 | import Darwin
    |        `- error: no such module 'Darwin'
  9 |
 10 | let system_glob = Darwin.glob
[34/155] Compiling ArgumentParser ExpressibleByArgument.swift
[35/155] Compiling ArgumentParser ParsableArguments.swift
[36/155] Compiling ArgumentParser ArgumentVisibility.swift
[37/155] Compiling ArgumentParser CompletionKind.swift
[38/155] Compiling ArgumentParser Errors.swift
[39/160] Compiling ArgumentParser Flag.swift
[40/160] Compiling ArgumentParser NameSpecification.swift
[41/160] Compiling ArgumentParser Option.swift
[42/160] Compiling ArgumentParser OptionGroup.swift
[43/160] Compiling ArgumentParser DumpHelpGenerator.swift
[46/160] Compiling ArgumentParser ArgumentHelp.swift
[47/160] Compiling ArgumentParser ParentCommand.swift
[48/160] Compiling ArgumentParser AsyncParsableCommand.swift
[49/160] Compiling ArgumentParser CommandConfiguration.swift
[50/160] Compiling ArgumentParser CommandGroup.swift
[51/160] Compiling ArgumentParser EnumerableFlag.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.
/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.
/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.
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:a7b4552feb759c014e60bb7d16019351f72ce4b9f19dbbaa081e1f5551c90672
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest
[0/1] Planning build
[1/1] Compiling plugin GenerateManual
[2/2] Compiling plugin GenerateDoccReference
Building for debugging...
[2/20] Write swift-version-24593BA9C3E375BF.txt
[4/89] Compiling AEXML Document.swift
[5/89] Compiling SwiftSyntax SyntaxDeclNodes.swift
[6/89] Compiling SwiftSyntax SourceLocation.swift
[7/91] Compiling AEXML Error.swift
[8/91] Compiling AEXML Options.swift
[9/91] Compiling AEXML Parser.swift
[10/91] Emitting module AEXML
[11/91] Compiling AEXML Builders.swift
[12/91] Compiling Yams YamlError.swift
[13/91] Compiling Yams YamlTagProviding.swift
[14/91] Compiling SwiftSyntax SourcePresence.swift
[15/91] Compiling SwiftSyntax Syntax.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[16/91] Emitting module PathKit
/host/spi-builder-workspace/.build/checkouts/PathKit/Sources/PathKit.swift:8:8: error: no such module 'Darwin'
  6 | let system_glob = Glibc.glob
  7 | #else
  8 | import Darwin
    |        `- error: no such module 'Darwin'
  9 |
 10 | let system_glob = Darwin.glob
[17/91] Compiling PathKit PathKit.swift
/host/spi-builder-workspace/.build/checkouts/PathKit/Sources/PathKit.swift:8:8: error: no such module 'Darwin'
  6 | let system_glob = Glibc.glob
  7 | #else
  8 | import Darwin
    |        `- error: no such module 'Darwin'
  9 |
 10 | let system_glob = Darwin.glob
[18/91] Emitting module ArgumentParserToolInfo
BUILD FAILURE 6.1 wasm