Build Information
Failed to build swift-homomorphic-encryption, reference main (ab3f8c), with Swift 6.4 for Android on 5 Nov 2026 00:11:46 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886769-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/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 ab3f8cd Widen accepted versions of swift-crypto dependency (#343)
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 @):
ab3f8cdef8e70b478567ae0d8451948824689876
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-53886769-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:6b43072510b376a3c4064be7d82ef70cb870a485f057a0e40e484dd4ba1d1fe3
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-6.4-latest
Fetching https://github.com/apple/swift-crypto.git
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/apple/swift-protobuf
Fetching https://github.com/apple/swift-argument-parser.git
[1/8340] Fetching swift-log
[2/27264] Fetching swift-log, swift-crypto
Fetched https://github.com/apple/swift-log.git (0.51s)
Fetching https://github.com/apple/swift-async-algorithms.git
[1894/38254] Fetching swift-crypto, swift-argument-parser
[23495/67789] Fetching swift-crypto, swift-argument-parser, swift-collections
Fetched https://github.com/apple/swift-argument-parser.git (0.81s)
Fetching https://github.com/apple/swift-algorithms
[13666/48459] Fetching swift-crypto, swift-collections
[36646/55284] Fetching swift-crypto, swift-collections, swift-async-algorithms
Fetched https://github.com/apple/swift-async-algorithms.git (0.58s)
[43143/48459] Fetching swift-crypto, swift-collections
[48460/54618] Fetching swift-crypto, swift-collections, swift-algorithms
Fetched https://github.com/apple/swift-algorithms (0.50s)
Fetching https://github.com/apple/swift-numerics
Fetched https://github.com/apple/swift-collections.git (1.43s)
[1/6773] Fetching swift-numerics
[476/62789] Fetching swift-numerics, swift-protobuf
Fetched https://github.com/apple/swift-numerics (0.53s)
[1681/56016] Fetching swift-protobuf
Fetched https://github.com/apple/swift-crypto.git (4.97s)
Fetched https://github.com/apple/swift-protobuf (4.99s)
Computing version for https://github.com/apple/swift-algorithms
Computed https://github.com/apple/swift-algorithms at 1.2.1 (5.88s)
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-async-algorithms.git
Computed https://github.com/apple/swift-async-algorithms.git at 1.1.7 (0.17s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.7.5 (0.22s)
Computing version for https://github.com/apple/swift-protobuf
Computed https://github.com/apple/swift-protobuf at 1.39.0 (0.17s)
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.14s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 5.1.1 (0.22s)
Fetching https://github.com/apple/swift-asn1.git
[1/2051] Fetching swift-asn1
Fetched https://github.com/apple/swift-asn1.git (0.46s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.4 (0.63s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.17.0 (0.14s)
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-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-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.7.5
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-protobuf
Working copy of https://github.com/apple/swift-protobuf resolved at 1.39.0
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.4
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 5.1.1
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.17.0
Building for debugging...
[Computing dependencies]
[Provisioning 1 / 77]
[Pre-planning 1 / 1853]
[Planning 897 / 1853]
[Planning deferred tasks]
[Constructing 2248 / 4194]
[141 / 967] MemoryMapping-product
[306 / 983] CryptoBoringWrapper
[314 / 1039] SwiftProtobuf
[314 / 1039] ModularArithmetic
[326 / 1039] ArgumentParserToolInfo
[336 / 1039] ArgumentParserToolInfo
[338 / 1039] SwiftProtobuf
[338 / 1039] MemoryMapping
[350 / 1039] SwiftProtobuf
[350 / 1039] ModularArithmetic
[352 / 1039] ModularArithmetic
[358 / 1040] SwiftProtobuf
[359 / 1040] SwiftASN1
[361 / 1040] SwiftProtobuf
[367 / 1040] SwiftProtobuf
[371 / 1040] SwiftProtobuf
[373 / 1040] SwiftASN1-product
[375 / 1040] SwiftASN1-product
[378 / 1040] RealModule
[380 / 1040] RealModule
[385 / 1040] ModularArithmetic
[391 / 1040] Logging-product
[395 / 1042] SwiftASN1
[399 / 1042] Logging
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