The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-service-lifecycle, reference main (0af403), with Swift 6.4 for Android on 21 Sep 2026 14:29:30 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:android-6.4-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/juri/swift-service-lifecycle.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/juri/swift-service-lifecycle
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 0af4033 Make logging optional and update docs (#189)
Cloned https://github.com/juri/swift-service-lifecycle.git
Revision (git rev-parse @):
0af4033d874b94acf11d2e0f119484a24352cf37
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/juri/swift-service-lifecycle.git at main
========================================
Build
========================================
Selected platform:         android
Swift version:             6.4
Building package at path:  $PWD
https://github.com/juri/swift-service-lifecycle.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: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/apple/swift-log.git
Fetching https://github.com/apple/swift-async-algorithms.git
[1/8132] Fetching swift-log
[8133/14855] Fetching swift-log, swift-async-algorithms
Fetched https://github.com/apple/swift-async-algorithms.git (2.17s)
Fetched https://github.com/apple/swift-log.git (2.17s)
Computing version for https://github.com/apple/swift-async-algorithms.git
Computed https://github.com/apple/swift-async-algorithms.git at 1.1.5 (2.53s)
Fetching https://github.com/apple/swift-collections.git
[1/27352] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git (1.50s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.6.0 (1.89s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.15.1 (0.20s)
Creating working copy for https://github.com/apple/swift-async-algorithms.git
Working copy of https://github.com/apple/swift-async-algorithms.git resolved at 1.1.5
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.6.0
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.1
Building for debugging...
[Computing dependencies]
[Pre-planning 1 / 389]
[Planning deferred tasks]
[75 / 148]
[86 / 171] InternalCollectionsUtilities
error: SwiftCompile normal aarch64 failed with a nonzero exit code. Command line:     cd /host

/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:45:27: error: cannot find type 'pthread_mutex_t' in scope
 43 | #else
 44 | @usableFromInline
 45 | typealias LockPrimitive = pthread_mutex_t
    |                           `- error: cannot find type 'pthread_mutex_t' in scope
 46 | #endif
 47 |
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:59:20: error: cannot find 'pthread_mutexattr_t' in scope
 57 |         InitializeSRWLock(mutex)
 58 |         #else
 59 |         var attr = pthread_mutexattr_t()
    |                    `- error: cannot find 'pthread_mutexattr_t' in scope
 60 |         pthread_mutexattr_init(&attr)
 61 |
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:60:9: error: cannot find 'pthread_mutexattr_init' in scope
 58 |         #else
 59 |         var attr = pthread_mutexattr_t()
 60 |         pthread_mutexattr_init(&attr)
    |         `- error: cannot find 'pthread_mutexattr_init' in scope
 61 |
 62 |         let err = pthread_mutex_init(mutex, &attr)
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:62:19: error: cannot find 'pthread_mutex_init' in scope
 60 |         pthread_mutexattr_init(&attr)
 61 |
 62 |         let err = pthread_mutex_init(mutex, &attr)
    |                   `- error: cannot find 'pthread_mutex_init' in scope
 63 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
 64 |         #endif
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:74:19: error: cannot find 'pthread_mutex_destroy' in scope
 72 |         // SRWLOCK does not need to be free'd
 73 |         #else
 74 |         let err = pthread_mutex_destroy(mutex)
    |                   `- error: cannot find 'pthread_mutex_destroy' in scope
 75 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
 76 |         #endif
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:86:19: error: cannot find 'pthread_mutex_lock' in scope
 84 |         AcquireSRWLockExclusive(mutex)
 85 |         #else
 86 |         let err = pthread_mutex_lock(mutex)
    |                   `- error: cannot find 'pthread_mutex_lock' in scope
 87 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
 88 |         #endif
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:98:19: error: cannot find 'pthread_mutex_unlock' in scope
 96 |         ReleaseSRWLockExclusive(mutex)
 97 |         #else
 98 |         let err = pthread_mutex_unlock(mutex)
    |                   `- error: cannot find 'pthread_mutex_unlock' in scope
 99 |         precondition(err == 0, "\(#function) failed in pthread_mutex with error \(err)")
100 |         #endif
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:136:27: error: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
134 |     @inlinable
135 |     static func create(value: Value) -> Self {
136 |         let buffer = Self.create(minimumCapacity: 1) { _ in
    |                           `- error: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
137 |             return value
138 |         }
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:151:14: error: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
149 |     @inlinable
150 |     func lock() {
151 |         self.withUnsafeMutablePointerToElements { lockPtr in
    |              `- error: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
152 |             LockOperations.lock(lockPtr)
153 |         }
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:158:14: error: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
156 |     @inlinable
157 |     func unlock() {
158 |         self.withUnsafeMutablePointerToElements { lockPtr in
    |              `- error: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
159 |             LockOperations.unlock(lockPtr)
160 |         }
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:165:14: error: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
163 |     @inlinable
164 |     deinit {
165 |         self.withUnsafeMutablePointerToElements { lockPtr in
    |              `- error: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
166 |             LockOperations.destroy(lockPtr)
167 |         }
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:172:18: error: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
170 |     @inlinable
171 |     func withLockPrimitive<T>(_ body: (UnsafeMutablePointer<LockPrimitive>) throws -> T) rethrows -> T {
172 |         try self.withUnsafeMutablePointerToElements { lockPtr in
    |                  `- error: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
173 |             return try body(lockPtr)
174 |         }
/host/spi-builder-workspace/Sources/ConcurrencyHelpers/Lock.swift:179:18: error: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
177 |     @inlinable
178 |     func withLockedValue<T>(_ mutate: (inout Value) throws -> T) rethrows -> T {
179 |         try self.withUnsafeMutablePointers { valuePtr, lockPtr in
    |                  `- error: failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)
180 |             LockOperations.lock(lockPtr)
181 |             defer { LockOperations.unlock(lockPtr) }
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/Sources/ConcurrencyHelpers/Lock.swift /host/spi-builder-workspace/Sources/ConcurrencyHelpers/LockedValueBox.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 -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/swift-service-lifecycle.build/Debug-android-aarch64/ConcurrencyHelpers-t.build/DerivedSources-normal/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-service-lifecycle.build/Debug-android-aarch64/ConcurrencyHelpers-t.build/DerivedSources/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-service-lifecycle.build/Debug-android-aarch64/ConcurrencyHelpers-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name ConcurrencyHelpers -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-service-lifecycle.build/Debug-android-aarch64/ConcurrencyHelpers-t.build/Objects-normal/aarch64/ConcurrencyHelpers_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/swift-service-lifecycle.build/Debug-android-aarch64/ConcurrencyHelpers-t.build/Objects-normal/aarch64/Modules/ConcurrencyHelpers.swiftdoc -emit-module-source-info-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-service-lifecycle.build/Debug-android-aarch64/ConcurrencyHelpers-t.build/Objects-normal/aarch64/Modules/ConcurrencyHelpers.swiftsourceinfo -emit-objc-header-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-service-lifecycle.build/Debug-android-aarch64/ConcurrencyHelpers-t.build/Objects-normal/aarch64/ConcurrencyHelpers-Swift.h -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-service-lifecycle.build/Debug-android-aarch64/ConcurrencyHelpers-t.build/Objects-normal/aarch64/ConcurrencyHelpers-primary-emit-module.dia -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-service-lifecycle.build/Debug-android-aarch64/ConcurrencyHelpers-t.build/Objects-normal/aarch64/ConcurrencyHelpers-primary-emit-module.d -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-service-lifecycle.build/Debug-android-aarch64/ConcurrencyHelpers-t.build/Objects-normal/aarch64/Modules/ConcurrencyHelpers.swiftmodule
error: Build failed
BUILD FAILURE 6.4 android