Build Information
Failed to build Socket, reference main (9945ad
), with Swift 6.0 for Linux on 15 Sep 2024 23:32:29 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-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: 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/stackotter/Socket
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
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 main
========================================
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-4606859-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.31s)
Computing version for https://github.com/apple/swift-system
Computed https://github.com/apple/swift-system at 1.3.2 (0.48s)
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 PlatformString.swift
[13/28] Compiling SystemPackage SystemString.swift
[14/28] Compiling SystemPackage FilePathSyntax.swift
[15/28] Compiling SystemPackage FilePathWindows.swift
[16/28] Compiling SystemPackage FilePermissions.swift
[17/28] Compiling SystemPackage FilePathComponents.swift
[18/28] Compiling SystemPackage FilePathParsing.swift
[19/28] Compiling SystemPackage FilePathString.swift
[20/28] Compiling SystemPackage CInterop.swift
[21/28] Compiling SystemPackage Constants.swift
[22/28] Compiling SystemPackage Exports.swift
[23/28] Compiling SystemPackage FileOperations.swift
[24/28] Compiling SystemPackage FilePath.swift
[25/28] Compiling SystemPackage FilePathComponentView.swift
[26/28] Compiling SystemPackage Mocking.swift
[27/28] Compiling SystemPackage Syscalls.swift
[28/28] Compiling SystemPackage WindowsSyscallAdapters.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.5Bjkmu/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 0x000055c3d1d672b7
1 swift-frontend 0x000055c3d1d6500e
2 swift-frontend 0x000055c3d1d6792a
3 libc.so.6 0x00007f7443e8f520
4 libc.so.6 0x00007f7443ee39fc pthread_kill + 300
5 libc.so.6 0x00007f7443e8f476 raise + 22
6 libc.so.6 0x00007f7443e757f3 abort + 211
7 libc.so.6 0x00007f7443e7571b
8 libc.so.6 0x00007f7443e86e96
9 swift-frontend 0x000055c3cc2cb2a9
10 swift-frontend 0x000055c3cc2c2a96
11 swift-frontend 0x000055c3cb709397
12 swift-frontend 0x000055c3cb707c9a
13 swift-frontend 0x000055c3cb711906
14 swift-frontend 0x000055c3cc2130bf
15 swift-frontend 0x000055c3cb70ae25
16 swift-frontend 0x000055c3cb787be2
17 swift-frontend 0x000055c3cb7875fa
18 swift-frontend 0x000055c3cb78729c
19 swift-frontend 0x000055c3cb787213
20 swift-frontend 0x000055c3cb77b3fd
21 swift-frontend 0x000055c3cb7723a9
22 swift-frontend 0x000055c3cb76585c
23 swift-frontend 0x000055c3cb740132
24 swift-frontend 0x000055c3cb74033c
25 swift-frontend 0x000055c3cb740063
26 swift-frontend 0x000055c3cb74020a
27 swift-frontend 0x000055c3cb77e3a9
28 swift-frontend 0x000055c3cb7724b2
29 swift-frontend 0x000055c3cb76585c
30 swift-frontend 0x000055c3cb740132
31 swift-frontend 0x000055c3cb83fab7
32 swift-frontend 0x000055c3cb875915
33 swift-frontend 0x000055c3cb85fdf9
34 swift-frontend 0x000055c3cb873795
35 swift-frontend 0x000055c3cb8813bb
36 swift-frontend 0x000055c3cb880941
37 swift-frontend 0x000055c3cb865217
38 swift-frontend 0x000055c3cb862dcd
39 swift-frontend 0x000055c3cb772214
40 swift-frontend 0x000055c3cb766031
41 swift-frontend 0x000055c3cb8213f8
42 swift-frontend 0x000055c3cb81feed
43 swift-frontend 0x000055c3cb7958af
44 swift-frontend 0x000055c3cb708912
45 swift-frontend 0x000055c3cb709c02
46 swift-frontend 0x000055c3cb706d63
47 swift-frontend 0x000055c3cb83e12d
48 swift-frontend 0x000055c3cb839228
49 swift-frontend 0x000055c3cb83917d
50 swift-frontend 0x000055c3cb70cf1f
51 swift-frontend 0x000055c3cb81f814
52 swift-frontend 0x000055c3cb712832
53 swift-frontend 0x000055c3cb70dcac
54 swift-frontend 0x000055c3caf70d3b
55 swift-frontend 0x000055c3caf81905
56 swift-frontend 0x000055c3caf74127
57 swift-frontend 0x000055c3caf72e7a
58 swift-frontend 0x000055c3cad28fce
59 libc.so.6 0x00007f7443e76d90
60 libc.so.6 0x00007f7443e76e40 __libc_start_main + 128
61 swift-frontend 0x000055c3cad28075
BUILD FAILURE 6.0 linux