Build Information
Failed to build swift-homomorphic-encryption, reference main (c57ed7), with Swift 6.2 for Wasm on 20 Nov 2026 13:56:20 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-53886770-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.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 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 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.2
Building package at path: $PWD
https://github.com/apple/swift-homomorphic-encryption.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886770-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.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1
wasm-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:ca91be8d07e73eaf6c1c75f7ec193e42b7ed6f24d327455e9ae77f96fb6433b0
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.2-latest
Fetching https://github.com/apple/swift-collections.git
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-crypto.git
Fetching https://github.com/apple/swift-numerics
[1/8544] Fetching swift-log
[343/27521] Fetching swift-log, swift-crypto
[9305/34383] Fetching swift-log, swift-crypto, swift-numerics
[9495/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-algorithms
[17536/34425] Fetching swift-log, swift-crypto, swift-async-algorithms
[18486/64770] Fetching swift-log, swift-crypto, swift-async-algorithms, swift-collections
[26719/122255] Fetching swift-log, swift-crypto, swift-async-algorithms, swift-collections, swift-protobuf
[61145/128443] Fetching swift-log, swift-crypto, swift-async-algorithms, swift-collections, swift-protobuf, swift-algorithms
Fetched https://github.com/apple/swift-algorithms from cache (0.58s)
Fetching https://github.com/apple/swift-argument-parser.git
[72818/122255] Fetching swift-log, swift-crypto, swift-async-algorithms, swift-collections, swift-protobuf
Fetched https://github.com/apple/swift-async-algorithms.git from cache (1.42s)
Fetched https://github.com/apple/swift-log.git from cache (1.42s)
Fetched https://github.com/apple/swift-collections.git from cache (1.43s)
Fetched https://github.com/apple/swift-crypto.git from cache (1.44s)
[12647/57485] Fetching swift-protobuf
[25870/76923] Fetching swift-protobuf, swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser.git from cache (0.91s)
[44264/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.10s)
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.19s)
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.16s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 5.1.2 (0.47s)
Fetching https://github.com/apple/swift-asn1.git
[1/2079] Fetching swift-asn1
Fetched https://github.com/apple/swift-asn1.git from cache (0.43s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.4 (0.59s)
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-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-protobuf
Working copy of https://github.com/apple/swift-protobuf resolved at 1.41.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-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-algorithms
Working copy of https://github.com/apple/swift-algorithms resolved at 1.2.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.2
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
[1/1] Compiling plugin SwiftProtobufPlugin
[2/2] Compiling plugin GenerateManual
[3/3] Compiling plugin GenerateDoccReference
Building for debugging...
[3/501] Write sources
[42/501] Compiling _NumericsShims _NumericsShims.c
[43/501] Compiling CXKCPShims shims.c
[44/501] Compiling KeccakHash.c
[45/501] Compiling SimpleFIPS202.c
[46/501] Compiling CUtil zeroize.c
[47/501] Compiling KeccakSponge.c
[48/501] Compiling fiat_p256_adx_sqr.S
[49/501] Compiling fiat_p256_adx_mul.S
[50/501] Compiling fiat_curve25519_adx_square.S
[51/501] Compiling md5-x86_64-linux.S
[52/501] Compiling fiat_curve25519_adx_mul.S
[53/501] Compiling md5-x86_64-apple.S
[54/501] Write swift-version-24593BA9C3E375BF.txt
[55/501] Compiling md5-586-linux.S
[56/501] Compiling md5-586-apple.S
[57/501] Compiling chacha20_poly1305_x86_64-linux.S
[58/501] Compiling chacha20_poly1305_x86_64-apple.S
[59/501] Compiling chacha20_poly1305_armv8-linux.S
[60/501] Compiling chacha20_poly1305_armv8-win.S
[61/631] Compiling err_data.cc
[63/660] Compiling InternalCollectionsUtilities Iterable+Equality.swift
[64/660] Compiling InternalCollectionsUtilities LifetimeOverride.swift
[65/661] Emitting module SwiftASN1
[66/663] Compiling InternalCollectionsUtilities Span+Extras.swift
[67/663] Compiling InternalCollectionsUtilities Strideable+LimitHelpers.swift
[68/663] Compiling InternalCollectionsUtilities UInt+reversed.swift
[69/663] Compiling InternalCollectionsUtilities Iterable+CopyContents.swift
[71/663] Compiling RealModule RelaxedArithmetic.swift
[72/663] Compiling RealModule Real.swift
[73/663] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[74/663] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[75/663] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[76/663] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[77/663] Compiling RealModule Float80+Real.swift
[78/666] Compiling InternalCollectionsUtilities Immortalize.swift
[79/666] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[80/666] Compiling InternalCollectionsUtilities BorrowingIteratorProtocol+Equality.swift
[81/666] Compiling InternalCollectionsUtilities BorrowingIteratorProtocol+Extras.swift
[82/666] Compiling RealModule Float16+Real.swift
[83/666] Compiling RealModule RealFunctions.swift
[87/666] Compiling InternalCollectionsUtilities Debugging.swift
[88/666] Compiling InternalCollectionsUtilities Descriptions.swift
[89/666] Compiling InternalCollectionsUtilities Integer rank.swift
[90/666] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[99/666] Emitting module InternalCollectionsUtilities
[100/666] Emitting module RealModule
[107/667] Compiling ModularArithmetic Scalar.swift
[108/667] Compiling SwiftASN1 DER.swift
[109/667] Compiling SwiftASN1 Errors.swift
[110/667] Compiling InternalCollectionsUtilities OutputSpan+Extras.swift
[111/667] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[114/667] Compiling InternalCollectionsUtilities String+Padding.swift
[115/667] Compiling InternalCollectionsUtilities TemporaryAllocation.swift
[116/667] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[117/667] Compiling InternalCollectionsUtilities UnsafeMutablePointer+Extras.swift
[118/667] Compiling InternalCollectionsUtilities UnsafeMutableRawBufferPointer+Extras.swift
[119/667] Compiling InternalCollectionsUtilities UnsafePointer+Extras.swift
[120/667] Compiling Logging Logger+With.swift
[122/668] Compiling Logging Logger.swift
[123/668] Compiling Logging LoggingSystem.swift
[126/668] Compiling Logging Logger+Attributes.swift
[127/668] Compiling ModularArithmetic Modulus.swift
[127/668] Compiling chacha20_poly1305_armv8-apple.S
[128/668] Emitting module ModularArithmetic
[130/669] Compiling InternalCollectionsUtilities UnsafeRawBufferPointer+Extras.swift
[131/669] Compiling InternalCollectionsUtilities _SortedCollection.swift
[132/669] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[134/681] Wrapping AST for RealModule for debugging
[135/681] Wrapping AST for ModularArithmetic for debugging
[137/723] Emitting module SpanPreview
[138/741] Compiling SpanPreview MutableSpan+InputSpanHelpers.swift
[139/742] Compiling SpanPreview OutputSpan+InputSpanHelpers.swift
[140/742] Compiling SpanPreview InputSpan.swift
[141/755] Compiling ComplexModule Polar.swift
[143/757] Compiling ComplexModule Complex+Numeric.swift
[144/757] Compiling _RopeModule BigString+Comparable.swift
[145/757] Compiling _RopeModule BigString+CustomDebugStringConvertible.swift
[146/778] Compiling ComplexModule Complex+StringConvertible.swift
[147/778] Compiling ComplexModule Complex.swift
[148/789] Compiling ComplexModule Scale.swift
[149/814] Compiling OrderedCollections _HashTable+Constants.swift
[150/814] Compiling OrderedCollections _HashTable+CustomStringConvertible.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[151/814] Emitting module Logging
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Handlers/StreamLogHandler.swift:291:6: error: unknown attribute 'nonexhaustive'
289 | extension StreamLogHandler {
290 | /// The precision of the timestamp that a ``StreamLogHandler`` writes at the start of each log line.
291 | @nonexhaustive
| `- error: unknown attribute 'nonexhaustive'
292 | public enum TimestampPrecision: Sendable, Hashable {
293 | /// Whole seconds, for example `2025-06-01T14:03:07+0000`.
[152/814] Compiling OrderedCollections _HashTable+Bucket.swift
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Handlers/StreamLogHandler.swift:291:6: error: unknown attribute 'nonexhaustive'
289 | extension StreamLogHandler {
290 | /// The precision of the timestamp that a ``StreamLogHandler`` writes at the start of each log line.
291 | @nonexhaustive
| `- error: unknown attribute 'nonexhaustive'
292 | public enum TimestampPrecision: Sendable, Hashable {
293 | /// Whole seconds, for example `2025-06-01T14:03:07+0000`.
[153/814] Compiling OrderedCollections _HashTable+BucketIterator.swift
/host/spi-builder-workspace/.build/checkouts/swift-log/Sources/Logging/Handlers/StreamLogHandler.swift:291:6: error: unknown attribute 'nonexhaustive'
289 | extension StreamLogHandler {
290 | /// The precision of the timestamp that a ``StreamLogHandler`` writes at the start of each log line.
291 | @nonexhaustive
| `- error: unknown attribute 'nonexhaustive'
292 | public enum TimestampPrecision: Sendable, Hashable {
293 | /// Whole seconds, for example `2025-06-01T14:03:07+0000`.
[154/814] Compiling Logging MetadataProvider.swift
[154/814] Compiling KeccakP-1600-opt64.c
[155/814] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formSymmetricDifference.swift
[156/814] Compiling OrderedCollections OrderedSet+Partial SetAlgebra formUnion.swift
[157/814] Compiling OrderedCollections OrderedSet+Partial SetAlgebra intersection.swift
[158/814] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isDisjoint.swift
[159/814] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isEqualSet.swift
[160/814] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSubset.swift
[161/814] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isStrictSuperset.swift
[162/814] Compiling OrderedCollections OrderedSet+Partial SetAlgebra isSubset.swift
[163/814] Compiling _RopeModule RopeMetric.swift
[164/814] Compiling _RopeModule RopeSummary.swift
[165/814] Compiling _RopeModule _RopeItem.swift
[166/814] Compiling _RopeModule _RopePath.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 |
BUILD FAILURE 6.2 wasm