Build Information
Failed to build papyrus, reference v0.6.16 (0a424d), with Swift 6.4 for Android on 20 Sep 2026 17:37:33 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344844-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:android-6.4-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/joshuawright11/papyrus.git
Reference: v0.6.16
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/joshuawright11/papyrus
* tag v0.6.16 -> FETCH_HEAD
HEAD is now at 0a424d9 sendable
Cloned https://github.com/joshuawright11/papyrus.git
Revision (git rev-parse @):
0a424d90f7a31b40e3b850a58062bb3aa701323f
SUCCESS checkout https://github.com/joshuawright11/papyrus.git at v0.6.16
========================================
Build
========================================
Selected platform: android
Swift version: 6.4
Building package at path: $PWD
https://github.com/joshuawright11/papyrus.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344844-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:android-6.4-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:abadcff584c273feba50641b454858d377ba30b35ea7287a94f45ebd8afd0ea0
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.4-latest
Fetching https://github.com/pointfreeco/swift-macro-testing
Fetching https://github.com/apple/swift-syntax
Fetching https://github.com/Alamofire/Alamofire.git
[1/1002] Fetching swift-macro-testing
[1003/33896] Fetching swift-macro-testing, alamofire
[1332/113882] Fetching swift-macro-testing, alamofire, swift-syntax
Fetched https://github.com/pointfreeco/swift-macro-testing (3.23s)
Fetched https://github.com/apple/swift-syntax (3.26s)
Fetched https://github.com/Alamofire/Alamofire.git (3.27s)
Computing version for https://github.com/apple/swift-syntax
Computed https://github.com/apple/swift-syntax at 510.0.3 (4.44s)
Computing version for https://github.com/Alamofire/Alamofire.git
Computed https://github.com/Alamofire/Alamofire.git at 5.12.2 (0.19s)
Computing version for https://github.com/pointfreeco/swift-macro-testing
Computed https://github.com/pointfreeco/swift-macro-testing at 0.7.0 (0.17s)
Fetching https://github.com/pointfreeco/swift-snapshot-testing
[1/16416] Fetching swift-snapshot-testing
Fetched https://github.com/pointfreeco/swift-snapshot-testing (2.05s)
Computing version for https://github.com/pointfreeco/swift-snapshot-testing
Computed https://github.com/pointfreeco/swift-snapshot-testing at 1.19.5 (2.23s)
Fetching https://github.com/pointfreeco/swift-custom-dump
[1/5666] Fetching swift-custom-dump
Fetched https://github.com/pointfreeco/swift-custom-dump (0.55s)
Computing version for https://github.com/pointfreeco/swift-custom-dump
Computed https://github.com/pointfreeco/swift-custom-dump at 1.7.3 (0.75s)
Fetching https://github.com/pointfreeco/swift-issue-reporting
[1/6136] Fetching swift-issue-reporting
Fetched https://github.com/pointfreeco/swift-issue-reporting (0.75s)
Computing version for https://github.com/pointfreeco/swift-issue-reporting
Computed https://github.com/pointfreeco/swift-issue-reporting at 2.1.0 (1.86s)
Creating working copy for https://github.com/pointfreeco/swift-issue-reporting
Working copy of https://github.com/pointfreeco/swift-issue-reporting resolved at 2.1.0
Creating working copy for https://github.com/apple/swift-syntax
Working copy of https://github.com/apple/swift-syntax resolved at 510.0.3
Creating working copy for https://github.com/pointfreeco/swift-macro-testing
Working copy of https://github.com/pointfreeco/swift-macro-testing resolved at 0.7.0
Creating working copy for https://github.com/pointfreeco/swift-snapshot-testing
Working copy of https://github.com/pointfreeco/swift-snapshot-testing resolved at 1.19.5
Creating working copy for https://github.com/pointfreeco/swift-custom-dump
Working copy of https://github.com/pointfreeco/swift-custom-dump resolved at 1.7.3
Creating working copy for https://github.com/Alamofire/Alamofire.git
Working copy of https://github.com/Alamofire/Alamofire.git resolved at 5.12.2
warning: 'swift-macro-testing': Conflicting identity for swift-syntax: dependency 'github.com/swiftlang/swift-syntax' and dependency 'github.com/apple/swift-syntax' both point to the same package identity 'swift-syntax'. The dependencies are introduced through the following chains: (A) /host/spi-builder-workspace->github.com/pointfreeco/swift-macro-testing->github.com/swiftlang/swift-syntax (B) /host/spi-builder-workspace->github.com/apple/swift-syntax. If there are multiple chains that lead to the same dependency, only the first chain is shown here. To see all chains use debug output option. To resolve the conflict, coordinate with the maintainer of the package that introduces the conflicting dependency. This will be escalated to an error in future versions of SwiftPM.
warning: 'swift-snapshot-testing': Conflicting identity for swift-syntax: dependency 'github.com/swiftlang/swift-syntax' and dependency 'github.com/apple/swift-syntax' both point to the same package identity 'swift-syntax'. The dependencies are introduced through the following chains: (A) /host/spi-builder-workspace->github.com/pointfreeco/swift-macro-testing->github.com/swiftlang/swift-syntax (B) /host/spi-builder-workspace->github.com/apple/swift-syntax. If there are multiple chains that lead to the same dependency, only the first chain is shown here. To see all chains use debug output option. To resolve the conflict, coordinate with the maintainer of the package that introduces the conflicting dependency. This will be escalated to an error in future versions of SwiftPM.
warning: 'swift-macro-testing': Conflicting identity for swift-syntax: dependency 'github.com/swiftlang/swift-syntax' and dependency 'github.com/apple/swift-syntax' both point to the same package identity 'swift-syntax'. The dependencies are introduced through the following chains: (A) /host/spi-builder-workspace->github.com/pointfreeco/swift-macro-testing->github.com/swiftlang/swift-syntax (B) /host/spi-builder-workspace->github.com/apple/swift-syntax. If there are multiple chains that lead to the same dependency, only the first chain is shown here. To see all chains use debug output option. To resolve the conflict, coordinate with the maintainer of the package that introduces the conflicting dependency. This will be escalated to an error in future versions of SwiftPM.
warning: 'swift-snapshot-testing': Conflicting identity for swift-syntax: dependency 'github.com/swiftlang/swift-syntax' and dependency 'github.com/apple/swift-syntax' both point to the same package identity 'swift-syntax'. The dependencies are introduced through the following chains: (A) /host/spi-builder-workspace->github.com/pointfreeco/swift-macro-testing->github.com/swiftlang/swift-syntax (B) /host/spi-builder-workspace->github.com/apple/swift-syntax. If there are multiple chains that lead to the same dependency, only the first chain is shown here. To see all chains use debug output option. To resolve the conflict, coordinate with the maintainer of the package that introduces the conflicting dependency. This will be escalated to an error in future versions of SwiftPM.
Building for debugging...
[Computing dependencies]
[Pre-planning 1 / 682]
[Planning deferred tasks]
[141 / 279] Alamofire
[143 / 279] SwiftSyntax510
[146 / 280] SwiftSyntax510
[160 / 281] Alamofire
[168 / 283] Alamofire
[179 / 292] SwiftSyntax
[179 / 292] Alamofire
[179 / 292] SwiftSyntax
[191 / 317] SwiftParser
[195 / 317] SwiftDiagnostics
[201 / 317] SwiftBasicFormat
[205 / 317] SwiftParser
[206 / 317] SwiftParser
[211 / 317] SwiftParser
[216 / 317] SwiftParser-product
[217 / 317] SwiftParser-product
[218 / 317] SwiftParser-product
[220 / 317] SwiftOperators
[223 / 317] SwiftParserDiagnostics
[228 / 337] SwiftOperators
[229 / 338] SwiftParserDiagnostics
[239 / 339] SwiftParserDiagnostics
[244 / 339] SwiftParserDiagnostics
[245 / 339] SwiftParserDiagnostics
[249 / 339] SwiftOperators
[252 / 339] SwiftOperators
[254 / 339] SwiftParser
[260 / 341]
[265 / 350] SwiftSyntaxBuilder
[266 / 351] SwiftSyntaxBuilder
[270 / 351] SwiftSyntaxBuilder
[280 / 361] SwiftSyntaxMacros
[286 / 361] SwiftSyntaxMacros
[296 / 370] SwiftSyntaxMacroExpansion
[296 / 370] SwiftSyntaxMacros
[299 / 372] SwiftSyntaxMacros
[303 / 372] SwiftSyntaxMacroExpansion
[304 / 372] SwiftSyntaxMacroExpansion
[314 / 380] SwiftCompilerPluginMessageHandling
[318 / 381] SwiftSyntaxBuilder
[328 / 384] SwiftCompilerPluginMessageHandling
[328 / 384] SwiftSyntaxMacroExpansion
[330 / 385] SwiftCompilerPluginMessageHandling
[332 / 386] SwiftCompilerPlugin
[337 / 386] SwiftCompilerPlugin
[339 / 387] SwiftSyntax
[342 / 388] SwiftSyntax
[349 / 388] SwiftSyntaxMacros
[357 / 389] PapyrusPlugin
[366 / 398] PapyrusPlugin
[367 / 398] PapyrusPlugin
[371 / 399] PapyrusPlugin
[381 / 409] PapyrusCore
/host/spi-builder-workspace/PapyrusCore/Sources/Provider.swift:110:42: [1;33mwarning: [1;39mconverting a value of type '(sending any Response) -> ()' to type '(any Response) -> Void' risks causing data races; this is an error in the Swift 6 language mode[0;0m
[0;36m108 |[0;0m try await intercept(req: req) { req in
[0;36m109 |[0;0m return try await withCheckedThrowingContinuation {
[0;36m110 |[0;0m next(req, $0.resume)
[0;36m|[0;0m |- [1;33mwarning: [1;39mconverting a value of type '(sending any Response) -> ()' to type '(any Response) -> Void' risks causing data races; this is an error in the Swift 6 language mode[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39mconverting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value[0;0m
[0;36m111 |[0;0m }
[0;36m112 |[0;0m }
error: SwiftCompile normal aarch64 failed with a nonzero exit code. Command line: cd /host
/host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift:9:41: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m7 |[0;0m extension Provider {
[0;36m8 |[0;0m public convenience init(baseURL: String,
[0;36m9 |[0;0m urlSession: [4;39mURLSession[0;0m = .shared,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m10 |[0;0m modifiers: [RequestModifier] = [],
[0;36m11 |[0;0m interceptors: [Interceptor] = []) {
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift:9:55: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m7 |[0;0m extension Provider {
[0;36m8 |[0;0m public convenience init(baseURL: String,
[0;36m9 |[0;0m urlSession: URLSession = .shared,
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m10 |[0;0m modifiers: [RequestModifier] = [],
[0;36m11 |[0;0m interceptors: [Interceptor] = []) {
/host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift:9:55: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m7 |[0;0m extension Provider {
[0;36m8 |[0;0m public convenience init(baseURL: String,
[0;36m9 |[0;0m urlSession: URLSession = [4;39m.shared[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m10 |[0;0m modifiers: [RequestModifier] = [],
[0;36m11 |[0;0m interceptors: [Interceptor] = []) {
/host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift:18:1: [1;31merror: [1;39mnon-nominal type 'URLSession' (aka 'AnyObject') cannot be extended[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
[0;36m16 |[0;0m // MARK: `HTTPService` Conformance
[0;36m17 |[0;0m
[0;36m18 |[0;0m extension [4;39mURLSession[0;0m: HTTPService {
[0;36m|[0;0m `- [1;31merror: [1;39mnon-nominal type 'URLSession' (aka 'AnyObject') cannot be extended[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
[0;36m19 |[0;0m public func build(method: String, url: URL, headers: [String: String], body: Data?) -> Request {
[0;36m20 |[0;0m var request = URLRequest(url: url)
/host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift:54:28: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m52 |[0;0m
[0;36m53 |[0;0m extension Response {
[0;36m54 |[0;0m public var urlRequest: [4;39mURLRequest[0;0m { (self as! _Response).urlRequest }
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m55 |[0;0m public var urlResponse: URLResponse? { (self as! _Response).urlResponse }
[0;36m56 |[0;0m }
/host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift:55:29: [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m53 |[0;0m extension Response {
[0;36m54 |[0;0m public var urlRequest: URLRequest { (self as! _Response).urlRequest }
[0;36m55 |[0;0m public var urlResponse: [4;39mURLResponse[0;0m? { (self as! _Response).urlResponse }
[0;36m|[0;0m `- [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m56 |[0;0m }
[0;36m57 |[0;0m
Foundation.URLResponse:2:18: [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift:59:21: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m57 |[0;0m
[0;36m58 |[0;0m private struct _Response: Response {
[0;36m59 |[0;0m let urlRequest: [4;39mURLRequest[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m60 |[0;0m let urlResponse: URLResponse?
[0;36m61 |[0;0m
/host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift:60:22: [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m58 |[0;0m private struct _Response: Response {
[0;36m59 |[0;0m let urlRequest: URLRequest
[0;36m60 |[0;0m let urlResponse: [4;39mURLResponse[0;0m?
[0;36m|[0;0m `- [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m61 |[0;0m
[0;36m62 |[0;0m var request: Request? { urlRequest }
Foundation.URLResponse:2:18: [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift:68:19: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m66 |[0;0m var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
[0;36m67 |[0;0m
[0;36m68 |[0;0m init(request: [4;39mURLRequest[0;0m, response: URLResponse?, error: Error?, body: Data?) {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m69 |[0;0m self.urlRequest = request
[0;36m70 |[0;0m self.urlResponse = response
/host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift:68:41: [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m66 |[0;0m var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
[0;36m67 |[0;0m
[0;36m68 |[0;0m init(request: URLRequest, response: [4;39mURLResponse[0;0m?, error: Error?, body: Data?) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m69 |[0;0m self.urlRequest = request
[0;36m70 |[0;0m self.urlResponse = response
Foundation.URLResponse:2:18: [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift:93:28: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m91 |[0;0m
[0;36m92 |[0;0m extension Request {
[0;36m93 |[0;0m public var urlRequest: [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m94 |[0;0m (self as! URLRequest)
[0;36m95 |[0;0m }
/host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift:98:11: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m96 |[0;0m }
[0;36m97 |[0;0m
[0;36m98 |[0;0m extension [4;39mURLRequest[0;0m: Request {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m99 |[0;0m public var body: Data? {
[0;36m100 |[0;0m get { httpBody }
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
Failed frontend command:
/root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift -target aarch64-unknown-linux-android28 -Xllvm -aarch64-use-tbi -disable-objc-interop -sdk /android-ndk/android-ndk-r27d/toolchains/llvm/prebuilt/linux-x86_64/sysroot -sysroot /android-ndk/android-ndk-r27d/toolchains/llvm/prebuilt/linux-x86_64/sysroot -I /host/spi-builder-workspace/.build/out/Products/Debug-android-aarch64 -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 5 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -load-plugin-executable /host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64/PapyrusPlugin\#PapyrusPlugin -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/lib/swift/host/plugins/testing\#/root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/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 -resource-dir /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_android.artifactbundle/swift-android/swift-resources/usr/lib/swift-aarch64 -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -resource-dir -Xcc /android-ndk/android-ndk-r27d/toolchains/llvm/prebuilt/linux-x86_64/lib/clang/18 -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/out/Products/Debug-android-aarch64/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/papyrus.build/Debug-android-aarch64/Papyrus-t.build/DerivedSources-normal/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/papyrus.build/Debug-android-aarch64/Papyrus-t.build/DerivedSources/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/papyrus.build/Debug-android-aarch64/Papyrus-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name Papyrus -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/papyrus.build/Debug-android-aarch64/Papyrus-t.build/Objects-normal/aarch64/Papyrus_const_extract_protocols.json -in-process-plugin-server-path /root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/lib/swift/host/plugins -plugin-path /root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/local/lib/swift/host/plugins -emit-module-doc-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/papyrus.build/Debug-android-aarch64/Papyrus-t.build/Objects-normal/aarch64/Modules/Papyrus.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/papyrus.build/Debug-android-aarch64/Papyrus-t.build/Objects-normal/aarch64/Modules/Papyrus.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/papyrus.build/Debug-android-aarch64/Papyrus-t.build/Objects-normal/aarch64/Papyrus-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/papyrus.build/Debug-android-aarch64/Papyrus-t.build/Objects-normal/aarch64/Papyrus-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/papyrus.build/Debug-android-aarch64/Papyrus-t.build/Objects-normal/aarch64/Papyrus-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/papyrus.build/Debug-android-aarch64/Papyrus-t.build/Objects-normal/aarch64/Modules/Papyrus.swiftmodule
error: SwiftCompile normal aarch64 /host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift failed with a nonzero exit code. Command line: cd /host
builtin-SwiftPerFileCompile URLSession+Papyrus.swift
/host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift:9:41: [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m7 |[0;0m extension Provider {
[0;36m8 |[0;0m public convenience init(baseURL: String,
[0;36m9 |[0;0m urlSession: [4;39mURLSession[0;0m = .shared,
[0;36m|[0;0m `- [1;31merror: [1;39m'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m10 |[0;0m modifiers: [RequestModifier] = [],
[0;36m11 |[0;0m interceptors: [Interceptor] = []) {
Foundation.URLSession:2:18: [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLSession = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLSession' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift:9:55: [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m7 |[0;0m extension Provider {
[0;36m8 |[0;0m public convenience init(baseURL: String,
[0;36m9 |[0;0m urlSession: URLSession = [4;39m.shared[0;0m,
[0;36m|[0;0m `- [1;31merror: [1;39mtype 'URLSession' (aka 'AnyObject') has no member 'shared'[0;0m
[0;36m10 |[0;0m modifiers: [RequestModifier] = [],
[0;36m11 |[0;0m interceptors: [Interceptor] = []) {
/host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift:9:55: [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m7 |[0;0m extension Provider {
[0;36m8 |[0;0m public convenience init(baseURL: String,
[0;36m9 |[0;0m urlSession: URLSession = .shared,
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type '_' expected to be instance of class or class-constrained type[0;0m
[0;36m10 |[0;0m modifiers: [RequestModifier] = [],
[0;36m11 |[0;0m interceptors: [Interceptor] = []) {
/host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift:18:1: [1;31merror: [1;39mnon-nominal type 'URLSession' (aka 'AnyObject') cannot be extended[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
[0;36m16 |[0;0m // MARK: `HTTPService` Conformance
[0;36m17 |[0;0m
[0;36m18 |[0;0m extension [4;39mURLSession[0;0m: HTTPService {
[0;36m|[0;0m `- [1;31merror: [1;39mnon-nominal type 'URLSession' (aka 'AnyObject') cannot be extended[0;0m [#]8;;https://docs.swift.org/compiler/documentation/diagnostics/nominal-types\NominalTypes]8;;\]
[0;36m19 |[0;0m public func build(method: String, url: URL, headers: [String: String], body: Data?) -> Request {
[0;36m20 |[0;0m var request = URLRequest(url: url)
/host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift:54:28: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m52 |[0;0m
[0;36m53 |[0;0m extension Response {
[0;36m54 |[0;0m public var urlRequest: [4;39mURLRequest[0;0m { (self as! _Response).urlRequest }
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m55 |[0;0m public var urlResponse: URLResponse? { (self as! _Response).urlResponse }
[0;36m56 |[0;0m }
/host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift:55:29: [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m53 |[0;0m extension Response {
[0;36m54 |[0;0m public var urlRequest: URLRequest { (self as! _Response).urlRequest }
[0;36m55 |[0;0m public var urlResponse: [4;39mURLResponse[0;0m? { (self as! _Response).urlResponse }
[0;36m|[0;0m `- [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m56 |[0;0m }
[0;36m57 |[0;0m
Foundation.URLResponse:2:18: [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift:59:21: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m57 |[0;0m
[0;36m58 |[0;0m private struct _Response: Response {
[0;36m59 |[0;0m let urlRequest: [4;39mURLRequest[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m60 |[0;0m let urlResponse: URLResponse?
[0;36m61 |[0;0m
/host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift:60:22: [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m58 |[0;0m private struct _Response: Response {
[0;36m59 |[0;0m let urlRequest: URLRequest
[0;36m60 |[0;0m let urlResponse: [4;39mURLResponse[0;0m?
[0;36m|[0;0m `- [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m61 |[0;0m
[0;36m62 |[0;0m var request: Request? { urlRequest }
Foundation.URLResponse:2:18: [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift:68:19: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m66 |[0;0m var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
[0;36m67 |[0;0m
[0;36m68 |[0;0m init(request: [4;39mURLRequest[0;0m, response: URLResponse?, error: Error?, body: Data?) {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m69 |[0;0m self.urlRequest = request
[0;36m70 |[0;0m self.urlResponse = response
/host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift:68:41: [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m66 |[0;0m var statusCode: Int? { (urlResponse as? HTTPURLResponse)?.statusCode }
[0;36m67 |[0;0m
[0;36m68 |[0;0m init(request: URLRequest, response: [4;39mURLResponse[0;0m?, error: Error?, body: Data?) {
[0;36m|[0;0m `- [1;31merror: [1;39m'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.[0;0m
[0;36m69 |[0;0m self.urlRequest = request
[0;36m70 |[0;0m self.urlResponse = response
Foundation.URLResponse:2:18: [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
[0;36m1 |[0;0m @available(*, unavailable, message: "This type has moved to the FoundationNetworking module. Import that module to use it.")
[0;36m2 |[0;0m public typealias URLResponse = AnyObject
[0;36m|[0;0m `- [1;39mnote: [1;39m'URLResponse' has been explicitly marked unavailable here[0;0m
/host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift:93:28: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m91 |[0;0m
[0;36m92 |[0;0m extension Request {
[0;36m93 |[0;0m public var urlRequest: [4;39mURLRequest[0;0m {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m94 |[0;0m (self as! URLRequest)
[0;36m95 |[0;0m }
/host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift:98:11: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m96 |[0;0m }
[0;36m97 |[0;0m
[0;36m98 |[0;0m extension [4;39mURLRequest[0;0m: Request {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m99 |[0;0m public var body: Data? {
[0;36m100 |[0;0m get { httpBody }
/host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift:12:43: [1;31merror: [1;39margument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'HTTPService'[0;0m
[0;36m10 |[0;0m modifiers: [RequestModifier] = [],
[0;36m11 |[0;0m interceptors: [Interceptor] = []) {
[0;36m12 |[0;0m self.init(baseURL: baseURL, http: urlSession, modifiers: modifiers, interceptors: interceptors)
[0;36m|[0;0m `- [1;31merror: [1;39margument type 'URLSession' (aka 'AnyObject') does not conform to expected type 'HTTPService'[0;0m
[0;36m13 |[0;0m }
[0;36m14 |[0;0m }
/host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift:66:41: [1;33mwarning: [1;39mconditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing[0;0m
[0;36m64 |[0;0m let body: Data?
[0;36m65 |[0;0m let headers: [String: String]?
[0;36m66 |[0;0m var statusCode: Int? { ([4;39murlResponse[0;0m as? [4;39mHTTPURLResponse[0;0m)?.statusCode }
[0;36m|[0;0m `- [1;33mwarning: [1;39mconditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing[0;0m
[0;36m67 |[0;0m
[0;36m68 |[0;0m init(request: URLRequest, response: URLResponse?, error: Error?, body: Data?) {
/host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift:66:63: [1;31merror: [1;39mvalue of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'[0;0m
[0;36m64 |[0;0m let body: Data?
[0;36m65 |[0;0m let headers: [String: String]?
[0;36m66 |[0;0m var statusCode: Int? { [4;39m(urlResponse as? HTTPURLResponse)?[0;0m.[4;39mstatusCode[0;0m }
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'[0;0m
[0;36m67 |[0;0m
[0;36m68 |[0;0m init(request: URLRequest, response: URLResponse?, error: Error?, body: Data?) {
/host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift:73:37: [1;33mwarning: [1;39mconditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing[0;0m
[0;36m71 |[0;0m self.error = error
[0;36m72 |[0;0m self.body = body
[0;36m73 |[0;0m let headerPairs = ([4;39mresponse[0;0m as? [4;39mHTTPURLResponse[0;0m)?
[0;36m|[0;0m `- [1;33mwarning: [1;39mconditional downcast from 'URLResponse?' (aka 'Optional<AnyObject>') to 'HTTPURLResponse' (aka 'AnyObject') does nothing[0;0m
[0;36m74 |[0;0m .allHeaderFields
[0;36m75 |[0;0m .compactMap { key, value -> (String, String)? in
/host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift:74:14: [1;31merror: [1;39mvalue of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'[0;0m
[0;36m72 |[0;0m self.body = body
[0;36m73 |[0;0m let headerPairs = (response as? HTTPURLResponse)?
[0;36m74 |[0;0m .[4;39mallHeaderFields[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mvalue of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'allHeaderFields'[0;0m
[0;36m75 |[0;0m .compactMap { key, value -> (String, String)? in
[0;36m76 |[0;0m guard let key = key as? String, let value = value as? String else {
/host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift:94:19: [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m92 |[0;0m extension Request {
[0;36m93 |[0;0m public var urlRequest: URLRequest {
[0;36m94 |[0;0m (self as! [4;39mURLRequest[0;0m)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find type 'URLRequest' in scope[0;0m
[0;36m95 |[0;0m }
[0;36m96 |[0;0m }
[#NominalTypes]: <https://docs.swift.org/compiler/documentation/diagnostics/nominal-types>
Failed frontend command:
/root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/bin/swift-frontend -frontend -c -primary-file /host/spi-builder-workspace/Papyrus/URLSession+Papyrus.swift -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/papyrus.build/Debug-android-aarch64/Papyrus-t.build/Objects-normal/aarch64/URLSession+Papyrus.d -emit-const-values-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/papyrus.build/Debug-android-aarch64/Papyrus-t.build/Objects-normal/aarch64/URLSession+Papyrus.swiftconstvalues -emit-reference-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/papyrus.build/Debug-android-aarch64/Papyrus-t.build/Objects-normal/aarch64/URLSession+Papyrus.swiftdeps -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/papyrus.build/Debug-android-aarch64/Papyrus-t.build/Objects-normal/aarch64/URLSession+Papyrus.dia -target aarch64-unknown-linux-android28 -Xllvm -aarch64-use-tbi -disable-objc-interop -sdk /android-ndk/android-ndk-r27d/toolchains/llvm/prebuilt/linux-x86_64/sysroot -sysroot /android-ndk/android-ndk-r27d/toolchains/llvm/prebuilt/linux-x86_64/sysroot -I /host/spi-builder-workspace/.build/out/Products/Debug-android-aarch64 -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 5 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -load-plugin-executable /host/spi-builder-workspace/.build/out/Products/Debug-linux-x86_64/PapyrusPlugin\#PapyrusPlugin -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/lib/swift/host/plugins/testing\#/root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/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 -resource-dir /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_android.artifactbundle/swift-android/swift-resources/usr/lib/swift-aarch64 -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -resource-dir -Xcc /android-ndk/android-ndk-r27d/toolchains/llvm/prebuilt/linux-x86_64/lib/clang/18 -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/out/Products/Debug-android-aarch64/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/papyrus.build/Debug-android-aarch64/Papyrus-t.build/DerivedSources-normal/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/papyrus.build/Debug-android-aarch64/Papyrus-t.build/DerivedSources/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/papyrus.build/Debug-android-aarch64/Papyrus-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name Papyrus -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/papyrus.build/Debug-android-aarch64/Papyrus-t.build/Objects-normal/aarch64/Papyrus_const_extract_protocols.json -in-process-plugin-server-path /root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/lib/swift/host/plugins -plugin-path /root/.local/share/swiftly/toolchains/6.4.x-snapshot-2026-09-04/usr/local/lib/swift/host/plugins -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/papyrus.build/Debug-android-aarch64/Papyrus-t.build/Objects-normal/aarch64/URLSession+Papyrus.o -index-unit-output-path /papyrus.build/Debug-android-aarch64/Papyrus-t.build/Objects-normal/aarch64/URLSession+Papyrus.o -index-store-path /host/spi-builder-workspace/.build/out -index-system-modules
error: Build failed
BUILD FAILURE 6.4 android