The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Edge with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1

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 /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:             5.10
Building package at path:  $workDir
https://github.com/skylab-inc/lightning.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-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 from cache (0.22s)
Computing version for https://github.com/skylab-inc/StreamKit.git
Computed https://github.com/skylab-inc/StreamKit.git at 0.7.0 (0.44s)
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
[8/10] Write swift-version-24593BA9C3E375BF.txt
[11/24] Emitting module StreamKit
[12/24] Compiling POSIX SystemError.swift
[13/24] Emitting module RunLoop
[14/24] Compiling RunLoop RunLoop.swift
[15/25] Compiling StreamKit Observer.swift
[16/25] Compiling StreamKit Disposable.swift
[17/25] Compiling StreamKit Error.swift
[18/25] Compiling StreamKit Bag.swift
[19/25] Compiling StreamKit Event.swift
[21/25] Compiling POSIX FileDescriptor.swift
[22/25] Compiling POSIX Socket.swift
[23/25] Emitting module POSIX
[25/26] Compiling StreamKit Signal.swift
[26/26] Compiling StreamKit Source.swift
[28/30] Emitting module IOStream
[29/30] Compiling IOStream IOStream.swift
[30/30] Compiling IOStream Pipe.swift
[32/34] Compiling TCP Socket.swift
[33/34] Compiling TCP Server.swift
[34/34] Emitting module TCP
[36/46] Compiling HTTP Server.swift
[37/46] 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 {
               ^
[38/47] Compiling HTTP Version.swift
[39/47] Compiling HTTP Serializable.swift
[40/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
        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/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
        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/47] Compiling HTTP Response.swift
[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
    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 {
               ^
[46/47] 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
[47/47] 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
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/4] Compiling HTTP Request.swift
[3/4] 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 {
               ^
[4/4] 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
[5/6] Compiling HTTP Server.swift
[6/6] Compiling HTTP ClientConnection.swift
error: fatalError
BUILD FAILURE 5.10 linux

Build Machine: Linux 2