The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build Socket, reference 0.3.3 (9945ad), with Swift 6.0 for Linux on 15 Sep 2024 23:32:22 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.53.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/stackotter/Socket.git
Reference: 0.3.3
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/stackotter/Socket
 * tag               0.3.3      -> FETCH_HEAD
HEAD is now at 9945adf Fix pointer related build warnings
Cloned https://github.com/stackotter/Socket.git
Revision (git rev-parse @):
9945adfb7b2b089b1f9963db31544f604d260293
SUCCESS checkout https://github.com/stackotter/Socket.git at 0.3.3
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/stackotter/Socket.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:9d7dab235f2b0b46edadd73b1fb0c3b5323df02053420324a4a2f8ca89cb54a5
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/apple/swift-system
[1/3638] Fetching swift-system
Fetched https://github.com/apple/swift-system from cache (0.34s)
Computing version for https://github.com/apple/swift-system
Computed https://github.com/apple/swift-system at 1.3.2 (0.40s)
Creating working copy for https://github.com/apple/swift-system
Working copy of https://github.com/apple/swift-system resolved at 1.3.2
Building for debugging...
[0/5] Write sources
[2/5] Compiling CSocket shims.c
[3/5] Compiling CSystem shims.c
[3/5] Write swift-version-24593BA9C3E375BF.txt
[6/26] Emitting module SystemPackage
[7/28] Compiling SystemPackage Util.swift
[8/28] Compiling SystemPackage UtilConsumers.swift
[9/28] Compiling SystemPackage Errno.swift
[10/28] Compiling SystemPackage FileDescriptor.swift
[11/28] Compiling SystemPackage FileHelpers.swift
[12/28] Compiling SystemPackage FilePathComponents.swift
[13/28] Compiling SystemPackage FilePathParsing.swift
[14/28] Compiling SystemPackage FilePathString.swift
[15/28] Compiling SystemPackage FileOperations.swift
[16/28] Compiling SystemPackage FilePath.swift
[17/28] Compiling SystemPackage FilePathComponentView.swift
[18/28] Compiling SystemPackage FilePathSyntax.swift
[19/28] Compiling SystemPackage FilePathWindows.swift
[20/28] Compiling SystemPackage FilePermissions.swift
[21/28] Compiling SystemPackage Mocking.swift
[22/28] Compiling SystemPackage Syscalls.swift
[23/28] Compiling SystemPackage WindowsSyscallAdapters.swift
[24/28] Compiling SystemPackage PlatformString.swift
[25/28] Compiling SystemPackage SystemString.swift
[26/28] Compiling SystemPackage CInterop.swift
[27/28] Compiling SystemPackage Constants.swift
[28/28] Compiling SystemPackage Exports.swift
[30/68] Compiling Socket SocketOptionID.swift
[31/68] Compiling Socket SocketOptionLevel.swift
[32/68] Compiling Socket SocketProtocol.swift
[33/68] Compiling Socket IPv4Protocol.swift
[34/68] Compiling Socket IPv6Protocol.swift
error: compile command failed due to signal 6 (use -v to see invocation)
/host/spi-builder-workspace/Sources/Socket/Socket.swift:17:23: warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 15 |
 16 |     /// Configuration for fine-tuning socket performance.
 17 |     public static var configuration: AsyncSocketConfiguration = AsyncSocketConfiguration() {
    |                       |- warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'configuration' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'configuration' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 18 |         didSet {
 19 |             configuration.configureManager()
/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:60:10: warning: non-sendable type 'Socket.Event.Stream' (aka 'AsyncStream<Socket.Event>') returned by actor-isolated instance method 'add' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
 58 |     // MARK: - Methods
 59 |
 60 |     func add(
    |          `- warning: non-sendable type 'Socket.Event.Stream' (aka 'AsyncStream<Socket.Event>') returned by actor-isolated instance method 'add' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
 61 |         _ fileDescriptor: SocketDescriptor
 62 |     ) -> Socket.Event.Stream {
/host/spi-builder-workspace/Sources/Socket/Socket.swift:181:10: note: consider making enum 'Event' conform to the 'Sendable' protocol
179 |
180 |     /// Socket Event
181 |     enum Event {
    |          `- note: consider making enum 'Event' conform to the 'Sendable' protocol
182 |
183 |         /// New connection
/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:165:33: warning: non-sendable type '(Data, Address)' returned by call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
156 |     }
157 |
158 |     nonisolated func receiveMessage<Address: SocketAddress>(
    |                                     `- note: consider making generic parameter 'Address' conform to the 'Sendable' protocol
159 |         _ length: Int,
160 |         fromAddressOf addressType: Address.Type,
    :
163 |         let socket = try await wait(for: .read, fileDescriptor: fileDescriptor)
164 |         await log("Will receive message with \(length) bytes from \(fileDescriptor)")
165 |         return try await socket.receiveMessage(length, fromAddressOf: addressType)
    |                                 `- warning: non-sendable type '(Data, Address)' returned by call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
166 |     }
167 |
/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:185:33: warning: non-sendable type '(SocketDescriptor, Address)' returned by call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
178 |
179 |     /// Accept a connection on a socket.
180 |     nonisolated func accept<Address: SocketAddress>(
    |                             `- note: consider making generic parameter 'Address' conform to the 'Sendable' protocol
181 |         _ address: Address.Type,
182 |         for fileDescriptor: SocketDescriptor
183 |     ) async throws -> (fileDescriptor: SocketDescriptor, address: Address) {
184 |         let socket = try await wait(for: .read, fileDescriptor: fileDescriptor)
185 |         return try await socket.accept(address)
    |                                 `- warning: non-sendable type '(SocketDescriptor, Address)' returned by call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
186 |     }
187 |
/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:194:32: warning: non-sendable type 'AsyncSocketManager.ManagerState' in implicitly asynchronous access to actor-isolated property 'state' cannot cross actor boundary; this is an error in the Swift 6 language mode
192 |     ) async throws {
193 |         let socket = try await socket(for: fileDescriptor)
194 |         try await retry(sleep: state.configuration.monitorInterval) {
    |                                `- warning: non-sendable type 'AsyncSocketManager.ManagerState' in implicitly asynchronous access to actor-isolated property 'state' cannot cross actor boundary; this is an error in the Swift 6 language mode
195 |             fileDescriptor._connect(to: address, retryOnInterrupt: true)
196 |         }.get()
    :
512 | extension AsyncSocketManager {
513 |
514 |     struct ManagerState {
    |            `- note: consider making struct 'ManagerState' conform to the 'Sendable' protocol
515 |
516 |         var configuration = AsyncSocketConfiguration()
swift-frontend: /home/build-user/swift/include/swift/AST/GenericSignature.h:139: const swift::GenericSignatureImpl *swift::GenericSignature::operator->() const: Assertion `Ptr && "Cannot dereference a null GenericSignature!"' failed.
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/Socket/Socket.swift -primary-file /host/spi-builder-workspace/Sources/Socket/SocketContinuation.swift -primary-file /host/spi-builder-workspace/Sources/Socket/SocketManager.swift -primary-file /host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift -primary-file /host/spi-builder-workspace/Sources/Socket/SocketManager/CFSocketManager.swift -primary-file /host/spi-builder-workspace/Sources/Socket/System/CInternetAddress.swift /host/spi-builder-workspace/Sources/Socket/System/CInterop.swift /host/spi-builder-workspace/Sources/Socket/System/CSocketAddress.swift /host/spi-builder-workspace/Sources/Socket/System/Constants.swift /host/spi-builder-workspace/Sources/Socket/System/Errno.swift /host/spi-builder-workspace/Sources/Socket/System/FileChange.swift /host/spi-builder-workspace/Sources/Socket/System/FileEvent.swift /host/spi-builder-workspace/Sources/Socket/System/FileFlags.swift /host/spi-builder-workspace/Sources/Socket/System/InputOutput/IOControl.swift /host/spi-builder-workspace/Sources/Socket/System/InputOutput/IODirection.swift /host/spi-builder-workspace/Sources/Socket/System/InputOutput/IOOperations.swift /host/spi-builder-workspace/Sources/Socket/System/InputOutput/IOType.swift /host/spi-builder-workspace/Sources/Socket/System/InternetProtocol.swift /host/spi-builder-workspace/Sources/Socket/System/MessageFlags.swift /host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift /host/spi-builder-workspace/Sources/Socket/System/NetworkOrder.swift /host/spi-builder-workspace/Sources/Socket/System/Poll.swift /host/spi-builder-workspace/Sources/Socket/System/SocketAddress.swift /host/spi-builder-workspace/Sources/Socket/System/SocketAddress/IPv4SocketAddress.swift /host/spi-builder-workspace/Sources/Socket/System/SocketAddress/IPv6SocketAddress.swift /host/spi-builder-workspace/Sources/Socket/System/SocketAddress/LinkLayerSocketAddress.swift /host/spi-builder-workspace/Sources/Socket/System/SocketAddress/UnixSocketAddress.swift /host/spi-builder-workspace/Sources/Socket/System/SocketAddressFamily.swift /host/spi-builder-workspace/Sources/Socket/System/SocketDescriptor.swift /host/spi-builder-workspace/Sources/Socket/System/SocketFlags.swift /host/spi-builder-workspace/Sources/Socket/System/SocketHelpers.swift /host/spi-builder-workspace/Sources/Socket/System/SocketOperations.swift /host/spi-builder-workspace/Sources/Socket/System/SocketOption.swift /host/spi-builder-workspace/Sources/Socket/System/SocketOptionID.swift /host/spi-builder-workspace/Sources/Socket/System/SocketOptionLevel.swift /host/spi-builder-workspace/Sources/Socket/System/SocketProtocol.swift /host/spi-builder-workspace/Sources/Socket/System/SocketProtocol/IPv4Protocol.swift /host/spi-builder-workspace/Sources/Socket/System/SocketProtocol/IPv6Protocol.swift /host/spi-builder-workspace/Sources/Socket/System/SocketProtocol/LinkLayerProtocol.swift /host/spi-builder-workspace/Sources/Socket/System/SocketProtocol/UnixProtocol.swift /host/spi-builder-workspace/Sources/Socket/System/SocketType.swift /host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift /host/spi-builder-workspace/Sources/Socket/System/Util.swift -supplementary-output-file-map /tmp/TemporaryDirectory.OHqmgo/supplementaryOutputs-1 -target x86_64-unknown-linux-gnu -disable-objc-interop -I /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/Modules -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 5 -Onone -D SWIFT_PACKAGE -D DEBUG -stats-output-dir .stats -strict-concurrency=complete -empty-abi-descriptor -resource-dir /usr/lib/swift -enable-anonymous-context-mangled-names -file-compilation-dir /host/spi-builder-workspace -Xcc -fmodule-map-file=/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/CSystem/include/module.modulemap -Xcc -I -Xcc /host/spi-builder-workspace/.build/checkouts/swift-system/Sources/CSystem/include -Xcc -fmodule-map-file=/host/spi-builder-workspace/Sources/CSocket/include/module.modulemap -Xcc -I -Xcc /host/spi-builder-workspace/Sources/CSocket/include -Xcc -fPIC -Xcc -g -Xcc -fno-omit-frame-pointer -module-name Socket -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/Socket.build/Socket.swift.o -o /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/Socket.build/SocketContinuation.swift.o -o /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/Socket.build/SocketManager.swift.o -o /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/Socket.build/AsyncSocketManager.swift.o -o /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/Socket.build/CFSocketManager.swift.o -o /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/Socket.build/CInternetAddress.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.0-dev (LLVM c3efe9282719c35, Swift b163fed2b3101e0)
2.	Compiling with effective version 5.10
3.	While evaluating request ASTLoweringRequest(Lowering AST to SIL for file "/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift")
4.	While silgen emitFunction SIL function "@$s6Socket05AsyncA7ManagerC15startMonitoring33_2B1509B1E2EA90CA2DC4053AF21AD7DALLyyF".
 for 'startMonitoring()' (at /host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:209:5)
5.	While silgen closureexpr SIL function "@$s6Socket05AsyncA7ManagerC15startMonitoring33_2B1509B1E2EA90CA2DC4053AF21AD7DALLyyFyyYacfU_".
 for expression at [/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:215:70 - line:217:9] RangeText="{ [unowned self] in
            await self.run()
        "
6.	While verifying SIL function "@$s6Socket05AsyncA7ManagerC15startMonitoring33_2B1509B1E2EA90CA2DC4053AF21AD7DALLyyFyyYacfU_".
 for expression at [/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:215:70 - line:217:9] RangeText="{ [unowned self] in
            await self.run()
        "
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 0x00005627007c62b7
1  swift-frontend 0x00005627007c400e
2  swift-frontend 0x00005627007c692a
3  libc.so.6      0x00007f79e1882520
4  libc.so.6      0x00007f79e18d69fc pthread_kill + 300
5  libc.so.6      0x00007f79e1882476 raise + 22
6  libc.so.6      0x00007f79e18687f3 abort + 211
7  libc.so.6      0x00007f79e186871b
8  libc.so.6      0x00007f79e1879e96
9  swift-frontend 0x00005626fad2a2a9
10 swift-frontend 0x00005626fad21a96
11 swift-frontend 0x00005626fa168397
12 swift-frontend 0x00005626fa166c9a
13 swift-frontend 0x00005626fa170906
14 swift-frontend 0x00005626fac720bf
15 swift-frontend 0x00005626fa169e25
16 swift-frontend 0x00005626fa1e6be2
17 swift-frontend 0x00005626fa1e65fa
18 swift-frontend 0x00005626fa1e629c
19 swift-frontend 0x00005626fa1e6213
20 swift-frontend 0x00005626fa1da3fd
21 swift-frontend 0x00005626fa1d13a9
22 swift-frontend 0x00005626fa1c485c
23 swift-frontend 0x00005626fa19f132
24 swift-frontend 0x00005626fa19f33c
25 swift-frontend 0x00005626fa19f063
26 swift-frontend 0x00005626fa19f20a
27 swift-frontend 0x00005626fa1dd3a9
28 swift-frontend 0x00005626fa1d14b2
29 swift-frontend 0x00005626fa1c485c
30 swift-frontend 0x00005626fa19f132
31 swift-frontend 0x00005626fa29eab7
32 swift-frontend 0x00005626fa2d4915
33 swift-frontend 0x00005626fa2bedf9
34 swift-frontend 0x00005626fa2d2795
35 swift-frontend 0x00005626fa2e03bb
36 swift-frontend 0x00005626fa2df941
37 swift-frontend 0x00005626fa2c4217
38 swift-frontend 0x00005626fa2c1dcd
39 swift-frontend 0x00005626fa1d1214
40 swift-frontend 0x00005626fa1c5031
41 swift-frontend 0x00005626fa2803f8
42 swift-frontend 0x00005626fa27eeed
43 swift-frontend 0x00005626fa1f48af
44 swift-frontend 0x00005626fa167912
45 swift-frontend 0x00005626fa168c02
46 swift-frontend 0x00005626fa165d63
47 swift-frontend 0x00005626fa29d12d
48 swift-frontend 0x00005626fa298228
49 swift-frontend 0x00005626fa29817d
50 swift-frontend 0x00005626fa16bf1f
51 swift-frontend 0x00005626fa27e814
52 swift-frontend 0x00005626fa171832
53 swift-frontend 0x00005626fa16ccac
54 swift-frontend 0x00005626f99cfd3b
55 swift-frontend 0x00005626f99e0905
56 swift-frontend 0x00005626f99d3127
57 swift-frontend 0x00005626f99d1e7a
58 swift-frontend 0x00005626f9787fce
59 libc.so.6      0x00007f79e1869d90
60 libc.so.6      0x00007f79e1869e40 __libc_start_main + 128
61 swift-frontend 0x00005626f9787075
BUILD FAILURE 6.0 linux