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-package-collection-generator, reference main (ad1b72), with Swift 6.1 for Wasm on 30 May 2025 15:03:03 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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/swiftlang/swift-package-collection-generator.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/swiftlang/swift-package-collection-generator
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at ad1b727 Merge pull request #69 from tuist/fix/build-issues
Cloned https://github.com/swiftlang/swift-package-collection-generator.git
Revision (git rev-parse @):
ad1b7278a6c53c899fed7628623569ce2c41663b
SUCCESS checkout https://github.com/swiftlang/swift-package-collection-generator.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/swiftlang/swift-package-collection-generator.git
https://github.com/swiftlang/swift-package-collection-generator.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-argument-parser",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.2.2",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-argument-parser.git"
    },
    {
      "identity" : "swift-package-manager",
      "requirement" : {
        "branch" : [
          "main"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-package-manager.git"
    },
    {
      "identity" : "swift-backtrace",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.1.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/swift-server/swift-backtrace.git"
    }
  ],
  "manifest_display_name" : "swift-package-collection-generator",
  "name" : "swift-package-collection-generator",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "package-collection-generate",
      "targets" : [
        "PackageCollectionGenerator"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "package-collection-sign",
      "targets" : [
        "PackageCollectionSigner"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "package-collection-validate",
      "targets" : [
        "PackageCollectionValidator"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "package-collection-diff",
      "targets" : [
        "PackageCollectionDiff"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "UtilitiesTests",
      "module_type" : "SwiftTarget",
      "name" : "UtilitiesTests",
      "path" : "Tests/UtilitiesTests",
      "sources" : [
        "GitUtilitiesTests.swift"
      ],
      "target_dependencies" : [
        "Utilities"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Utilities",
      "module_type" : "SwiftTarget",
      "name" : "Utilities",
      "path" : "Sources/Utilities",
      "product_dependencies" : [
        "SwiftPMPackageCollections"
      ],
      "product_memberships" : [
        "package-collection-generate",
        "package-collection-sign",
        "package-collection-validate",
        "package-collection-diff"
      ],
      "sources" : [
        "Git.swift",
        "Logging.swift",
        "Path.swift",
        "Shell.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "TestUtilities",
      "module_type" : "SwiftTarget",
      "name" : "TestUtilities",
      "path" : "Sources/TestUtilities",
      "product_dependencies" : [
        "ArgumentParser",
        "SwiftPMPackageCollections"
      ],
      "sources" : [
        "TestUtilities.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "PackageCollectionValidatorTests",
      "module_type" : "SwiftTarget",
      "name" : "PackageCollectionValidatorTests",
      "path" : "Tests/PackageCollectionValidatorTests",
      "sources" : [
        "PackageCollectionValidateTests.swift"
      ],
      "target_dependencies" : [
        "PackageCollectionValidator",
        "TestUtilities"
      ],
      "type" : "test"
    },
    {
      "c99name" : "PackageCollectionValidator",
      "module_type" : "SwiftTarget",
      "name" : "PackageCollectionValidator",
      "path" : "Sources/PackageCollectionValidator",
      "product_dependencies" : [
        "SwiftPMPackageCollections",
        "ArgumentParser",
        "Backtrace"
      ],
      "product_memberships" : [
        "package-collection-validate"
      ],
      "sources" : [
        "PackageCollectionValidate.swift"
      ],
      "target_dependencies" : [
        "Utilities"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "PackageCollectionSignerTests",
      "module_type" : "SwiftTarget",
      "name" : "PackageCollectionSignerTests",
      "path" : "Tests/PackageCollectionSignerTests",
      "sources" : [
        "PackageCollectionSignTests.swift"
      ],
      "target_dependencies" : [
        "PackageCollectionSigner",
        "TestUtilities"
      ],
      "type" : "test"
    },
    {
      "c99name" : "PackageCollectionSigner",
      "module_type" : "SwiftTarget",
      "name" : "PackageCollectionSigner",
      "path" : "Sources/PackageCollectionSigner",
      "product_dependencies" : [
        "SwiftPMPackageCollections",
        "ArgumentParser",
        "Backtrace"
      ],
      "product_memberships" : [
        "package-collection-sign"
      ],
      "sources" : [
        "PackageCollectionSign.swift"
      ],
      "target_dependencies" : [
        "Utilities"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "PackageCollectionGeneratorTests",
      "module_type" : "SwiftTarget",
      "name" : "PackageCollectionGeneratorTests",
      "path" : "Tests/PackageCollectionGeneratorTests",
      "sources" : [
        "GitHubPackageMetadataProviderTests.swift",
        "PackageCollectionGenerateTests.swift",
        "PackageCollectionGeneratorInputTests.swift"
      ],
      "target_dependencies" : [
        "PackageCollectionGenerator"
      ],
      "type" : "test"
    },
    {
      "c99name" : "PackageCollectionGenerator",
      "module_type" : "SwiftTarget",
      "name" : "PackageCollectionGenerator",
      "path" : "Sources/PackageCollectionGenerator",
      "product_dependencies" : [
        "SwiftPMPackageCollections",
        "ArgumentParser",
        "Backtrace"
      ],
      "product_memberships" : [
        "package-collection-generate"
      ],
      "sources" : [
        "Models/PackageCollectionExtensions.swift",
        "Models/PackageCollectionGeneratorInput.swift",
        "Models/PackageDescription.swift",
        "Models/PackageManifest.swift",
        "PackageCollectionGenerate.swift",
        "PackageMetadataProviders/GitHubPackageMetadataProvider.swift",
        "PackageMetadataProviders/PackageMetadataProvider.swift"
      ],
      "target_dependencies" : [
        "Utilities"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "PackageCollectionDiffTests",
      "module_type" : "SwiftTarget",
      "name" : "PackageCollectionDiffTests",
      "path" : "Tests/PackageCollectionDiffTests",
      "sources" : [
        "PackageCollectionDiffTests.swift"
      ],
      "target_dependencies" : [
        "PackageCollectionDiff",
        "TestUtilities"
      ],
      "type" : "test"
    },
    {
      "c99name" : "PackageCollectionDiff",
      "module_type" : "SwiftTarget",
      "name" : "PackageCollectionDiff",
      "path" : "Sources/PackageCollectionDiff",
      "product_dependencies" : [
        "SwiftPMPackageCollections",
        "ArgumentParser",
        "Backtrace"
      ],
      "product_memberships" : [
        "package-collection-diff"
      ],
      "sources" : [
        "PackageCollectionDiff.swift"
      ],
      "target_dependencies" : [
        "Utilities"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "5.7"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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/apple/swift-package-manager.git
[1/154704] Fetching swift-package-manager
Fetched https://github.com/apple/swift-package-manager.git from cache (19.04s)
Fetching https://github.com/swiftlang/swift-llbuild.git
[1/28992] Fetching swift-llbuild
Fetched https://github.com/swiftlang/swift-llbuild.git from cache (3.86s)
Fetching https://github.com/swiftlang/swift-tools-support-core.git
[1/6765] Fetching swift-tools-support-core
Fetched https://github.com/swiftlang/swift-tools-support-core.git from cache (0.82s)
Fetching https://github.com/swiftlang/swift-driver.git
[1/34584] Fetching swift-driver
Fetched https://github.com/swiftlang/swift-driver.git from cache (3.30s)
Fetching https://github.com/swiftlang/swift-syntax.git
[1/70522] Fetching swift-syntax
Fetched https://github.com/swiftlang/swift-syntax.git from cache (8.31s)
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-certificates.git
Fetching https://github.com/apple/swift-crypto.git
Fetching https://github.com/apple/swift-argument-parser.git
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/swiftlang/swift-toolchain-sqlite
[1/110] Fetching swift-toolchain-sqlite
[20/4501] Fetching swift-toolchain-sqlite, swift-system
[1645/10656] Fetching swift-toolchain-sqlite, swift-system, swift-certificates
[1646/24592] Fetching swift-toolchain-sqlite, swift-system, swift-certificates, swift-crypto
[3568/41183] Fetching swift-toolchain-sqlite, swift-system, swift-certificates, swift-crypto, swift-collections
[15760/56569] Fetching swift-toolchain-sqlite, swift-system, swift-certificates, swift-crypto, swift-collections, swift-argument-parser
Fetched https://github.com/apple/swift-system.git from cache (0.71s)
[15802/52178] Fetching swift-toolchain-sqlite, swift-certificates, swift-crypto, swift-collections, swift-argument-parser
Fetching https://github.com/swift-server/swift-backtrace.git
Fetched https://github.com/swiftlang/swift-toolchain-sqlite from cache (0.98s)
[29944/52068] Fetching swift-certificates, swift-crypto, swift-collections, swift-argument-parser
[32882/52699] Fetching swift-certificates, swift-crypto, swift-collections, swift-argument-parser, swift-backtrace
Fetched https://github.com/swift-server/swift-backtrace.git from cache (0.44s)
[33912/52068] Fetching swift-certificates, swift-crypto, swift-collections, swift-argument-parser
Fetched https://github.com/apple/swift-certificates.git from cache (2.11s)
Fetched https://github.com/apple/swift-argument-parser.git from cache (2.12s)
Fetched https://github.com/apple/swift-crypto.git from cache (2.14s)
Fetched https://github.com/apple/swift-collections.git from cache (2.14s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 3.0.0 (2.81s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.5.1 (0.95s)
Computing version for https://github.com/swiftlang/swift-toolchain-sqlite
Computed https://github.com/swiftlang/swift-toolchain-sqlite at 1.0.3 (0.90s)
Computing version for https://github.com/apple/swift-certificates.git
Computed https://github.com/apple/swift-certificates.git at 1.5.0 (1.04s)
Fetching https://github.com/apple/swift-asn1.git
[1/1590] Fetching swift-asn1
Fetched https://github.com/apple/swift-asn1.git from cache (0.32s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.3.2 (1.06s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.5.0 (0.77s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.1.4 (1.01s)
Computing version for https://github.com/swift-server/swift-backtrace.git
Computed https://github.com/swift-server/swift-backtrace.git at 1.3.5 (0.77s)
Creating working copy for https://github.com/swiftlang/swift-driver.git
Working copy of https://github.com/swiftlang/swift-driver.git resolved at main (cc4bda0)
Creating working copy for https://github.com/apple/swift-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.3.2
Creating working copy for https://github.com/swiftlang/swift-llbuild.git
Working copy of https://github.com/swiftlang/swift-llbuild.git resolved at main (0b0d140)
Creating working copy for https://github.com/swiftlang/swift-syntax.git
Working copy of https://github.com/swiftlang/swift-syntax.git resolved at main (5546cfd)
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.5.0
Creating working copy for https://github.com/swiftlang/swift-tools-support-core.git
Working copy of https://github.com/swiftlang/swift-tools-support-core.git resolved at main (7436264)
Creating working copy for https://github.com/apple/swift-certificates.git
Working copy of https://github.com/apple/swift-certificates.git resolved at 1.5.0
Creating working copy for https://github.com/swift-server/swift-backtrace.git
Working copy of https://github.com/swift-server/swift-backtrace.git resolved at 1.3.5
Creating working copy for https://github.com/swiftlang/swift-toolchain-sqlite
Working copy of https://github.com/swiftlang/swift-toolchain-sqlite resolved at 1.0.3
Creating working copy for https://github.com/apple/swift-package-manager.git
Working copy of https://github.com/apple/swift-package-manager.git resolved at main (598a053)
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.1.4
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.5.1
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 3.0.0
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/497] Write sources
[14/497] Compiling CBacktrace simple.c
[15/497] Write sources
[19/497] Compiling CBacktrace fileline.c
[19/497] Compiling CBacktrace print.c
[21/497] Compiling TSCclibc strerror.c
[21/497] Write sources
[33/497] Compiling aes128gcmsiv-x86_64-mac.mac.x86_64.S
[34/497] Compiling TSCclibc libc.c
[35/497] Compiling TSCclibc process.c
[35/497] Compiling chacha-armv8-ios.ios.aarch64.S
[36/497] Compiling chacha-armv8-linux.linux.aarch64.S
[38/497] Compiling aes128gcmsiv-x86_64-linux.linux.x86_64.S
[38/497] Compiling CSystem shims.c
[40/497] Compiling fiat_curve25519_adx_square.S
[41/497] Compiling fiat_curve25519_adx_mul.S
[42/497] Write swift-version-24593BA9C3E375BF.txt
[43/497] Compiling v3_purp.c
[44/497] Compiling v3_prn.c
[45/497] Compiling v3_skey.c
[46/497] Compiling v3_ocsp.c
[47/497] Compiling v3_pmaps.c
[48/497] Compiling v3_utl.c
[49/497] Compiling v3_pcons.c
[50/501] Compiling CCryptoBoringSSLShims shims.c
[51/568] Compiling v3_ncons.c
[53/568] Emitting module ArgumentParserToolInfo
[54/568] Emitting module InternalCollectionsUtilities
[54/570] Compiling v3_lib.c
error: emit-module command failed with exit code 1 (use -v to see invocation)
[56/570] Emitting module SystemPackage
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
    |                                                         `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
    |                              `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD)
[56/573] Compiling v3_int.c
[57/573] Compiling v3_info.c
[58/573] Compiling v3_ia5.c
[59/573] Compiling v3_genn.c
[60/573] Compiling v3_extku.c
[61/573] Compiling v3_enum.c
[63/573] Compiling SystemPackage Util+StringArray.swift
[64/573] Compiling SystemPackage Util.swift
[65/573] Compiling SystemPackage UtilConsumers.swift
[66/573] Emitting module _CertificateInternals
[67/573] Compiling _CertificateInternals _TinyArray.swift
[68/573] Compiling InternalCollectionsUtilities UInt+reversed.swift
[69/573] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[70/573] Compiling InternalCollectionsUtilities _SortedCollection.swift
[71/573] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[72/574] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[73/574] Compiling InternalCollectionsUtilities Specialize.swift
[74/574] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[75/574] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[76/574] Compiling ArgumentParserToolInfo ToolInfo.swift
[77/574] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[78/574] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[79/574] Compiling SystemPackage MachPort.swift
[80/574] Compiling SystemPackage PlatformString.swift
[81/574] Compiling SystemPackage SystemString.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[82/574] Emitting module TSCLibc
/host/spi-builder-workspace/.build/checkouts/swift-tools-support-core/Sources/TSCLibc/libc.swift:21:19: error: no such module 'Darwin.C'
 19 | @_exported import Android
 20 | #else
 21 | @_exported import Darwin.C
    |                   `- error: no such module 'Darwin.C'
 22 | #endif
 23 |
[83/574] Compiling TSCLibc libc.swift
/host/spi-builder-workspace/.build/checkouts/swift-tools-support-core/Sources/TSCLibc/libc.swift:21:19: error: no such module 'Darwin.C'
 19 | @_exported import Android
 20 | #else
 21 | @_exported import Darwin.C
    |                   `- error: no such module 'Darwin.C'
 22 | #endif
 23 |
[84/575] Compiling InternalCollectionsUtilities Integer rank.swift
[85/575] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[88/575] Compiling v3_crld.c
[90/575] Compiling InternalCollectionsUtilities Debugging.swift
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
    |                                                         `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
    |                              `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD)
[91/575] Compiling InternalCollectionsUtilities Descriptions.swift
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
    |                                                         `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
    |                              `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD)
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
    |                                                         `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
    |                              `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD)
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:197:57: error: cannot find type 'DIR' in scope
195 | internal typealias system_DIRPtr = OpaquePointer
196 | #else
197 | internal typealias system_DIRPtr = UnsafeMutablePointer<DIR>
    |                                                         `- error: cannot find type 'DIR' in scope
198 | #endif
199 |
/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/Internals/Syscalls.swift:192:30: error: cannot find 'DT_DIR' in scope
190 | #if !os(Windows)
191 | internal let SYSTEM_AT_REMOVE_DIR = AT_REMOVEDIR
192 | internal let SYSTEM_DT_DIR = DT_DIR
    |                              `- error: cannot find 'DT_DIR' in scope
193 | internal typealias system_dirent = dirent
194 | #if os(Linux) || os(Android) || os(FreeBSD) || os(OpenBSD)
[96/575] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[99/575] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+SE-0370.swift
[100/575] Compiling InternalCollectionsUtilities UnsafeMutablePointer+SE-0370.swift
[101/575] Compiling InternalCollectionsUtilities UnsafeRawPointer extensions.swift
[102/575] Emitting module PackageCollectionsModel
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/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
[1/1] Compiling plugin GenerateManual
Building for debugging...
[1/439] Write sources
[2/440] Compiling v3_bitst.c
[3/440] Compiling v3_crld.c
[4/440] Compiling v3_cpols.c
[5/440] Compiling v3_bcons.c
[6/440] Compiling v3_akey.c
[7/440] Compiling v3_conf.c
[8/440] Compiling v3_akeya.c
[9/440] Compiling x_spki.c
[10/440] Compiling v3_alt.c
[11/440] Compiling x_x509.c
[12/440] Compiling x_sig.c
[13/440] Compiling x_x509a.c
[14/440] Compiling x_val.c
[15/440] Write swift-version-24593BA9C3E375BF.txt
[16/440] Compiling x_pubkey.c
[17/440] Compiling x_pkey.c
[18/440] Compiling x_req.c
[19/440] Compiling x_info.c
[20/440] Compiling x_crl.c
[21/440] Compiling x_attrib.c
[22/440] Compiling x_exten.c
[23/440] Compiling x_name.c
error: emit-module command failed with exit code 1 (use -v to see invocation)
[25/471] Emitting module TSCLibc
/host/spi-builder-workspace/.build/checkouts/swift-tools-support-core/Sources/TSCLibc/libc.swift:21:19: error: no such module 'Darwin.C'
 19 | @_exported import Android
 20 | #else
 21 | @_exported import Darwin.C
    |                   `- error: no such module 'Darwin.C'
 22 | #endif
 23 |
[26/507] Compiling TSCLibc libc.swift
/host/spi-builder-workspace/.build/checkouts/swift-tools-support-core/Sources/TSCLibc/libc.swift:21:19: error: no such module 'Darwin.C'
 19 | @_exported import Android
 20 | #else
 21 | @_exported import Darwin.C
    |                   `- error: no such module 'Darwin.C'
 22 | #endif
 23 |
[26/511] Compiling x_all.c
BUILD FAILURE 6.1 wasm