Build Information
Failed to build Edge, reference 0.4.0 (82d0b4), with Swift 6.4 for Linux on 16 Sep 2026 06:15:55 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344847-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:basic-6.4-latest swift build --triple x86_64-unknown-linux-gnu 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.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.4
Building package at path: $PWD
https://github.com/skylab-inc/lightning.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344847-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:basic-6.4-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:c77fcce225e223ac0fafed844619173fc6de8d62dd560eeb28db3182af6a282b
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:basic-6.4-latest
Fetching https://github.com/skylab-inc/StreamKit.git
[1/316] Fetching streamkit
Fetched https://github.com/skylab-inc/StreamKit.git (0.46s)
Computing version for https://github.com/skylab-inc/StreamKit.git
Computed https://github.com/skylab-inc/StreamKit.git at 0.7.0 (0.67s)
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...
[Computing dependencies]
[Pre-planning 1 / 271]
[75 / 138] StreamKit
[75 / 138] RunLoop
[78 / 138] POSIX
[85 / 138] POSIX
[94 / 138] StreamKit-product
[95 / 138] StreamKit-product
[96 / 138] RunLoop
[98 / 139] RunLoop
[105 / 144] POSIX
[117 / 149] TCP
[132 / 160] IOStream
/host/spi-builder-workspace/Sources/HTTP/Method.swift:70:16: [1;33mwarning: [1;39m'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Method' to 'Hashable' by implementing 'hash(into:)' instead[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
[0;36m68 |[0;0m
[0;36m69 |[0;0m extension Method: Hashable {
[0;36m70 |[0;0m public var hashValue: Int {
[0;36m|[0;0m `- [1;33mwarning: [1;39m'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Method' to 'Hashable' by implementing 'hash(into:)' instead[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
[0;36m71 |[0;0m switch self {
[0;36m72 |[0;0m case .delete: return 0
/host/spi-builder-workspace/Sources/HTTP/Status.swift:324:16: [1;33mwarning: [1;39m'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Status' to 'Hashable' by implementing 'hash(into:)' instead[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
[0;36m322 |[0;0m
[0;36m323 |[0;0m extension Status: Hashable {
[0;36m324 |[0;0m public var hashValue: Int {
[0;36m|[0;0m `- [1;33mwarning: [1;39m'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Status' to 'Hashable' by implementing 'hash(into:)' instead[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
[0;36m325 |[0;0m return code
[0;36m326 |[0;0m }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[136 / 160]
/host/spi-builder-workspace/Sources/HTTP/Message.swift:24:66: [1;33mwarning: [1;39m'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
[0;36m22 |[0;0m /// of `rawHeaders`, the last value will be discarded.
[0;36m23 |[0;0m var rawHeaderPairs: [(String, String)] {
[0;36m24 |[0;0m return stride(from: 0, to: self.rawHeaders.count, by: 2).flatMap {
[0;36m|[0;0m |- [1;33mwarning: [1;39m'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
[0;36m|[0;0m `- [1;39mnote: [1;39muse 'compactMap(_:)' instead[0;0m
[0;36m25 |[0;0m let chunk = rawHeaders[$0..<min($0 + 2, rawHeaders.count)]
[0;36m26 |[0;0m if let first = chunk.first, let last = chunk.last {
/host/spi-builder-workspace/Sources/HTTP/Method.swift:70:16: [1;33mwarning: [1;39m'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Method' to 'Hashable' by implementing 'hash(into:)' instead[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
[0;36m68 |[0;0m
[0;36m69 |[0;0m extension Method: Hashable {
[0;36m70 |[0;0m public var hashValue: Int {
[0;36m|[0;0m `- [1;33mwarning: [1;39m'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Method' to 'Hashable' by implementing 'hash(into:)' instead[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
[0;36m71 |[0;0m switch self {
[0;36m72 |[0;0m case .delete: return 0
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
[152 / 165]
/host/spi-builder-workspace/Sources/HTTP/Status.swift:324:16: [1;33mwarning: [1;39m'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Status' to 'Hashable' by implementing 'hash(into:)' instead[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
[0;36m322 |[0;0m
[0;36m323 |[0;0m extension Status: Hashable {
[0;36m324 |[0;0m public var hashValue: Int {
[0;36m|[0;0m `- [1;33mwarning: [1;39m'Hashable.hashValue' is deprecated as a protocol requirement; conform type 'Status' to 'Hashable' by implementing 'hash(into:)' instead[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration\DeprecatedDeclaration]8;;\]
[0;36m325 |[0;0m return code
[0;36m326 |[0;0m }
[#DeprecatedDeclaration]: <https://docs.swift.org/compiler/documentation/diagnostics/deprecated-declaration>
error: SwiftCompile normal x86_64 /host/spi-builder-workspace/Sources/HTTP/Parser.swift failed with a nonzero exit code. Command line: cd /host
builtin-SwiftPerFileCompile Parser.swift
/host/spi-builder-workspace/Sources/HTTP/Parser.swift:246:54: [1;31merror: [1;39mcannot pass immutable value as inout argument: 'parser' is a 'let' constant[0;0m
[0;36m235 |[0;0m // Here I create a constant private pointer to our "constant" http_parser
[0;36m236 |[0;0m // The can be therefore mutated through the pointer, but only within the RawParser.
[0;36m237 |[0;0m let parser = http_parser()
[0;36m|[0;0m `- [1;39mnote: [1;39mchange 'let' to 'var' to make it mutable[0;0m
[0;36m238 |[0;0m private let parserPointer: UnsafeMutablePointer<http_parser>
[0;36m239 |[0;0m
[0;36m:[0;0m
[0;36m244 |[0;0m self.type = type
[0;36m245 |[0;0m self.delegate = delegate
[0;36m246 |[0;0m parserPointer = withUnsafeMutablePointer(to: &[4;39mparser[0;0m) { $0 }
[0;36m|[0;0m `- [1;31merror: [1;39mcannot pass immutable value as inout argument: 'parser' is a 'let' constant[0;0m
[0;36m247 |[0;0m reset()
[0;36m248 |[0;0m }
/host/spi-builder-workspace/Sources/HTTP/Parser.swift:258:13: [1;33mwarning: [1;39minitialization of 'UnsafePointer<UInt8>' results in a dangling pointer[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers\TemporaryPointers]8;;\]
[0;36m256 |[0;0m
[0;36m257 |[0;0m public func parse(_ data: [UInt8]) throws {
[0;36m258 |[0;0m try [4;39mUnsafePointer(data)[0;0m.withMemoryRebound(to: Int8.self,
[0;36m|[0;0m | |- [1;39mnote: [1;39mimplicit argument conversion from '[UInt8]' to 'UnsafePointer<UInt8>' produces a pointer valid only for the duration of the call to 'init(_:)'[0;0m
[0;36m|[0;0m | `- [1;39mnote: [1;39muse the 'withUnsafeBufferPointer' method on Array in order to explicitly convert argument to buffer pointer valid for a defined scope[0;0m
[0;36m|[0;0m `- [1;33mwarning: [1;39minitialization of 'UnsafePointer<UInt8>' results in a dangling pointer[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers\TemporaryPointers]8;;\]
[0;36m259 |[0;0m capacity: data.count) { convertedPointer in
[0;36m260 |[0;0m let bytesParsed = http_parser_execute(
/host/spi-builder-workspace/Sources/HTTP/Parser.swift:390:15: [1;33mwarning: [1;39massuming you mean 'Optional<HeadersCompleteDirective>.none'; did you mean 'HeadersCompleteDirective.none' instead?[0;0m
[0;36m388 |[0;0m )
[0;36m389 |[0;0m switch directive {
[0;36m390 |[0;0m case .none: return 0
[0;36m|[0;0m |- [1;33mwarning: [1;39massuming you mean 'Optional<HeadersCompleteDirective>.none'; did you mean 'HeadersCompleteDirective.none' instead?[0;0m
[0;36m|[0;0m |- [1;39mnote: [1;39muse 'nil' to silence this warning[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39muse 'none?' instead[0;0m
[0;36m391 |[0;0m case .none?: return 0
[0;36m392 |[0;0m case .noBody?: return 1
[#TemporaryPointers]: <https://docs.swift.org/compiler/documentation/diagnostics/temporary-pointers>
Failed frontend command:
/usr/bin/swift-frontend -frontend -c /host/spi-builder-workspace/Sources/HTTP/ClientConnection.swift /host/spi-builder-workspace/Sources/HTTP/Error.swift /host/spi-builder-workspace/Sources/HTTP/Message.swift /host/spi-builder-workspace/Sources/HTTP/Method.swift -primary-file /host/spi-builder-workspace/Sources/HTTP/Parser.swift -primary-file /host/spi-builder-workspace/Sources/HTTP/Request.swift /host/spi-builder-workspace/Sources/HTTP/Response.swift /host/spi-builder-workspace/Sources/HTTP/Serializable.swift /host/spi-builder-workspace/Sources/HTTP/Server.swift /host/spi-builder-workspace/Sources/HTTP/Status.swift /host/spi-builder-workspace/Sources/HTTP/Version.swift -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Edge.build/Debug-linux-x86_64/HTTP-t.build/Objects-normal/x86_64/Parser.d -emit-const-values-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Edge.build/Debug-linux-x86_64/HTTP-t.build/Objects-normal/x86_64/Parser.swiftconstvalues -emit-reference-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Edge.build/Debug-linux-x86_64/HTTP-t.build/Objects-normal/x86_64/Parser.swiftdeps -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Edge.build/Debug-linux-x86_64/HTTP-t.build/Objects-normal/x86_64/Parser.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Edge.build/Debug-linux-x86_64/HTTP-t.build/Objects-normal/x86_64/Request.d -emit-const-values-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Edge.build/Debug-linux-x86_64/HTTP-t.build/Objects-normal/x86_64/Request.swiftconstvalues -emit-reference-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Edge.build/Debug-linux-x86_64/HTTP-t.build/Objects-normal/x86_64/Request.swiftdeps -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/Edge.build/Debug-linux-x86_64/HTTP-t.build/Objects-normal/x86_64/Request.dia -target x86_64-unknown-linux-gnu -disable-objc-interop -I /host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64 -module-cache-path /host/spi-builder-workspace/.build/out/ModuleCache.noindex -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format\=dwarf -dwarf-version\=4 -swift-version 4 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /usr/lib/swift/host/plugins/testing\#/usr/bin/swift-plugin-server -validate-clang-modules-once -clang-build-session-file /host/spi-builder-workspace/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /host -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -fmodule-map-file\=/host/spi-builder-workspace/.build/out/Intermediates.noindex/GeneratedModuleMaps-linux-x86_64/CHTTPParser.modulemap -Xcc -fno-omit-frame-pointer -Xcc -D_LIBCPP_HARDENING_MODE\=_LIBCPP_HARDENING_MODE_DEBUG -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -Xcc -I/host/spi-builder-workspace/Sources/CHTTPParser/include -Xcc -I/host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/Edge.build/Debug-linux-x86_64/HTTP-t.build/DerivedSources-normal/x86_64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/Edge.build/Debug-linux-x86_64/HTTP-t.build/DerivedSources/x86_64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/Edge.build/Debug-linux-x86_64/HTTP-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name HTTP -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/Edge.build/Debug-linux-x86_64/HTTP-t.build/Objects-normal/x86_64/HTTP_const_extract_protocols.json -in-process-plugin-server-path /usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/Edge.build/Debug-linux-x86_64/HTTP-t.build/Objects-normal/x86_64/Parser.o -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/Edge.build/Debug-linux-x86_64/HTTP-t.build/Objects-normal/x86_64/Request.o -index-unit-output-path /Edge.build/Debug-linux-x86_64/HTTP-t.build/Objects-normal/x86_64/Parser.o -index-unit-output-path /Edge.build/Debug-linux-x86_64/HTTP-t.build/Objects-normal/x86_64/Request.o -index-store-path /host/spi-builder-workspace/.build/out -index-system-modules
error: Build failed
BUILD FAILURE 6.4 linux