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.10.1 (40be3c), with Swift 6.1 for Wasm on 12 Aug 2025 16:46:21 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/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.65.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/orlandos-nl/MongoKitten.git
Reference: 7.10.1
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.10.1     -> FETCH_HEAD
HEAD is now at 40be3c6 Call `discardReadBytes` instead of `slice`, which cleans up memory (#366)
Cloned https://github.com/orlandos-nl/MongoKitten.git
Revision (git rev-parse @):
40be3c696d05a407374397eb5f99085925f16d24
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/orlandos-nl/MongoKitten.git at 7.10.1
========================================
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-3":/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 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-nio-ssl.git
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/orlandos-nl/BSON.git
Fetching https://github.com/apple/swift-distributed-tracing.git
Fetching https://github.com/orlandos-nl/DNSClient.git
[1/6004] Fetching bson
[1022/7812] Fetching bson, swift-atomics
[1041/8956] Fetching bson, swift-atomics, dnsclient
[1687/14072] Fetching bson, swift-atomics, dnsclient, swift-distributed-tracing
[12590/29075] Fetching bson, swift-atomics, dnsclient, swift-distributed-tracing, swift-nio-ssl
Fetched https://github.com/orlandos-nl/DNSClient.git from cache (0.55s)
[13359/27931] Fetching bson, swift-atomics, swift-distributed-tracing, swift-nio-ssl
Fetching https://github.com/apple/swift-metrics.git
[14430/105321] Fetching bson, swift-atomics, swift-distributed-tracing, swift-nio-ssl, swift-nio
Fetched https://github.com/orlandos-nl/BSON.git from cache (0.64s)
Fetching https://github.com/apple/swift-log.git
[8726/99317] Fetching swift-atomics, swift-distributed-tracing, swift-nio-ssl, swift-nio
Fetched https://github.com/apple/swift-atomics.git from cache (0.79s)
Fetched https://github.com/apple/swift-distributed-tracing.git from cache (0.81s)
[3349/92393] Fetching swift-nio-ssl, swift-nio
[5798/94612] Fetching swift-nio-ssl, swift-nio, swift-metrics
[7699/98498] Fetching swift-nio-ssl, swift-nio, swift-metrics, swift-log
Fetched https://github.com/apple/swift-metrics.git from cache (0.68s)
[13355/96279] Fetching swift-nio-ssl, swift-nio, swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.81s)
[18235/92393] Fetching swift-nio-ssl, swift-nio
Fetched https://github.com/apple/swift-nio-ssl.git from cache (3.44s)
[55721/77390] Fetching swift-nio
Fetched https://github.com/apple/swift-nio.git from cache (8.74s)
Computing version for https://github.com/orlandos-nl/DNSClient.git
Computed https://github.com/orlandos-nl/DNSClient.git at 2.4.4 (11.33s)
Fetching https://github.com/apple/swift-nio-transport-services.git
[1/2701] Fetching swift-nio-transport-services
Fetched https://github.com/apple/swift-nio-transport-services.git from cache (0.53s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (1.47s)
Computing version for https://github.com/apple/swift-distributed-tracing.git
Computed https://github.com/apple/swift-distributed-tracing.git at 1.2.1 (1.28s)
Fetching https://github.com/apple/swift-service-context.git
[1/1088] Fetching swift-service-context
Fetched https://github.com/apple/swift-service-context.git from cache (0.47s)
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.39s)
Computing version for https://github.com/orlandos-nl/BSON.git
Computed https://github.com/orlandos-nl/BSON.git at 8.2.0 (0.85s)
Computing version for https://github.com/apple/swift-nio-transport-services.git
Computed https://github.com/apple/swift-nio-transport-services.git at 1.25.1 (0.85s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.86.0 (1.04s)
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-collections.git
[1/4847] Fetching swift-system
[4848/21800] Fetching swift-system, swift-collections
Fetched https://github.com/apple/swift-system.git from cache (1.32s)
Fetched https://github.com/apple/swift-collections.git from cache (1.37s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.6.2 (3.80s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.1 (1.00s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.4 (1.35s)
Computing version for https://github.com/apple/swift-metrics.git
Computed https://github.com/apple/swift-metrics.git at 2.7.0 (0.82s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 2.33.0 (0.71s)
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.1
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.4.4
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.2.1
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/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-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.86.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.25.1
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.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.2
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.33.0
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
Building for debugging...
[0/439] Write sources
[28/439] Compiling CNIOWindows shim.c
[29/439] Compiling CNIOWASI CNIOWASI.c
[30/439] Compiling _AtomicsShims.c
[31/439] Compiling CNIOWindows WSAStartup.c
[32/439] Compiling CNIODarwin shim.c
[33/439] Compiling CNIOLinux liburing_shims.c
[33/439] Compiling CNIOPosix event_loop_id.c
[35/439] Compiling CNIOLinux shim.c
[36/439] Compiling fiat_p256_adx_sqr.S
[37/439] Compiling fiat_curve25519_adx_square.S
[38/439] Compiling fiat_p256_adx_mul.S
[39/439] Compiling fiat_curve25519_adx_mul.S
[40/439] Write swift-version-24593BA9C3E375BF.txt
[41/439] Compiling CNIOBoringSSLShims shims.c
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/443] Compiling tls_method.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/443] Compiling tls13_both.cc
[42/443] Compiling tls13_enc.cc
[42/443] Compiling tls13_server.cc
[42/443] Compiling tls_record.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>
      |          ^~~~~~~~~~~
[42/443] Compiling tls13_client.cc
[42/443] Compiling t1_enc.cc
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/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
[0/1] Planning build
Building for debugging...
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.
[0/398] Compiling tls13_server.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>
      |          ^~~~~~~~~~~
[0/398] Compiling tls13_both.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>
      |          ^~~~~~~~~~~
[0/398] Compiling tls13_client.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>
      |          ^~~~~~~~~~~
[0/398] Compiling tls_record.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>
      |          ^~~~~~~~~~~
[0/398] Compiling tls_method.cc
In file included from /host/spi-builder-workspace/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/ssl/ssl_x509.cc:23:
/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>
      |          ^~~~~~~~~~~
[0/398] Compiling ssl_x509.cc
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>
      |          ^~~~~~~~~~~
[0/398] Compiling t1_enc.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>
      |          ^~~~~~~~~~~
[0/398] Compiling tls13_enc.cc
BUILD FAILURE 6.1 wasm