The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-homomorphic-encryption, reference main (ab3f8c), with Swift 6.3 for Wasm on 5 Nov 2026 00:09:55 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344849-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 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:         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-54344849-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:3045625b85c7b3a40ef7c4e596cfe3f6119a575d9bb01341bbf4a893a5aa001c
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest
Fetching https://github.com/apple/swift-async-algorithms.git
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-numerics
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/apple/swift-protobuf
[1/6773] Fetching swift-numerics
[69/15113] Fetching swift-numerics, swift-log
[12144/21938] Fetching swift-numerics, swift-log, swift-async-algorithms
[21939/51473] Fetching swift-numerics, swift-log, swift-async-algorithms, swift-collections
Fetched https://github.com/apple/swift-async-algorithms.git from cache (0.59s)
Fetching https://github.com/apple/swift-algorithms
[15409/44648] Fetching swift-numerics, swift-log, swift-collections
[44649/50807] Fetching swift-numerics, swift-log, swift-collections, swift-algorithms
Fetched https://github.com/apple/swift-algorithms from cache (0.52s)
Fetching https://github.com/apple/swift-argument-parser.git
Fetching https://github.com/apple/swift-crypto.git
Fetched https://github.com/apple/swift-numerics from cache (1.26s)
Fetched https://github.com/apple/swift-collections.git from cache (1.27s)
[1/19330] Fetching swift-argument-parser
[195/38254] Fetching swift-argument-parser, swift-crypto
[21224/94270] Fetching swift-argument-parser, swift-crypto, swift-protobuf
Fetched https://github.com/apple/swift-argument-parser.git from cache (0.90s)
[5837/74940] Fetching swift-crypto, swift-protobuf
Fetched https://github.com/apple/swift-crypto.git from cache (1.48s)
[31930/56016] Fetching swift-protobuf
Fetched https://github.com/apple/swift-log.git from cache (5.47s)
Fetched https://github.com/apple/swift-protobuf from cache (5.51s)
Computing version for https://github.com/apple/swift-algorithms
Computed https://github.com/apple/swift-algorithms at 1.2.1 (6.53s)
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 from cache (0.41s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.4 (0.65s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.17.0 (0.27s)
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-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.17.0
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.39.0
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-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.5
[1/1] Compiling plugin SwiftProtobufPlugin
[2/2] Compiling plugin GenerateManual
[3/3] Compiling plugin GenerateDoccReference
Building for debugging...
[3/501] Write sources
[29/501] Compiling _NumericsShims _NumericsShims.c
[30/501] Write sources
[43/501] Compiling SimpleFIPS202.c
[44/501] Compiling KeccakSponge.c
[44/501] Compiling CXKCPShims shims.c
[46/501] Compiling KeccakHash.c
[47/501] Compiling CUtil zeroize.c
[48/501] Compiling fiat_curve25519_adx_square.S
[48/501] Write swift-version-24593BA9C3E375BF.txt
[50/501] Compiling fiat_p256_adx_sqr.S
[51/501] Compiling fiat_p256_adx_mul.S
[51/501] Compiling md5-x86_64-linux.S
[53/501] Compiling md5-x86_64-apple.S
[54/501] Compiling fiat_curve25519_adx_mul.S
[55/501] Compiling md5-586-linux.S
[57/659] Emitting module InternalCollectionsUtilities
[58/662] Compiling InternalCollectionsUtilities Strideable+LimitHelpers.swift
[59/662] Compiling InternalCollectionsUtilities String+Padding.swift
[60/662] Compiling InternalCollectionsUtilities TemporaryAllocation.swift
[61/662] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[62/662] Emitting module SwiftASN1
[63/664] Compiling InternalCollectionsUtilities Span+Extras.swift
[65/664] Compiling InternalCollectionsUtilities MutableSpan+Extras.swift
[66/664] Compiling InternalCollectionsUtilities OutputSpan+Extras.swift
[67/664] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[69/664] Compiling InternalCollectionsUtilities UnsafeRawBufferPointer+Extras.swift
[70/664] Compiling InternalCollectionsUtilities _SortedCollection.swift
[71/664] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[72/664] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[73/664] Compiling InternalCollectionsUtilities UInt+reversed.swift
[74/664] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[75/664] Compiling InternalCollectionsUtilities Integer rank.swift
[76/664] Compiling RealModule Float80+Real.swift
[80/665] Compiling InternalCollectionsUtilities Iterable+CopyContents.swift
[81/665] Compiling InternalCollectionsUtilities Iterable+Equality.swift
[82/665] Compiling InternalCollectionsUtilities LifetimeOverride.swift
[83/665] Compiling InternalCollectionsUtilities MutableRef.swift
[84/665] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[85/665] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[86/665] Compiling RealModule RealFunctions.swift
[87/665] Compiling RealModule Real.swift
[88/665] Emitting module RealModule
[89/665] Compiling Logging Logger+With.swift
[92/665] Compiling Logging Logger+Attributes.swift
[93/666] Compiling RealModule RelaxedArithmetic.swift
[97/666] Compiling InternalCollectionsUtilities UnsafeMutablePointer+Extras.swift
[98/666] Compiling InternalCollectionsUtilities UnsafeMutableRawBufferPointer+Extras.swift
[99/666] Compiling InternalCollectionsUtilities UnsafePointer+Extras.swift
[100/666] Compiling RealModule Float16+Real.swift
[101/666] Compiling ModularArithmetic Scalar.swift
[102/666] Compiling ModularArithmetic Modulus.swift
[105/666] Emitting module ModularArithmetic
[110/667] Compiling SwiftASN1 DER.swift
[111/667] Compiling SwiftASN1 Errors.swift
[112/667] Compiling InternalCollectionsUtilities Debugging.swift
[113/667] Compiling InternalCollectionsUtilities Descriptions.swift
[117/667] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[118/667] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[124/669] Compiling md5-586-apple.S
[125/669] Wrapping AST for ModularArithmetic for debugging
[126/669] Wrapping AST for RealModule for debugging
[128/680] Compiling Logging MetadataProvider.swift
[129/685] Compiling ComplexModule Complex+AdditiveArithmetic.swift
[130/685] Compiling ComplexModule Complex+AlgebraicField.swift
[131/695] Emitting module Logging
[132/708] Compiling _RopeModule BigString+Chunk+Index.swift
[133/708] Compiling _RopeModule BigString+Chunk+RopeElement.swift
[134/717] Compiling SpanPreview MutableSpan+InputSpanHelpers.swift
[135/717] Compiling SpanPreview InputSpan.swift
[136/717] Emitting module SpanPreview
[137/717] Compiling SpanPreview OutputSpan+InputSpanHelpers.swift
[139/755] Compiling _RopeModule BigString+Chunk+Splitting.swift
[140/755] Compiling _RopeModule BigString+Chunk+UTF16.swift
[141/755] 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 |
[142/756] Compiling Logging Logger.swift
[143/756] Compiling Logging LoggingSystem.swift
[144/756] Compiling _RopeModule BigString+Ingester.swift
[145/756] Compiling _RopeModule BigString+Invariants.swift
[146/756] Compiling ComplexModule Complex+StringConvertible.swift
[148/758] Compiling ComplexModule Complex+Numeric.swift
[149/758] Compiling ComplexModule Complex.swift
[150/758] Compiling ComplexModule Polar.swift
[154/773] Compiling _RopeModule BigString+CustomStringConvertible.swift
[155/773] Compiling _RopeModule BigString+Equatable.swift
[156/773] Compiling _RopeModule BigString+ExpressibleByStringLiteral.swift
[157/773] Compiling _RopeModule BigString+Hashing.swift
[158/773] Compiling _RopeModule BigString+LosslessStringConvertible.swift
[159/773] Compiling _RopeModule BigString+RangeReplaceableCollection.swift
[160/773] Compiling _RopeModule BigString+Sequence.swift
[161/773] Compiling _RopeModule BigString+TextOutputStream.swift
[162/773] Compiling _RopeModule BigString+Append.swift
[163/773] Compiling _RopeModule BigString+Initializers.swift
[164/773] Compiling _RopeModule BigString+Insert.swift
[165/773] Compiling _RopeModule BigString+Managing Breaks.swift
[166/837] Compiling MemoryMapping MMapDictionaryError.swift
[167/837] 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 |
[168/841] Emitting module MemoryMapping
[169/896] Compiling HashTreeCollections _HashNode+Primitive Removals.swift
[170/896] Compiling HashTreeCollections _HashNode+Primitive Replacement.swift
[171/896] Emitting module ComplexModule
[171/905] Compiling KeccakP-1600-opt64.c
BUILD FAILURE 6.3 wasm