The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-kafka-client, reference main (a83e84), with Swift 6.1 for Wasm on 28 Apr 2026 19:49:34 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/swift-server/swift-kafka-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/swift-server/swift-kafka-client
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at a83e841 Add commit-all stored offsets API (#230)
Submodule path 'Sources/Crdkafka/librdkafka': checked out 'b4c608570f796c18ff2211a7af876046d264d392'
Submodule 'Sources/Crdkafka/librdkafka' (https://github.com/confluentinc/librdkafka) registered for path 'Sources/Crdkafka/librdkafka'
Cloning into '/host/spi-builder-workspace/Sources/Crdkafka/librdkafka'...
Cloned https://github.com/swift-server/swift-kafka-client.git
Revision (git rev-parse @):
a83e84155425806c180a60b61a04b98c6cca4929
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/swift-server/swift-kafka-client.git at main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/swift-server/swift-kafka-client.git
https://github.com/swift-server/swift-kafka-client.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/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 swiftpackageindex/spi-images
Digest: sha256:276d66a16377d3ee059b2e3429cbc1154d9f01e42871e5d702fd5d8b9044d93d
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest
Fetching https://github.com/facebook/zstd.git
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/swift-server/swift-service-lifecycle.git
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/apple/swift-metrics
[1/2751] Fetching swift-service-lifecycle
[1735/5945] Fetching swift-service-lifecycle, swift-metrics
[5946/12671] Fetching swift-service-lifecycle, swift-metrics, swift-log
Fetched https://github.com/apple/swift-metrics from cache (0.41s)
[4298/9477] Fetching swift-service-lifecycle, swift-log
[4905/93544] Fetching swift-service-lifecycle, swift-log, zstd
[16204/176755] Fetching swift-service-lifecycle, swift-log, zstd, swift-nio
Fetched https://github.com/swift-server/swift-service-lifecycle.git from cache (7.26s)
Fetched https://github.com/apple/swift-log.git from cache (7.27s)
Fetched https://github.com/facebook/zstd.git from cache (7.41s)
Fetched https://github.com/apple/swift-nio.git from cache (7.72s)
Computing version for https://github.com/facebook/zstd.git
Computed https://github.com/facebook/zstd.git at 1.5.7 (11.98s)
Computing version for https://github.com/apple/swift-metrics
Computed https://github.com/apple/swift-metrics at 2.10.1 (1.04s)
Computing version for https://github.com/swift-server/swift-service-lifecycle.git
Computed https://github.com/swift-server/swift-service-lifecycle.git at 2.11.0 (0.83s)
Fetching https://github.com/apple/swift-async-algorithms.git
[1/6245] Fetching swift-async-algorithms
Fetched https://github.com/apple/swift-async-algorithms.git from cache (0.60s)
Computing version for https://github.com/apple/swift-async-algorithms.git
Computed https://github.com/apple/swift-async-algorithms.git at 1.1.3 (3.23s)
Fetching https://github.com/apple/swift-collections.git
[1/23800] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (2.13s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.4.1 (2.96s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.12.0 (0.52s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.99.0 (1.02s)
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-atomics.git
[1/1820] Fetching swift-atomics
[1821/7421] Fetching swift-atomics, swift-system
Fetched https://github.com/apple/swift-atomics.git from cache (0.42s)
Fetched https://github.com/apple/swift-system.git from cache (0.42s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (0.93s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.6.4 (0.56s)
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.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.99.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.12.0
Creating working copy for https://github.com/apple/swift-metrics
Working copy of https://github.com/apple/swift-metrics resolved at 2.10.1
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.4
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.4.1
Creating working copy for https://github.com/facebook/zstd.git
Working copy of https://github.com/facebook/zstd.git resolved at 1.5.7
Creating working copy for https://github.com/swift-server/swift-service-lifecycle.git
Working copy of https://github.com/swift-server/swift-service-lifecycle.git resolved at 2.11.0
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.3.0
warning: you may be able to install openssl using your system-packager:
    apt-get install libssl-dev
warning: you may be able to install openssl using your system-packager:
    apt-get install libssl-dev
warning: 'spi-builder-workspace': found 3 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Sources/Kafka/Configuration/KafkaConsumerConfig.swift.gyb
    /host/spi-builder-workspace/Sources/Kafka/Configuration/KafkaProducerConfig.swift.gyb
    /host/spi-builder-workspace/Sources/Kafka/Configuration/KafkaConfig.swift.gyb
Building for debugging...
[0/116] Compiling resource.pb.c
In file included from /host/spi-builder-workspace/Sources/Crdkafka/librdkafka/src/rdbase64.c:29:
In file included from /host/spi-builder-workspace/Sources/Crdkafka/librdkafka/src/rdbase64.h:33:
In file included from /host/spi-builder-workspace/Sources/Crdkafka/librdkafka/src/rd.h:57:
/host/spi-builder-workspace/Sources/Crdkafka/librdkafka/src/tinycthread.h:100:12: fatal error: 'pthread.h' file not found
  100 |   #include <pthread.h>
      |            ^~~~~~~~~~~
1 error generated.
In file included from /host/spi-builder-workspace/Sources/Crdkafka/librdkafka/src/rdcrc32.c:45:
In file included from /host/spi-builder-workspace/Sources/Crdkafka/librdkafka/src/rdcrc32.h:51:
In file included from /host/spi-builder-workspace/Sources/Crdkafka/librdkafka/src/rd.h:57:
/host/spi-builder-workspace/Sources/Crdkafka/librdkafka/src/tinycthread.h:100:12: fatal error: 'pthread.h' file not found
  100 |   #include <pthread.h>
      |            ^~~~~~~~~~~
1 error generated.
[1/116] Compiling rdcrc32.c
[1/116] Compiling rdbase64.c
In file included from /host/spi-builder-workspace/Sources/Crdkafka/librdkafka/src/rdaddr.c:31:
In file included from /host/spi-builder-workspace/Sources/Crdkafka/librdkafka/src/rd.h:57:
/host/spi-builder-workspace/Sources/Crdkafka/librdkafka/src/tinycthread.h:100:12: fatal error: 'pthread.h' file not found
  100 |   #include <pthread.h>
      |            ^~~~~~~~~~~
1 error generated.
[1/116] Compiling rdaddr.c
In file included from /host/spi-builder-workspace/Sources/Crdkafka/librdkafka/src/rdbuf.c:30:
In file included from /host/spi-builder-workspace/Sources/Crdkafka/librdkafka/src/rd.h:57:
/host/spi-builder-workspace/Sources/Crdkafka/librdkafka/src/tinycthread.h:100:12: fatal error: 'pthread.h' file not found
  100 |   #include <pthread.h>
      |            ^~~~~~~~~~~
[1/116] Compiling rdbuf.c
[1/116] Compiling pb_decode.c
In file included from /host/spi-builder-workspace/Sources/Crdkafka/librdkafka/src/rdavl.c:29:
In file included from /host/spi-builder-workspace/Sources/Crdkafka/librdkafka/src/rdkafka_int.h:47:
In file included from /host/spi-builder-workspace/Sources/Crdkafka/librdkafka/src/rd.h:57:
/host/spi-builder-workspace/Sources/Crdkafka/librdkafka/src/tinycthread.h:100:12: fatal error: 'pthread.h' file not found
  100 |   #include <pthread.h>
      |            ^~~~~~~~~~~
[1/116] Compiling rdavl.c
[1/116] Compiling pb_encode.c
[1/116] Write swift-version-24593BA9C3E375BF.txt
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:276d66a16377d3ee059b2e3429cbc1154d9f01e42871e5d702fd5d8b9044d93d
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.1-latest
warning: you may be able to install openssl using your system-packager:
    apt-get install libssl-dev
warning: you may be able to install openssl using your system-packager:
    apt-get install libssl-dev
warning: 'spi-builder-workspace': found 3 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Sources/Kafka/Configuration/KafkaConfig.swift.gyb
    /host/spi-builder-workspace/Sources/Kafka/Configuration/KafkaConsumerConfig.swift.gyb
    /host/spi-builder-workspace/Sources/Kafka/Configuration/KafkaProducerConfig.swift.gyb
[0/1] Planning build
Building for debugging...
[0/116] Write sources
[16/115] Compiling _AtomicsShims.c
In file included from /host/spi-builder-workspace/Sources/Crdkafka/librdkafka/src/tinycthread.c:25:
In file included from /host/spi-builder-workspace/Sources/Crdkafka/librdkafka/src/rd.h:57:
/host/spi-builder-workspace/Sources/Crdkafka/librdkafka/src/tinycthread.h:100:12: fatal error: 'pthread.h' file not found
  100 |   #include <pthread.h>
      |            ^~~~~~~~~~~
1 error generated.
[17/115] Compiling tinycthread.c
[17/115] Compiling rdxxhash.c
[17/115] Compiling rdunittest.c
In file included from /host/spi-builder-workspace/Sources/Crdkafka/librdkafka/src/tinycthread_extra.c:34:
In file included from /host/spi-builder-workspace/Sources/Crdkafka/librdkafka/src/rd.h:57:
/host/spi-builder-workspace/Sources/Crdkafka/librdkafka/src/tinycthread.h:100:12: fatal error: 'pthread.h' file not found
  100 |   #include <pthread.h>
      |            ^~~~~~~~~~~
[17/115] Compiling tinycthread_extra.c
In file included from /host/spi-builder-workspace/Sources/Crdkafka/librdkafka/src/snappy.c:61:
In file included from /host/spi-builder-workspace/Sources/Crdkafka/librdkafka/src/snappy_compat.h:31:
In file included from /host/spi-builder-workspace/Sources/Crdkafka/librdkafka/src/rdkafka_int.h:47:
In file included from /host/spi-builder-workspace/Sources/Crdkafka/librdkafka/src/rd.h:57:
/host/spi-builder-workspace/Sources/Crdkafka/librdkafka/src/tinycthread.h:100:12: fatal error: 'pthread.h' file not found
  100 |   #include <pthread.h>
      |            ^~~~~~~~~~~
[17/115] Compiling snappy.c
In file included from /host/spi-builder-workspace/Sources/Crdkafka/librdkafka/src/regexp.c:12:
In file included from /host/spi-builder-workspace/Sources/Crdkafka/librdkafka/src/rd.h:57:
/host/spi-builder-workspace/Sources/Crdkafka/librdkafka/src/tinycthread.h:100:12: fatal error: 'pthread.h' file not found
  100 |   #include <pthread.h>
      |            ^~~~~~~~~~~
[17/115] Compiling regexp.c
In file included from /host/spi-builder-workspace/Sources/Crdkafka/librdkafka/src/rdvarint.c:30:
In file included from /host/spi-builder-workspace/Sources/Crdkafka/librdkafka/src/rdvarint.h:33:
In file included from /host/spi-builder-workspace/Sources/Crdkafka/librdkafka/src/rd.h:57:
/host/spi-builder-workspace/Sources/Crdkafka/librdkafka/src/tinycthread.h:100:12: fatal error: 'pthread.h' file not found
  100 |   #include <pthread.h>
      |            ^~~~~~~~~~~
[17/115] Compiling rdvarint.c
[17/115] Write swift-version-24593BA9C3E375BF.txt
BUILD FAILURE 6.1 wasm