Build Information
Failed to build Edge, reference 0.4.0 (82d0b4
), with Swift 6.1 for macOS (SPM) on 24 Apr 2025 19:23:23 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/skylab-inc/lightning.git
Reference: 0.4.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
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
Fetching https://github.com/skylab-inc/StreamKit.git
[1/316] Fetching streamkit
Fetched https://github.com/skylab-inc/StreamKit.git from cache (0.64s)
Computing version for https://github.com/skylab-inc/StreamKit.git
Computed https://github.com/skylab-inc/StreamKit.git at 0.7.0 (1.26s)
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
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "lightning",
"name": "Edge",
"url": "https://github.com/skylab-inc/lightning.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/lightning",
"dependencies": [
{
"identity": "streamkit",
"name": "StreamKit",
"url": "https://github.com/skylab-inc/StreamKit.git",
"version": "0.7.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/StreamKit",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/skylab-inc/lightning.git
[1/1619] Fetching lightning
Fetched https://github.com/skylab-inc/lightning.git from cache (0.82s)
Fetching https://github.com/skylab-inc/StreamKit.git from cache
Fetched https://github.com/skylab-inc/StreamKit.git from cache (0.41s)
Computing version for https://github.com/skylab-inc/StreamKit.git
Computed https://github.com/skylab-inc/StreamKit.git at 0.7.0 (0.46s)
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
Creating working copy for https://github.com/skylab-inc/lightning.git
Working copy of https://github.com/skylab-inc/lightning.git resolved at 0.4.0 (82d0b41)
warning: '.resolve-product-dependencies': dependency 'lightning' is not used by any target
Found 1 product dependencies
- StreamKit
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/skylab-inc/lightning.git
https://github.com/skylab-inc/lightning.git
{
"dependencies" : [
{
"identity" : "streamkit",
"requirement" : {
"range" : [
{
"lower_bound" : "0.7.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/skylab-inc/StreamKit.git"
}
],
"manifest_display_name" : "Edge",
"name" : "Edge",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
],
"targets" : [
{
"c99name" : "TCPTests",
"module_type" : "SwiftTarget",
"name" : "TCPTests",
"path" : "Tests/TCPTests",
"sources" : [
"ConnectionTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"TCP"
],
"type" : "test"
},
{
"c99name" : "TCP",
"module_type" : "SwiftTarget",
"name" : "TCP",
"path" : "Sources/TCP",
"sources" : [
"Server.swift",
"Socket.swift"
],
"target_dependencies" : [
"POSIX",
"IOStream"
],
"type" : "library"
},
{
"c99name" : "RunLoop",
"module_type" : "SwiftTarget",
"name" : "RunLoop",
"path" : "Sources/RunLoop",
"sources" : [
"RunLoop.swift"
],
"type" : "library"
},
{
"c99name" : "RoutingTests",
"module_type" : "SwiftTarget",
"name" : "RoutingTests",
"path" : "Tests/RoutingTests",
"sources" : [
"RouterTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"Routing"
],
"type" : "test"
},
{
"c99name" : "Routing",
"module_type" : "SwiftTarget",
"name" : "Routing",
"path" : "Sources/Routing",
"sources" : [
"Routing.swift"
],
"target_dependencies" : [
"POSIX",
"HTTP"
],
"type" : "library"
},
{
"c99name" : "POSIX",
"module_type" : "SwiftTarget",
"name" : "POSIX",
"path" : "Sources/POSIX",
"sources" : [
"FileDescriptor.swift",
"Socket.swift",
"SystemError.swift"
],
"type" : "library"
},
{
"c99name" : "IOStreamTests",
"module_type" : "SwiftTarget",
"name" : "IOStreamTests",
"path" : "Tests/IOStreamTests",
"sources" : [
"PipeTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"IOStream"
],
"type" : "test"
},
{
"c99name" : "IOStream",
"module_type" : "SwiftTarget",
"name" : "IOStream",
"path" : "Sources/IOStream",
"product_dependencies" : [
"StreamKit"
],
"sources" : [
"IOStream.swift",
"Pipe.swift"
],
"target_dependencies" : [
"POSIX"
],
"type" : "library"
},
{
"c99name" : "HTTPTests",
"module_type" : "SwiftTarget",
"name" : "HTTPTests",
"path" : "Tests/HTTPTests",
"sources" : [
"HTTPMessageTests.swift",
"RequestParserTests.swift",
"RequestSerializationTests.swift",
"ResponseParserTests.swift",
"ResponseSerializationTests.swift",
"ServerTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"HTTP"
],
"type" : "test"
},
{
"c99name" : "HTTP",
"module_type" : "SwiftTarget",
"name" : "HTTP",
"path" : "Sources/HTTP",
"sources" : [
"ClientConnection.swift",
"Error.swift",
"Message.swift",
"Method.swift",
"Parser.swift",
"Request.swift",
"Response.swift",
"Serializable.swift",
"Server.swift",
"Status.swift",
"Version.swift"
],
"target_dependencies" : [
"POSIX",
"IOStream",
"TCP",
"CHTTPParser"
],
"type" : "library"
},
{
"c99name" : "Edge",
"module_type" : "SwiftTarget",
"name" : "Edge",
"path" : "Sources/Edge",
"sources" : [
"Edge.swift"
],
"target_dependencies" : [
"TCP",
"IOStream",
"RunLoop",
"HTTP",
"Routing"
],
"type" : "library"
},
{
"c99name" : "CHTTPParser",
"module_type" : "ClangTarget",
"name" : "CHTTPParser",
"path" : "Sources/CHTTPParser",
"sources" : [
"http_parser.c"
],
"type" : "library"
}
],
"tools_version" : "4.0"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/10] Write sources
[8/10] Write swift-version-2F0A5646E1D333AE.txt
[9/24] Compiling CHTTPParser http_parser.c
[11/24] Compiling POSIX Socket.swift
/Users/admin/builder/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: add '@MainActor' to make static property 'stream' part of global actor 'MainActor'
| `- 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)
/Users/admin/builder/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: add '@MainActor' to make static property 'datagram' part of global actor 'MainActor'
| `- 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)
/Users/admin/builder/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: add '@MainActor' to make static property 'seqPacket' part of global actor 'MainActor'
| `- 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)
/Users/admin/builder/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: add '@MainActor' to make static property 'raw' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 | public static let reliableDatagram = SocketType(rawValue: sockRDM)
26 |
/Users/admin/builder/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: add '@MainActor' to make static property 'reliableDatagram' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 |
27 | public let rawValue: Int32
/Users/admin/builder/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: add '@MainActor' to make static property 'unix' part of global actor 'MainActor'
| `- 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)
/Users/admin/builder/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: add '@MainActor' to make static property 'inet' part of global actor 'MainActor'
| `- 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)
/Users/admin/builder/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: add '@MainActor' to make static property 'inet6' part of global actor 'MainActor'
| `- 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)
/Users/admin/builder/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: add '@MainActor' to make static property 'ipx' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 | public static let netlink = AddressFamily(rawValue: AF_APPLETALK)
40 |
/Users/admin/builder/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: add '@MainActor' to make static property 'netlink' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 |
41 | public let rawValue: Int32
[12/24] Compiling POSIX SystemError.swift
[13/24] Emitting module POSIX
/Users/admin/builder/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: add '@MainActor' to make static property 'stream' part of global actor 'MainActor'
| `- 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)
/Users/admin/builder/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: add '@MainActor' to make static property 'datagram' part of global actor 'MainActor'
| `- 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)
/Users/admin/builder/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: add '@MainActor' to make static property 'seqPacket' part of global actor 'MainActor'
| `- 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)
/Users/admin/builder/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: add '@MainActor' to make static property 'raw' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
25 | public static let reliableDatagram = SocketType(rawValue: sockRDM)
26 |
/Users/admin/builder/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: add '@MainActor' to make static property 'reliableDatagram' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
26 |
27 | public let rawValue: Int32
/Users/admin/builder/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: add '@MainActor' to make static property 'unix' part of global actor 'MainActor'
| `- 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)
/Users/admin/builder/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: add '@MainActor' to make static property 'inet' part of global actor 'MainActor'
| `- 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)
/Users/admin/builder/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: add '@MainActor' to make static property 'inet6' part of global actor 'MainActor'
| `- 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)
/Users/admin/builder/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: add '@MainActor' to make static property 'ipx' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
39 | public static let netlink = AddressFamily(rawValue: AF_APPLETALK)
40 |
/Users/admin/builder/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: add '@MainActor' to make static property 'netlink' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
40 |
41 | public let rawValue: Int32
[14/24] Compiling POSIX FileDescriptor.swift
[15/24] Emitting module RunLoop
[16/24] Compiling RunLoop RunLoop.swift
[17/24] Compiling StreamKit Source.swift
[18/24] Compiling StreamKit Signal.swift
[19/24] Compiling StreamKit Disposable.swift
[20/24] Compiling StreamKit Observer.swift
[21/24] Compiling StreamKit Bag.swift
[22/24] Compiling StreamKit Event.swift
[23/24] Emitting module StreamKit
[24/24] Compiling StreamKit Error.swift
[25/27] Compiling IOStream Pipe.swift
[26/27] Compiling IOStream IOStream.swift
[27/27] Emitting module IOStream
[28/30] Compiling TCP Socket.swift
[29/30] Emitting module TCP
[30/30] Compiling TCP Server.swift
[31/41] Compiling HTTP Status.swift
/Users/admin/builder/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 | }
[32/41] Compiling HTTP Server.swift
[33/41] Compiling HTTP Response.swift
[34/41] Compiling HTTP Serializable.swift
[35/42] Compiling HTTP Request.swift
[36/42] Compiling HTTP Method.swift
/Users/admin/builder/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
[37/42] Compiling HTTP Message.swift
/Users/admin/builder/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 {
[38/42] Compiling HTTP ClientConnection.swift
[39/42] Compiling HTTP Error.swift
[40/42] Emitting module HTTP
/Users/admin/builder/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
/Users/admin/builder/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: add '@MainActor' to make var 'requestSettings' part of global actor 'MainActor'
| `- 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)
/Users/admin/builder/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 | }
[41/42] Compiling HTTP Parser.swift
/Users/admin/builder/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: add '@MainActor' to make var 'requestSettings' part of global actor 'MainActor'
| `- 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)
/Users/admin/builder/spi-builder-workspace/Sources/HTTP/Parser.swift:246:54: error: cannot pass immutable value as inout argument: 'parser' is a 'let' constant
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: cannot pass immutable value as inout argument: 'parser' is a 'let' constant
247 | reset()
248 | }
/Users/admin/builder/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(
/Users/admin/builder/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
[42/42] Compiling HTTP Version.swift
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/15] Emitting module RunLoop
[3/15] Compiling RunLoop RunLoop.swift
[4/15] Compiling POSIX Socket.swift
[5/15] Compiling POSIX SystemError.swift
[6/15] Emitting module POSIX
[7/15] Compiling POSIX FileDescriptor.swift
[8/15] Emitting module StreamKit
[9/15] Compiling StreamKit Observer.swift
[10/15] Compiling StreamKit Source.swift
[11/15] Compiling StreamKit Error.swift
[12/15] Compiling StreamKit Disposable.swift
[13/15] Compiling StreamKit Event.swift
[14/15] Compiling StreamKit Bag.swift
[15/15] Compiling StreamKit Signal.swift
[16/18] Compiling IOStream Pipe.swift
[17/18] Compiling IOStream IOStream.swift
[18/18] Emitting module IOStream
[19/21] Compiling TCP Socket.swift
[20/21] Compiling TCP Server.swift
[21/21] Emitting module TCP
[22/32] Compiling HTTP Server.swift
[23/32] Compiling HTTP Serializable.swift
[24/32] Compiling HTTP Status.swift
/Users/admin/builder/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 | }
[25/33] Compiling HTTP Request.swift
[26/33] Compiling HTTP Response.swift
[27/33] Compiling HTTP Method.swift
/Users/admin/builder/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
[28/33] Compiling HTTP Message.swift
/Users/admin/builder/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 {
[29/33] Emitting module HTTP
/Users/admin/builder/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
/Users/admin/builder/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 | }
[30/33] Compiling HTTP ClientConnection.swift
[31/33] Compiling HTTP Error.swift
[32/33] Compiling HTTP Parser.swift
/Users/admin/builder/spi-builder-workspace/Sources/HTTP/Parser.swift:246:54: error: cannot pass immutable value as inout argument: 'parser' is a 'let' constant
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: cannot pass immutable value as inout argument: 'parser' is a 'let' constant
247 | reset()
248 | }
/Users/admin/builder/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(
/Users/admin/builder/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
[33/33] Compiling HTTP Version.swift
BUILD FAILURE 6.1 macosSpm