The Swift Package Index logo.Swift Package Index

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>&1

Build 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: error: cannot find 'errno' in scope
 32 |     /// - Returns: A `MemoryMappingError.systemError` containing the error code and message.
 33 |     public static func catchSystemErrno() -> Self {
 34 |         let err = errno
    |                   `- error: cannot find 'errno' in scope
 35 |         let message = String(cString: strerror(err))
 36 |         return .systemError(err, message)
/android-ndk/android-ndk-r30/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/errno.h:58:9: note: macro 'errno' unavailable: structure not supported
56 |  * thread.
57 |  */
58 | #define errno (*__errno())
   |         `- note: macro 'errno' unavailable: structure not supported
59 |
60 | __END_DECLS
/host/spi-builder-workspace/Sources/MemoryMapping/MemoryMapping.swift:56:18: error: cannot find 'open' in scope
 54 |     ///           stat retrieval, or mapping.
 55 |     public static func openFile(path: String) throws -> UnsafeMutableRawBufferPointer {
 56 |         let fd = open(path, O_RDONLY)
    |                  `- error: cannot find 'open' in scope
 57 |         guard fd != -1 else {
 58 |             throw MemoryMappingError.catchSystemErrno()
/host/spi-builder-workspace/Sources/MemoryMapping/MemoryMapping.swift:56:29: error: cannot find 'O_RDONLY' in scope
 54 |     ///           stat retrieval, or mapping.
 55 |     public static func openFile(path: String) throws -> UnsafeMutableRawBufferPointer {
 56 |         let fd = open(path, O_RDONLY)
    |                             `- error: cannot find 'O_RDONLY' in scope
 57 |         guard fd != -1 else {
 58 |             throw MemoryMappingError.catchSystemErrno()
/host/spi-builder-workspace/Sources/MemoryMapping/MemoryMapping.swift:61:13: error: cannot find 'close' in scope
 59 |         }
 60 |         defer {
 61 |             close(fd)
    |             `- error: cannot find 'close' in scope
 62 |         }
 63 |
/host/spi-builder-workspace/Sources/MemoryMapping/MemoryMapping.swift:64:20: error: use of local variable 'stat' before its declaration
 62 |         }
 63 |
 64 |         var stat = stat()
    |             |      `- error: use of local variable 'stat' before its declaration
    |             `- note: 'stat' declared here
 65 |         if fstat(fd, &stat) != 0 {
 66 |             throw MemoryMappingError.catchSystemErrno()
/host/spi-builder-workspace/Sources/MemoryMapping/MemoryMapping.swift:65:12: error: cannot find 'fstat' in scope
 63 |
 64 |         var stat = stat()
 65 |         if fstat(fd, &stat) != 0 {
    |            `- error: cannot find 'fstat' in scope
 66 |             throw MemoryMappingError.catchSystemErrno()
 67 |         }
/host/spi-builder-workspace/Sources/MemoryMapping/MemoryMapping.swift:72:26: error: cannot find 'mmap' in scope
 70 |             throw MemoryMappingError.emptyFile
 71 |         }
 72 |         guard let addr = mmap(nil, fileSize, PROT_READ, MAP_SHARED, fd, 0),
    |                          `- error: cannot find 'mmap' in scope
 73 |               addr != MAP_FAILED
 74 |         else {
/host/spi-builder-workspace/Sources/MemoryMapping/MemoryMapping.swift:72:46: error: cannot find 'PROT_READ' in scope
 70 |             throw MemoryMappingError.emptyFile
 71 |         }
 72 |         guard let addr = mmap(nil, fileSize, PROT_READ, MAP_SHARED, fd, 0),
    |                                              `- error: cannot find 'PROT_READ' in scope
 73 |               addr != MAP_FAILED
 74 |         else {
/host/spi-builder-workspace/Sources/MemoryMapping/MemoryMapping.swift:72:57: error: cannot find 'MAP_SHARED' in scope
 70 |             throw MemoryMappingError.emptyFile
 71 |         }
 72 |         guard let addr = mmap(nil, fileSize, PROT_READ, MAP_SHARED, fd, 0),
    |                                                         `- error: cannot find 'MAP_SHARED' in scope
 73 |               addr != MAP_FAILED
 74 |         else {
/host/spi-builder-workspace/Sources/MemoryMapping/MemoryMapping.swift:73:23: error: cannot find 'MAP_FAILED' in scope
 71 |         }
 72 |         guard let addr = mmap(nil, fileSize, PROT_READ, MAP_SHARED, fd, 0),
 73 |               addr != MAP_FAILED
    |                       `- error: cannot find 'MAP_FAILED' in scope
 74 |         else {
 75 |             throw MemoryMappingError.catchSystemErrno()
/host/spi-builder-workspace/Sources/MemoryMapping/MemoryMapping.swift:87:9: error: cannot find 'munmap' in scope
 85 |     /// - Parameter buffer: The buffer representing the mapped memory region to unmap.
 86 |     public static func unmap(_ buffer: UnsafeMutableRawBufferPointer) {
 87 |         munmap(buffer.baseAddress, buffer.count)
    |         `- error: cannot find 'munmap' in scope
 88 |     }
 89 |
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