The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Edge with Swift 5.10 for macOS (SPM).

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0-Beta.2.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.29.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/builds/J1XnyXFH/0/finestructure/swiftpackageindex-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
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             5.10
Building package at path:  $workDir
https://github.com/skylab-inc/lightning.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0-Beta.2.app xcrun swift build --arch arm64
Building for debugging...
[0/10] Write sources
[8/10] Write swift-version--423B1241ED78D482.txt
[9/24] Compiling CHTTPParser http_parser.c
[11/24] Compiling POSIX SystemError.swift
[12/24] Emitting module POSIX
[13/24] Compiling POSIX FileDescriptor.swift
[14/24] Compiling POSIX Socket.swift
[15/24] Compiling RunLoop RunLoop.swift
[16/24] Emitting module RunLoop
[17/24] Compiling StreamKit Source.swift
[18/24] Compiling StreamKit Observer.swift
[19/24] Compiling StreamKit Event.swift
[20/24] Compiling StreamKit Disposable.swift
[21/24] Compiling StreamKit Error.swift
[22/24] Compiling StreamKit Bag.swift
[23/24] Emitting module StreamKit
[24/24] Compiling StreamKit Signal.swift
[25/27] Compiling IOStream IOStream.swift
[26/27] Compiling IOStream Pipe.swift
[27/27] Emitting module IOStream
[28/30] Emitting module TCP
[29/30] Compiling TCP Socket.swift
[30/30] Compiling TCP Server.swift
[31/41] Compiling HTTP Server.swift
[32/41] Compiling HTTP Status.swift
/Users/admin/builds/J1XnyXFH/0/finestructure/swiftpackageindex-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
    public var hashValue: Int {
               ^
[33/42] Compiling HTTP Response.swift
[34/42] Compiling HTTP Serializable.swift
[35/42] Compiling HTTP ClientConnection.swift
[36/42] Compiling HTTP Error.swift
[37/42] Emitting module HTTP
/Users/admin/builds/J1XnyXFH/0/finestructure/swiftpackageindex-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
    public var hashValue: Int {
               ^
/Users/admin/builds/J1XnyXFH/0/finestructure/swiftpackageindex-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
    public var hashValue: Int {
               ^
[38/42] Compiling HTTP Message.swift
/Users/admin/builds/J1XnyXFH/0/finestructure/swiftpackageindex-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
        return stride(from: 0, to: self.rawHeaders.count, by: 2).flatMap {
                                                                 ^
/Users/admin/builds/J1XnyXFH/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/HTTP/Message.swift:24:66: note: use 'compactMap(_:)' instead
        return stride(from: 0, to: self.rawHeaders.count, by: 2).flatMap {
                                                                 ^~~~~~~
                                                                 compactMap
/Users/admin/builds/J1XnyXFH/0/finestructure/swiftpackageindex-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
    public var hashValue: Int {
               ^
[39/42] Compiling HTTP Method.swift
/Users/admin/builds/J1XnyXFH/0/finestructure/swiftpackageindex-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
        return stride(from: 0, to: self.rawHeaders.count, by: 2).flatMap {
                                                                 ^
/Users/admin/builds/J1XnyXFH/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/HTTP/Message.swift:24:66: note: use 'compactMap(_:)' instead
        return stride(from: 0, to: self.rawHeaders.count, by: 2).flatMap {
                                                                 ^~~~~~~
                                                                 compactMap
/Users/admin/builds/J1XnyXFH/0/finestructure/swiftpackageindex-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
    public var hashValue: Int {
               ^
[40/42] Compiling HTTP Parser.swift
/Users/admin/builds/J1XnyXFH/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/HTTP/Parser.swift:258:13: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer
        try UnsafePointer(data).withMemoryRebound(to: Int8.self,
            ^~~~~~~~~~~~~~~~~~~
/Users/admin/builds/J1XnyXFH/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/HTTP/Parser.swift:258:27: note: implicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
        try UnsafePointer(data).withMemoryRebound(to: Int8.self,
                          ^~~~
/Users/admin/builds/J1XnyXFH/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/HTTP/Parser.swift:258:27: note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
        try UnsafePointer(data).withMemoryRebound(to: Int8.self,
                          ^
/Users/admin/builds/J1XnyXFH/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/HTTP/Parser.swift:390:15: warning: assuming you mean 'Optional<HeadersCompleteDirective>.none'; did you mean 'HeadersCompleteDirective.none' instead?
        case .none: return 0
              ^
/Users/admin/builds/J1XnyXFH/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/HTTP/Parser.swift:390:15: note: use 'nil' to silence this warning
        case .none: return 0
             ~^~~~
             nil
/Users/admin/builds/J1XnyXFH/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/HTTP/Parser.swift:390:15: note: use 'none?' instead
        case .none: return 0
              ^~~~
              none?
/Users/admin/builds/J1XnyXFH/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/HTTP/Parser.swift:246:25: error: immutable value 'self.parser' must not be passed inout
        parserPointer = withUnsafeMutablePointer(to: &parser) { $0 }
                        ^
/Users/admin/builds/J1XnyXFH/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/HTTP/Parser.swift:237:5: note: change 'let' to 'var' to make it mutable
    let parser = http_parser()
    ^~~
    var
[41/42] Compiling HTTP Request.swift
/Users/admin/builds/J1XnyXFH/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/HTTP/Parser.swift:258:13: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer
        try UnsafePointer(data).withMemoryRebound(to: Int8.self,
            ^~~~~~~~~~~~~~~~~~~
/Users/admin/builds/J1XnyXFH/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/HTTP/Parser.swift:258:27: note: implicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
        try UnsafePointer(data).withMemoryRebound(to: Int8.self,
                          ^~~~
/Users/admin/builds/J1XnyXFH/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/HTTP/Parser.swift:258:27: note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
        try UnsafePointer(data).withMemoryRebound(to: Int8.self,
                          ^
/Users/admin/builds/J1XnyXFH/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/HTTP/Parser.swift:390:15: warning: assuming you mean 'Optional<HeadersCompleteDirective>.none'; did you mean 'HeadersCompleteDirective.none' instead?
        case .none: return 0
              ^
/Users/admin/builds/J1XnyXFH/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/HTTP/Parser.swift:390:15: note: use 'nil' to silence this warning
        case .none: return 0
             ~^~~~
             nil
/Users/admin/builds/J1XnyXFH/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/HTTP/Parser.swift:390:15: note: use 'none?' instead
        case .none: return 0
              ^~~~
              none?
/Users/admin/builds/J1XnyXFH/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/HTTP/Parser.swift:246:25: error: immutable value 'self.parser' must not be passed inout
        parserPointer = withUnsafeMutablePointer(to: &parser) { $0 }
                        ^
/Users/admin/builds/J1XnyXFH/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/HTTP/Parser.swift:237:5: note: change 'let' to 'var' to make it mutable
    let parser = http_parser()
    ^~~
    var
[42/42] Compiling HTTP Version.swift
error: fatalError
Fetching https://github.com/skylab-inc/StreamKit.git
[1/316] Fetching streamkit
Fetched https://github.com/skylab-inc/StreamKit.git from cache (0.28s)
Computing version for https://github.com/skylab-inc/StreamKit.git
Computed https://github.com/skylab-inc/StreamKit.git at 0.7.0 (0.53s)
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
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version--423B1241ED78D482.txt
[2/4] Compiling HTTP Request.swift
[3/4] Emitting module HTTP
/Users/admin/builds/J1XnyXFH/0/finestructure/swiftpackageindex-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
    public var hashValue: Int {
               ^
/Users/admin/builds/J1XnyXFH/0/finestructure/swiftpackageindex-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
    public var hashValue: Int {
               ^
[4/4] Compiling HTTP Parser.swift
/Users/admin/builds/J1XnyXFH/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/HTTP/Parser.swift:258:13: warning: initialization of 'UnsafePointer<UInt8>' results in a dangling pointer
        try UnsafePointer(data).withMemoryRebound(to: Int8.self,
            ^~~~~~~~~~~~~~~~~~~
/Users/admin/builds/J1XnyXFH/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/HTTP/Parser.swift:258:27: note: implicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'
        try UnsafePointer(data).withMemoryRebound(to: Int8.self,
                          ^~~~
/Users/admin/builds/J1XnyXFH/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/HTTP/Parser.swift:258:27: note: use the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope
        try UnsafePointer(data).withMemoryRebound(to: Int8.self,
                          ^
/Users/admin/builds/J1XnyXFH/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/HTTP/Parser.swift:390:15: warning: assuming you mean 'Optional<HeadersCompleteDirective>.none'; did you mean 'HeadersCompleteDirective.none' instead?
        case .none: return 0
              ^
/Users/admin/builds/J1XnyXFH/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/HTTP/Parser.swift:390:15: note: use 'nil' to silence this warning
        case .none: return 0
             ~^~~~
             nil
/Users/admin/builds/J1XnyXFH/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/HTTP/Parser.swift:390:15: note: use 'none?' instead
        case .none: return 0
              ^~~~
              none?
/Users/admin/builds/J1XnyXFH/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/HTTP/Parser.swift:246:25: error: immutable value 'self.parser' must not be passed inout
        parserPointer = withUnsafeMutablePointer(to: &parser) { $0 }
                        ^
/Users/admin/builds/J1XnyXFH/0/finestructure/swiftpackageindex-builder/spi-builder-workspace/Sources/HTTP/Parser.swift:237:5: note: change 'let' to 'var' to make it mutable
    let parser = http_parser()
    ^~~
    var
[5/6] Compiling HTTP Server.swift
[6/6] Compiling HTTP ClientConnection.swift
error: fatalError
BUILD FAILURE 5.10 macosSpm