Build Information
Failed to build Franz, reference 1.0.2 (c859f1), with Swift 6.2 for Linux on 17 Jun 2025 13:59:53 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/kellanburket/franz.git
Reference: 1.0.2
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/kellanburket/franz
* tag 1.0.2 -> FETCH_HEAD
HEAD is now at c859f1a Update podspec
Cloned https://github.com/kellanburket/franz.git
Revision (git rev-parse @):
c859f1a584ea949000b82d85b301b6bc25fad90e
SUCCESS checkout https://github.com/kellanburket/franz.git at 1.0.2
========================================
Build
========================================
Selected platform: linux
Swift version: 6.2
Building package at path: $PWD
https://github.com/kellanburket/franz.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:f81a7bd7aa87a0f81848d48c5bcc03f5f78deebd37fa5f9be9913077205d3687
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.2-latest
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/25] Emitting module Franz
/host/spi-builder-workspace/Sources/Franz/Connection.swift:101:39: error: cannot find type 'CFReadStream' in scope
99 | private var clientId: String
100 |
101 | private var readStream: Unmanaged<CFReadStream>?
| `- error: cannot find type 'CFReadStream' in scope
102 | private var writeStream: Unmanaged<CFWriteStream>?
103 |
/host/spi-builder-workspace/Sources/Franz/Connection.swift:102:40: error: cannot find type 'CFWriteStream' in scope
100 |
101 | private var readStream: Unmanaged<CFReadStream>?
102 | private var writeStream: Unmanaged<CFWriteStream>?
| `- error: cannot find type 'CFWriteStream' in scope
103 |
104 | private var inputStream: InputStream?
/host/spi-builder-workspace/Sources/Franz/Consumer.swift:42:3: error: Objective-C interoperability is disabled
40 |
41 | var offsetsToCommit = [TopicName: [PartitionId: (Offset, OffsetMetadata?)]]()
42 | @objc private func commitGroupoffsets() {
| `- error: Objective-C interoperability is disabled
43 | guard let groupId = self.membership?.group.id, let broker = self.broker else { return }
44 | broker.commitGroupOffset(groupId: groupId, topics: offsetsToCommit, clientId: cluster.clientId)
/host/spi-builder-workspace/Sources/Franz/Consumer.swift:47:3: error: Objective-C interoperability is disabled
45 | }
46 |
47 | @objc private func sendHeartbeat() {
| `- error: Objective-C interoperability is disabled
48 | guard let groupId = self.membership?.group.id,
49 | let generationId = self.membership?.group.generationId,
/host/spi-builder-workspace/Sources/Franz/Crypt/CRC32.swift:145:9: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'CRC32' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
143 | private(set) var crc: UInt32 = 0
144 |
145 | var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'CRC32' to 'Hashable' by implementing 'hash(into:)' instead [#DeprecatedDeclaration]
146 | return Int(crc)
147 | }
/host/spi-builder-workspace/Sources/Franz/Group.swift:72:2: warning: 'internal(set)' modifier is redundant for an internal property
70 |
71 | var topics = Set<TopicName>()
72 | internal(set) var assignedPartitions = [TopicName: [PartitionId]]()
| `- warning: 'internal(set)' modifier is redundant for an internal property
73 | }
74 |
/host/spi-builder-workspace/Sources/Franz/GroupMembershipAPI.swift:411:24: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
361 | typealias MemberId = String
362 |
363 | class SyncGroupRequestMessage<T: KafkaMetadata>: KafkaType {
| `- note: 'T' previously declared here
364 |
365 | private var _groupId: String
:
409 |
410 |
411 | class GroupAssignment<T: KafkaMetadata>: KafkaType {
| `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
412 |
413 | let memberId: String
/host/spi-builder-workspace/Sources/Franz/OldConsumers.swift:13:2: error: Objective-C interoperability is disabled
11 | Base consumer delegate. Used by SimpleConsumer.
12 | */
13 | @objc public protocol ConsumerDelegate {
| `- error: Objective-C interoperability is disabled
14 | /**
15 | Called when the consumer has consumed a new Message
/host/spi-builder-workspace/Sources/Franz/OldConsumers.swift:31:3: error: Objective-C interoperability is disabled
29 | - Parameter errorDescription: a description of the error returned from the server
30 | */
31 | @objc optional func fetchDidFail(
| `- error: Objective-C interoperability is disabled
32 | _ topic: String,
33 | partition: Int32,
/host/spi-builder-workspace/Sources/Franz/OldConsumers.swift:49:3: error: Objective-C interoperability is disabled
47 | - Returns: true if broker should attempt to retry request, false if not
48 | */
49 | @objc optional func shouldRetryFailedFetch(
| `- error: Objective-C interoperability is disabled
50 | _ topic: String,
51 | partition: Int32,
/host/spi-builder-workspace/Sources/Franz/OldConsumers.swift:69:3: error: Objective-C interoperability is disabled
67 | - Parameter partition: the partition
68 | */
69 | @objc optional func topicPartitionLeaderNotFound(_ topic: String, partition: Int32)
| `- error: Objective-C interoperability is disabled
70 | }
71 |
/host/spi-builder-workspace/Sources/Franz/OldConsumers.swift:76:2: error: Objective-C interoperability is disabled
74 | High-level consumer delegate. Used by HighLevelConsumer.
75 | */
76 | @objc public protocol HighLevelConsumerDelegate: ConsumerDelegate {
| `- error: Objective-C interoperability is disabled
77 | /**
78 | Called after messages have been pulled for server.
/host/spi-builder-workspace/Sources/Franz/OldConsumers.swift:86:3: error: Objective-C interoperability is disabled
84 | - Returns: true if offset should be committed, false if otherwise
85 | */
86 | @objc optional func shouldCommitOffset(_ topic: String, partition: Int32, offset: Int64) -> Bool
| `- error: Objective-C interoperability is disabled
87 |
88 | /**
/host/spi-builder-workspace/Sources/Franz/OldConsumers.swift:97:3: error: Objective-C interoperability is disabled
95 | - Returns: additional metadata to send with offset commit to server
96 | */
97 | @objc optional func shouldAttachOffsetMetadata(_ topic: String, partition: Int32, offset: Int64) -> String?
| `- error: Objective-C interoperability is disabled
98 |
99 | /**
/host/spi-builder-workspace/Sources/Franz/OldConsumers.swift:106:3: error: Objective-C interoperability is disabled
104 | - Parameter offset: the offset
105 | */
106 | @objc optional func offsetDidCommit(_ topic: String, partition: Int32, offset: Int64)
| `- error: Objective-C interoperability is disabled
107 |
108 | /**
/host/spi-builder-workspace/Sources/Franz/OldConsumers.swift:117:3: error: Objective-C interoperability is disabled
115 | - Parameter errorDescription: description of the error
116 | */
117 | @objc optional func offsetCommitDidFail(_ topic: String, partition: Int32, offset: Int64, errorId: Int16, errorDescription: String)
| `- error: Objective-C interoperability is disabled
118 |
119 | /**
/host/spi-builder-workspace/Sources/Franz/OldConsumers.swift:130:3: error: Objective-C interoperability is disabled
128 | - Returns: true if offset commit should be retried, false if otherwise
129 | */
130 | @objc optional func shouldRetryFailedOffsetCommit(_ topic: String, partition: Int32, offset: Int64, errorId: Int16, errorDescription: String) -> Bool
| `- error: Objective-C interoperability is disabled
131 | }
132 |
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
error: compile command failed due to signal 6 (use -v to see invocation)
/host/spi-builder-workspace/Sources/Franz/Cluster.swift:417:70: warning: converting non-Sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
415 |
416 | if dispatchBlocks.count > 0 {
417 | self.dispatchQueue.async(execute: dispatchBlocks.removeFirst())
| `- warning: converting non-Sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
418 | }
419 |
/host/spi-builder-workspace/Sources/Franz/Cluster.swift:425:57: warning: converting non-Sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
423 |
424 | if dispatchBlocks.count > 0 {
425 | dispatchQueue.async(execute: dispatchBlocks.removeFirst())
| `- warning: converting non-Sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
426 | }
427 | }
/host/spi-builder-workspace/Sources/Franz/Connection.swift:101:39: error: cannot find type 'CFReadStream' in scope
99 | private var clientId: String
100 |
101 | private var readStream: Unmanaged<CFReadStream>?
| `- error: cannot find type 'CFReadStream' in scope
102 | private var writeStream: Unmanaged<CFWriteStream>?
103 |
SIL verification failed: result of witness_method must have correct representation for protocol: methodType->getRepresentation() == F.getModule().Types.getProtocolWitnessRepresentation(protocol)
Verifying instruction:
%13 = open_existential_ref %12 : $any ConsumerDelegate to $@opened("51342F08-4B83-11F0-9B48-0242AC110006", any ConsumerDelegate) Self // users: %17, %16, %16, %15
-> %15 = witness_method $@opened("51342F08-4B83-11F0-9B48-0242AC110006", any ConsumerDelegate) Self, #ConsumerDelegate.consumerIsReady : <Self where Self : ConsumerDelegate> (Self) -> (OldConsumer) -> (), %13 : $@opened("51342F08-4B83-11F0-9B48-0242AC110006", any ConsumerDelegate) Self : $@convention(method) <τ_0_0 where τ_0_0 : ConsumerDelegate> (@guaranteed OldConsumer, @guaranteed τ_0_0) -> () // type-defs: %13; user: %16
%16 = apply %15<@opened("51342F08-4B83-11F0-9B48-0242AC110006", any ConsumerDelegate) Self>(%14, %13) : $@convention(method) <τ_0_0 where τ_0_0 : ConsumerDelegate> (@guaranteed OldConsumer, @guaranteed τ_0_0) -> () // type-defs: %13
In function:
// closure #1 in Cluster.getSimpleConsumer(_:partition:delegate:)
// Isolation: nonisolated
sil private [ossa] @$s5Franz7ClusterC17getSimpleConsumer_9partition8delegateAA0dE0CSS_s5Int32VAA0E8Delegate_ptFyAA6BrokerCcfU_ : $@convention(thin) (@guaranteed Broker, @guaranteed SimpleConsumer) -> () {
// %0 "leader" // users: %6, %2
// %1 "consumer" // users: %14, %12, %11, %4, %3
bb0(%0 : @guaranteed $Broker, %1 : @closureCapture @guaranteed $SimpleConsumer):
debug_value %0, let, name "leader", argno 1 // id: %2
debug_value %1, let, name "consumer", argno 2 // id: %3
%4 = copy_value %1 // user: %5
%5 = upcast %4 to $OldConsumer // users: %10, %9, %8
%6 = copy_value %0 // user: %7
%7 = enum $Optional<Broker>, #Optional.some!enumelt, %6 // user: %9
%8 = class_method %5, #OldConsumer.broker!setter : (OldConsumer) -> (Broker?) -> (), $@convention(method) (@owned Optional<Broker>, @guaranteed OldConsumer) -> () // user: %9
%9 = apply %8(%7, %5) : $@convention(method) (@owned Optional<Broker>, @guaranteed OldConsumer) -> ()
destroy_value %5 // id: %10
%11 = class_method %1, #SimpleConsumer.delegate!getter : (SimpleConsumer) -> () -> any ConsumerDelegate, $@convention(method) (@guaranteed SimpleConsumer) -> @owned any ConsumerDelegate // user: %12
%12 = apply %11(%1) : $@convention(method) (@guaranteed SimpleConsumer) -> @owned any ConsumerDelegate // user: %13
%13 = open_existential_ref %12 to $@opened("51342F08-4B83-11F0-9B48-0242AC110006", any ConsumerDelegate) Self // users: %17, %16, %16, %15
%14 = upcast %1 to $OldConsumer // user: %16
%15 = witness_method $@opened("51342F08-4B83-11F0-9B48-0242AC110006", any ConsumerDelegate) Self, #ConsumerDelegate.consumerIsReady : <Self where Self : ConsumerDelegate> (Self) -> (OldConsumer) -> (), %13 : $@opened("51342F08-4B83-11F0-9B48-0242AC110006", any ConsumerDelegate) Self : $@convention(method) <τ_0_0 where τ_0_0 : ConsumerDelegate> (@guaranteed OldConsumer, @guaranteed τ_0_0) -> () // type-defs: %13; user: %16
%16 = apply %15<@opened("51342F08-4B83-11F0-9B48-0242AC110006", any ConsumerDelegate) Self>(%14, %13) : $@convention(method) <τ_0_0 where τ_0_0 : ConsumerDelegate> (@guaranteed OldConsumer, @guaranteed τ_0_0) -> () // type-defs: %13
destroy_value %13 // id: %17
%18 = tuple () // user: %19
return %18 // id: %19
} // end sil function '$s5Franz7ClusterC17getSimpleConsumer_9partition8delegateAA0dE0CSS_s5Int32VAA0E8Delegate_ptFyAA6BrokerCcfU_'
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace.
Stack dump:
0. Program arguments: /usr/bin/swift-frontend -frontend -c -primary-file /host/spi-builder-workspace/Sources/Franz/AdminAPI.swift -primary-file /host/spi-builder-workspace/Sources/Franz/Assignment.swift -primary-file /host/spi-builder-workspace/Sources/Franz/Broker.swift -primary-file /host/spi-builder-workspace/Sources/Franz/Cluster.swift /host/spi-builder-workspace/Sources/Franz/Connection.swift /host/spi-builder-workspace/Sources/Franz/Consumer.swift /host/spi-builder-workspace/Sources/Franz/Crypt/CRC32.swift /host/spi-builder-workspace/Sources/Franz/Enumerations.swift /host/spi-builder-workspace/Sources/Franz/FetchAPI.swift /host/spi-builder-workspace/Sources/Franz/Group.swift /host/spi-builder-workspace/Sources/Franz/GroupCoordinatorAPI.swift /host/spi-builder-workspace/Sources/Franz/GroupMembershipAPI.swift /host/spi-builder-workspace/Sources/Franz/KafkaProtocol.swift /host/spi-builder-workspace/Sources/Franz/KafkaRequest.swift /host/spi-builder-workspace/Sources/Franz/KafkaResponse.swift /host/spi-builder-workspace/Sources/Franz/MessageSet.swift /host/spi-builder-workspace/Sources/Franz/MetadataAPI.swift /host/spi-builder-workspace/Sources/Franz/OffsetAPI.swift /host/spi-builder-workspace/Sources/Franz/OffsetCommitAPI.swift /host/spi-builder-workspace/Sources/Franz/OffsetFetchAPI.swift /host/spi-builder-workspace/Sources/Franz/OldConsumers.swift /host/spi-builder-workspace/Sources/Franz/Partition.swift /host/spi-builder-workspace/Sources/Franz/ProduceAPI.swift /host/spi-builder-workspace/Sources/Franz/Topic.swift /host/spi-builder-workspace/Sources/Franz/Variables.swift -supplementary-output-file-map /tmp/TemporaryDirectory.T1k4cq/supplementaryOutputs-1 -target x86_64-unknown-linux-gnu -disable-objc-interop -I /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/Modules -no-color-diagnostics -Xcc -fno-color-diagnostics -enable-testing -g -debug-info-format=dwarf -dwarf-version=4 -module-cache-path /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/ModuleCache -swift-version 4 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -empty-abi-descriptor -enable-anonymous-context-mangled-names -file-compilation-dir /host/spi-builder-workspace -Xcc -g -Xcc -fno-omit-frame-pointer -no-auto-bridging-header-chaining -module-name Franz -in-process-plugin-server-path /usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -parse-as-library -o /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/Franz.build/AdminAPI.swift.o -o /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/Franz.build/Assignment.swift.o -o /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/Franz.build/Broker.swift.o -o /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/Franz.build/Cluster.swift.o -index-store-path /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/index/store -index-system-modules
1. Swift version 6.2-dev (LLVM 0d47fa0a0fd41fb, Swift 536aa932a9e0ea3)
2. Compiling with effective version 4.1.50
3. While evaluating request ASTLoweringRequest(Lowering AST to SIL for file "/host/spi-builder-workspace/Sources/Franz/Cluster.swift")
4. While silgen emitFunction SIL function "@$s5Franz7ClusterC17getSimpleConsumer_9partition8delegateAA0dE0CSS_s5Int32VAA0E8Delegate_ptF".
for 'getSimpleConsumer(_:partition:delegate:)' (at /host/spi-builder-workspace/Sources/Franz/Cluster.swift:249:12)
5. While silgen closureexpr SIL function "@$s5Franz7ClusterC17getSimpleConsumer_9partition8delegateAA0dE0CSS_s5Int32VAA0E8Delegate_ptFyAA6BrokerCcfU_".
for expression at [/host/spi-builder-workspace/Sources/Franz/Cluster.swift:261:54 - line:265:9] RangeText="{ leader in
consumer.broker = leader
consumer.delegate.consumerIsReady(consumer)
"
6. While verifying SIL function "@$s5Franz7ClusterC17getSimpleConsumer_9partition8delegateAA0dE0CSS_s5Int32VAA0E8Delegate_ptFyAA6BrokerCcfU_".
for expression at [/host/spi-builder-workspace/Sources/Franz/Cluster.swift:261:54 - line:265:9] RangeText="{ leader in
consumer.broker = leader
consumer.delegate.consumerIsReady(consumer)
"
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0 swift-frontend 0x000056175f17b918
1 swift-frontend 0x000056175f17943e
2 swift-frontend 0x000056175f17bfb1
3 libc.so.6 0x00007f7778724520
4 libc.so.6 0x00007f77787789fc pthread_kill + 300
5 libc.so.6 0x00007f7778724476 raise + 22
6 libc.so.6 0x00007f777870a7f3 abort + 211
7 swift-frontend 0x000056175891e189
8 swift-frontend 0x000056175893d6b7
9 swift-frontend 0x0000561758928b8f
10 swift-frontend 0x0000561758926f9b
11 swift-frontend 0x000056175891ec94
12 swift-frontend 0x0000561757d2fb77
13 swift-frontend 0x0000561757d2e55f
14 swift-frontend 0x0000561757d38116
15 swift-frontend 0x0000561758868d1e
16 swift-frontend 0x0000561757d31a55
17 swift-frontend 0x0000561757db1670
18 swift-frontend 0x0000561757db13e5
19 swift-frontend 0x0000561757d9988b
20 swift-frontend 0x0000561757d8d07c
21 swift-frontend 0x0000561757ea129b
22 swift-frontend 0x0000561757e8ad0c
23 swift-frontend 0x0000561757e9f345
24 swift-frontend 0x0000561757eaddfa
25 swift-frontend 0x0000561757ead0dd
26 swift-frontend 0x0000561757e904ec
27 swift-frontend 0x0000561757e8dd00
28 swift-frontend 0x0000561757d99854
29 swift-frontend 0x0000561757d8d816
30 swift-frontend 0x0000561757e488ea
31 swift-frontend 0x0000561757e46fcd
32 swift-frontend 0x0000561757dbf22a
33 swift-frontend 0x0000561757d2f142
34 swift-frontend 0x0000561757d3077e
35 swift-frontend 0x0000561757d2d77c
36 swift-frontend 0x0000561757e65782
37 swift-frontend 0x0000561757e60be7
38 swift-frontend 0x0000561757e60aa8
39 swift-frontend 0x0000561757d33853
40 swift-frontend 0x0000561757d33fa4
41 swift-frontend 0x0000561757e468c6
42 swift-frontend 0x0000561757d38f53
43 swift-frontend 0x0000561757d3492f
44 swift-frontend 0x0000561757513808
45 swift-frontend 0x000056175752542a
46 swift-frontend 0x00005617575167de
47 swift-frontend 0x0000561757515878
48 swift-frontend 0x000056175729126b
49 libc.so.6 0x00007f777870bd90
50 libc.so.6 0x00007f777870be40 __libc_start_main + 128
51 swift-frontend 0x0000561757290265
BUILD FAILURE 6.2 linux