Build Information
Failed to build swift-homomorphic-encryption, reference main (76fdde), with Swift 6.4 for Android on 14 Oct 2026 05:25:43 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344847-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.2
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/apple/swift-homomorphic-encryption.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/apple/swift-homomorphic-encryption
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 76fddec Fix accumulator overflow in modular matrix multiplication (#336)
Submodule path 'swift-homomorphic-encryption-protobuf': checked out 'f35fa8fa2314a16b9ba166b96db7b1340767ac04'
Submodule 'swift-homomorphic-encryption-protobuf' (https://github.com/apple/swift-homomorphic-encryption-protobuf) registered for path 'swift-homomorphic-encryption-protobuf'
Cloning into '/host/spi-builder-workspace/swift-homomorphic-encryption-protobuf'...
Cloned https://github.com/apple/swift-homomorphic-encryption.git
Revision (git rev-parse @):
76fddecbfb0ccfdf4883028e81fcfda00877605e
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/apple/swift-homomorphic-encryption.git at main
========================================
Build
========================================
Selected platform: android
Swift version: 6.4
Building package at path: $PWD
https://github.com/apple/swift-homomorphic-encryption.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344847-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:34a00a57f57797b403a98b861c3ce940f20735b4cb78ef45654f0d4f3b0c0295
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.4-latest
Fetching https://github.com/apple/swift-async-algorithms.git
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/apple/swift-protobuf
Fetching https://github.com/apple/swift-numerics
Fetching https://github.com/apple/swift-crypto.git
Fetching https://github.com/apple/swift-collections.git
[1/18643] Fetching swift-crypto
[188/26934] Fetching swift-crypto, swift-log
[562/33690] Fetching swift-crypto, swift-log, swift-numerics
[563/40511] Fetching swift-crypto, swift-log, swift-numerics, swift-async-algorithms
[23734/69292] Fetching swift-crypto, swift-log, swift-numerics, swift-async-algorithms, swift-collections
[30609/124376] Fetching swift-crypto, swift-log, swift-numerics, swift-async-algorithms, swift-collections, swift-protobuf
Fetched https://github.com/apple/swift-collections.git (1.33s)
Fetching https://github.com/apple/swift-algorithms
[60893/95595] Fetching swift-crypto, swift-log, swift-numerics, swift-async-algorithms, swift-protobuf
Fetched https://github.com/apple/swift-numerics (1.35s)
Fetching https://github.com/apple/swift-argument-parser.git
[54687/88839] Fetching swift-crypto, swift-log, swift-async-algorithms, swift-protobuf
Fetched https://github.com/apple/swift-crypto.git (1.36s)
[36595/70196] Fetching swift-log, swift-async-algorithms, swift-protobuf
[58079/76355] Fetching swift-log, swift-async-algorithms, swift-protobuf, swift-algorithms
Fetched https://github.com/apple/swift-algorithms (0.53s)
[60832/70196] Fetching swift-log, swift-async-algorithms, swift-protobuf
[61384/89310] Fetching swift-log, swift-async-algorithms, swift-protobuf, swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser.git (0.88s)
Fetched https://github.com/apple/swift-async-algorithms.git (4.02s)
Fetched https://github.com/apple/swift-log.git (4.02s)
Fetched https://github.com/apple/swift-protobuf (4.06s)
Computing version for https://github.com/apple/swift-algorithms
Computed https://github.com/apple/swift-algorithms at 1.2.1 (4.94s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (0.13s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.7.3 (0.24s)
Computing version for https://github.com/apple/swift-async-algorithms.git
Computed https://github.com/apple/swift-async-algorithms.git at 1.1.7 (0.18s)
Computing version for https://github.com/apple/swift-protobuf
Computed https://github.com/apple/swift-protobuf at 1.39.0 (0.18s)
Computing version for https://github.com/apple/swift-argument-parser.git
Computed https://github.com/apple/swift-argument-parser.git at 1.8.2 (0.15s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 3.15.1 (0.21s)
Fetching https://github.com/apple/swift-asn1.git
[1/2041] Fetching swift-asn1
Fetched https://github.com/apple/swift-asn1.git (0.41s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.3 (0.60s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.16.1 (0.15s)
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.7
Creating working copy for https://github.com/apple/swift-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.1.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.16.1
Creating working copy for https://github.com/apple/swift-protobuf
Working copy of https://github.com/apple/swift-protobuf resolved at 1.39.0
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.7.3
Creating working copy for https://github.com/apple/swift-algorithms
Working copy of https://github.com/apple/swift-algorithms resolved at 1.2.1
Creating working copy for https://github.com/apple/swift-asn1.git
Working copy of https://github.com/apple/swift-asn1.git resolved at 1.7.3
Creating working copy for https://github.com/apple/swift-argument-parser.git
Working copy of https://github.com/apple/swift-argument-parser.git resolved at 1.8.2
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 3.15.1
Building for debugging...
[Computing dependencies]
[Constructing description]
[Pre-planning 1 / 1765]
[Planning 1010 / 1765]
[Planning deferred tasks]
[Constructing 1915 / 4024]
[Starting]
[291 / 949] SwiftProtobuf
[300 / 992] Logging
[300 / 1001] RealModule
[301 / 1001] ModularArithmetic
[313 / 1001] SwiftProtobuf
[319 / 1001] Logging
[325 / 1001] SwiftProtobuf
[326 / 1001] MemoryMapping
[333 / 1002] SwiftProtobuf
[334 / 1002] SwiftASN1
[344 / 1002] MemoryMapping
[347 / 1002] SwiftASN1
[348 / 1002] SwiftASN1
[349 / 1002] SwiftASN1
[352 / 1002] SwiftASN1-product
[355 / 1002] RealModule
[356 / 1002] RealModule-product
[366 / 1002] ModularArithmetic
error: SwiftCompile normal aarch64 /host/spi-builder-workspace/Sources/MemoryMapping/MemoryMapping.swift failed with a nonzero exit code. Command line: cd /host
builtin-SwiftPerFileCompile MemoryMapping.swift
/host/spi-builder-workspace/Sources/MemoryMapping/MemoryMapping.swift:34:19: [1;31merror: [1;39mcannot find 'errno' in scope[0;0m
[0;36m32 |[0;0m /// - Returns: A `MemoryMappingError.systemError` containing the error code and message.
[0;36m33 |[0;0m public static func catchSystemErrno() -> Self {
[0;36m34 |[0;0m let err = [4;39merrno[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'errno' in scope[0;0m
[0;36m35 |[0;0m let message = String(cString: strerror(err))
[0;36m36 |[0;0m return .systemError(err, message)
/android-ndk/android-ndk-r30/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/errno.h:58:9: [1;39mnote: [1;39mmacro 'errno' unavailable: structure not supported[0;0m
[0;36m56 |[0;0m * thread.
[0;36m57 |[0;0m */
[0;36m58 |[0;0m #define errno (*__errno())
[0;36m|[0;0m `- [1;39mnote: [1;39mmacro 'errno' unavailable: structure not supported[0;0m
[0;36m59 |[0;0m
[0;36m60 |[0;0m __END_DECLS
/host/spi-builder-workspace/Sources/MemoryMapping/MemoryMapping.swift:56:18: [1;31merror: [1;39mcannot find 'open' in scope[0;0m
[0;36m54 |[0;0m /// stat retrieval, or mapping.
[0;36m55 |[0;0m public static func openFile(path: String) throws -> UnsafeMutableRawBufferPointer {
[0;36m56 |[0;0m let fd = [4;39mopen[0;0m(path, O_RDONLY)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'open' in scope[0;0m
[0;36m57 |[0;0m guard fd != -1 else {
[0;36m58 |[0;0m throw MemoryMappingError.catchSystemErrno()
/host/spi-builder-workspace/Sources/MemoryMapping/MemoryMapping.swift:56:29: [1;31merror: [1;39mcannot find 'O_RDONLY' in scope[0;0m
[0;36m54 |[0;0m /// stat retrieval, or mapping.
[0;36m55 |[0;0m public static func openFile(path: String) throws -> UnsafeMutableRawBufferPointer {
[0;36m56 |[0;0m let fd = open(path, [4;39mO_RDONLY[0;0m)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'O_RDONLY' in scope[0;0m
[0;36m57 |[0;0m guard fd != -1 else {
[0;36m58 |[0;0m throw MemoryMappingError.catchSystemErrno()
/host/spi-builder-workspace/Sources/MemoryMapping/MemoryMapping.swift:61:13: [1;31merror: [1;39mcannot find 'close' in scope[0;0m
[0;36m59 |[0;0m }
[0;36m60 |[0;0m defer {
[0;36m61 |[0;0m [4;39mclose[0;0m(fd)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'close' in scope[0;0m
[0;36m62 |[0;0m }
[0;36m63 |[0;0m
/host/spi-builder-workspace/Sources/MemoryMapping/MemoryMapping.swift:64:20: [1;31merror: [1;39muse of local variable 'stat' before its declaration[0;0m
[0;36m62 |[0;0m }
[0;36m63 |[0;0m
[0;36m64 |[0;0m var stat = stat()
[0;36m|[0;0m | `- [1;31merror: [1;39muse of local variable 'stat' before its declaration[0;0m
[0;36m|[0;0m `- [1;39mnote: [1;39m'stat' declared here[0;0m
[0;36m65 |[0;0m if fstat(fd, &stat) != 0 {
[0;36m66 |[0;0m throw MemoryMappingError.catchSystemErrno()
/host/spi-builder-workspace/Sources/MemoryMapping/MemoryMapping.swift:65:12: [1;31merror: [1;39mcannot find 'fstat' in scope[0;0m
[0;36m63 |[0;0m
[0;36m64 |[0;0m var stat = stat()
[0;36m65 |[0;0m if [4;39mfstat[0;0m(fd, &stat) != 0 {
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'fstat' in scope[0;0m
[0;36m66 |[0;0m throw MemoryMappingError.catchSystemErrno()
[0;36m67 |[0;0m }
/host/spi-builder-workspace/Sources/MemoryMapping/MemoryMapping.swift:72:26: [1;31merror: [1;39mcannot find 'mmap' in scope[0;0m
[0;36m70 |[0;0m throw MemoryMappingError.emptyFile
[0;36m71 |[0;0m }
[0;36m72 |[0;0m guard let addr = [4;39mmmap[0;0m(nil, fileSize, PROT_READ, MAP_SHARED, fd, 0),
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'mmap' in scope[0;0m
[0;36m73 |[0;0m addr != MAP_FAILED
[0;36m74 |[0;0m else {
/host/spi-builder-workspace/Sources/MemoryMapping/MemoryMapping.swift:72:46: [1;31merror: [1;39mcannot find 'PROT_READ' in scope[0;0m
[0;36m70 |[0;0m throw MemoryMappingError.emptyFile
[0;36m71 |[0;0m }
[0;36m72 |[0;0m guard let addr = mmap(nil, fileSize, [4;39mPROT_READ[0;0m, MAP_SHARED, fd, 0),
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'PROT_READ' in scope[0;0m
[0;36m73 |[0;0m addr != MAP_FAILED
[0;36m74 |[0;0m else {
/host/spi-builder-workspace/Sources/MemoryMapping/MemoryMapping.swift:72:57: [1;31merror: [1;39mcannot find 'MAP_SHARED' in scope[0;0m
[0;36m70 |[0;0m throw MemoryMappingError.emptyFile
[0;36m71 |[0;0m }
[0;36m72 |[0;0m guard let addr = mmap(nil, fileSize, PROT_READ, [4;39mMAP_SHARED[0;0m, fd, 0),
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'MAP_SHARED' in scope[0;0m
[0;36m73 |[0;0m addr != MAP_FAILED
[0;36m74 |[0;0m else {
/host/spi-builder-workspace/Sources/MemoryMapping/MemoryMapping.swift:73:23: [1;31merror: [1;39mcannot find 'MAP_FAILED' in scope[0;0m
[0;36m71 |[0;0m }
[0;36m72 |[0;0m guard let addr = mmap(nil, fileSize, PROT_READ, MAP_SHARED, fd, 0),
[0;36m73 |[0;0m addr != [4;39mMAP_FAILED[0;0m
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'MAP_FAILED' in scope[0;0m
[0;36m74 |[0;0m else {
[0;36m75 |[0;0m throw MemoryMappingError.catchSystemErrno()
/host/spi-builder-workspace/Sources/MemoryMapping/MemoryMapping.swift:87:9: [1;31merror: [1;39mcannot find 'munmap' in scope[0;0m
[0;36m85 |[0;0m /// - Parameter buffer: The buffer representing the mapped memory region to unmap.
[0;36m86 |[0;0m public static func unmap(_ buffer: UnsafeMutableRawBufferPointer) {
[0;36m87 |[0;0m [4;39mmunmap[0;0m(buffer.baseAddress, buffer.count)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'munmap' in scope[0;0m
[0;36m88 |[0;0m }
[0;36m89 |[0;0m
Failed frontend command:
/root/.local/share/swiftly/toolchains/6.4.0/usr/bin/swift-frontend -frontend -c /host/spi-builder-workspace/Sources/MemoryMapping/MMapDictionary.swift /host/spi-builder-workspace/Sources/MemoryMapping/MMapDictionaryError.swift -primary-file /host/spi-builder-workspace/Sources/MemoryMapping/MemoryMapping.swift -emit-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-homomorphic-encryption.build/Debug-android-aarch64/MemoryMapping-t.build/Objects-normal/aarch64/MemoryMapping.d -emit-const-values-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-homomorphic-encryption.build/Debug-android-aarch64/MemoryMapping-t.build/Objects-normal/aarch64/MemoryMapping.swiftconstvalues -emit-reference-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-homomorphic-encryption.build/Debug-android-aarch64/MemoryMapping-t.build/Objects-normal/aarch64/MemoryMapping.swiftdeps -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-homomorphic-encryption.build/Debug-android-aarch64/MemoryMapping-t.build/Objects-normal/aarch64/MemoryMapping.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 SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -D Xcode -serialize-debugging-options -enable-upcoming-feature InternalImportsByDefault -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/swift-homomorphic-encryption.build/Debug-android-aarch64/MemoryMapping-t.build/DerivedSources-normal/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-homomorphic-encryption.build/Debug-android-aarch64/MemoryMapping-t.build/DerivedSources/aarch64 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-homomorphic-encryption.build/Debug-android-aarch64/MemoryMapping-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -no-auto-bridging-header-chaining -module-name MemoryMapping -package-name spi_builder_workspace -const-gather-protocols-file /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-homomorphic-encryption.build/Debug-android-aarch64/MemoryMapping-t.build/Objects-normal/aarch64/MemoryMapping_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 -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-homomorphic-encryption.build/Debug-android-aarch64/MemoryMapping-t.build/Objects-normal/aarch64/MemoryMapping.o -index-unit-output-path /swift-homomorphic-encryption.build/Debug-android-aarch64/MemoryMapping-t.build/Objects-normal/aarch64/MemoryMapping.o -index-store-path /host/spi-builder-workspace/.build/out -index-system-modules
error: Build failed
BUILD FAILURE 6.4 android