The Swift Package Index logo.Swift Package Index

Build Information

Failed to build AsyncProcess, reference main (3a506b), with Swift 6.1 for Wasm on 30 May 2025 12:18:25 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-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/gregcotten/AsyncProcess.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/gregcotten/AsyncProcess
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 3a506bb don't explicitly unwrap pid for interrupt/terminate
Cloned https://github.com/gregcotten/AsyncProcess.git
Revision (git rev-parse @):
3a506bb36e4aa54eb3f1b13f15e636c68ee3eb19
SUCCESS checkout https://github.com/gregcotten/AsyncProcess.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/gregcotten/AsyncProcess.git
https://github.com/gregcotten/AsyncProcess.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-system",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.3.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-system"
    },
    {
      "identity" : "swift-async-algorithms",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.1",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-async-algorithms.git"
    },
    {
      "identity" : "swift-atomics",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.2.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-atomics.git"
    },
    {
      "identity" : "swift-collections",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.1.2",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-collections.git"
    },
    {
      "identity" : "swift-nio",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.65.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-nio.git"
    },
    {
      "identity" : "swift-log",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.5.4",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-log.git"
    }
  ],
  "manifest_display_name" : "AsyncProcess",
  "name" : "AsyncProcess",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    }
  ],
  "products" : [
    {
      "name" : "AsyncProcess",
      "targets" : [
        "AsyncProcess"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "ProcessSpawnSync",
      "targets" : [
        "ProcessSpawnSync"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ProcessSpawnSync",
      "module_type" : "SwiftTarget",
      "name" : "ProcessSpawnSync",
      "path" : "Sources/ProcessSpawnSync",
      "product_dependencies" : [
        "Atomics",
        "NIOConcurrencyHelpers"
      ],
      "product_memberships" : [
        "AsyncProcess",
        "ProcessSpawnSync"
      ],
      "sources" : [
        "ProcessSpawner.swift"
      ],
      "target_dependencies" : [
        "CProcessSpawnSync"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CProcessSpawnSync",
      "module_type" : "ClangTarget",
      "name" : "CProcessSpawnSync",
      "path" : "Sources/CProcessSpawnSync",
      "product_memberships" : [
        "AsyncProcess",
        "ProcessSpawnSync"
      ],
      "sources" : [
        "spawner.c"
      ],
      "type" : "library"
    },
    {
      "c99name" : "AsyncProcessTests",
      "module_type" : "SwiftTarget",
      "name" : "AsyncProcessTests",
      "path" : "Tests/AsyncProcessTests",
      "product_dependencies" : [
        "Atomics",
        "AsyncAlgorithms",
        "NIO",
        "NIOConcurrencyHelpers",
        "Logging"
      ],
      "sources" : [
        "AsyncByteBufferLineSequenceTests.swift",
        "Helpers+LogRecorderHandler.swift",
        "IntegrationTests.swift"
      ],
      "target_dependencies" : [
        "AsyncProcess"
      ],
      "type" : "test"
    },
    {
      "c99name" : "AsyncProcess",
      "module_type" : "SwiftTarget",
      "name" : "AsyncProcess",
      "path" : "Sources/AsyncProcess",
      "product_dependencies" : [
        "Atomics",
        "AsyncAlgorithms",
        "Logging",
        "NIO",
        "DequeModule",
        "SystemPackage"
      ],
      "product_memberships" : [
        "AsyncProcess"
      ],
      "sources" : [
        "ChunkSequence.swift",
        "EOFSequence.swift",
        "FileContentStream.swift",
        "NIOAsyncPipeWriter.swift",
        "ProcessExecutor+Convenience.swift",
        "ProcessExecutor.swift",
        "ProcessExit.swift"
      ],
      "target_dependencies" : [
        "ProcessSpawnSync"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-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-atomics.git
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/apple/swift-collections.git
[1/3836] Fetching swift-log
[347/5546] Fetching swift-log, swift-atomics
[4341/22137] Fetching swift-log, swift-atomics, swift-collections
[6211/98248] Fetching swift-log, swift-atomics, swift-collections, swift-nio
Fetched https://github.com/apple/swift-log.git from cache (2.71s)
Fetched https://github.com/apple/swift-collections.git from cache (2.75s)
[53466/77821] Fetching swift-atomics, swift-nio
Fetching https://github.com/apple/swift-async-algorithms.git
Fetched https://github.com/apple/swift-atomics.git from cache (7.34s)
Fetching https://github.com/apple/swift-system
Fetched https://github.com/apple/swift-nio.git from cache (7.58s)
[1/4985] Fetching swift-async-algorithms
[2394/9376] Fetching swift-async-algorithms, swift-system
Fetched https://github.com/apple/swift-system from cache (0.64s)
Fetched https://github.com/apple/swift-async-algorithms.git from cache (0.66s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.2.0 (8.79s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (1.26s)
Computing version for https://github.com/apple/swift-async-algorithms.git
Computed https://github.com/apple/swift-async-algorithms.git at 1.0.4 (1.03s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.81s)
Computing version for https://github.com/apple/swift-system
Computed https://github.com/apple/swift-system at 1.5.0 (0.65s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.83.0 (1.08s)
Creating working copy for https://github.com/apple/swift-async-algorithms.git
Working copy of https://github.com/apple/swift-async-algorithms.git resolved at 1.0.4
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.3
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.83.0
Creating working copy for https://github.com/apple/swift-system
Working copy of https://github.com/apple/swift-system resolved at 1.5.0
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-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.2.0
Building for debugging...
[0/28] Write sources
[13/28] Compiling CSystem shims.c
[13/28] Compiling _AtomicsShims.c
[15/28] Compiling CNIOWindows WSAStartup.c
[16/28] Compiling CNIOWindows shim.c
[17/28] Compiling CNIOWASI CNIOWASI.c
[18/28] Write sources
[21/28] Compiling CNIOLinux liburing_shims.c
[21/28] Compiling CNIOLinux shim.c
[23/28] Compiling CNIODarwin shim.c
[24/28] Write swift-version-24593BA9C3E375BF.txt
In file included from /host/spi-builder-workspace/Sources/CProcessSpawnSync/spawner.c:16:
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/signal.h:2:2: error: "wasm lacks signal support; to enable minimal signal emulation, compile with -D_WASI_EMULATED_SIGNAL and link with -lwasi-emulated-signal"
    2 | #error "wasm lacks signal support; to enable minimal signal emulation, \
      |  ^
In file included from /host/spi-builder-workspace/Sources/CProcessSpawnSync/spawner.c:26:
In file included from /host/spi-builder-workspace/Sources/CProcessSpawnSync/internal-helpers.h:15:
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/signal.h:2:2: error: "wasm lacks signal support; to enable minimal signal emulation, compile with -D_WASI_EMULATED_SIGNAL and link with -lwasi-emulated-signal"
    2 | #error "wasm lacks signal support; to enable minimal signal emulation, \
      |  ^
In file included from /host/spi-builder-workspace/Sources/CProcessSpawnSync/spawner.c:26:
/host/spi-builder-workspace/Sources/CProcessSpawnSync/internal-helpers.h:70:72: error: unknown type name 'sigset_t'
   70 | static int block_everything_but_something_went_seriously_wrong_signals(sigset_t *old_mask) {
      |                                                                        ^
/host/spi-builder-workspace/Sources/CProcessSpawnSync/internal-helpers.h:71:5: error: use of undeclared identifier 'sigset_t'
   71 |     sigset_t mask;
      |     ^
/host/spi-builder-workspace/Sources/CProcessSpawnSync/internal-helpers.h:73:10: error: call to undeclared function 'sigfillset'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
   73 |     r |= sigfillset(&mask);
      |          ^
/host/spi-builder-workspace/Sources/CProcessSpawnSync/internal-helpers.h:73:22: error: use of undeclared identifier 'mask'
   73 |     r |= sigfillset(&mask);
      |                      ^
/host/spi-builder-workspace/Sources/CProcessSpawnSync/internal-helpers.h:74:10: error: call to undeclared function 'sigdelset'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
   74 |     r |= sigdelset(&mask, SIGABRT);
      |          ^
/host/spi-builder-workspace/Sources/CProcessSpawnSync/internal-helpers.h:74:21: error: use of undeclared identifier 'mask'
   74 |     r |= sigdelset(&mask, SIGABRT);
      |                     ^
/host/spi-builder-workspace/Sources/CProcessSpawnSync/internal-helpers.h:74:27: error: use of undeclared identifier 'SIGABRT'
   74 |     r |= sigdelset(&mask, SIGABRT);
      |                           ^
/host/spi-builder-workspace/Sources/CProcessSpawnSync/internal-helpers.h:75:21: error: use of undeclared identifier 'mask'
   75 |     r |= sigdelset(&mask, SIGBUS);
      |                     ^
/host/spi-builder-workspace/Sources/CProcessSpawnSync/internal-helpers.h:75:27: error: use of undeclared identifier 'SIGBUS'
   75 |     r |= sigdelset(&mask, SIGBUS);
      |                           ^
/host/spi-builder-workspace/Sources/CProcessSpawnSync/internal-helpers.h:76:21: error: use of undeclared identifier 'mask'
   76 |     r |= sigdelset(&mask, SIGFPE);
      |                     ^
/host/spi-builder-workspace/Sources/CProcessSpawnSync/internal-helpers.h:76:27: error: use of undeclared identifier 'SIGFPE'
   76 |     r |= sigdelset(&mask, SIGFPE);
      |                           ^
/host/spi-builder-workspace/Sources/CProcessSpawnSync/internal-helpers.h:77:21: error: use of undeclared identifier 'mask'
   77 |     r |= sigdelset(&mask, SIGILL);
      |                     ^
/host/spi-builder-workspace/Sources/CProcessSpawnSync/internal-helpers.h:77:27: error: use of undeclared identifier 'SIGILL'
   77 |     r |= sigdelset(&mask, SIGILL);
      |                           ^
/host/spi-builder-workspace/Sources/CProcessSpawnSync/internal-helpers.h:78:21: error: use of undeclared identifier 'mask'
   78 |     r |= sigdelset(&mask, SIGKILL);
      |                     ^
/host/spi-builder-workspace/Sources/CProcessSpawnSync/internal-helpers.h:78:27: error: use of undeclared identifier 'SIGKILL'
   78 |     r |= sigdelset(&mask, SIGKILL);
      |                           ^
/host/spi-builder-workspace/Sources/CProcessSpawnSync/internal-helpers.h:79:21: error: use of undeclared identifier 'mask'
   79 |     r |= sigdelset(&mask, SIGSEGV);
      |                     ^
/host/spi-builder-workspace/Sources/CProcessSpawnSync/internal-helpers.h:79:27: error: use of undeclared identifier 'SIGSEGV'
   79 |     r |= sigdelset(&mask, SIGSEGV);
      |                           ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[25/28] Compiling CProcessSpawnSync spawner.c
[25/28] Compiling c-nioatomics.c
[25/28] Compiling c-atomics.c
error: emit-module command failed with exit code 1 (use -v to see invocation)
[26/56] 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/59] Compiling SystemPackage MachPort.swift
[28/59] Compiling SystemPackage PlatformString.swift
[29/59] Compiling SystemPackage SystemString.swift
[30/59] Compiling SystemPackage Errno.swift
[31/59] Compiling SystemPackage ErrnoWindows.swift
[32/59] Compiling SystemPackage FileDescriptor.swift
[33/59] Compiling SystemPackage FileHelpers.swift
[34/59] Compiling SystemPackage Util+StringArray.swift
[35/59] Compiling SystemPackage Util.swift
[36/59] Compiling SystemPackage UtilConsumers.swift
[37/59] Compiling SystemPackage FileOperations.swift
[38/59] Compiling SystemPackage FilePath.swift
[39/59] Compiling SystemPackage FilePathComponentView.swift
[40/59] Compiling SystemPackage FilePathComponents.swift
[41/59] 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 |
[42/59] 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 |
[43/59] 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 |
[44/59] 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 |
[45/59] Compiling SystemPackage FilePathParsing.swift
[46/59] Compiling SystemPackage FilePathString.swift
[47/59] Compiling SystemPackage FilePathSyntax.swift
[48/59] Compiling SystemPackage FilePathTemp.swift
[49/59] Compiling SystemPackage Backcompat.swift
[50/59] Compiling SystemPackage CInterop.swift
[51/59] Compiling SystemPackage Constants.swift
[52/59] Compiling SystemPackage Exports.swift
[53/59] 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)
[54/59] 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)
[55/59] Compiling SystemPackage FilePathWindows.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)
[56/59] Compiling SystemPackage FilePermissions.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)
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-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
Building for debugging...
In file included from /host/spi-builder-workspace/Sources/CProcessSpawnSync/spawner.c:16:
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/signal.h:2:2: error: "wasm lacks signal support; to enable minimal signal emulation, compile with -D_WASI_EMULATED_SIGNAL and link with -lwasi-emulated-signal"
    2 | #error "wasm lacks signal support; to enable minimal signal emulation, \
      |  ^
In file included from /host/spi-builder-workspace/Sources/CProcessSpawnSync/spawner.c:26:
In file included from /host/spi-builder-workspace/Sources/CProcessSpawnSync/internal-helpers.h:15:
/root/.swiftpm/swift-sdks/swift-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/signal.h:2:2: error: "wasm lacks signal support; to enable minimal signal emulation, compile with -D_WASI_EMULATED_SIGNAL and link with -lwasi-emulated-signal"
    2 | #error "wasm lacks signal support; to enable minimal signal emulation, \
      |  ^
In file included from /host/spi-builder-workspace/Sources/CProcessSpawnSync/spawner.c:26:
/host/spi-builder-workspace/Sources/CProcessSpawnSync/internal-helpers.h:70:72: error: unknown type name 'sigset_t'
   70 | static int block_everything_but_something_went_seriously_wrong_signals(sigset_t *old_mask) {
      |                                                                        ^
/host/spi-builder-workspace/Sources/CProcessSpawnSync/internal-helpers.h:71:5: error: use of undeclared identifier 'sigset_t'
   71 |     sigset_t mask;
      |     ^
/host/spi-builder-workspace/Sources/CProcessSpawnSync/internal-helpers.h:73:10: error: call to undeclared function 'sigfillset'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
   73 |     r |= sigfillset(&mask);
      |          ^
/host/spi-builder-workspace/Sources/CProcessSpawnSync/internal-helpers.h:73:22: error: use of undeclared identifier 'mask'
   73 |     r |= sigfillset(&mask);
      |                      ^
/host/spi-builder-workspace/Sources/CProcessSpawnSync/internal-helpers.h:74:10: error: call to undeclared function 'sigdelset'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
   74 |     r |= sigdelset(&mask, SIGABRT);
      |          ^
/host/spi-builder-workspace/Sources/CProcessSpawnSync/internal-helpers.h:74:21: error: use of undeclared identifier 'mask'
   74 |     r |= sigdelset(&mask, SIGABRT);
      |                     ^
/host/spi-builder-workspace/Sources/CProcessSpawnSync/internal-helpers.h:74:27: error: use of undeclared identifier 'SIGABRT'
   74 |     r |= sigdelset(&mask, SIGABRT);
      |                           ^
/host/spi-builder-workspace/Sources/CProcessSpawnSync/internal-helpers.h:75:21: error: use of undeclared identifier 'mask'
   75 |     r |= sigdelset(&mask, SIGBUS);
      |                     ^
/host/spi-builder-workspace/Sources/CProcessSpawnSync/internal-helpers.h:75:27: error: use of undeclared identifier 'SIGBUS'
   75 |     r |= sigdelset(&mask, SIGBUS);
      |                           ^
/host/spi-builder-workspace/Sources/CProcessSpawnSync/internal-helpers.h:76:21: error: use of undeclared identifier 'mask'
   76 |     r |= sigdelset(&mask, SIGFPE);
      |                     ^
/host/spi-builder-workspace/Sources/CProcessSpawnSync/internal-helpers.h:76:27: error: use of undeclared identifier 'SIGFPE'
   76 |     r |= sigdelset(&mask, SIGFPE);
      |                           ^
/host/spi-builder-workspace/Sources/CProcessSpawnSync/internal-helpers.h:77:21: error: use of undeclared identifier 'mask'
   77 |     r |= sigdelset(&mask, SIGILL);
      |                     ^
/host/spi-builder-workspace/Sources/CProcessSpawnSync/internal-helpers.h:77:27: error: use of undeclared identifier 'SIGILL'
   77 |     r |= sigdelset(&mask, SIGILL);
      |                           ^
/host/spi-builder-workspace/Sources/CProcessSpawnSync/internal-helpers.h:78:21: error: use of undeclared identifier 'mask'
   78 |     r |= sigdelset(&mask, SIGKILL);
      |                     ^
/host/spi-builder-workspace/Sources/CProcessSpawnSync/internal-helpers.h:78:27: error: use of undeclared identifier 'SIGKILL'
   78 |     r |= sigdelset(&mask, SIGKILL);
      |                           ^
/host/spi-builder-workspace/Sources/CProcessSpawnSync/internal-helpers.h:79:21: error: use of undeclared identifier 'mask'
   79 |     r |= sigdelset(&mask, SIGSEGV);
      |                     ^
/host/spi-builder-workspace/Sources/CProcessSpawnSync/internal-helpers.h:79:27: error: use of undeclared identifier 'SIGSEGV'
   79 |     r |= sigdelset(&mask, SIGSEGV);
      |                           ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[0/4] Write swift-version-24593BA9C3E375BF.txt
[1/4] Compiling CProcessSpawnSync spawner.c
[1/4] Compiling c-nioatomics.c
[1/4] Compiling c-atomics.c
[2/9] Compiling Logging MetadataProvider.swift
[3/9] Compiling Logging Locks.swift
[4/9] Emitting module Logging
[5/9] Compiling Logging LogHandler.swift
[6/9] Compiling Logging Logging.swift
BUILD FAILURE 6.1 wasm