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 PulsarClient, reference main (f32d0d), with Swift 6.1 for Wasm on 11 Dec 2025 07:51:26 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/wendylabsinc/pulsar-client.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/wendylabsinc/pulsar-client
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at f32d0da Merge pull request #21 from edgeengineer/telemetry-metrics
Cloned https://github.com/wendylabsinc/pulsar-client.git
Revision (git rev-parse @):
f32d0da6192e9db30138c64065b958d11b7e7296
SUCCESS checkout https://github.com/wendylabsinc/pulsar-client.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/wendylabsinc/pulsar-client.git
https://github.com/wendylabsinc/pulsar-client.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-protobuf",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.30.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-protobuf.git"
    },
    {
      "identity" : "swift-nio",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.83.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-nio.git"
    },
    {
      "identity" : "swift-nio-ssl",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.32.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-nio-ssl.git"
    },
    {
      "identity" : "swift-log",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.6.3",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-log.git"
    },
    {
      "identity" : "swift-crypto",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "3.10.0",
            "upper_bound" : "4.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-crypto.git"
    },
    {
      "identity" : "swift-async-algorithms",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-async-algorithms.git"
    },
    {
      "identity" : "cyclic-redundancy-check",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.0.5",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/edgeengineer/cyclic-redundancy-check.git"
    },
    {
      "identity" : "swift-metrics",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.4.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-metrics.git"
    },
    {
      "identity" : "swift-distributed-tracing",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.1.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-distributed-tracing.git"
    }
  ],
  "manifest_display_name" : "PulsarClient",
  "name" : "PulsarClient",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "13.0"
    },
    {
      "name" : "ios",
      "version" : "16.0"
    },
    {
      "name" : "tvos",
      "version" : "16.0"
    },
    {
      "name" : "watchos",
      "version" : "9.0"
    },
    {
      "name" : "maccatalyst",
      "version" : "16.0"
    }
  ],
  "products" : [
    {
      "name" : "PulsarClient",
      "targets" : [
        "PulsarClient"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "6"
  ],
  "targets" : [
    {
      "c99name" : "PulsarClientTests",
      "module_type" : "SwiftTarget",
      "name" : "PulsarClientTests",
      "path" : "Tests/PulsarClientTests",
      "sources" : [
        "AuthenticationTests.swift",
        "ByteBufferTests.swift",
        "DeadLetterQueueTests.swift",
        "FinalTests.swift",
        "InterceptorTests.swift",
        "MultiTopicProducerTests.swift",
        "OAuth2AuthenticationTests.swift",
        "StateTests.swift",
        "TLSAuthenticationTests.swift",
        "TransactionTests.swift"
      ],
      "target_dependencies" : [
        "PulsarClient"
      ],
      "type" : "test"
    },
    {
      "c99name" : "PulsarClientIntegrationTests",
      "module_type" : "SwiftTarget",
      "name" : "PulsarClientIntegrationTests",
      "path" : "Tests/PulsarClientIntegrationTests",
      "sources" : [
        "AuthenticationIntegrationTests.swift",
        "ConsumerIntegrationTests.swift",
        "DeadLetterQueueIntegrationTests.swift",
        "DebugSendReceiptTest.swift",
        "EnvironmentCheck.swift",
        "FailureScenarioTests.swift",
        "IntegrationTestCase.swift",
        "InterceptorIntegrationTests.swift",
        "MultiTopicProducerIntegrationTests.swift",
        "ProducerIntegrationTests.swift",
        "RawFrameTest.swift",
        "SerializationDebugTest.swift",
        "SimpleMessageTest.swift",
        "TransactionIntegrationTests.swift"
      ],
      "target_dependencies" : [
        "PulsarClient"
      ],
      "type" : "test"
    },
    {
      "c99name" : "PulsarClient",
      "module_type" : "SwiftTarget",
      "name" : "PulsarClient",
      "path" : "Sources/PulsarClient",
      "product_dependencies" : [
        "SwiftProtobuf",
        "NIO",
        "NIOCore",
        "NIOSSL",
        "Logging",
        "Crypto",
        "AsyncAlgorithms",
        "CyclicRedundancyCheck",
        "Metrics",
        "Tracing"
      ],
      "product_memberships" : [
        "PulsarClient"
      ],
      "sources" : [
        "Abstractions/Authentication.swift",
        "Abstractions/BuilderProtocols.swift",
        "Abstractions/ConsumerProtocol.swift",
        "Abstractions/GetLastMessageIds.swift",
        "Abstractions/HandleException.swift",
        "Abstractions/MessageBuilder.swift",
        "Abstractions/MessageInterceptor.swift",
        "Abstractions/MessageProtocol.swift",
        "Abstractions/MessageRouter.swift",
        "Abstractions/ProducerProtocol.swift",
        "Abstractions/PulsarClientProtocol.swift",
        "Abstractions/ReaderProtocol.swift",
        "Abstractions/Receivable.swift",
        "Abstractions/Schema.swift",
        "Abstractions/Seekable.swift",
        "Abstractions/SendChannel.swift",
        "Abstractions/StateProtocol+Waiting.swift",
        "Abstractions/StateProtocol.swift",
        "Abstractions/Transaction.swift",
        "AuthenticationFactory.swift",
        "Builders.swift",
        "Builders/ConsumerBuilder.swift",
        "Builders/ProducerBuilder.swift",
        "Builders/ReaderBuilder.swift",
        "Common/Types.swift",
        "ConsumerOptions.swift",
        "ConsumerState.swift",
        "CustomAuthentication.swift",
        "DeadLetterPolicy.swift",
        "EncryptionPolicy.swift",
        "Exceptions/PulsarClientError.swift",
        "Extensions/ByteBufferExtensions.swift",
        "Extensions/ConsumerExtensions.swift",
        "Extensions/MessageExtensions.swift",
        "Extensions/ProducerExtensions.swift",
        "Extensions/PulsarClientExtensions.swift",
        "Extensions/ReaderExtensions.swift",
        "FaultAction.swift",
        "Internal/ChannelManager+Handlers.swift",
        "Internal/ChannelManager.swift",
        "Internal/ChannelPipelineBuilder.swift",
        "Internal/ConnectedFrameHandler.swift",
        "Internal/Connection+Enhanced.swift",
        "Internal/Connection.swift",
        "Internal/ConnectionPool+Enhanced.swift",
        "Internal/ConnectionPool.swift",
        "Internal/ConsumerImpl.swift",
        "Internal/DeadLetterQueueHandler.swift",
        "Internal/FaultHandler.swift",
        "Internal/InterceptorChain.swift",
        "Internal/ProducerImpl.swift",
        "Internal/ReaderImpl.swift",
        "Internal/RetryPolicy.swift",
        "Internal/SendOperation.swift",
        "Internal/SendOperationWrapper.swift",
        "Internal/SendQueue.swift",
        "Internal/StateManager.swift",
        "Internal/TransactionCoordinator.swift",
        "Internal/TransactionImpl.swift",
        "Message.swift",
        "MessageId.swift",
        "MessageMetadata.swift",
        "MultiTopicProducer.swift",
        "OAuth2Authentication.swift",
        "ProducerAccessMode.swift",
        "ProducerOptions.swift",
        "ProducerState.swift",
        "PulsarApi.pb.swift",
        "PulsarClient.swift",
        "PulsarProtocol.swift",
        "ReaderOptions.swift",
        "ReaderState.swift",
        "RegexSubscriptionMode.swift",
        "Schemas/AutoSchemas.swift",
        "Schemas/BooleanSchema.swift",
        "Schemas/BytesSchema.swift",
        "Schemas/FloatingPointSchemas.swift",
        "Schemas/IntegerSchemas.swift",
        "Schemas/JSONSchema.swift",
        "Schemas/StringSchema.swift",
        "Schemas/TimeSchemas.swift",
        "State.swift",
        "TLSAuthentication.swift",
        "Telemetry/ConsumerMetricsInterceptor.swift",
        "Telemetry/ProducerMetricsInterceptor.swift",
        "Telemetry/PulsarMetrics.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.1"
}
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-metrics.git
Fetching https://github.com/apple/swift-async-algorithms.git
Fetching https://github.com/apple/swift-distributed-tracing.git
Fetching https://github.com/edgeengineer/cyclic-redundancy-check.git
Fetching https://github.com/apple/swift-crypto.git
Fetching https://github.com/apple/swift-log.git
[1/5736] Fetching swift-log
[2/11569] Fetching swift-log, swift-async-algorithms
[3/14074] Fetching swift-log, swift-async-algorithms, swift-metrics
[4/14161] Fetching swift-log, swift-async-algorithms, swift-metrics, cyclic-redundancy-check
[304/19727] Fetching swift-log, swift-async-algorithms, swift-metrics, cyclic-redundancy-check, swift-distributed-tracing
[15134/37192] Fetching swift-log, swift-async-algorithms, swift-metrics, cyclic-redundancy-check, swift-distributed-tracing, swift-crypto
Fetched https://github.com/apple/swift-metrics.git from cache (0.73s)
Fetched https://github.com/apple/swift-async-algorithms.git from cache (0.73s)
Fetching https://github.com/apple/swift-nio-ssl.git
Fetching https://github.com/apple/swift-nio.git
Fetched https://github.com/apple/swift-distributed-tracing.git from cache (0.74s)
Fetching https://github.com/apple/swift-protobuf.git
[7570/23288] Fetching swift-log, cyclic-redundancy-check, swift-crypto
[8095/38576] Fetching swift-log, cyclic-redundancy-check, swift-crypto, swift-nio-ssl
[10650/119257] Fetching swift-log, cyclic-redundancy-check, swift-crypto, swift-nio-ssl, swift-nio
[74836/160777] Fetching swift-log, cyclic-redundancy-check, swift-crypto, swift-nio-ssl, swift-nio, swift-protobuf
Fetched https://github.com/edgeengineer/cyclic-redundancy-check.git from cache (2.69s)
Fetched https://github.com/apple/swift-log.git from cache (2.69s)
[72334/154954] Fetching swift-crypto, swift-nio-ssl, swift-nio, swift-protobuf
Fetched https://github.com/apple/swift-crypto.git from cache (2.74s)
[55284/137489] Fetching swift-nio-ssl, swift-nio, swift-protobuf
Fetched https://github.com/apple/swift-nio-ssl.git from cache (6.73s)
Fetched https://github.com/apple/swift-nio.git from cache (6.85s)
Fetched https://github.com/apple/swift-protobuf.git from cache (8.13s)
Computing version for https://github.com/edgeengineer/cyclic-redundancy-check.git
Computed https://github.com/edgeengineer/cyclic-redundancy-check.git at 0.0.5 (9.47s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.7.1 (0.76s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 2.36.0 (1.20s)
Computing version for https://github.com/apple/swift-async-algorithms.git
Computed https://github.com/apple/swift-async-algorithms.git at 1.1.1 (1.37s)
Fetching https://github.com/apple/swift-collections.git
[1/18363] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (2.15s)
Computing version for https://github.com/apple/swift-distributed-tracing.git
Computed https://github.com/apple/swift-distributed-tracing.git at 1.3.1 (3.13s)
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.45s)
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.35s)
Computing version for https://github.com/apple/swift-protobuf.git
Computed https://github.com/apple/swift-protobuf.git at 1.33.3 (1.09s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.3.0 (1.46s)
Computing version for https://github.com/apple/swift-metrics.git
Computed https://github.com/apple/swift-metrics.git at 2.7.1 (1.11s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.91.0 (1.69s)
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/apple/swift-system.git
[1/1820] Fetching swift-atomics
[1585/7041] Fetching swift-atomics, swift-system
Fetched https://github.com/apple/swift-atomics.git from cache (0.91s)
Fetched https://github.com/apple/swift-system.git from cache (0.91s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (2.63s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.6.3 (1.07s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 3.15.1 (5.94s)
Fetching https://github.com/apple/swift-asn1.git
[1/1667] Fetching swift-asn1
Fetched https://github.com/apple/swift-asn1.git from cache (0.47s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.5.1 (4.43s)
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-async-algorithms.git
Working copy of https://github.com/apple/swift-async-algorithms.git resolved at 1.1.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.1
Creating working copy for https://github.com/apple/swift-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.5.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/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-distributed-tracing.git
Working copy of https://github.com/apple/swift-distributed-tracing.git resolved at 1.3.1
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 3.15.1
Creating working copy for https://github.com/apple/swift-protobuf.git
Working copy of https://github.com/apple/swift-protobuf.git resolved at 1.33.3
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-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.7.1
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/edgeengineer/cyclic-redundancy-check.git
Working copy of https://github.com/edgeengineer/cyclic-redundancy-check.git resolved at 0.0.5
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.91.0
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Sources/PulsarClient/Telemetry/README.md
[1/1] Compiling plugin SwiftProtobufPlugin
Building for debugging...
[1/807] Write sources
[7/807] Copying PrivacyInfo.xcprivacy
[7/807] Write sources
[26/807] Compiling CNIOWindows shim.c
[27/807] Compiling _CWASI _CWASI.c
[28/807] Compiling _AtomicsShims.c
[29/807] Compiling CNIOWASI CNIOWASI.c
[30/807] Compiling CNIOWindows WSAStartup.c
[31/807] Compiling CNIOLinux shim.c
[32/807] Compiling CNIOPosix event_loop_id.c
[33/807] Compiling CNIOLinux liburing_shims.c
[33/807] Compiling CNIOOpenBSD shim.c
[35/807] Compiling CNIODarwin shim.c
[36/807] Compiling fiat_p256_adx_mul.S
[37/807] Compiling fiat_p256_adx_sqr.S
[38/807] Compiling fiat_curve25519_adx_square.S
[39/807] Compiling fiat_curve25519_adx_mul.S
[40/807] Write swift-version-24593BA9C3E375BF.txt
[41/807] Compiling CNIOBoringSSLShims shims.c
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/811] 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/811] Compiling tls13_client.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/811] Compiling tls_method.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/811] Compiling tls_record.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/811] 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>
      |          ^~~~~~~~~~~
[42/811] Compiling tls13_both.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>
      |          ^~~~~~~~~~~
[42/811] Compiling t1_enc.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
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Sources/PulsarClient/Telemetry/README.md
[0/1] Planning build
[1/1] Compiling plugin SwiftProtobufPlugin
Building for debugging...
[1/767] Compiling CCryptoBoringSSLShims shims.c
[2/767] Write swift-version-24593BA9C3E375BF.txt
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.
[3/767] Compiling tls13_server.cc
[3/767] Compiling c-nioatomics.c
[3/767] Compiling tls_record.cc
[3/767] Compiling tls13_enc.cc
[3/767] Compiling tls13_both.cc
[3/767] Compiling c-atomics.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>
      |          ^~~~~~~~~~~
[3/767] Compiling tls_method.cc
[3/767] Compiling tls13_client.cc
BUILD FAILURE 6.1 wasm