The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Edge with Swift 5.9 for Linux.

Build Command

docker run --rm -v "checkouts-4606859-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.19.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/skylab-inc/lightning.git
Reference: 0.4.0
Cloned https://github.com/skylab-inc/lightning.git into spi-builder-workspace
SUCCESS checkout https://github.com/skylab-inc/lightning.git at 0.4.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4606859-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Fetching https://github.com/skylab-inc/StreamKit.git
[1/316] Fetching streamkit
Fetched https://github.com/skylab-inc/StreamKit.git (0.20s)
Computing version for https://github.com/skylab-inc/StreamKit.git
Computed https://github.com/skylab-inc/StreamKit.git at 0.7.0 (0.28s)
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/1] Compiling CHTTPParser http_parser.c
[2/15] Emitting module RunLoop
[3/15] Compiling RunLoop RunLoop.swift
[6/17] Compiling StreamKit Disposable.swift
[7/17] Compiling StreamKit Bag.swift
[8/17] Emitting module StreamKit
[9/17] Compiling POSIX FileDescriptor.swift
[10/17] Compiling POSIX SystemError.swift
[11/17] Compiling StreamKit Error.swift
[12/17] Compiling StreamKit Source.swift
[13/17] Compiling POSIX Socket.swift
[14/17] Emitting module POSIX
[16/19] Compiling StreamKit Observer.swift
[17/19] Compiling StreamKit Event.swift
[18/19] Compiling StreamKit Signal.swift
[22/24] Compiling IOStream Pipe.swift
[23/24] Emitting module IOStream
[24/24] Compiling IOStream IOStream.swift
[27/29] Compiling TCP Socket.swift
[28/29] Emitting module TCP
[29/29] Compiling TCP Server.swift
[32/42] Compiling HTTP Serializable.swift
[33/43] Compiling HTTP Version.swift
[34/43] Compiling HTTP Server.swift
[35/43] Compiling HTTP Response.swift
[36/43] 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
    public var hashValue: Int {
               ^
[37/43] 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
    public var hashValue: Int {
               ^
/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
    public var hashValue: Int {
               ^
[38/43] Compiling HTTP ClientConnection.swift
[39/43] Compiling HTTP Error.swift
[40/43] 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
        return stride(from: 0, to: self.rawHeaders.count, by: 2).flatMap {
                                                                 ^
/host/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
/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
    public var hashValue: Int {
               ^
[41/43] 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
        return stride(from: 0, to: self.rawHeaders.count, by: 2).flatMap {
                                                                 ^
/host/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
/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
    public var hashValue: Int {
               ^
[42/43] Compiling HTTP Parser.swift
/host/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,
            ^~~~~~~~~~~~~~~~~~~
/host/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,
                          ^~~~
/host/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,
                          ^
/host/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
              ^
/host/spi-builder-workspace/Sources/HTTP/Parser.swift:390:15: note: use 'nil' to silence this warning
        case .none: return 0
             ~^~~~
             nil
/host/spi-builder-workspace/Sources/HTTP/Parser.swift:390:15: note: use 'none?' instead
        case .none: return 0
              ^~~~
              none?
/host/spi-builder-workspace/Sources/HTTP/Parser.swift:246:25: error: immutable value 'self.parser' must not be passed inout
        parserPointer = withUnsafeMutablePointer(to: &parser) { $0 }
                        ^
/host/spi-builder-workspace/Sources/HTTP/Parser.swift:237:5: note: change 'let' to 'var' to make it mutable
    let parser = http_parser()
    ^~~
    var
[43/43] Compiling HTTP Request.swift
/host/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,
            ^~~~~~~~~~~~~~~~~~~
/host/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,
                          ^~~~
/host/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,
                          ^
/host/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
              ^
/host/spi-builder-workspace/Sources/HTTP/Parser.swift:390:15: note: use 'nil' to silence this warning
        case .none: return 0
             ~^~~~
             nil
/host/spi-builder-workspace/Sources/HTTP/Parser.swift:390:15: note: use 'none?' instead
        case .none: return 0
              ^~~~
              none?
/host/spi-builder-workspace/Sources/HTTP/Parser.swift:246:25: error: immutable value 'self.parser' must not be passed inout
        parserPointer = withUnsafeMutablePointer(to: &parser) { $0 }
                        ^
/host/spi-builder-workspace/Sources/HTTP/Parser.swift:237:5: note: change 'let' to 'var' to make it mutable
    let parser = http_parser()
    ^~~
    var
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 1