The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-homomorphic-encryption, reference main (c57ed7), with Swift 6.4 for Android on 20 Nov 2026 13:58:29 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344846-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.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 c57ed77 update workflow (#346)
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 @):
c57ed7737b896a576244cd965270bdc591629b50
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-54344846-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-collections.git
Fetching https://github.com/apple/swift-protobuf
Fetching https://github.com/apple/swift-crypto.git
Fetching https://github.com/apple/swift-numerics
Fetching https://github.com/apple/swift-async-algorithms.git
Fetching https://github.com/apple/swift-log.git
[1/6862] Fetching swift-numerics
[2197/25839] Fetching swift-numerics, swift-crypto
[2747/32743] Fetching swift-numerics, swift-crypto, swift-async-algorithms
[14716/41287] Fetching swift-numerics, swift-crypto, swift-async-algorithms, swift-log
Fetched https://github.com/apple/swift-async-algorithms.git (0.60s)
[9444/34383] Fetching swift-numerics, swift-crypto, swift-log
Fetching https://github.com/apple/swift-argument-parser.git
[17305/64728] Fetching swift-numerics, swift-crypto, swift-log, swift-collections
Fetched https://github.com/apple/swift-log.git (0.73s)
[12062/56184] Fetching swift-numerics, swift-crypto, swift-collections
Fetching https://github.com/apple/swift-algorithms
[30992/113669] Fetching swift-numerics, swift-crypto, swift-collections, swift-protobuf
[61359/119857] Fetching swift-numerics, swift-crypto, swift-collections, swift-protobuf, swift-algorithms
[61545/139295] Fetching swift-numerics, swift-crypto, swift-collections, swift-protobuf, swift-algorithms, swift-argument-parser
Fetched https://github.com/apple/swift-algorithms (0.57s)
[72989/133107] Fetching swift-numerics, swift-crypto, swift-collections, swift-protobuf, swift-argument-parser
Fetched https://github.com/apple/swift-collections.git (1.48s)
Fetched https://github.com/apple/swift-crypto.git (1.49s)
[38372/83785] Fetching swift-numerics, swift-protobuf, swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser.git (0.93s)
[19509/64347] Fetching swift-numerics, swift-protobuf
Fetched https://github.com/apple/swift-numerics (4.33s)
Fetched https://github.com/apple/swift-protobuf (4.37s)
Computing version for https://github.com/apple/swift-algorithms
Computed https://github.com/apple/swift-algorithms at 1.2.1 (5.26s)
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.6 (0.23s)
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-protobuf
Computed https://github.com/apple/swift-protobuf at 1.41.0 (0.18s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 5.1.2 (0.22s)
Fetching https://github.com/apple/swift-asn1.git
[1/2079] Fetching swift-asn1
Fetched https://github.com/apple/swift-asn1.git (0.39s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.4 (0.57s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.17.2 (0.15s)
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-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.7.6
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.4
Creating working copy for https://github.com/apple/swift-protobuf
Working copy of https://github.com/apple/swift-protobuf resolved at 1.41.0
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 5.1.2
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-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.17.2
Building for debugging...
[Computing dependencies]
[Provisioning 1 / 77]
[Pre-planning 1 / 1853]
[Planning 896 / 1853]
[Planning deferred tasks]
[Constructing 1896 / 4194]
[130 / 967] OrderedCollections
[309 / 982] MemoryMapping
[315 / 1036] SwiftProtobuf
[327 / 1036] CryptoBoringWrapper
[327 / 1036] Logging
[339 / 1036] SwiftProtobuf
[351 / 1036] SwiftProtobuf
[354 / 1036] SwiftASN1
[359 / 1037] SwiftProtobuf
[363 / 1037] SwiftProtobuf
[367 / 1037] SwiftProtobuf
[368 / 1037] SwiftProtobuf-product
[369 / 1037] SwiftProtobuf-product
[370 / 1037] SwiftProtobuf-product
[372 / 1037] SwiftASN1
[374 / 1037] RealModule
[377 / 1037] RealModule-product
[380 / 1037] RealModule
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