The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-kafka-client, reference main (a83e84), with Swift 6.1 for macOS (SPM) on 28 Apr 2026 19:48:38 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64

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 /Users/admin/builder/spi-builder-workspace/.git/
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 '/Users/admin/builder/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:         macosSpm
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
{
  "dependencies" : [
    {
      "identity" : "swift-nio",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.55.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-nio.git"
    },
    {
      "identity" : "swift-service-lifecycle",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.1.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/swift-server/swift-service-lifecycle.git"
    },
    {
      "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" : "2.4.1",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-metrics"
    },
    {
      "identity" : "zstd",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.5.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/facebook/zstd.git"
    }
  ],
  "manifest_display_name" : "swift-kafka-client",
  "name" : "swift-kafka-client",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "13.0"
    },
    {
      "name" : "ios",
      "version" : "16.0"
    },
    {
      "name" : "watchos",
      "version" : "9.0"
    },
    {
      "name" : "tvos",
      "version" : "16.0"
    }
  ],
  "products" : [
    {
      "name" : "Kafka",
      "targets" : [
        "Kafka"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "KafkaFoundationCompat",
      "targets" : [
        "KafkaFoundationCompat"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "KafkaTests",
      "module_type" : "SwiftTarget",
      "name" : "KafkaTests",
      "path" : "Tests/KafkaTests",
      "product_dependencies" : [
        "MetricsTestKit"
      ],
      "sources" : [
        "KafkaConfigTests.swift",
        "KafkaConsumerTests.swift",
        "KafkaMetricsTests.swift",
        "KafkaProducerTests.swift",
        "MockCluster.swift",
        "Utilities.swift"
      ],
      "target_dependencies" : [
        "Kafka"
      ],
      "type" : "test"
    },
    {
      "c99name" : "KafkaFoundationCompat",
      "module_type" : "SwiftTarget",
      "name" : "KafkaFoundationCompat",
      "path" : "Sources/KafkaFoundationCompat",
      "product_memberships" : [
        "KafkaFoundationCompat"
      ],
      "sources" : [
        "Data+KafkaContiguousBytes.swift"
      ],
      "target_dependencies" : [
        "Kafka"
      ],
      "type" : "library"
    },
    {
      "c99name" : "Kafka",
      "module_type" : "SwiftTarget",
      "name" : "Kafka",
      "path" : "Sources/Kafka",
      "product_dependencies" : [
        "NIOCore",
        "ServiceLifecycle",
        "Logging",
        "Metrics"
      ],
      "product_memberships" : [
        "Kafka",
        "KafkaFoundationCompat"
      ],
      "sources" : [
        "Configuration/KafkaConfig.swift",
        "Configuration/KafkaConfiguration+Metrics.swift",
        "Configuration/KafkaConfiguration+Security.swift",
        "Configuration/KafkaConfiguration.swift",
        "Configuration/KafkaConsumerConfig.swift",
        "Configuration/KafkaConsumerConfiguration.swift",
        "Configuration/KafkaProducerConfig.swift",
        "Configuration/KafkaProducerConfiguration.swift",
        "Configuration/KafkaTopicConfiguration.swift",
        "Data/Array+KafkaContiguousBytes.swift",
        "Data/ByteBuffer+KafkaContiguousBytes.swift",
        "Data/KafkaContiguousBytes.swift",
        "Data/Never+KafkaContiguousBytes.swift",
        "Data/String+KafkaContiguousBytes.swift",
        "ForTesting/RDKafkaClient+Topic.swift",
        "ForTesting/TestMessages.swift",
        "KafkaAcknowledgedMessage.swift",
        "KafkaConsumer.swift",
        "KafkaConsumerEvent.swift",
        "KafkaConsumerMessage.swift",
        "KafkaConsumerRebalance.swift",
        "KafkaDeliveryReport.swift",
        "KafkaError.swift",
        "KafkaHeader.swift",
        "KafkaOffset.swift",
        "KafkaPartition.swift",
        "KafkaProducer.swift",
        "KafkaProducerEvent.swift",
        "KafkaProducerMessage.swift",
        "KafkaProducerMessageID.swift",
        "KafkaTopicPartition.swift",
        "KafkaTopicPartitionOffset.swift",
        "RDKafka/RDKafkaClient.swift",
        "RDKafka/RDKafkaConfig.swift",
        "RDKafka/RDKafkaEvent.swift",
        "RDKafka/RDKafkaStatistics.swift",
        "RDKafka/RDKafkaTopicConfig.swift",
        "RDKafka/RDKafkaTopicHandles.swift",
        "RDKafka/RDKafkaTopicPartitionList.swift",
        "RDKafka/RebalanceContext.swift",
        "Utilities/DispatchQueueTaskExecutor.swift",
        "Utilities/Duration+Helpers.swift",
        "Utilities/NIOAsyncSequenceBackPressureStrategies+NoBackPressure.swift",
        "Utilities/SendableOpaquePointer.swift"
      ],
      "target_dependencies" : [
        "Crdkafka"
      ],
      "type" : "library"
    },
    {
      "c99name" : "IntegrationTests",
      "module_type" : "SwiftTarget",
      "name" : "IntegrationTests",
      "path" : "Tests/IntegrationTests",
      "sources" : [
        "KafkaTests.swift",
        "Utilities.swift"
      ],
      "target_dependencies" : [
        "Kafka"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Crdkafka",
      "module_type" : "ClangTarget",
      "name" : "Crdkafka",
      "path" : "Sources/Crdkafka",
      "product_dependencies" : [
        "libzstd"
      ],
      "product_memberships" : [
        "Kafka",
        "KafkaFoundationCompat"
      ],
      "sources" : [
        "librdkafka/src/cJSON.c",
        "librdkafka/src/crc32c.c",
        "librdkafka/src/lz4.c",
        "librdkafka/src/lz4frame.c",
        "librdkafka/src/lz4hc.c",
        "librdkafka/src/nanopb/pb_common.c",
        "librdkafka/src/nanopb/pb_decode.c",
        "librdkafka/src/nanopb/pb_encode.c",
        "librdkafka/src/opentelemetry/common.pb.c",
        "librdkafka/src/opentelemetry/metrics.pb.c",
        "librdkafka/src/opentelemetry/resource.pb.c",
        "librdkafka/src/rdaddr.c",
        "librdkafka/src/rdavl.c",
        "librdkafka/src/rdbase64.c",
        "librdkafka/src/rdbuf.c",
        "librdkafka/src/rdcrc32.c",
        "librdkafka/src/rddl.c",
        "librdkafka/src/rdfnv1a.c",
        "librdkafka/src/rdgz.c",
        "librdkafka/src/rdhdrhistogram.c",
        "librdkafka/src/rdkafka.c",
        "librdkafka/src/rdkafka_admin.c",
        "librdkafka/src/rdkafka_assignment.c",
        "librdkafka/src/rdkafka_assignor.c",
        "librdkafka/src/rdkafka_aux.c",
        "librdkafka/src/rdkafka_background.c",
        "librdkafka/src/rdkafka_broker.c",
        "librdkafka/src/rdkafka_buf.c",
        "librdkafka/src/rdkafka_cert.c",
        "librdkafka/src/rdkafka_cgrp.c",
        "librdkafka/src/rdkafka_conf.c",
        "librdkafka/src/rdkafka_coord.c",
        "librdkafka/src/rdkafka_error.c",
        "librdkafka/src/rdkafka_event.c",
        "librdkafka/src/rdkafka_feature.c",
        "librdkafka/src/rdkafka_fetcher.c",
        "librdkafka/src/rdkafka_header.c",
        "librdkafka/src/rdkafka_idempotence.c",
        "librdkafka/src/rdkafka_interceptor.c",
        "librdkafka/src/rdkafka_lz4.c",
        "librdkafka/src/rdkafka_metadata.c",
        "librdkafka/src/rdkafka_metadata_cache.c",
        "librdkafka/src/rdkafka_mock.c",
        "librdkafka/src/rdkafka_mock_cgrp.c",
        "librdkafka/src/rdkafka_mock_handlers.c",
        "librdkafka/src/rdkafka_msg.c",
        "librdkafka/src/rdkafka_msgset_reader.c",
        "librdkafka/src/rdkafka_msgset_writer.c",
        "librdkafka/src/rdkafka_offset.c",
        "librdkafka/src/rdkafka_op.c",
        "librdkafka/src/rdkafka_partition.c",
        "librdkafka/src/rdkafka_pattern.c",
        "librdkafka/src/rdkafka_plugin.c",
        "librdkafka/src/rdkafka_queue.c",
        "librdkafka/src/rdkafka_range_assignor.c",
        "librdkafka/src/rdkafka_request.c",
        "librdkafka/src/rdkafka_roundrobin_assignor.c",
        "librdkafka/src/rdkafka_sasl.c",
        "librdkafka/src/rdkafka_sasl_cyrus.c",
        "librdkafka/src/rdkafka_sasl_plain.c",
        "librdkafka/src/rdkafka_sasl_scram.c",
        "librdkafka/src/rdkafka_ssl.c",
        "librdkafka/src/rdkafka_sticky_assignor.c",
        "librdkafka/src/rdkafka_subscription.c",
        "librdkafka/src/rdkafka_telemetry.c",
        "librdkafka/src/rdkafka_telemetry_decode.c",
        "librdkafka/src/rdkafka_telemetry_encode.c",
        "librdkafka/src/rdkafka_timer.c",
        "librdkafka/src/rdkafka_topic.c",
        "librdkafka/src/rdkafka_transport.c",
        "librdkafka/src/rdkafka_txnmgr.c",
        "librdkafka/src/rdkafka_zstd.c",
        "librdkafka/src/rdlist.c",
        "librdkafka/src/rdlog.c",
        "librdkafka/src/rdmap.c",
        "librdkafka/src/rdmurmur2.c",
        "librdkafka/src/rdports.c",
        "librdkafka/src/rdrand.c",
        "librdkafka/src/rdregex.c",
        "librdkafka/src/rdstring.c",
        "librdkafka/src/rdunittest.c",
        "librdkafka/src/rdvarint.c",
        "librdkafka/src/rdxxhash.c",
        "librdkafka/src/regexp.c",
        "librdkafka/src/snappy.c",
        "librdkafka/src/tinycthread.c",
        "librdkafka/src/tinycthread_extra.c"
      ],
      "target_dependencies" : [
        "COpenSSL"
      ],
      "type" : "library"
    },
    {
      "c99name" : "COpenSSL",
      "module_type" : "SystemLibraryTarget",
      "name" : "COpenSSL",
      "path" : "Sources/COpenSSL",
      "product_memberships" : [
        "Kafka",
        "KafkaFoundationCompat"
      ],
      "sources" : [
      ],
      "type" : "system-target"
    }
  ],
  "tools_version" : "6.0"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats
Building for debugging...
[0/116] Compiling rdlist.c
[1/116] Compiling rdregex.c
[2/116] Write sources
In file included from /Users/admin/builder/spi-builder-workspace/Sources/Crdkafka/librdkafka/src/rdkafka_zstd.c:29:
/Users/admin/builder/spi-builder-workspace/Sources/Crdkafka/librdkafka/src/rdkafka_int.h:56:10: fatal error: 'openssl/ssl.h' file not found
   56 | #include <openssl/ssl.h>
      |          ^~~~~~~~~~~~~~~
1 error generated.
[4/116] Compiling rdkafka_zstd.c
[4/116] Compiling _AtomicsShims.c
[4/116] Compiling rdlog.c
[4/116] Compiling rdkafka_transport.c
[4/116] Compiling rdmap.c
[4/116] Compiling rdkafka_txnmgr.c
[4/116] Compiling rdports.c
[4/116] Compiling rdrand.c
[4/116] Compiling rdmurmur2.c
[4/116] Write swift-version-2F0A5646E1D333AE.txt
Fetching https://github.com/facebook/zstd.git
Fetching https://github.com/swift-server/swift-service-lifecycle.git
Fetching https://github.com/apple/swift-nio.git from cache
Fetching https://github.com/apple/swift-metrics from cache
Fetching https://github.com/apple/swift-log.git from cache
[1/2751] Fetching swift-service-lifecycle
[2752/86818] Fetching swift-service-lifecycle, zstd
Fetched https://github.com/swift-server/swift-service-lifecycle.git from cache (3.91s)
Fetched https://github.com/facebook/zstd.git from cache (3.91s)
Fetched https://github.com/apple/swift-metrics from cache (3.94s)
Fetched https://github.com/apple/swift-log.git from cache (3.96s)
Fetched https://github.com/apple/swift-nio.git from cache (4.03s)
Computing version for https://github.com/facebook/zstd.git
Computed https://github.com/facebook/zstd.git at 1.5.7 (7.13s)
Computing version for https://github.com/apple/swift-metrics
Computed https://github.com/apple/swift-metrics at 2.10.1 (0.49s)
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.50s)
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 (1.34s)
Computing version for https://github.com/apple/swift-async-algorithms.git
Computed https://github.com/apple/swift-async-algorithms.git at 1.1.3 (1.89s)
Fetching https://github.com/apple/swift-collections.git from cache
Fetched https://github.com/apple/swift-collections.git from cache (1.65s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.4.1 (2.29s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.12.0 (0.50s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.99.0 (0.67s)
Fetching https://github.com/apple/swift-atomics.git from cache
Fetching https://github.com/apple/swift-system.git from cache
Fetched https://github.com/apple/swift-atomics.git from cache (0.68s)
Fetched https://github.com/apple/swift-system.git from cache (1.04s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (1.55s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.6.4 (0.51s)
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/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/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-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-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.3.0
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/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-async-algorithms.git
Working copy of https://github.com/apple/swift-async-algorithms.git resolved at 1.1.3
warning: failed to retrieve search paths with pkg-config; maybe pkg-config is not installed
warning: you may be able to install openssl using your system-packager:
    brew install openssl@3
warning: you may be able to install openssl using your system-packager:
    brew install openssl@3
warning: 'spi-builder-workspace': found 3 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /Users/admin/builder/spi-builder-workspace/Sources/Kafka/Configuration/KafkaConsumerConfig.swift.gyb
    /Users/admin/builder/spi-builder-workspace/Sources/Kafka/Configuration/KafkaProducerConfig.swift.gyb
    /Users/admin/builder/spi-builder-workspace/Sources/Kafka/Configuration/KafkaConfig.swift.gyb
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/113] Write sources
[12/112] Compiling rdvarint.c
[13/112] Compiling tinycthread.c
[14/112] Compiling tinycthread_extra.c
[15/112] Compiling rdstring.c
[16/112] Compiling regexp.c
[17/112] Compiling rdxxhash.c
In file included from /Users/admin/builder/spi-builder-workspace/Sources/Crdkafka/librdkafka/src/snappy.c:61:
In file included from /Users/admin/builder/spi-builder-workspace/Sources/Crdkafka/librdkafka/src/snappy_compat.h:31:
/Users/admin/builder/spi-builder-workspace/Sources/Crdkafka/librdkafka/src/rdkafka_int.h:56:10: fatal error: 'openssl/ssl.h' file not found
   56 | #include <openssl/ssl.h>
      |          ^~~~~~~~~~~~~~~
1 error generated.
[18/112] Compiling snappy.c
[18/112] Compiling rdkafka_zstd.c
[18/112] Compiling rdlog.c
[18/112] Compiling rdmap.c
[18/112] Compiling rdports.c
[18/112] Compiling rdmurmur2.c
In file included from /Users/admin/builder/spi-builder-workspace/Sources/Crdkafka/librdkafka/src/rdunittest.c:45:
/Users/admin/builder/spi-builder-workspace/Sources/Crdkafka/librdkafka/src/rdkafka_int.h:56:10: fatal error: 'openssl/ssl.h' file not found
   56 | #include <openssl/ssl.h>
      |          ^~~~~~~~~~~~~~~
[18/112] Compiling rdunittest.c
[18/112] Compiling rdrand.c
[18/112] Compiling _AtomicsShims.c
[18/112] Write swift-version-2F0A5646E1D333AE.txt
warning: failed to retrieve search paths with pkg-config; maybe pkg-config is not installed
warning: you may be able to install openssl using your system-packager:
    brew install openssl@3
warning: you may be able to install openssl using your system-packager:
    brew install openssl@3
warning: 'spi-builder-workspace': found 3 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /Users/admin/builder/spi-builder-workspace/Sources/Kafka/Configuration/KafkaProducerConfig.swift.gyb
    /Users/admin/builder/spi-builder-workspace/Sources/Kafka/Configuration/KafkaConfig.swift.gyb
    /Users/admin/builder/spi-builder-workspace/Sources/Kafka/Configuration/KafkaConsumerConfig.swift.gyb
BUILD FAILURE 6.1 macosSpm