Build Information
Failed to build routing-kit, reference main (3c8e7a), with Swift 6.2 for Android on 18 Aug 2026 17:11:32 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344843-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.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.0.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/vapor/routing-kit.git
Reference: main
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/vapor/routing-kit
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 3c8e7a2 Remove runs-on config file, in v3 it'll know to always extend vapor/ci
Cloned https://github.com/vapor/routing-kit.git
Revision (git rev-parse @):
3c8e7a2fc14cea67e3a00f9602bed7958c8ec23a
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/vapor/routing-kit.git at main
========================================
Build
========================================
Selected platform: android
Swift version: 6.2
Building package at path: $PWD
https://github.com/vapor/routing-kit.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344843-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.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:573917aa137cc6f081a4f3d2a0330bac24553e9cd713cd758adf65046f5c6b90
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.2-latest
Fetching https://github.com/apple/swift-algorithms.git
Fetching https://github.com/apple/swift-log.git
[1/7954] Fetching swift-log
[1751/14052] Fetching swift-log, swift-algorithms
Fetched https://github.com/apple/swift-log.git from cache (0.85s)
[2379/6098] Fetching swift-algorithms
Fetched https://github.com/apple/swift-algorithms.git from cache (1.16s)
Computing version for https://github.com/apple/swift-algorithms.git
Computed https://github.com/apple/swift-algorithms.git at 1.2.1 (2.02s)
Fetching https://github.com/apple/swift-numerics.git
[1/6553] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics.git from cache (1.38s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.1.1 (1.54s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.15.0 (0.15s)
Creating working copy for https://github.com/apple/swift-numerics.git
Working copy of https://github.com/apple/swift-numerics.git resolved at 1.1.1
Creating working copy for https://github.com/apple/swift-algorithms.git
Working copy of https://github.com/apple/swift-algorithms.git resolved at 1.2.1
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.15.0
Building for debugging...
[0/6] Write sources
[4/6] Compiling _NumericsShims _NumericsShims.c
[5/6] Write swift-version--11D90AFD9DD3AB2.txt
[7/28] Emitting module RealModule
[8/29] Compiling Logging LoggingSystem.swift
[9/30] Compiling Logging Logger.swift
[10/30] Compiling RealModule Real.swift
[11/30] Compiling RealModule Float80+Real.swift
[12/30] Compiling RealModule RealFunctions.swift
[13/30] Compiling Logging Logger+With.swift
[14/30] Compiling RealModule AugmentedArithmetic.swift
[15/30] Compiling RealModule Double+Real.swift
[16/30] Compiling Logging Logger+Attributes.swift
[17/30] Compiling RealModule AlgebraicField.swift
[18/30] Compiling RealModule ApproximateEquality.swift
[19/30] Compiling RealModule RelaxedArithmetic.swift
[20/30] Compiling RealModule Float16+Real.swift
[21/30] Compiling RealModule ElementaryFunctions.swift
[22/30] Compiling RealModule Float+Real.swift
[26/56] Compiling Algorithms Split.swift
[27/56] Compiling Algorithms Stride.swift
[28/56] Compiling Algorithms Suffix.swift
[29/56] Compiling Algorithms Partition.swift
[30/56] Compiling Algorithms Permutations.swift
[31/56] Compiling Algorithms Product.swift
[32/56] Compiling Algorithms RandomSample.swift
[33/56] Compiling Algorithms Reductions.swift
[34/56] Compiling Algorithms Rotate.swift
[35/56] Compiling Algorithms Joined.swift
[36/56] Compiling Algorithms Keyed.swift
[37/56] Compiling Algorithms MinMax.swift
[38/59] Compiling Logging MetadataProvider.swift
[39/59] Compiling Algorithms Compacted.swift
[40/59] Compiling Algorithms Cycle.swift
[41/59] Compiling Algorithms EitherSequence.swift
[42/59] Compiling Algorithms FirstNonNil.swift
[43/59] Compiling Algorithms FlattenCollection.swift
[44/59] Compiling Algorithms Grouped.swift
[45/59] Compiling Algorithms Indexed.swift
[46/59] Compiling Algorithms Intersperse.swift
[47/59] Compiling Algorithms AdjacentPairs.swift
[48/59] Compiling Algorithms Chain.swift
[49/59] Compiling Algorithms Chunked.swift
[50/59] Compiling Algorithms Combinations.swift
[51/59] Compiling Algorithms Trim.swift
[52/59] Compiling Algorithms Unique.swift
[53/59] Compiling Algorithms Windows.swift
[58/59] Emitting module Logging
[60/60] Emitting module Algorithms
[62/70] Compiling RoutingKit String+lastUTF8Range.swift
/host/spi-builder-workspace/Sources/RoutingKit/Utilities/String+lastUTF8Range.swift:15:13: error: lifetime-dependent variable 'haystack' escapes its scope
13 | @available(macOS 26, iOS 26, tvOS 26, watchOS 26, visionOS 26, *)
14 | func lastUTF8RangeUsingSpan(of needle: Substring, in searchRange: Range<Int>) -> Range<Int>? {
15 | let haystack = self.utf8.span
| | `- note: it depends on the lifetime of this parent value
| `- error: lifetime-dependent variable 'haystack' escapes its scope
16 | let pattern = needle.utf8.span
17 | let n = pattern.count
:
28 | if haystack[start] == first {
29 | var k = 1
30 | while k < n, haystack[start + k] == pattern[k] { k += 1 }
| `- note: this use of the lifetime-dependent value is out of scope
31 | if k == n { return start..<start + n }
32 | }
/host/spi-builder-workspace/Sources/RoutingKit/Utilities/String+lastUTF8Range.swift:16:13: error: lifetime-dependent variable 'pattern' escapes its scope
14 | func lastUTF8RangeUsingSpan(of needle: Substring, in searchRange: Range<Int>) -> Range<Int>? {
15 | let haystack = self.utf8.span
16 | let pattern = needle.utf8.span
| | `- note: it depends on the lifetime of this parent value
| `- error: lifetime-dependent variable 'pattern' escapes its scope
17 | let n = pattern.count
18 |
:
28 | if haystack[start] == first {
29 | var k = 1
30 | while k < n, haystack[start + k] == pattern[k] { k += 1 }
| `- note: this use of the lifetime-dependent value is out of scope
31 | if k == n { return start..<start + n }
32 | }
[63/71] Compiling RoutingKit TrieRouterNode.swift
[64/71] Emitting module RoutingKit
[65/71] Compiling RoutingKit String+removingPercentEncoding.swift
[66/71] Compiling RoutingKit Parameters.swift
[67/71] Compiling RoutingKit PathComponent.swift
[68/71] Compiling RoutingKit TrieRouter.swift
[69/71] Compiling RoutingKit TrieRouterBuilder.swift
[70/71] Compiling RoutingKit RouterBuilder.swift
[71/71] Compiling RoutingKit Router.swift
BUILD FAILURE 6.2 android