Build Information
Failed to build Edge, reference 0.4.0 (82d0b4
), with Swift 6.0 for Linux on 31 Oct 2024 07:06:59 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/skylab-inc/lightning.git
Reference: 0.4.0
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/skylab-inc/lightning
* tag 0.4.0 -> FETCH_HEAD
HEAD is now at 82d0b41 Middleware tests seem to be passing now on Linux.
Cloned https://github.com/skylab-inc/lightning.git
Revision (git rev-parse @):
82d0b416e11c422ea7ee072f89a794c5d8a60cf3
SUCCESS checkout https://github.com/skylab-inc/lightning.git at 0.4.0
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $PWD
https://github.com/skylab-inc/lightning.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/skylab-inc/StreamKit.git
[1/316] Fetching streamkit
Fetched https://github.com/skylab-inc/StreamKit.git from cache (0.19s)
Computing version for https://github.com/skylab-inc/StreamKit.git
Computed https://github.com/skylab-inc/StreamKit.git at 0.7.0 (0.45s)
Creating working copy for https://github.com/skylab-inc/StreamKit.git
Working copy of https://github.com/skylab-inc/StreamKit.git resolved at 0.7.0
Building for debugging...
[0/10] Write sources
[8/10] Compiling CHTTPParser http_parser.c
[9/10] Write swift-version-24593BA9C3E375BF.txt
[11/24] Emitting module StreamKit
[12/24] Compiling StreamKit Bag.swift
[13/24] Emitting module RunLoop
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/RunLoop/RunLoop.swift:13:16: warning: let 'systemSignal' is not concurrency-safe because non-'Sendable' type '(Int32, __sighandler_t?) -> __sighandler_t?' (aka '(Int32, Optional<@convention(c) (Int32) -> ()>) -> Optional<@convention(c) (Int32) -> ()>') may have shared mutable state; this is an error in the Swift 6 language mode
11 | #if os(Linux)
12 | import Glibc
13 | public let systemSignal = Glibc.signal
| |- warning: let 'systemSignal' is not concurrency-safe because non-'Sendable' type '(Int32, __sighandler_t?) -> __sighandler_t?' (aka '(Int32, Optional<@convention(c) (Int32) -> ()>) -> Optional<@convention(c) (Int32) -> ()>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'systemSignal' 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
14 | public let SIGPIPE = Glibc.SIGPIPE
15 | public let SIG_IGN = Glibc.SIG_IGN
[14/24] Compiling RunLoop RunLoop.swift
<unknown>:0: note: a function type must be marked '@Sendable' to conform to 'Sendable'
/host/spi-builder-workspace/Sources/RunLoop/RunLoop.swift:13:16: warning: let 'systemSignal' is not concurrency-safe because non-'Sendable' type '(Int32, __sighandler_t?) -> __sighandler_t?' (aka '(Int32, Optional<@convention(c) (Int32) -> ()>) -> Optional<@convention(c) (Int32) -> ()>') may have shared mutable state; this is an error in the Swift 6 language mode
11 | #if os(Linux)
12 | import Glibc
13 | public let systemSignal = Glibc.signal
| |- warning: let 'systemSignal' is not concurrency-safe because non-'Sendable' type '(Int32, __sighandler_t?) -> __sighandler_t?' (aka '(Int32, Optional<@convention(c) (Int32) -> ()>) -> Optional<@convention(c) (Int32) -> ()>') may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'systemSignal' 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
14 | public let SIGPIPE = Glibc.SIGPIPE
15 | public let SIG_IGN = Glibc.SIG_IGN
[15/25] Compiling POSIX Socket.swift
/host/spi-builder-workspace/Sources/POSIX/Socket.swift:21:23: warning: static property 'stream' is not concurrency-safe because non-'Sendable' type 'SocketType' may have shared mutable state; this is an error in the Swift 6 language mode
17 | public typealias Port = UInt16
18 |
19 | public struct SocketType {
| `- note: consider making struct 'SocketType' conform to the 'Sendable' protocol
20 |
21 | public static let stream = SocketType(rawValue: sockStream)
| |- warning: static property 'stream' is not concurrency-safe because non-'Sendable' type 'SocketType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stream' 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
22 | public static let datagram = SocketType(rawValue: sockDgram)
23 | public static let seqPacket = SocketType(rawValue: sockSeqPacket)
/host/spi-builder-workspace/Sources/POSIX/Socket.swift:22:23: warning: static property 'datagram' is not concurrency-safe because non-'Sendable' type 'SocketType' may have shared mutable state; this is an error in the Swift 6 language mode
17 | public typealias Port = UInt16
18 |
19 | public struct SocketType {
| `- note: consider making struct 'SocketType' conform to the 'Sendable' protocol
20 |
21 | public static let stream = SocketType(rawValue: sockStream)
22 | public static let datagram = SocketType(rawValue: sockDgram)
| |- warning: static property 'datagram' is not concurrency-safe because non-'Sendable' type 'SocketType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'datagram' 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
23 | public static let seqPacket = SocketType(rawValue: sockSeqPacket)
24 | public static let raw = SocketType(rawValue: sockRaw)
/host/spi-builder-workspace/Sources/POSIX/Socket.swift:23:23: warning: static property 'seqPacket' is not concurrency-safe because non-'Sendable' type 'SocketType' may have shared mutable state; this is an error in the Swift 6 language mode
17 | public typealias Port = UInt16
18 |
19 | public struct SocketType {
| `- note: consider making struct 'SocketType' conform to the 'Sendable' protocol
20 |
21 | public static let stream = SocketType(rawValue: sockStream)
22 | public static let datagram = SocketType(rawValue: sockDgram)
23 | public static let seqPacket = SocketType(rawValue: sockSeqPacket)
| |- warning: static property 'seqPacket' is not concurrency-safe because non-'Sendable' type 'SocketType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'seqPacket' 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
24 | public static let raw = SocketType(rawValue: sockRaw)
25 | public static let reliableDatagram = SocketType(rawValue: sockRDM)
/host/spi-builder-workspace/Sources/POSIX/Socket.swift:24:23: warning: static property 'raw' is not concurrency-safe because non-'Sendable' type 'SocketType' may have shared mutable state; this is an error in the Swift 6 language mode
17 | public typealias Port = UInt16
18 |
19 | public struct SocketType {
| `- note: consider making struct 'SocketType' conform to the 'Sendable' protocol
20 |
21 | public static let stream = SocketType(rawValue: sockStream)
22 | public static let datagram = SocketType(rawValue: sockDgram)
23 | public static let seqPacket = SocketType(rawValue: sockSeqPacket)
24 | public static let raw = SocketType(rawValue: sockRaw)
| |- warning: static property 'raw' is not concurrency-safe because non-'Sendable' type 'SocketType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'raw' 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
25 | public static let reliableDatagram = SocketType(rawValue: sockRDM)
26 |
/host/spi-builder-workspace/Sources/POSIX/Socket.swift:25:23: warning: static property 'reliableDatagram' is not concurrency-safe because non-'Sendable' type 'SocketType' may have shared mutable state; this is an error in the Swift 6 language mode
17 | public typealias Port = UInt16
18 |
19 | public struct SocketType {
| `- note: consider making struct 'SocketType' conform to the 'Sendable' protocol
20 |
21 | public static let stream = SocketType(rawValue: sockStream)
:
23 | public static let seqPacket = SocketType(rawValue: sockSeqPacket)
24 | public static let raw = SocketType(rawValue: sockRaw)
25 | public static let reliableDatagram = SocketType(rawValue: sockRDM)
| |- warning: static property 'reliableDatagram' is not concurrency-safe because non-'Sendable' type 'SocketType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'reliableDatagram' 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
26 |
27 | public let rawValue: Int32
/host/spi-builder-workspace/Sources/POSIX/Socket.swift:35:23: warning: static property 'unix' is not concurrency-safe because non-'Sendable' type 'AddressFamily' may have shared mutable state; this is an error in the Swift 6 language mode
32 | }
33 |
34 | public struct AddressFamily {
| `- note: consider making struct 'AddressFamily' conform to the 'Sendable' protocol
35 | public static let unix = AddressFamily(rawValue: AF_UNIX)
| |- warning: static property 'unix' is not concurrency-safe because non-'Sendable' type 'AddressFamily' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unix' 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
36 | public static let inet = AddressFamily(rawValue: AF_INET)
37 | public static let inet6 = AddressFamily(rawValue: AF_INET6)
/host/spi-builder-workspace/Sources/POSIX/Socket.swift:36:23: warning: static property 'inet' is not concurrency-safe because non-'Sendable' type 'AddressFamily' may have shared mutable state; this is an error in the Swift 6 language mode
32 | }
33 |
34 | public struct AddressFamily {
| `- note: consider making struct 'AddressFamily' conform to the 'Sendable' protocol
35 | public static let unix = AddressFamily(rawValue: AF_UNIX)
36 | public static let inet = AddressFamily(rawValue: AF_INET)
| |- warning: static property 'inet' is not concurrency-safe because non-'Sendable' type 'AddressFamily' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'inet' 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
37 | public static let inet6 = AddressFamily(rawValue: AF_INET6)
38 | public static let ipx = AddressFamily(rawValue: AF_IPX)
/host/spi-builder-workspace/Sources/POSIX/Socket.swift:37:23: warning: static property 'inet6' is not concurrency-safe because non-'Sendable' type 'AddressFamily' may have shared mutable state; this is an error in the Swift 6 language mode
32 | }
33 |
34 | public struct AddressFamily {
| `- note: consider making struct 'AddressFamily' conform to the 'Sendable' protocol
35 | public static let unix = AddressFamily(rawValue: AF_UNIX)
36 | public static let inet = AddressFamily(rawValue: AF_INET)
37 | public static let inet6 = AddressFamily(rawValue: AF_INET6)
| |- warning: static property 'inet6' is not concurrency-safe because non-'Sendable' type 'AddressFamily' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'inet6' 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
38 | public static let ipx = AddressFamily(rawValue: AF_IPX)
39 | public static let netlink = AddressFamily(rawValue: AF_APPLETALK)
/host/spi-builder-workspace/Sources/POSIX/Socket.swift:38:23: warning: static property 'ipx' is not concurrency-safe because non-'Sendable' type 'AddressFamily' may have shared mutable state; this is an error in the Swift 6 language mode
32 | }
33 |
34 | public struct AddressFamily {
| `- note: consider making struct 'AddressFamily' conform to the 'Sendable' protocol
35 | public static let unix = AddressFamily(rawValue: AF_UNIX)
36 | public static let inet = AddressFamily(rawValue: AF_INET)
37 | public static let inet6 = AddressFamily(rawValue: AF_INET6)
38 | public static let ipx = AddressFamily(rawValue: AF_IPX)
| |- warning: static property 'ipx' is not concurrency-safe because non-'Sendable' type 'AddressFamily' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ipx' 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
39 | public static let netlink = AddressFamily(rawValue: AF_APPLETALK)
40 |
/host/spi-builder-workspace/Sources/POSIX/Socket.swift:39:23: warning: static property 'netlink' is not concurrency-safe because non-'Sendable' type 'AddressFamily' may have shared mutable state; this is an error in the Swift 6 language mode
32 | }
33 |
34 | public struct AddressFamily {
| `- note: consider making struct 'AddressFamily' conform to the 'Sendable' protocol
35 | public static let unix = AddressFamily(rawValue: AF_UNIX)
36 | public static let inet = AddressFamily(rawValue: AF_INET)
37 | public static let inet6 = AddressFamily(rawValue: AF_INET6)
38 | public static let ipx = AddressFamily(rawValue: AF_IPX)
39 | public static let netlink = AddressFamily(rawValue: AF_APPLETALK)
| |- warning: static property 'netlink' is not concurrency-safe because non-'Sendable' type 'AddressFamily' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'netlink' 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
40 |
41 | public let rawValue: Int32
[16/25] Compiling POSIX FileDescriptor.swift
[17/25] Emitting module POSIX
/host/spi-builder-workspace/Sources/POSIX/Socket.swift:21:23: warning: static property 'stream' is not concurrency-safe because non-'Sendable' type 'SocketType' may have shared mutable state; this is an error in the Swift 6 language mode
17 | public typealias Port = UInt16
18 |
19 | public struct SocketType {
| `- note: consider making struct 'SocketType' conform to the 'Sendable' protocol
20 |
21 | public static let stream = SocketType(rawValue: sockStream)
| |- warning: static property 'stream' is not concurrency-safe because non-'Sendable' type 'SocketType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'stream' 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
22 | public static let datagram = SocketType(rawValue: sockDgram)
23 | public static let seqPacket = SocketType(rawValue: sockSeqPacket)
/host/spi-builder-workspace/Sources/POSIX/Socket.swift:22:23: warning: static property 'datagram' is not concurrency-safe because non-'Sendable' type 'SocketType' may have shared mutable state; this is an error in the Swift 6 language mode
17 | public typealias Port = UInt16
18 |
19 | public struct SocketType {
| `- note: consider making struct 'SocketType' conform to the 'Sendable' protocol
20 |
21 | public static let stream = SocketType(rawValue: sockStream)
22 | public static let datagram = SocketType(rawValue: sockDgram)
| |- warning: static property 'datagram' is not concurrency-safe because non-'Sendable' type 'SocketType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'datagram' 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
23 | public static let seqPacket = SocketType(rawValue: sockSeqPacket)
24 | public static let raw = SocketType(rawValue: sockRaw)
/host/spi-builder-workspace/Sources/POSIX/Socket.swift:23:23: warning: static property 'seqPacket' is not concurrency-safe because non-'Sendable' type 'SocketType' may have shared mutable state; this is an error in the Swift 6 language mode
17 | public typealias Port = UInt16
18 |
19 | public struct SocketType {
| `- note: consider making struct 'SocketType' conform to the 'Sendable' protocol
20 |
21 | public static let stream = SocketType(rawValue: sockStream)
22 | public static let datagram = SocketType(rawValue: sockDgram)
23 | public static let seqPacket = SocketType(rawValue: sockSeqPacket)
| |- warning: static property 'seqPacket' is not concurrency-safe because non-'Sendable' type 'SocketType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'seqPacket' 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
24 | public static let raw = SocketType(rawValue: sockRaw)
25 | public static let reliableDatagram = SocketType(rawValue: sockRDM)
/host/spi-builder-workspace/Sources/POSIX/Socket.swift:24:23: warning: static property 'raw' is not concurrency-safe because non-'Sendable' type 'SocketType' may have shared mutable state; this is an error in the Swift 6 language mode
17 | public typealias Port = UInt16
18 |
19 | public struct SocketType {
| `- note: consider making struct 'SocketType' conform to the 'Sendable' protocol
20 |
21 | public static let stream = SocketType(rawValue: sockStream)
22 | public static let datagram = SocketType(rawValue: sockDgram)
23 | public static let seqPacket = SocketType(rawValue: sockSeqPacket)
24 | public static let raw = SocketType(rawValue: sockRaw)
| |- warning: static property 'raw' is not concurrency-safe because non-'Sendable' type 'SocketType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'raw' 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
25 | public static let reliableDatagram = SocketType(rawValue: sockRDM)
26 |
/host/spi-builder-workspace/Sources/POSIX/Socket.swift:25:23: warning: static property 'reliableDatagram' is not concurrency-safe because non-'Sendable' type 'SocketType' may have shared mutable state; this is an error in the Swift 6 language mode
17 | public typealias Port = UInt16
18 |
19 | public struct SocketType {
| `- note: consider making struct 'SocketType' conform to the 'Sendable' protocol
20 |
21 | public static let stream = SocketType(rawValue: sockStream)
:
23 | public static let seqPacket = SocketType(rawValue: sockSeqPacket)
24 | public static let raw = SocketType(rawValue: sockRaw)
25 | public static let reliableDatagram = SocketType(rawValue: sockRDM)
| |- warning: static property 'reliableDatagram' is not concurrency-safe because non-'Sendable' type 'SocketType' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'reliableDatagram' 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
26 |
27 | public let rawValue: Int32
/host/spi-builder-workspace/Sources/POSIX/Socket.swift:35:23: warning: static property 'unix' is not concurrency-safe because non-'Sendable' type 'AddressFamily' may have shared mutable state; this is an error in the Swift 6 language mode
32 | }
33 |
34 | public struct AddressFamily {
| `- note: consider making struct 'AddressFamily' conform to the 'Sendable' protocol
35 | public static let unix = AddressFamily(rawValue: AF_UNIX)
| |- warning: static property 'unix' is not concurrency-safe because non-'Sendable' type 'AddressFamily' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'unix' 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
36 | public static let inet = AddressFamily(rawValue: AF_INET)
37 | public static let inet6 = AddressFamily(rawValue: AF_INET6)
/host/spi-builder-workspace/Sources/POSIX/Socket.swift:36:23: warning: static property 'inet' is not concurrency-safe because non-'Sendable' type 'AddressFamily' may have shared mutable state; this is an error in the Swift 6 language mode
32 | }
33 |
34 | public struct AddressFamily {
| `- note: consider making struct 'AddressFamily' conform to the 'Sendable' protocol
35 | public static let unix = AddressFamily(rawValue: AF_UNIX)
36 | public static let inet = AddressFamily(rawValue: AF_INET)
| |- warning: static property 'inet' is not concurrency-safe because non-'Sendable' type 'AddressFamily' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'inet' 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
37 | public static let inet6 = AddressFamily(rawValue: AF_INET6)
38 | public static let ipx = AddressFamily(rawValue: AF_IPX)
/host/spi-builder-workspace/Sources/POSIX/Socket.swift:37:23: warning: static property 'inet6' is not concurrency-safe because non-'Sendable' type 'AddressFamily' may have shared mutable state; this is an error in the Swift 6 language mode
32 | }
33 |
34 | public struct AddressFamily {
| `- note: consider making struct 'AddressFamily' conform to the 'Sendable' protocol
35 | public static let unix = AddressFamily(rawValue: AF_UNIX)
36 | public static let inet = AddressFamily(rawValue: AF_INET)
37 | public static let inet6 = AddressFamily(rawValue: AF_INET6)
| |- warning: static property 'inet6' is not concurrency-safe because non-'Sendable' type 'AddressFamily' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'inet6' 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
38 | public static let ipx = AddressFamily(rawValue: AF_IPX)
39 | public static let netlink = AddressFamily(rawValue: AF_APPLETALK)
/host/spi-builder-workspace/Sources/POSIX/Socket.swift:38:23: warning: static property 'ipx' is not concurrency-safe because non-'Sendable' type 'AddressFamily' may have shared mutable state; this is an error in the Swift 6 language mode
32 | }
33 |
34 | public struct AddressFamily {
| `- note: consider making struct 'AddressFamily' conform to the 'Sendable' protocol
35 | public static let unix = AddressFamily(rawValue: AF_UNIX)
36 | public static let inet = AddressFamily(rawValue: AF_INET)
37 | public static let inet6 = AddressFamily(rawValue: AF_INET6)
38 | public static let ipx = AddressFamily(rawValue: AF_IPX)
| |- warning: static property 'ipx' is not concurrency-safe because non-'Sendable' type 'AddressFamily' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ipx' 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
39 | public static let netlink = AddressFamily(rawValue: AF_APPLETALK)
40 |
/host/spi-builder-workspace/Sources/POSIX/Socket.swift:39:23: warning: static property 'netlink' is not concurrency-safe because non-'Sendable' type 'AddressFamily' may have shared mutable state; this is an error in the Swift 6 language mode
32 | }
33 |
34 | public struct AddressFamily {
| `- note: consider making struct 'AddressFamily' conform to the 'Sendable' protocol
35 | public static let unix = AddressFamily(rawValue: AF_UNIX)
36 | public static let inet = AddressFamily(rawValue: AF_INET)
37 | public static let inet6 = AddressFamily(rawValue: AF_INET6)
38 | public static let ipx = AddressFamily(rawValue: AF_IPX)
39 | public static let netlink = AddressFamily(rawValue: AF_APPLETALK)
| |- warning: static property 'netlink' is not concurrency-safe because non-'Sendable' type 'AddressFamily' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'netlink' 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
40 |
41 | public let rawValue: Int32
[18/25] Compiling POSIX SystemError.swift
[21/26] Compiling StreamKit Source.swift
[22/26] Compiling StreamKit Disposable.swift
[23/26] Compiling StreamKit Error.swift
[24/26] Compiling StreamKit Observer.swift
[25/26] Compiling StreamKit Event.swift
[26/26] Compiling StreamKit Signal.swift
[28/30] Compiling IOStream Pipe.swift
[29/30] Emitting module IOStream
[30/30] Compiling IOStream IOStream.swift
[32/34] Emitting module TCP
[33/34] Compiling TCP Socket.swift
[34/34] Compiling TCP Server.swift
[36/46] Compiling HTTP Response.swift
[37/47] Compiling HTTP Server.swift
[38/47] Compiling HTTP Serializable.swift
[39/47] Compiling HTTP Status.swift
/host/spi-builder-workspace/Sources/HTTP/Status.swift:324:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Status' to 'Hashable' by implementing 'hash(into:)' instead
322 |
323 | extension Status: Hashable {
324 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Status' to 'Hashable' by implementing 'hash(into:)' instead
325 | return code
326 | }
[40/47] Compiling HTTP Version.swift
[41/47] Compiling HTTP Message.swift
/host/spi-builder-workspace/Sources/HTTP/Message.swift:24:66: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
22 | /// of `rawHeaders`, the last value will be discarded.
23 | var rawHeaderPairs: [(String, String)] {
24 | return stride(from: 0, to: self.rawHeaders.count, by: 2).flatMap {
| |- warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
| `- note: use 'compactMap(_:)' instead
25 | let chunk = rawHeaders[$0..<min($0 + 2, rawHeaders.count)]
26 | if let first = chunk.first, let last = chunk.last {
/host/spi-builder-workspace/Sources/HTTP/Method.swift:70:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Method' to 'Hashable' by implementing 'hash(into:)' instead
68 |
69 | extension Method: Hashable {
70 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Method' to 'Hashable' by implementing 'hash(into:)' instead
71 | switch self {
72 | case .delete: return 0
[42/47] Compiling HTTP Method.swift
/host/spi-builder-workspace/Sources/HTTP/Message.swift:24:66: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
22 | /// of `rawHeaders`, the last value will be discarded.
23 | var rawHeaderPairs: [(String, String)] {
24 | return stride(from: 0, to: self.rawHeaders.count, by: 2).flatMap {
| |- warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value
| `- note: use 'compactMap(_:)' instead
25 | let chunk = rawHeaders[$0..<min($0 + 2, rawHeaders.count)]
26 | if let first = chunk.first, let last = chunk.last {
/host/spi-builder-workspace/Sources/HTTP/Method.swift:70:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Method' to 'Hashable' by implementing 'hash(into:)' instead
68 |
69 | extension Method: Hashable {
70 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Method' to 'Hashable' by implementing 'hash(into:)' instead
71 | switch self {
72 | case .delete: return 0
[43/47] Compiling HTTP ClientConnection.swift
[44/47] Compiling HTTP Error.swift
[45/47] Emitting module HTTP
/host/spi-builder-workspace/Sources/HTTP/Method.swift:70:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Method' to 'Hashable' by implementing 'hash(into:)' instead
68 |
69 | extension Method: Hashable {
70 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Method' to 'Hashable' by implementing 'hash(into:)' instead
71 | switch self {
72 | case .delete: return 0
/host/spi-builder-workspace/Sources/HTTP/Parser.swift:281:5: warning: var 'requestSettings' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
279 | }
280 |
281 | var requestSettings: http_parser_settings = {
| |- warning: var 'requestSettings' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'requestSettings' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'requestSettings' 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
282 | var settings = http_parser_settings()
283 | http_parser_settings_init(&settings)
/host/spi-builder-workspace/Sources/HTTP/Status.swift:324:16: warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Status' to 'Hashable' by implementing 'hash(into:)' instead
322 |
323 | extension Status: Hashable {
324 | public var hashValue: Int {
| `- warning: 'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Status' to 'Hashable' by implementing 'hash(into:)' instead
325 | return code
326 | }
[46/47] Compiling HTTP Parser.swift
/host/spi-builder-workspace/Sources/HTTP/Parser.swift:281:5: warning: var 'requestSettings' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
279 | }
280 |
281 | var requestSettings: http_parser_settings = {
| |- warning: var 'requestSettings' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'requestSettings' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'requestSettings' 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
282 | var settings = http_parser_settings()
283 | http_parser_settings_init(&settings)
/host/spi-builder-workspace/Sources/HTTP/Parser.swift:258:13: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer
256 |
257 | public func parse(_ data: [UInt8]) throws {
258 | try UnsafePointer(data).withMemoryRebound(to: Int8.self,
| | |- note: implicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
| | `- note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
| `- warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer
259 | capacity: data.count) { convertedPointer in
260 | let bytesParsed = http_parser_execute(
/host/spi-builder-workspace/Sources/HTTP/Parser.swift:390:15: warning: assuming you mean 'Optional<HeadersCompleteDirective>.none'; did you mean 'HeadersCompleteDirective.none' instead?
388 | )
389 | switch directive {
390 | case .none: return 0
| `- warning: assuming you mean 'Optional<HeadersCompleteDirective>.none'; did you mean 'HeadersCompleteDirective.none' instead?
391 | case .none?: return 0
392 | case .noBody?: return 1
/host/spi-builder-workspace/Sources/HTTP/Parser.swift:246:25: error: immutable value 'self.parser' must not be passed inout
235 | // Here I create a constant private pointer to our "constant" http_parser
236 | // The can be therefore mutated through the pointer, but only within the RawParser.
237 | let parser = http_parser()
| `- note: change 'let' to 'var' to make it mutable
238 | private let parserPointer: UnsafeMutablePointer<http_parser>
239 |
:
244 | self.type = type
245 | self.delegate = delegate
246 | parserPointer = withUnsafeMutablePointer(to: &parser) { $0 }
| `- error: immutable value 'self.parser' must not be passed inout
247 | reset()
248 | }
[47/47] Compiling HTTP Request.swift
/host/spi-builder-workspace/Sources/HTTP/Parser.swift:281:5: warning: var 'requestSettings' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
279 | }
280 |
281 | var requestSettings: http_parser_settings = {
| |- warning: var 'requestSettings' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'requestSettings' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'requestSettings' 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
282 | var settings = http_parser_settings()
283 | http_parser_settings_init(&settings)
/host/spi-builder-workspace/Sources/HTTP/Parser.swift:258:13: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer
256 |
257 | public func parse(_ data: [UInt8]) throws {
258 | try UnsafePointer(data).withMemoryRebound(to: Int8.self,
| | |- note: implicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
| | `- note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
| `- warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer
259 | capacity: data.count) { convertedPointer in
260 | let bytesParsed = http_parser_execute(
/host/spi-builder-workspace/Sources/HTTP/Parser.swift:390:15: warning: assuming you mean 'Optional<HeadersCompleteDirective>.none'; did you mean 'HeadersCompleteDirective.none' instead?
388 | )
389 | switch directive {
390 | case .none: return 0
| `- warning: assuming you mean 'Optional<HeadersCompleteDirective>.none'; did you mean 'HeadersCompleteDirective.none' instead?
391 | case .none?: return 0
392 | case .noBody?: return 1
/host/spi-builder-workspace/Sources/HTTP/Parser.swift:246:25: error: immutable value 'self.parser' must not be passed inout
235 | // Here I create a constant private pointer to our "constant" http_parser
236 | // The can be therefore mutated through the pointer, but only within the RawParser.
237 | let parser = http_parser()
| `- note: change 'let' to 'var' to make it mutable
238 | private let parserPointer: UnsafeMutablePointer<http_parser>
239 |
:
244 | self.type = type
245 | self.delegate = delegate
246 | parserPointer = withUnsafeMutablePointer(to: &parser) { $0 }
| `- error: immutable value 'self.parser' must not be passed inout
247 | reset()
248 | }
BUILD FAILURE 6.0 linux