The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-homomorphic-encryption, reference main (c57ed7), with Swift 6.3 for Wasm on 20 Nov 2026 13:56:10 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:wasm-6.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 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:         wasm
Swift version:             6.3
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:wasm-6.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from saguaro1/spi-images
Digest: sha256:d3f568d85e0aea9035607cd00c00b956e2abec4c377680cdb286c930e5f653a0
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest
Fetching https://github.com/apple/swift-protobuf
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/apple/swift-async-algorithms.git
Fetching https://github.com/apple/swift-crypto.git
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-numerics
[1/8544] Fetching swift-log
[1710/27521] Fetching swift-log, swift-crypto
[9305/34383] Fetching swift-log, swift-crypto, swift-numerics
[9563/41287] Fetching swift-log, swift-crypto, swift-numerics, swift-async-algorithms
Fetched https://github.com/apple/swift-numerics from cache (0.61s)
Fetching https://github.com/apple/swift-argument-parser.git
[17536/34425] Fetching swift-log, swift-crypto, swift-async-algorithms
[18296/64770] Fetching swift-log, swift-crypto, swift-async-algorithms, swift-collections
[26529/122255] Fetching swift-log, swift-crypto, swift-async-algorithms, swift-collections, swift-protobuf
[72245/141693] Fetching swift-log, swift-crypto, swift-async-algorithms, swift-collections, swift-protobuf, swift-argument-parser
Fetched https://github.com/apple/swift-async-algorithms.git from cache (1.39s)
Fetched https://github.com/apple/swift-log.git from cache (1.39s)
Fetching https://github.com/apple/swift-algorithms
Fetched https://github.com/apple/swift-collections.git from cache (1.41s)
Fetched https://github.com/apple/swift-crypto.git from cache (1.41s)
[32085/76923] Fetching swift-protobuf, swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser.git from cache (0.90s)
[16096/57485] Fetching swift-protobuf
[27594/63673] Fetching swift-protobuf, swift-algorithms
Fetched https://github.com/apple/swift-algorithms from cache (0.54s)
[35066/57485] Fetching swift-protobuf
Fetched https://github.com/apple/swift-protobuf from cache (4.24s)
Computing version for https://github.com/apple/swift-algorithms
Computed https://github.com/apple/swift-algorithms at 1.2.1 (5.12s)
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.18s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.7.6 (0.22s)
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-protobuf
Computed https://github.com/apple/swift-protobuf at 1.41.0 (0.17s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 5.1.2 (0.23s)
Fetching https://github.com/apple/swift-asn1.git
[1/2079] Fetching swift-asn1
Fetched https://github.com/apple/swift-asn1.git from cache (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.64s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.17.2 (0.14s)
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
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-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-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-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.1.1
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.6
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-protobuf
Working copy of https://github.com/apple/swift-protobuf resolved at 1.41.0
[1/1] Compiling plugin SwiftProtobufPlugin
[2/2] Compiling plugin GenerateManual
[3/3] Compiling plugin GenerateDoccReference
Building for debugging...
[3/501] Write sources
[35/501] Compiling _NumericsShims _NumericsShims.c
[36/501] Write sources
[43/501] Compiling CUtil zeroize.c
[44/501] Compiling CXKCPShims shims.c
[45/501] Compiling SimpleFIPS202.c
[46/501] Compiling KeccakHash.c
[47/501] Compiling KeccakSponge.c
[48/501] Compiling fiat_p256_adx_sqr.S
[49/501] Compiling fiat_p256_adx_mul.S
[50/501] Write swift-version-24593BA9C3E375BF.txt
[51/501] Compiling md5-x86_64-linux.S
[51/501] Compiling fiat_curve25519_adx_square.S
[53/501] Compiling fiat_curve25519_adx_mul.S
[54/501] Compiling md5-x86_64-apple.S
[55/501] Compiling md5-586-linux.S
[56/501] Compiling md5-586-apple.S
[57/631] Compiling err_data.cc
[59/660] Emitting module Logging
[60/661] Emitting module InternalCollectionsUtilities
[61/664] Compiling RealModule RealFunctions.swift
[62/665] Compiling RealModule RelaxedArithmetic.swift
[63/665] Compiling InternalCollectionsUtilities UnsafeRawBufferPointer+Extras.swift
[64/665] Compiling InternalCollectionsUtilities _SortedCollection.swift
[65/665] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[66/665] Compiling InternalCollectionsUtilities BorrowingIteratorProtocol+Equality.swift
[67/665] Compiling InternalCollectionsUtilities BorrowingIteratorProtocol+Extras.swift
[68/665] Compiling InternalCollectionsUtilities Debugging.swift
[69/665] Compiling InternalCollectionsUtilities Span+Extras.swift
[70/665] Compiling InternalCollectionsUtilities Strideable+LimitHelpers.swift
[71/665] Compiling InternalCollectionsUtilities String+Padding.swift
[72/665] Compiling InternalCollectionsUtilities TemporaryAllocation.swift
[73/665] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[74/665] Compiling InternalCollectionsUtilities UnsafeMutablePointer+Extras.swift
[75/665] Compiling InternalCollectionsUtilities UnsafeMutableRawBufferPointer+Extras.swift
[76/665] Compiling InternalCollectionsUtilities UnsafePointer+Extras.swift
[77/665] Compiling RealModule Float16+Real.swift
[78/667] Emitting module SwiftASN1
[79/667] Compiling InternalCollectionsUtilities MutableRef.swift
[80/667] Compiling InternalCollectionsUtilities MutableSpan+Extras.swift
[81/667] Compiling InternalCollectionsUtilities OutputSpan+Extras.swift
[82/667] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[83/667] Compiling InternalCollectionsUtilities UInt+reversed.swift
[84/667] Compiling InternalCollectionsUtilities Iterable+CopyContents.swift
[85/667] Compiling InternalCollectionsUtilities Iterable+Equality.swift
[86/667] Compiling InternalCollectionsUtilities LifetimeOverride.swift
[90/667] Compiling InternalCollectionsUtilities Descriptions.swift
[91/667] Emitting module RealModule
[92/667] Compiling SwiftASN1 DER.swift
[93/667] Compiling SwiftASN1 Errors.swift
[94/667] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[95/667] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[96/667] Compiling Logging LoggingSystem.swift
[97/667] Compiling InternalCollectionsUtilities Immortalize.swift
[98/667] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[99/667] Compiling InternalCollectionsUtilities Integer rank.swift
[100/667] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[101/667] Compiling RealModule Float80+Real.swift
[102/667] Compiling RealModule Real.swift
[117/669] Compiling Logging Logger+Attributes.swift
[117/669] Compiling chacha20_poly1305_x86_64-linux.S
[119/673] Compiling ModularArithmetic Modulus.swift
[120/673] Emitting module ModularArithmetic
[121/673] Compiling ModularArithmetic Scalar.swift
[123/693] Emitting module SpanPreview
[124/698] Compiling SpanPreview OutputSpan+InputSpanHelpers.swift
[125/698] Compiling SpanPreview MutableSpan+InputSpanHelpers.swift
[126/698] Compiling SpanPreview InputSpan.swift
[127/698] Emitting module SwiftProtobuf
[129/776] Compiling Logging Logger+With.swift
[130/780] Compiling Logging Logger.swift
[131/821] Compiling Logging MetadataProvider.swift
[132/821] Compiling HeapModule Heap+ExpressibleByArrayLiteral.swift
[133/821] Compiling OrderedCollections _Hashtable+Header.swift
[134/821] Compiling OrderedCollections OrderedDictionary+Codable.swift
[135/821] Compiling OrderedCollections OrderedDictionary+CustomReflectable.swift
[136/821] Compiling OrderedCollections OrderedDictionary+Deprecations.swift
[137/821] Compiling OrderedCollections OrderedDictionary+Descriptions.swift
[138/821] Compiling OrderedCollections _HashTable+UnsafeHandle.swift
[139/821] Compiling OrderedCollections _HashTable.swift
[140/821] Compiling OrderedCollections _HashTable+CustomStringConvertible.swift
[141/821] Compiling OrderedCollections _HashTable+Testing.swift
[142/821] Compiling OrderedCollections _HashTable+Bucket.swift
[143/821] Compiling OrderedCollections _HashTable+BucketIterator.swift
[144/821] Compiling OrderedCollections _HashTable+Constants.swift
[146/822] Compiling OrderedCollections OrderedDictionary+Elements.SubSequence.swift
[147/822] Compiling OrderedCollections OrderedDictionary+Elements.swift
[148/822] Compiling OrderedCollections OrderedDictionary+Equatable.swift
[149/822] Compiling OrderedCollections OrderedDictionary+ExpressibleByDictionaryLiteral.swift
[150/822] Compiling OrderedCollections OrderedSet+Hashable.swift
[151/822] Compiling OrderedCollections OrderedSet+Initializers.swift
[152/822] Compiling OrderedCollections OrderedSet+Insertions.swift
[153/822] Compiling OrderedCollections OrderedSet+Invariants.swift
[154/822] Compiling OrderedCollections OrderedSet+Move.swift
[155/822] Compiling OrderedCollections OrderedSet+Partial MutableCollection.swift
[156/822] Compiling OrderedCollections OrderedSet+Partial RangeReplaceableCollection.swift
[157/822] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formIntersection.swift
[159/822] Compiling HeapModule Heap+Descriptions.swift
[160/822] Compiling MemoryMapping MemoryMapping.swift
/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:72:31: error: 'nil' requires a contextual type
 70 |             throw MemoryMappingError.emptyFile
 71 |         }
 72 |         guard let addr = mmap(nil, fileSize, PROT_READ, MAP_SHARED, fd, 0),
    |                               `- error: 'nil' requires a contextual type
 73 |               addr != MAP_FAILED
 74 |         else {
/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 |
[161/823] Compiling HeapModule _HeapNode.swift
[162/859] Compiling HeapModule Heap.swift
[163/878] Compiling SwiftProtobuf Google_Protobuf_Any+Extensions.swift
[164/878] Compiling SwiftProtobuf Google_Protobuf_Any+Registry.swift
[165/878] Compiling SwiftProtobuf Google_Protobuf_Duration+Extensions.swift
[166/878] Compiling SwiftProtobuf Google_Protobuf_FieldMask+Extensions.swift
[167/878] Compiling SwiftProtobuf Google_Protobuf_ListValue+Extensions.swift
[168/878] Compiling SwiftProtobuf Google_Protobuf_NullValue+Extensions.swift
[169/878] Compiling SwiftProtobuf Google_Protobuf_Struct+Extensions.swift
[170/878] Compiling SwiftProtobuf Google_Protobuf_Timestamp+Extensions.swift
[171/878] Compiling SwiftProtobuf Google_Protobuf_Value+Extensions.swift
[172/878] Compiling SwiftProtobuf Google_Protobuf_Wrappers+Extensions.swift
[173/878] Compiling SwiftProtobuf HashVisitor.swift
[174/878] Compiling SwiftProtobuf Internal.swift
[175/898] Compiling MemoryMapping MMapDictionaryError.swift
[176/898] Emitting module MemoryMapping
[177/898] Compiling MemoryMapping MMapDictionary.swift
/host/spi-builder-workspace/Sources/MemoryMapping/MMapDictionary.swift:530:47: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
528 |         public func write(to url: URL, loadFactor: Double = MMapDictionary.defaultLoadFactor) throws {
529 |             let data = try build(loadFactor: loadFactor)
530 |             try data.write(to: url, options: .atomic)
    |                                               `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
531 |         }
532 |
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 |   struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 |     public static let atomic: Data.WritingOptions  }
  |                       `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
/host/spi-builder-workspace/Sources/MemoryMapping/MMapDictionary.swift:548:47: error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
546 |             let data = try build(loadFactor: loadFactor)
547 |             let url = URL(fileURLWithPath: path)
548 |             try data.write(to: url, options: .atomic)
    |                                               `- error: 'atomic' is unavailable: atomic writing is unavailable in WASI because temporary files are not supported
549 |         }
550 |     }
FoundationEssentials.Data.WritingOptions.atomic:4:23: note: 'atomic' has been explicitly marked unavailable here
2 |   struct WritingOptions {
3 | @available(*, unavailable, message: "atomic writing is unavailable in WASI because temporary files are not supported")
4 |     public static let atomic: Data.WritingOptions  }
  |                       `- note: 'atomic' has been explicitly marked unavailable here
5 | }
6 |
[177/898] Compiling KeccakP-1600-opt64.c
BUILD FAILURE 6.3 wasm