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 FileSystem, reference main (7aed62), with Swift 6.1 for Wasm on 17 Jun 2025 01:45:23 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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/tuist/FileSystem.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/tuist/FileSystem
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 7aed628 [Release] FileSystem 0.10.8
Cloned https://github.com/tuist/FileSystem.git
Revision (git rev-parse @):
7aed628044e2e0595aec876cadb694aacab13a16
SUCCESS checkout https://github.com/tuist/FileSystem.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/tuist/FileSystem.git
https://github.com/tuist/FileSystem.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "path",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.3.8",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/tuist/Path"
    },
    {
      "identity" : "swift-nio",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.83.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-nio"
    },
    {
      "identity" : "swift-log",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.6.3",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-log"
    },
    {
      "identity" : "zipfoundation",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.9.20",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/tuist/ZIPFoundation"
    }
  ],
  "manifest_display_name" : "FileSystem",
  "name" : "FileSystem",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "13.0"
    },
    {
      "name" : "ios",
      "version" : "16.0"
    }
  ],
  "products" : [
    {
      "name" : "FileSystem",
      "targets" : [
        "FileSystem"
      ],
      "type" : {
        "library" : [
          "static"
        ]
      }
    },
    {
      "name" : "FileSystemTesting",
      "targets" : [
        "FileSystemTesting"
      ],
      "type" : {
        "library" : [
          "static"
        ]
      }
    },
    {
      "name" : "Glob",
      "targets" : [
        "Glob"
      ],
      "type" : {
        "library" : [
          "static"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "GlobTests",
      "module_type" : "SwiftTarget",
      "name" : "GlobTests",
      "path" : "Tests/GlobTests",
      "sources" : [
        "PatternTests.swift",
        "TestHelpers/XCTAssertMatches.swift",
        "TestHelpers/XCTExpectFailure.swift"
      ],
      "target_dependencies" : [
        "Glob"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Glob",
      "module_type" : "SwiftTarget",
      "name" : "Glob",
      "path" : "Sources/Glob",
      "product_memberships" : [
        "FileSystem",
        "FileSystemTesting",
        "Glob"
      ],
      "sources" : [
        "GlobSearch.swift",
        "InvalidPattern.swift",
        "Pattern+Match.swift",
        "Pattern+Options.swift",
        "Pattern+Parser.swift",
        "Pattern.swift",
        "Unicode.GeneralCategory+Helpers.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "FileSystemTests",
      "module_type" : "SwiftTarget",
      "name" : "FileSystemTests",
      "path" : "Tests/FileSystemTests",
      "sources" : [
        "FileSystemTests.swift"
      ],
      "target_dependencies" : [
        "FileSystem"
      ],
      "type" : "test"
    },
    {
      "c99name" : "FileSystemTestingTests",
      "module_type" : "SwiftTarget",
      "name" : "FileSystemTestingTests",
      "path" : "Tests/FileSystemTestingTests",
      "sources" : [
        "FileSystemTestingTraitTests.swift"
      ],
      "target_dependencies" : [
        "FileSystem",
        "FileSystemTesting"
      ],
      "type" : "test"
    },
    {
      "c99name" : "FileSystemTesting",
      "module_type" : "SwiftTarget",
      "name" : "FileSystemTesting",
      "path" : "Sources/FileSystemTesting",
      "product_memberships" : [
        "FileSystemTesting"
      ],
      "sources" : [
        "FileSystemTestingTrait.swift"
      ],
      "target_dependencies" : [
        "FileSystem"
      ],
      "type" : "library"
    },
    {
      "c99name" : "FileSystem",
      "module_type" : "SwiftTarget",
      "name" : "FileSystem",
      "path" : "Sources/FileSystem",
      "product_dependencies" : [
        "_NIOFileSystem",
        "Path",
        "Logging",
        "ZIPFoundation"
      ],
      "product_memberships" : [
        "FileSystem",
        "FileSystemTesting"
      ],
      "sources" : [
        "AsyncSequence+Extras.swift",
        "FileSystem.swift"
      ],
      "target_dependencies" : [
        "Glob"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.8.1"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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:8f9255989265d824b88e7d572b1a334a0dc9b701075ede1970390db95d315c35
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/apple/swift-log
Fetching https://github.com/tuist/Path
Fetching https://github.com/tuist/ZIPFoundation
Fetching https://github.com/apple/swift-nio
[1/354] Fetching path
[355/4190] Fetching path, swift-log
[1161/9065] Fetching path, swift-log, zipfoundation
Fetched https://github.com/tuist/Path from cache (0.32s)
[4568/8711] Fetching swift-log, zipfoundation
[8712/85034] Fetching swift-log, zipfoundation, swift-nio
Fetched https://github.com/apple/swift-log from cache (4.51s)
Fetched https://github.com/tuist/ZIPFoundation from cache (4.51s)
Fetched https://github.com/apple/swift-nio from cache (4.59s)
Computing version for https://github.com/tuist/ZIPFoundation
Computed https://github.com/tuist/ZIPFoundation at 0.9.20 (5.03s)
Computing version for https://github.com/apple/swift-log
Computed https://github.com/apple/swift-log at 1.6.3 (0.42s)
Computing version for https://github.com/apple/swift-nio
Computed https://github.com/apple/swift-nio at 2.83.0 (2.06s)
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-collections.git
[1/1797] Fetching swift-atomics
[1798/18403] Fetching swift-atomics, swift-collections
[2463/22831] Fetching swift-atomics, swift-collections, swift-system
Fetched https://github.com/apple/swift-system.git from cache (1.07s)
Fetched https://github.com/apple/swift-atomics.git from cache (1.07s)
Fetched https://github.com/apple/swift-collections.git from cache (1.09s)
Computing version for https://github.com/tuist/Path
Computed https://github.com/tuist/Path at 0.3.8 (1.64s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (0.46s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.5.0 (0.45s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (0.57s)
Creating working copy for https://github.com/tuist/Path
Working copy of https://github.com/tuist/Path resolved at 0.3.8
Creating working copy for https://github.com/apple/swift-log
Working copy of https://github.com/apple/swift-log resolved at 1.6.3
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/tuist/ZIPFoundation
Working copy of https://github.com/tuist/ZIPFoundation resolved at 0.9.20
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.2.0
Creating working copy for https://github.com/apple/swift-nio
Working copy of https://github.com/apple/swift-nio resolved at 2.83.0
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.3.0
warning: 'zipfoundation': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Resources/PrivacyInfo.xcprivacy
Building for debugging...
[0/51] Write sources
[16/51] Compiling CSystem shims.c
[16/51] Compiling CNIOWindows shim.c
[16/51] Compiling CNIOWASI CNIOWASI.c
[19/51] Compiling CNIOLinux shim.c
[19/51] Write sources
[21/51] Compiling _AtomicsShims.c
[22/51] Compiling CNIOLinux liburing_shims.c
[23/51] Compiling CNIODarwin shim.c
[24/51] Compiling CNIOWindows WSAStartup.c
[25/51] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[27/112] 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)
[27/115] Compiling c-nioatomics.c
[28/129] Compiling c-atomics.c
[30/129] Compiling _NIODataStructures _TinyArray.swift
[31/129] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[32/129] Compiling InternalCollectionsUtilities Integer rank.swift
[33/130] Emitting module Logging
[34/130] Compiling Logging Locks.swift
[35/130] Compiling Path Path.swift
[36/130] Emitting module Path
[37/131] Compiling _NIODataStructures PriorityQueue.swift
[38/131] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[39/131] Compiling InternalCollectionsUtilities Debugging.swift
[40/131] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[41/131] Compiling InternalCollectionsUtilities _SortedCollection.swift
[42/131] Compiling InternalCollectionsUtilities Descriptions.swift
[43/131] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[44/131] Compiling SystemPackage MachPort.swift
[47/131] Compiling SystemPackage PlatformString.swift
[48/131] Compiling SystemPackage SystemString.swift
[49/131] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[50/131] Emitting module _NIOBase64
[51/131] Compiling SystemPackage Util+StringArray.swift
[52/131] Compiling SystemPackage Util.swift
[53/131] Compiling SystemPackage UtilConsumers.swift
[54/131] Compiling _NIOBase64 Base64.swift
[55/132] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[56/132] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[61/132] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[62/132] Compiling InternalCollectionsUtilities UInt+reversed.swift
[63/132] Emitting module InternalCollectionsUtilities
[66/140] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[74/165] Compiling Logging MetadataProvider.swift
[75/165] Compiling Atomics AtomicReference.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)
[76/165] Compiling Atomics ManagedAtomic.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)
[77/165] Compiling Atomics ManagedAtomicLazyReference.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)
[78/165] Compiling Atomics UnsafeAtomic.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)
[79/165] Compiling Atomics UnsafeAtomicLazyReference.swift
/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:252:10: error: cannot find 'umask' in scope
250 |   _ mode: CInterop.Mode
251 | ) -> CInterop.Mode {
252 |   return umask(mode)
    |          `- error: cannot find 'umask' in scope
253 | }
254 |
[80/165] Compiling ZIPFoundation Entry.swift
/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:252:10: error: cannot find 'umask' in scope
250 |   _ mode: CInterop.Mode
251 | ) -> CInterop.Mode {
252 |   return umask(mode)
    |          `- error: cannot find 'umask' in scope
253 | }
254 |
[81/165] Compiling ZIPFoundation FileManager+ZIP.swift
/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:252:10: error: cannot find 'umask' in scope
250 |   _ mode: CInterop.Mode
251 | ) -> CInterop.Mode {
252 |   return umask(mode)
    |          `- error: cannot find 'umask' in scope
253 | }
254 |
[82/165] Compiling SystemPackage WindowsSyscallAdapters.swift
/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:252:10: error: cannot find 'umask' in scope
250 |   _ mode: CInterop.Mode
251 | ) -> CInterop.Mode {
252 |   return umask(mode)
    |          `- error: cannot find 'umask' in scope
253 | }
254 |
[83/165] Compiling SystemPackage Backcompat.swift
[84/165] Compiling SystemPackage CInterop.swift
[85/165] Compiling SystemPackage Constants.swift
[86/165] Compiling SystemPackage Exports.swift
[86/165] Wrapping AST for _NIOBase64 for debugging
[88/165] Compiling _NIODataStructures Heap.swift
[89/165] Emitting module _NIODataStructures
[90/166] Compiling Logging LogHandler.swift
[91/166] Compiling Logging Logging.swift
[92/167] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[93/167] Emitting module ZIPFoundation
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/CZLib/shim.h:15:9: error: 'zlib.h' file not found
13 |
14 | #import <stdio.h>
15 | #import <zlib.h>
   |         `- error: 'zlib.h' file not found
16 |
17 | // [zlib] provide 64-bit offset functions if _LARGEFILE64_SOURCE defined
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Data+Compression.swift:166:8: error: could not build C module 'CZlib'
164 |
165 | #else
166 | import CZlib
    |        `- error: could not build C module 'CZlib'
167 |
168 | extension Data {
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/CZLib/shim.h:15:9: error: 'zlib.h' file not found
13 |
14 | #import <stdio.h>
15 | #import <zlib.h>
   |         `- error: 'zlib.h' file not found
16 |
17 | // [zlib] provide 64-bit offset functions if _LARGEFILE64_SOURCE defined
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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:8f9255989265d824b88e7d572b1a334a0dc9b701075ede1970390db95d315c35
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
warning: 'zipfoundation': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Resources/PrivacyInfo.xcprivacy
[0/1] Planning build
Building for debugging...
[0/24] Write swift-version-24593BA9C3E375BF.txt
[2/105] Compiling Logging MetadataProvider.swift
[3/105] Compiling NIOConcurrencyHelpers lock.swift
[4/105] Compiling Logging LogHandler.swift
[5/105] Compiling _NIODataStructures PriorityQueue.swift
[6/105] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[7/106] Compiling SystemPackage FilePathSyntax.swift
[8/106] Compiling SystemPackage FilePathTemp.swift
[9/106] Compiling SystemPackage FilePathWindows.swift
[10/106] Compiling SystemPackage FilePermissions.swift
[11/106] Emitting module Logging
[12/106] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[13/106] Emitting module NIOConcurrencyHelpers
error: emit-module command failed with exit code 1 (use -v to see invocation)
[14/106] 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)
[15/109] Compiling _NIODataStructures _TinyArray.swift
[16/109] Compiling _NIODataStructures Heap.swift
[17/109] Emitting module _NIODataStructures
[18/110] Emitting module Path
[19/110] Compiling Path Path.swift
[20/111] Emitting module _NIOBase64
[21/111] Compiling _NIOBase64 Base64.swift
[22/112] Compiling NIOConcurrencyHelpers atomics.swift
[23/112] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[24/112] Compiling NIOConcurrencyHelpers NIOLock.swift
[25/112] Compiling SystemPackage FilePathTempPosix.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)
[26/112] Compiling SystemPackage FilePathTempWindows.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)
[30/112] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[36/112] Compiling SystemPackage FileOperations.swift
[37/112] Compiling SystemPackage FilePath.swift
[38/112] Compiling SystemPackage FilePathParsing.swift
[39/112] Compiling SystemPackage FilePathString.swift
[40/112] Compiling SystemPackage FilePathComponentView.swift
[41/112] Compiling SystemPackage FilePathComponents.swift
[42/112] Emitting module InternalCollectionsUtilities
[42/113] Wrapping AST for _NIODataStructures for debugging
[44/113] Compiling SystemPackage Errno.swift
[45/113] Compiling SystemPackage ErrnoWindows.swift
[46/113] Compiling SystemPackage FileDescriptor.swift
[47/113] Compiling SystemPackage FileHelpers.swift
[48/113] Compiling SystemPackage MachPort.swift
[49/113] Compiling SystemPackage PlatformString.swift
[50/113] Compiling SystemPackage SystemString.swift
[51/113] Compiling SystemPackage Mocking.swift
/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:252:10: error: cannot find 'umask' in scope
250 |   _ mode: CInterop.Mode
251 | ) -> CInterop.Mode {
252 |   return umask(mode)
    |          `- error: cannot find 'umask' in scope
253 | }
254 |
[52/113] Compiling SystemPackage RawBuffer.swift
/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:252:10: error: cannot find 'umask' in scope
250 |   _ mode: CInterop.Mode
251 | ) -> CInterop.Mode {
252 |   return umask(mode)
    |          `- error: cannot find 'umask' in scope
253 | }
254 |
[53/113] Compiling SystemPackage Syscalls.swift
/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:252:10: error: cannot find 'umask' in scope
250 |   _ mode: CInterop.Mode
251 | ) -> CInterop.Mode {
252 |   return umask(mode)
    |          `- error: cannot find 'umask' in scope
253 | }
254 |
[54/113] Compiling SystemPackage WindowsSyscallAdapters.swift
/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:252:10: error: cannot find 'umask' in scope
250 |   _ mode: CInterop.Mode
251 | ) -> CInterop.Mode {
252 |   return umask(mode)
    |          `- error: cannot find 'umask' in scope
253 | }
254 |
[55/113] Compiling SystemPackage Backcompat.swift
[56/113] Compiling SystemPackage CInterop.swift
[57/113] Compiling SystemPackage Constants.swift
[58/113] Compiling SystemPackage Exports.swift
[59/119] Wrapping AST for Path for debugging
[60/121] Wrapping AST for NIOConcurrencyHelpers for debugging
[61/139] Wrapping AST for InternalCollectionsUtilities for debugging
[63/154] Compiling SystemPackage Util+StringArray.swift
[64/154] Compiling SystemPackage Util.swift
[65/154] Compiling SystemPackage UtilConsumers.swift
[66/154] Compiling DequeModule Deque+Equatable.swift
[67/154] Compiling DequeModule Deque+ExpressibleByArrayLiteral.swift
[68/154] Compiling DequeModule Deque+Extras.swift
[69/154] Compiling DequeModule Deque+Hashable.swift
[70/154] Compiling Atomics UnsafeAtomic.swift
[71/154] Compiling Atomics UnsafeAtomicLazyReference.swift
[72/154] Compiling DequeModule _DequeBufferHeader.swift
[73/154] Compiling Atomics ManagedAtomicLazyReference.swift
[74/156] Compiling Logging Logging.swift
[75/156] Compiling Logging Locks.swift
[76/156] Compiling DequeModule Deque+CustomReflectable.swift
[77/156] Compiling DequeModule Deque+Descriptions.swift
[78/159] Compiling DequeModule Deque.swift
[79/159] Compiling DequeModule Deque+Testing.swift
[80/159] Compiling DequeModule Deque._Storage.swift
[81/159] Compiling DequeModule _DequeBuffer.swift
[82/159] Compiling DequeModule Deque+Codable.swift
[83/159] Compiling DequeModule Deque+Collection.swift
[90/159] Compiling DequeModule Deque._UnsafeHandle.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[94/159] Emitting module ZIPFoundation
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/CZLib/shim.h:15:9: error: 'zlib.h' file not found
13 |
14 | #import <stdio.h>
15 | #import <zlib.h>
   |         `- error: 'zlib.h' file not found
16 |
17 | // [zlib] provide 64-bit offset functions if _LARGEFILE64_SOURCE defined
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/ZIPFoundation/Data+Compression.swift:166:8: error: could not build C module 'CZlib'
164 |
165 | #else
166 | import CZlib
    |        `- error: could not build C module 'CZlib'
167 |
168 | extension Data {
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
  |          `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/.build/checkouts/ZIPFoundation/Sources/CZLib/shim.h:15:9: error: 'zlib.h' file not found
13 |
14 | #import <stdio.h>
15 | #import <zlib.h>
   |         `- error: 'zlib.h' file not found
16 |
17 | // [zlib] provide 64-bit offset functions if _LARGEFILE64_SOURCE defined
BUILD FAILURE 6.1 wasm