Build Information
Failed to build SwiftTerm, reference main (56d5cb), with Swift 6.4 for Android on 22 Nov 2026 18:42:12 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-58779149-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.4
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/migueldeicaza/SwiftTerm.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/migueldeicaza/SwiftTerm
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 56d5cb3 Let a resize applied at once replace the counts a font change queued for the next frame (#858)
Cloned https://github.com/migueldeicaza/SwiftTerm.git
Revision (git rev-parse @):
56d5cb3961306ecebae63ad208c6bb1ca1339bc2
SUCCESS checkout https://github.com/migueldeicaza/SwiftTerm.git at main
========================================
Build
========================================
Selected platform: android
Swift version: 6.4
Building package at path: $PWD
https://github.com/migueldeicaza/SwiftTerm.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-58779149-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:8c75a76a95057fd39be8bfba32b7cf15b3a8a4b3b65299863763333672fd9e67
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.4-latest
Fetching https://github.com/apple/swift-docc-plugin
Fetching https://github.com/apple/swift-argument-parser
Fetching https://github.com/tayloraswift/swift-png
[1/2381] Fetching swift-docc-plugin
[216/10069] Fetching swift-docc-plugin, swift-png
[3920/29511] Fetching swift-docc-plugin, swift-png, swift-argument-parser
Fetched https://github.com/apple/swift-docc-plugin (3.80s)
Fetched https://github.com/apple/swift-argument-parser (3.80s)
Fetched https://github.com/tayloraswift/swift-png (3.89s)
Computing version for https://github.com/tayloraswift/swift-png
Computed https://github.com/tayloraswift/swift-png at 4.5.2 (4.06s)
Fetching https://github.com/rarestype/h
[1/1399] Fetching h
Fetched https://github.com/rarestype/h (0.39s)
Computing version for https://github.com/rarestype/h
Computed https://github.com/rarestype/h at 1.0.1 (0.55s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.5.0 (0.86s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit
[1/3867] Fetching swift-docc-symbolkit
Fetched https://github.com/swiftlang/swift-docc-symbolkit (0.51s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (0.71s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 1.8.2 (0.14s)
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.5.0
Creating working copy for https://github.com/tayloraswift/swift-png
Working copy of https://github.com/tayloraswift/swift-png resolved at 4.5.2
Creating working copy for https://github.com/rarestype/h
Working copy of https://github.com/rarestype/h resolved at 1.0.1
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 1.8.2
Building for debugging...
[Computing dependencies]
[Pre-planning 1 / 417]
[Planning deferred tasks]
[86 / 156] BaseDigits
[102 / 170] Base16
[114 / 170] Base16
[114 / 170] BaseDigits
[122 / 174]
[129 / 185] ArgumentParser
[137 / 187] CRC-product
[140 / 187] ArgumentParser
[144 / 187] ArgumentParser
[148 / 187] ArgumentParser
[152 / 188] CRC
[155 / 188] SwiftTermBuildInfoGenerator-product
[159 / 198] LZ77
[159 / 198] ArgumentParser
[161 / 198] LZ77
[163 / 198] ArgumentParser
[169 / 198] PNG
[171 / 199] PNG
[174 / 208] PNG
[177 / 209] PNG
[179 / 209] PNG
[180 / 210] PNG
[181 / 210] PNG
[191 / 210]
[191 / 210] PNG
[195 / 211] SwiftTerm
[205 / 221] SwiftTerm
error: SwiftCompile normal aarch64 /host/spi-builder-workspace/Sources/Termcast/TermcastPlayer.swift failed with a nonzero exit code. Command line: cd /host
builtin-SwiftPerFileCompile TermcastPlayer.swift
/host/spi-builder-workspace/Sources/Termcast/TermcastPlayer.swift:32:17: [1;31merror: [1;39mcannot find 'usleep' in scope[0;0m
[0;36m30 |[0;0m let delay = event.time - lastTime
[0;36m31 |[0;0m if delay > 0 {
[0;36m32 |[0;0m [4;39musleep[0;0m(UInt32(delay * 1_000_000)) // Convert to microseconds
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'usleep' in scope[0;0m
[0;36m33 |[0;0m }
[0;36m34 |[0;0m
Failed frontend command:
/root/.local/share/swiftly/toolchains/6.4.0/usr/bin/swift-frontend -frontend -c /host/spi-builder-workspace/Sources/Termcast/AsciicastFormat.swift -primary-file /host/spi-builder-workspace/Sources/Termcast/TermcastPlayer.swift /host/spi-builder-workspace/Sources/Termcast/TermcastRecorder.swift /host/spi-builder-workspace/Sources/Termcast/main.swift -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftTerm.build/Debug-android-aarch64/termcast-p.build/Objects-normal/aarch64/TermcastPlayer.d -emit-const-values-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftTerm.build/Debug-android-aarch64/termcast-p.build/Objects-normal/aarch64/TermcastPlayer.swiftconstvalues -emit-reference-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftTerm.build/Debug-android-aarch64/termcast-p.build/Objects-normal/aarch64/TermcastPlayer.swiftdeps -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftTerm.build/Debug-android-aarch64/termcast-p.build/Objects-normal/aarch64/TermcastPlayer.dia -target aarch64-unknown-linux-android28 -Xllvm -aarch64-use-tbi -disable-objc-interop -sdk /android-ndk/android-ndk-r30/toolchains/llvm/prebuilt/linux-x86_64/sysroot -sysroot /android-ndk/android-ndk-r30/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 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D PortableGraphics -D Xcode -serialize-debugging-options -enable-experimental-feature DebugDescriptionMacro -empty-abi-descriptor -external-plugin-path /root/.local/share/swiftly/toolchains/6.4.0/usr/lib/swift/host/plugins/testing\#/root/.local/share/swiftly/toolchains/6.4.0/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.0-RELEASE_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-r30/toolchains/llvm/prebuilt/linux-x86_64/lib/clang/21 -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/SwiftTerm.build/Debug-android-aarch64/termcast-p.build/DerivedSources-normal/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftTerm.build/Debug-android-aarch64/termcast-p.build/DerivedSources/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftTerm.build/Debug-android-aarch64/termcast-p.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name Termcast -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftTerm.build/Debug-android-aarch64/termcast-p.build/Objects-normal/aarch64/termcast_const_extract_protocols.json -in-process-plugin-server-path /root/.local/share/swiftly/toolchains/6.4.0/usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /root/.local/share/swiftly/toolchains/6.4.0/usr/lib/swift/host/plugins -plugin-path /root/.local/share/swiftly/toolchains/6.4.0/usr/local/lib/swift/host/plugins -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/SwiftTerm.build/Debug-android-aarch64/termcast-p.build/Objects-normal/aarch64/TermcastPlayer.o -index-unit-output-path /SwiftTerm.build/Debug-android-aarch64/termcast-p.build/Objects-normal/aarch64/TermcastPlayer.o -index-store-path /host/spi-builder-workspace/.build/out -index-system-modules
[220 / 231] termcast-product
error: Build failed
BUILD FAILURE 6.4 android