The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftNIOMock, reference master (cc14a0), with Swift 6.4 for Linux on 16 Sep 2026 10:36:38 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886770-0":/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

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ilyapuchka/SwiftNIOMock.git
Reference: master
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/ilyapuchka/SwiftNIOMock
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at cc14a07 update readme
Cloned https://github.com/ilyapuchka/SwiftNIOMock.git
Revision (git rev-parse @):
cc14a07e137597194d439cfbb3ca7b6b99701ccb
SUCCESS checkout https://github.com/ilyapuchka/SwiftNIOMock.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.4
Building package at path:  $PWD
https://github.com/ilyapuchka/SwiftNIOMock.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886770-0":/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/ilyapuchka/URLFormat.git
[1/118] Fetching urlformat
Fetched https://github.com/ilyapuchka/URLFormat.git (0.52s)
Fetching https://github.com/ilyapuchka/common-parsers.git
[1/72] Fetching common-parsers
Fetched https://github.com/ilyapuchka/common-parsers.git (0.45s)
Fetching https://github.com/pointfreeco/swift-prelude.git
[1/3574] Fetching swift-prelude
Fetched https://github.com/pointfreeco/swift-prelude.git (0.46s)
Fetching https://github.com/apple/swift-nio.git
[1/85947] Fetching swift-nio
Fetched https://github.com/apple/swift-nio.git (2.87s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 1.14.4 (3.08s)
Fetching https://github.com/apple/swift-nio-zlib-support.git
[1/15] Fetching swift-nio-zlib-support
Fetched https://github.com/apple/swift-nio-zlib-support.git (0.41s)
Computing version for https://github.com/apple/swift-nio-zlib-support.git
Computed https://github.com/apple/swift-nio-zlib-support.git at 1.0.0 (0.59s)
Creating working copy for https://github.com/pointfreeco/swift-prelude.git
Working copy of https://github.com/pointfreeco/swift-prelude.git resolved at master (b4ceef2)
Creating working copy for https://github.com/ilyapuchka/common-parsers.git
Working copy of https://github.com/ilyapuchka/common-parsers.git resolved at master (fb6f45c)
Creating working copy for https://github.com/ilyapuchka/URLFormat.git
Working copy of https://github.com/ilyapuchka/URLFormat.git resolved at master (0f50393)
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 1.14.4
Creating working copy for https://github.com/apple/swift-nio-zlib-support.git
Working copy of https://github.com/apple/swift-nio-zlib-support.git resolved at 1.0.0
warning: 'swift-nio-zlib-support': ignoring declared target(s) 'swift-nio-zlib-support' in the system package
warning: 'swift-nio-zlib-support': ignoring declared target(s) 'swift-nio-zlib-support' in the system package
Building for debugging...
[Computing dependencies]
[Constructing description]
[Pre-planning 1 / 455]
[Constructing 1 / 966]
[96 / 161] NIOConcurrencyHelpers
[103 / 172] NIOPriorityQueue
[107 / 172] NIOPriorityQueue
[117 / 172] Prelude
[125 / 172] Prelude-product
[129 / 172] Prelude
[133 / 183] CommonParsers
[136 / 190] NIO
[146 / 192] NIOPriorityQueue
[148 / 192] CNIOAtomics
[151 / 192] NIO
[152 / 193] Prelude
[154 / 193] Prelude
[156 / 193] Prelude
[163 / 193] NIOHTTP1
[166 / 193] URLFormat
[170 / 197] NIOHTTP1
[175 / 206] URLFormat
[179 / 207] URLFormat
[180 / 207] URLFormat-product
[188 / 207] NIOHTTP1
[189 / 207] NIOHTTP1-product
[200 / 213] URLFormat
[201 / 213] NIOHTTP1
[204 / 214] NIOHTTP1
error: SwiftCompile normal x86_64 failed with a nonzero exit code. Command line:     cd /host

/host/spi-builder-workspace/Sources/SwiftNIOMock/Service.swift:39:2: warning: '@_functionBuilder' has been renamed to '@resultBuilder'
37 | }
38 |
39 | @_functionBuilder
   |  `- warning: '@_functionBuilder' has been renamed to '@resultBuilder'
40 | public struct ServiceRouterBuilder {
41 |     public typealias RouteClosure<S: Service> = (S) -> Middleware
/host/spi-builder-workspace/Sources/SwiftNIOMock/Service.swift:58:2: warning: '@_functionBuilder' has been renamed to '@resultBuilder'
56 | }
57 |
58 | @_functionBuilder
   |  `- warning: '@_functionBuilder' has been renamed to '@resultBuilder'
59 | public struct RouterBuilder {
60 |     public static func buildBlock(_ items: Middleware...) -> Middleware {
/host/spi-builder-workspace/Sources/SwiftNIOMock/Server.swift:215:11: error: cannot find type 'URLRequest' in scope
213 | }
214 |
215 | extension URLRequest {
    |           `- error: cannot find type 'URLRequest' in scope
216 |     public init(_ request: Server.HTTPHandler.Request) {
217 |         let url = URL(string: request.head.uri)!
/host/spi-builder-workspace/Sources/SwiftNIOMock/Server.swift:253:18: error: cannot find type 'NSURLRequest' in scope
251 | public func redirect(
252 |     session: URLSession = URLSession.shared,
253 |     cachePolicy: NSURLRequest.CachePolicy = .reloadIgnoringLocalAndRemoteCacheData,
    |                  `- error: cannot find type 'NSURLRequest' in scope
254 |     request redirect: @escaping (Server.HTTPHandler.Request) -> Server.HTTPHandler.Request,
255 |     response intercept: @escaping (Server.HTTPHandler.Response) -> Void = { _ in }
/host/spi-builder-workspace/Sources/SwiftNIOMock/Server.swift:252:14: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
250 | /// Middleware that allows to redirect incomming request and intercept responses
251 | public func redirect(
252 |     session: URLSession = URLSession.shared,
    |              `- error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
253 |     cachePolicy: NSURLRequest.CachePolicy = .reloadIgnoringLocalAndRemoteCacheData,
254 |     request redirect: @escaping (Server.HTTPHandler.Request) -> Server.HTTPHandler.Request,
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
1 | @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
2 | public typealias URLSession = AnyObject
  |                  `- note: 'URLSession' has been explicitly marked unavailable here
/host/spi-builder-workspace/Sources/SwiftNIOMock/Server.swift:252:38: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
250 | /// Middleware that allows to redirect incomming request and intercept responses
251 | public func redirect(
252 |     session: URLSession = URLSession.shared,
    |                                      `- error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
253 |     cachePolicy: NSURLRequest.CachePolicy = .reloadIgnoringLocalAndRemoteCacheData,
254 |     request redirect: @escaping (Server.HTTPHandler.Request) -> Server.HTTPHandler.Request,
/host/spi-builder-workspace/Sources/SwiftNIOMock/Server.swift:252:38: error: default argument value of type '_' cannot be converted to type 'AnyObject'
250 | /// Middleware that allows to redirect incomming request and intercept responses
251 | public func redirect(
252 |     session: URLSession = URLSession.shared,
    |                                      `- error: default argument value of type '_' cannot be converted to type 'AnyObject'
253 |     cachePolicy: NSURLRequest.CachePolicy = .reloadIgnoringLocalAndRemoteCacheData,
254 |     request redirect: @escaping (Server.HTTPHandler.Request) -> Server.HTTPHandler.Request,
/host/spi-builder-workspace/Sources/SwiftNIOMock/Service.swift:22:12: warning: cannot use struct 'Unit' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'Prelude' was not imported by this file
20 | }
21 |
22 | public let GET = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.GET)))
   |            `- warning: cannot use struct 'Unit' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'Prelude' was not imported by this file
23 | public let PUT = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.PUT)))
24 | public let POST = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.POST)))
/host/spi-builder-workspace/.build/checkouts/swift-prelude/Sources/Prelude/Unit.swift:1:15: note: struct declared here
 1 | public struct Unit: Codable {}
   |               `- note: struct declared here
 2 |
 3 | public let unit = Unit()
/host/spi-builder-workspace/Sources/SwiftNIOMock/Service.swift:23:12: warning: cannot use struct 'Unit' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'Prelude' was not imported by this file
21 |
22 | public let GET = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.GET)))
23 | public let PUT = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.PUT)))
   |            `- warning: cannot use struct 'Unit' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'Prelude' was not imported by this file
24 | public let POST = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.POST)))
25 | public let PATCH = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.PATCH)))
/host/spi-builder-workspace/.build/checkouts/swift-prelude/Sources/Prelude/Unit.swift:1:15: note: struct declared here
 1 | public struct Unit: Codable {}
   |               `- note: struct declared here
 2 |
 3 | public let unit = Unit()
/host/spi-builder-workspace/Sources/SwiftNIOMock/Service.swift:24:12: warning: cannot use struct 'Unit' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'Prelude' was not imported by this file
22 | public let GET = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.GET)))
23 | public let PUT = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.PUT)))
24 | public let POST = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.POST)))
   |            `- warning: cannot use struct 'Unit' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'Prelude' was not imported by this file
25 | public let PATCH = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.PATCH)))
26 | public let DELETE = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.DELETE)))
/host/spi-builder-workspace/.build/checkouts/swift-prelude/Sources/Prelude/Unit.swift:1:15: note: struct declared here
 1 | public struct Unit: Codable {}
   |               `- note: struct declared here
 2 |
 3 | public let unit = Unit()
/host/spi-builder-workspace/Sources/SwiftNIOMock/Service.swift:25:12: warning: cannot use struct 'Unit' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'Prelude' was not imported by this file
23 | public let PUT = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.PUT)))
24 | public let POST = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.POST)))
25 | public let PATCH = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.PATCH)))
   |            `- warning: cannot use struct 'Unit' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'Prelude' was not imported by this file
26 | public let DELETE = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.DELETE)))
27 |
/host/spi-builder-workspace/.build/checkouts/swift-prelude/Sources/Prelude/Unit.swift:1:15: note: struct declared here
 1 | public struct Unit: Codable {}
   |               `- note: struct declared here
 2 |
 3 | public let unit = Unit()
/host/spi-builder-workspace/Sources/SwiftNIOMock/Service.swift:26:12: warning: cannot use struct 'Unit' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'Prelude' was not imported by this file
24 | public let POST = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.POST)))
25 | public let PATCH = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.PATCH)))
26 | public let DELETE = ClosedPathFormat(httpMethod(String(describing: HTTPMethod.DELETE)))
   |            `- warning: cannot use struct 'Unit' in a property declaration marked public or in a '@frozen' or '@usableFromInline' context; 'Prelude' was not imported by this file
27 |
28 | public extension ServiceProtocol where Self: Service {
/host/spi-builder-workspace/.build/checkouts/swift-prelude/Sources/Prelude/Unit.swift:1:15: note: struct declared here
 1 | public struct Unit: Codable {}
   |               `- note: struct declared here
 2 |
 3 | public let unit = Unit()
Failed frontend command:
/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/Sources/SwiftNIOMock/Router.swift /host/spi-builder-workspace/Sources/SwiftNIOMock/Server.swift /host/spi-builder-workspace/Sources/SwiftNIOMock/Service.swift -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/checkouts/swift-nio-zlib-support/module.modulemap -Xcc -fmodule-map-file\=/host/spi-builder-workspace/.build/out/Intermediates.noindex/GeneratedModuleMaps-linux-x86_64/CNIOZlib.modulemap -Xcc -fmodule-map-file\=/host/spi-builder-workspace/.build/out/Intermediates.noindex/GeneratedModuleMaps-linux-x86_64/CNIOHTTPParser.modulemap -Xcc -fmodule-map-file\=/host/spi-builder-workspace/.build/out/Intermediates.noindex/GeneratedModuleMaps-linux-x86_64/CNIOSHA1.modulemap -Xcc -fmodule-map-file\=/host/spi-builder-workspace/.build/out/Intermediates.noindex/GeneratedModuleMaps-linux-x86_64/CNIOAtomics.modulemap -Xcc -fmodule-map-file\=/host/spi-builder-workspace/.build/out/Intermediates.noindex/GeneratedModuleMaps-linux-x86_64/CNIODarwin.modulemap -Xcc -fmodule-map-file\=/host/spi-builder-workspace/.build/out/Intermediates.noindex/GeneratedModuleMaps-linux-x86_64/CNIOLinux.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/.build/checkouts/swift-nio/Sources/CNIOZlib/include -Xcc -I/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include -Xcc -I/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/CNIOSHA1/include -Xcc -I/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/CNIOAtomics/include -Xcc -I/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/CNIODarwin/include -Xcc -I/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/CNIOLinux/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/SwiftNIOMock.build/Debug-linux-x86_64/SwiftNIOMock-t.build/DerivedSources-normal/x86_64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftNIOMock.build/Debug-linux-x86_64/SwiftNIOMock-t.build/DerivedSources/x86_64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftNIOMock.build/Debug-linux-x86_64/SwiftNIOMock-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name SwiftNIOMock -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftNIOMock.build/Debug-linux-x86_64/SwiftNIOMock-t.build/Objects-normal/x86_64/SwiftNIOMock_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 -emit-module-doc-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftNIOMock.build/Debug-linux-x86_64/SwiftNIOMock-t.build/Objects-normal/x86_64/Modules/SwiftNIOMock.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftNIOMock.build/Debug-linux-x86_64/SwiftNIOMock-t.build/Objects-normal/x86_64/Modules/SwiftNIOMock.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftNIOMock.build/Debug-linux-x86_64/SwiftNIOMock-t.build/Objects-normal/x86_64/SwiftNIOMock-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftNIOMock.build/Debug-linux-x86_64/SwiftNIOMock-t.build/Objects-normal/x86_64/SwiftNIOMock-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftNIOMock.build/Debug-linux-x86_64/SwiftNIOMock-t.build/Objects-normal/x86_64/SwiftNIOMock-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftNIOMock.build/Debug-linux-x86_64/SwiftNIOMock-t.build/Objects-normal/x86_64/Modules/SwiftNIOMock.swiftmodule
error: Build failed
BUILD FAILURE 6.4 linux