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 MongoKitten, reference 7.11.0 (cab8d2), with Swift 6.1 for Wasm on 26 Nov 2025 13:24:49 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.68.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/orlandos-nl/MongoKitten.git
Reference: 7.11.0
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/orlandos-nl/MongoKitten
 * tag               7.11.0     -> FETCH_HEAD
HEAD is now at cab8d2a Update Span tracing availability on macOS (#369)
Cloned https://github.com/orlandos-nl/MongoKitten.git
Revision (git rev-parse @):
cab8d2a80cd64c3861f81306d098c29cb3c0d6d7
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/orlandos-nl/MongoKitten.git at 7.11.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/orlandos-nl/MongoKitten.git
https://github.com/orlandos-nl/MongoKitten.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-log",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-log.git"
    },
    {
      "identity" : "swift-metrics",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-metrics.git"
    },
    {
      "identity" : "swift-atomics",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-atomics.git"
    },
    {
      "identity" : "bson",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "8.0.9",
            "upper_bound" : "9.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/orlandos-nl/BSON.git"
    },
    {
      "identity" : "swift-nio",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.43.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-nio.git"
    },
    {
      "identity" : "dnsclient",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.4.2",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/orlandos-nl/DNSClient.git"
    },
    {
      "identity" : "swift-nio-ssl",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.0.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-nio-ssl.git"
    },
    {
      "identity" : "swift-distributed-tracing",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-distributed-tracing.git"
    }
  ],
  "manifest_display_name" : "MongoKitten",
  "name" : "MongoKitten",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "13.0"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "MongoKitten",
      "targets" : [
        "MongoKitten"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "Meow",
      "targets" : [
        "Meow"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "MongoClient",
      "targets" : [
        "MongoClient"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "MongoCore",
      "targets" : [
        "MongoCore"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "_MongoKittenCrypto",
      "module_type" : "SwiftTarget",
      "name" : "_MongoKittenCrypto",
      "path" : "Sources/_MongoKittenCrypto",
      "product_memberships" : [
        "MongoKitten",
        "Meow",
        "MongoClient"
      ],
      "sources" : [
        "HMAC.swift",
        "Hash.swift",
        "Hex.swift",
        "MD5.swift",
        "PBKDF2.swift",
        "SHA1.swift",
        "SHA256.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "MongoKittenTests",
      "module_type" : "SwiftTarget",
      "name" : "MongoKittenTests",
      "path" : "Tests/MongoKittenTests",
      "sources" : [
        "CRUDTests.swift",
        "ConnectionSettingsTests.swift",
        "CryptoPerformanceTests.swift",
        "CryptoTests.swift",
        "TransactionTests.swift"
      ],
      "target_dependencies" : [
        "MongoKitten"
      ],
      "type" : "test"
    },
    {
      "c99name" : "MongoKittenCore",
      "module_type" : "SwiftTarget",
      "name" : "MongoKittenCore",
      "path" : "Sources/MongoKittenCore",
      "product_memberships" : [
        "MongoKitten",
        "Meow"
      ],
      "sources" : [
        "Commands/Aggregate.swift",
        "Commands/Count.swift",
        "Commands/CreateIndexes.swift",
        "Commands/Delete.swift",
        "Commands/Distinct.swift",
        "Commands/Drop.swift",
        "Commands/Find.swift",
        "Commands/FindAndModify.swift",
        "Commands/Insert.swift",
        "Commands/ListCollections.swift",
        "Commands/ListDatabases.swift",
        "Commands/Update.swift",
        "Cursor.swift",
        "FieldPath.swift",
        "QueryPrimitives/Projection.swift",
        "QueryPrimitives/QueryBuilder.swift",
        "QueryPrimitives/Sorting.swift"
      ],
      "target_dependencies" : [
        "MongoClient"
      ],
      "type" : "library"
    },
    {
      "c99name" : "MongoKitten",
      "module_type" : "SwiftTarget",
      "name" : "MongoKitten",
      "path" : "Sources/MongoKitten",
      "product_memberships" : [
        "MongoKitten",
        "Meow"
      ],
      "sources" : [
        "Aggregate.swift",
        "AggregateBuilder.swift",
        "AggregateStage.swift",
        "AsyncSequence.swift",
        "BSON2JSON.swift",
        "CLI+Helpers.swift",
        "ChangeStream.swift",
        "CollectionHelpers/Collection+Count.swift",
        "CollectionHelpers/Collection+Delete.swift",
        "CollectionHelpers/Collection+Distinct.swift",
        "CollectionHelpers/Collection+Find.swift",
        "CollectionHelpers/Collection+FindAndModify.swift",
        "CollectionHelpers/Collection+Indexes.swift",
        "CollectionHelpers/Collection+Insert.swift",
        "CollectionHelpers/Collection+Update.swift",
        "Cursor.swift",
        "Date+ISO8601Format.swift",
        "Error.swift",
        "Exports.swift",
        "GridFS/GridFSBucket.swift",
        "GridFS/GridFSChunk.swift",
        "GridFS/GridFSError.swift",
        "GridFS/GridFSFile.swift",
        "GridFS/GridFSFileWriter.swift",
        "GridFS/GridFSReader.swift",
        "IndexBuilder.swift",
        "MongoCollection.swift",
        "MongoDatabase.swift",
        "MongoTransactionDatabase.swift"
      ],
      "target_dependencies" : [
        "MongoClient",
        "MongoKittenCore"
      ],
      "type" : "library"
    },
    {
      "c99name" : "MongoCoreTests",
      "module_type" : "SwiftTarget",
      "name" : "MongoCoreTests",
      "path" : "Tests/MongoCoreTests",
      "sources" : [
        "ProtocolTests.swift"
      ],
      "target_dependencies" : [
        "MongoCore"
      ],
      "type" : "test"
    },
    {
      "c99name" : "MongoCore",
      "module_type" : "SwiftTarget",
      "name" : "MongoCore",
      "path" : "Sources/MongoCore",
      "product_dependencies" : [
        "BSON",
        "NIO",
        "NIOSSL",
        "NIOFoundationCompat",
        "Logging",
        "Metrics",
        "Atomics"
      ],
      "product_memberships" : [
        "MongoKitten",
        "Meow",
        "MongoClient",
        "MongoCore"
      ],
      "sources" : [
        "CommandPrimitives.swift",
        "Error.swift",
        "MongoReplyDeserializer.swift",
        "Primitives/Collation.swift",
        "Primitives/ConnectionSettings.swift",
        "Primitives/Namespace.swift",
        "Primitives/ReadConcern.swift",
        "Primitives/ServerHandshake.swift",
        "Primitives/WireVersion.swift",
        "Primitives/WriteConcern.swift",
        "Protocol/MessageHeader.swift",
        "Protocol/MongoReply.swift",
        "Protocol/MongoRequest.swift",
        "Protocol/OpMessage.swift",
        "Protocol/OpQuery.swift",
        "Protocol/OpReply.swift",
        "Protocol/ProtocolHelpers.swift",
        "Sessions.swift",
        "Tansaction.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "MongoClient",
      "module_type" : "SwiftTarget",
      "name" : "MongoClient",
      "path" : "Sources/MongoClient",
      "product_dependencies" : [
        "DNSClient",
        "Tracing"
      ],
      "product_memberships" : [
        "MongoKitten",
        "Meow",
        "MongoClient"
      ],
      "sources" : [
        "Authenticate+ChallengeResponse.swift",
        "Authenticate+SASL.swift",
        "Authenticate.swift",
        "Channel+Connection.swift",
        "Cluster.swift",
        "Connection+Execute.swift",
        "Connection.swift",
        "ConnectionContext.swift",
        "ConnectionPool.swift",
        "Cursor.swift",
        "Error.swift",
        "Exports.swift",
        "Helpers.swift",
        "InternalCommands/GetMore.swift",
        "InternalCommands/IsMaster.swift",
        "InternalCommands/KillCursors.swift",
        "MongoSingleConnectionPool.swift",
        "Responses/MongoCursorResponse.swift",
        "Responses/OK.swift",
        "SASL.swift"
      ],
      "target_dependencies" : [
        "MongoCore",
        "_MongoKittenCrypto"
      ],
      "type" : "library"
    },
    {
      "c99name" : "MeowTests",
      "module_type" : "SwiftTarget",
      "name" : "MeowTests",
      "path" : "Tests/MeowTests",
      "sources" : [
        "MeowTests.swift"
      ],
      "target_dependencies" : [
        "Meow"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Meow",
      "module_type" : "SwiftTarget",
      "name" : "Meow",
      "path" : "Sources/Meow",
      "product_memberships" : [
        "Meow"
      ],
      "sources" : [
        "Aggregates.swift",
        "Database.swift",
        "Error.swift",
        "Exports.swift",
        "Indexes.swift",
        "KeyPathModel/FindHelpers.swift",
        "KeyPathModel/KeyPathModels.swift",
        "KeyPathModel/MeowCollection+KeyPath.swift",
        "KeyPathModel/TestDecoder.swift",
        "MeowCollection.swift",
        "Migrations.swift",
        "Model.swift",
        "Operators.swift",
        "PartialModel.swift",
        "Reference.swift"
      ],
      "target_dependencies" : [
        "MongoKitten"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:4dfe22dedd7a52399668938cbd466a34545eff77bced906005dc4032a6549d90
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/orlandos-nl/DNSClient.git
Fetching https://github.com/apple/swift-distributed-tracing.git
Fetching https://github.com/apple/swift-nio-ssl.git
Fetching https://github.com/orlandos-nl/BSON.git
Fetching https://github.com/apple/swift-atomics.git
[1/1820] Fetching swift-atomics
[438/7386] Fetching swift-atomics, swift-distributed-tracing
[772/8913] Fetching swift-atomics, swift-distributed-tracing, dnsclient
[1643/14917] Fetching swift-atomics, swift-distributed-tracing, dnsclient, bson
[6754/30205] Fetching swift-atomics, swift-distributed-tracing, dnsclient, bson, swift-nio-ssl
[12003/110726] Fetching swift-atomics, swift-distributed-tracing, dnsclient, bson, swift-nio-ssl, swift-nio
Fetched https://github.com/apple/swift-atomics.git from cache (1.29s)
[18612/108906] Fetching swift-distributed-tracing, dnsclient, bson, swift-nio-ssl, swift-nio
Fetching https://github.com/apple/swift-metrics.git
Fetched https://github.com/orlandos-nl/BSON.git from cache (1.43s)
[14637/102902] Fetching swift-distributed-tracing, dnsclient, swift-nio-ssl, swift-nio
Fetching https://github.com/apple/swift-log.git
[23178/105389] Fetching swift-distributed-tracing, dnsclient, swift-nio-ssl, swift-nio, swift-metrics
[35165/110464] Fetching swift-distributed-tracing, dnsclient, swift-nio-ssl, swift-nio, swift-metrics, swift-log
[44657/107977] Fetching swift-distributed-tracing, dnsclient, swift-nio-ssl, swift-nio, swift-log
Fetched https://github.com/apple/swift-metrics.git from cache (0.61s)
Fetched https://github.com/apple/swift-log.git from cache (0.74s)
[55100/102902] Fetching swift-distributed-tracing, dnsclient, swift-nio-ssl, swift-nio
Fetched https://github.com/apple/swift-nio-ssl.git from cache (3.62s)
[55406/87614] Fetching swift-distributed-tracing, dnsclient, swift-nio
Fetched https://github.com/orlandos-nl/DNSClient.git from cache (10.34s)
Fetched https://github.com/apple/swift-distributed-tracing.git from cache (10.34s)
Fetched https://github.com/apple/swift-nio.git from cache (10.46s)
Computing version for https://github.com/orlandos-nl/DNSClient.git
Computed https://github.com/orlandos-nl/DNSClient.git at 2.5.0 (12.98s)
Fetching https://github.com/apple/swift-nio-transport-services.git
[1/2809] Fetching swift-nio-transport-services
Fetched https://github.com/apple/swift-nio-transport-services.git from cache (0.39s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (1.03s)
Computing version for https://github.com/orlandos-nl/BSON.git
Computed https://github.com/orlandos-nl/BSON.git at 8.2.0 (0.56s)
Computing version for https://github.com/apple/swift-distributed-tracing.git
Computed https://github.com/apple/swift-distributed-tracing.git at 1.3.1 (0.66s)
Fetching https://github.com/apple/swift-service-context.git
[1/1162] Fetching swift-service-context
Fetched https://github.com/apple/swift-service-context.git from cache (0.38s)
Computing version for https://github.com/apple/swift-service-context.git
Computed https://github.com/apple/swift-service-context.git at 1.2.1 (1.10s)
Computing version for https://github.com/apple/swift-nio-transport-services.git
Computed https://github.com/apple/swift-nio-transport-services.git at 1.26.0 (0.71s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.90.1 (1.20s)
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-system.git
[1/5182] Fetching swift-system
[5183/23496] Fetching swift-system, swift-collections
Fetched https://github.com/apple/swift-system.git from cache (1.54s)
Fetched https://github.com/apple/swift-collections.git from cache (1.57s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.6.3 (2.33s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.3.0 (1.08s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.4 (0.65s)
Computing version for https://github.com/apple/swift-metrics.git
Computed https://github.com/apple/swift-metrics.git at 2.7.1 (0.55s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 2.36.0 (0.61s)
Creating working copy for https://github.com/apple/swift-service-context.git
Working copy of https://github.com/apple/swift-service-context.git resolved at 1.2.1
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.3.0
Creating working copy for https://github.com/apple/swift-metrics.git
Working copy of https://github.com/apple/swift-metrics.git resolved at 2.7.1
Creating working copy for https://github.com/apple/swift-nio-ssl.git
Working copy of https://github.com/apple/swift-nio-ssl.git resolved at 2.36.0
Creating working copy for https://github.com/apple/swift-nio-transport-services.git
Working copy of https://github.com/apple/swift-nio-transport-services.git resolved at 1.26.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
Creating working copy for https://github.com/orlandos-nl/DNSClient.git
Working copy of https://github.com/orlandos-nl/DNSClient.git resolved at 2.5.0
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.4
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.90.1
Creating working copy for https://github.com/orlandos-nl/BSON.git
Working copy of https://github.com/orlandos-nl/BSON.git resolved at 8.2.0
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.6.3
Creating working copy for https://github.com/apple/swift-distributed-tracing.git
Working copy of https://github.com/apple/swift-distributed-tracing.git resolved at 1.3.1
Building for debugging...
[0/440] Write sources
[26/440] Compiling _CWASI _CWASI.c
[26/440] Compiling _AtomicsShims.c
[28/440] Compiling CNIOWindows WSAStartup.c
[29/440] Compiling CNIOWindows shim.c
[30/440] Compiling CNIOWASI CNIOWASI.c
[31/440] Compiling CNIOLinux shim.c
[32/440] Compiling CNIOPosix event_loop_id.c
[33/440] Compiling CNIODarwin shim.c
[33/440] Compiling CNIOLinux liburing_shims.c
[35/440] Compiling fiat_p256_adx_sqr.S
[36/440] Compiling fiat_p256_adx_mul.S
[37/440] Compiling fiat_curve25519_adx_mul.S
[38/440] Compiling fiat_curve25519_adx_square.S
[39/440] Write swift-version-24593BA9C3E375BF.txt
[40/440] Compiling CNIOBoringSSLShims shims.c
[42/444] Emitting module _NIODataStructures
In file included from /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/t1_enc.cc:28:
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/../crypto/internal.h:32:10: fatal error: 'pthread.h' file not found
   32 | #include <pthread.h>
      |          ^~~~~~~~~~~
1 error generated.
[42/444] Compiling t1_enc.cc
In file included from /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/tls_method.cc:17:
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/../crypto/internal.h:32:10: fatal error: 'pthread.h' file not found
   32 | #include <pthread.h>
      |          ^~~~~~~~~~~
1 error generated.
[42/444] Compiling tls_method.cc
In file included from /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/tls13_server.cc:32:
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/../crypto/internal.h:32:10: fatal error: 'pthread.h' file not found
   32 | #include <pthread.h>
      |          ^~~~~~~~~~~
1 error generated.
[42/444] Compiling tls13_server.cc
In file included from /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/tls13_enc.cc:34:
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/../crypto/internal.h:32:10: fatal error: 'pthread.h' file not found
   32 | #include <pthread.h>
      |          ^~~~~~~~~~~
1 error generated.
[42/444] Compiling tls13_enc.cc
In file included from /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/tls13_client.cc:30:
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/../crypto/internal.h:32:10: fatal error: 'pthread.h' file not found
   32 | #include <pthread.h>
      |          ^~~~~~~~~~~
1 error generated.
[42/444] Compiling tls13_client.cc
In file included from /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/tls13_both.cc:29:
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/../crypto/internal.h:32:10: fatal error: 'pthread.h' file not found
   32 | #include <pthread.h>
      |          ^~~~~~~~~~~
[42/444] Compiling tls13_both.cc
In file included from /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/tls_record.cc:19:
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/../crypto/internal.h:32:10: fatal error: 'pthread.h' file not found
   32 | #include <pthread.h>
      |          ^~~~~~~~~~~
1 error generated.
[42/444] Compiling tls_record.cc
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:4dfe22dedd7a52399668938cbd466a34545eff77bced906005dc4032a6549d90
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
[0/400] Write swift-version-24593BA9C3E375BF.txt
In file included from /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/tls13_enc.cc:34:
/host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/../crypto/internal.h:32:10: fatal error: 'pthread.h' file not found
   32 | #include <pthread.h>
      |          ^~~~~~~~~~~
1 error generated.
[1/400] Compiling tls13_enc.cc
[1/400] Compiling tls13_client.cc
[1/400] Compiling c-atomics.c
[1/400] Compiling tls_method.cc
[1/400] Compiling tls_record.cc
[1/400] Compiling tls13_server.cc
[1/400] Compiling c-nioatomics.c
[1/400] Compiling tls13_both.cc
BUILD FAILURE 6.1 wasm