Build Information
Failed to build swift-homomorphic-encryption, reference main (76fdde), with Swift 6.2 for Wasm on 14 Oct 2026 05:23:48 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.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1Build 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: 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-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.2-latest swift build --swift-sdk swift-6.2-RELEASE_wasm 2>&1
wasm-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:c092ff8dc506a2a30e6239b6992792fd4f7dfaaa46cac3b3c48d8fe35e954282
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-log.git
Fetching https://github.com/apple/swift-protobuf
Fetching https://github.com/apple/swift-numerics
Fetching https://github.com/apple/swift-async-algorithms.git
Fetching https://github.com/apple/swift-crypto.git
[1/8291] Fetching swift-log
[2/26934] Fetching swift-log, swift-crypto
[1744/33755] Fetching swift-log, swift-crypto, swift-async-algorithms
[3091/40511] Fetching swift-log, swift-crypto, swift-async-algorithms, swift-numerics
Fetched https://github.com/apple/swift-log.git from cache (0.54s)
Fetching https://github.com/apple/swift-algorithms
[14138/61001] Fetching swift-crypto, swift-async-algorithms, swift-numerics, swift-collections
[37029/116085] Fetching swift-crypto, swift-async-algorithms, swift-numerics, swift-collections, swift-protobuf
[37894/122244] Fetching swift-crypto, swift-async-algorithms, swift-numerics, swift-collections, swift-protobuf, swift-algorithms
Fetched https://github.com/apple/swift-algorithms from cache (0.56s)
Fetching https://github.com/apple/swift-argument-parser.git
[49197/116085] Fetching swift-crypto, swift-async-algorithms, swift-numerics, swift-collections, swift-protobuf
[83587/135199] Fetching swift-crypto, swift-async-algorithms, swift-numerics, swift-collections, swift-protobuf, swift-argument-parser
Fetched https://github.com/apple/swift-collections.git from cache (1.75s)
[63226/106418] Fetching swift-crypto, swift-async-algorithms, swift-numerics, swift-protobuf, swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser.git from cache (0.93s)
[75186/87304] Fetching swift-crypto, swift-async-algorithms, swift-numerics, swift-protobuf
Fetched https://github.com/apple/swift-numerics from cache (5.02s)
Fetched https://github.com/apple/swift-async-algorithms.git from cache (5.02s)
Fetched https://github.com/apple/swift-crypto.git from cache (5.04s)
Fetched https://github.com/apple/swift-protobuf from cache (5.07s)
Computing version for https://github.com/apple/swift-algorithms
Computed https://github.com/apple/swift-algorithms at 1.2.1 (6.05s)
Computing version for https://github.com/apple/swift-numerics
Computed https://github.com/apple/swift-numerics at 1.1.1 (0.14s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.7.3 (0.23s)
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.20s)
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.42s)
Fetching https://github.com/apple/swift-asn1.git
[1/2041] 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.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.16s)
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-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-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-protobuf
Working copy of https://github.com/apple/swift-protobuf resolved at 1.39.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-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.1.1
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
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-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.16.1
[1/1] Compiling plugin SwiftProtobufPlugin
[2/2] Compiling plugin GenerateManual
[3/3] Compiling plugin GenerateDoccReference
Building for debugging...
[3/495] Write sources
[41/495] Compiling _NumericsShims _NumericsShims.c
[42/495] Compiling fiat_curve25519_adx_mul.S
[43/495] Compiling fiat_p256_adx_mul.S
[43/495] Compiling CUtil zeroize.c
[44/495] Compiling fiat_curve25519_adx_square.S
[46/495] Compiling md5-x86_64-linux.S
[47/495] Compiling fiat_p256_adx_sqr.S
[48/495] Compiling md5-586-linux.S
[49/495] Compiling md5-x86_64-apple.S
[50/495] Compiling chacha20_poly1305_x86_64-linux.S
[51/495] Compiling md5-586-apple.S
[52/495] Compiling chacha20_poly1305_x86_64-apple.S
[53/495] Compiling chacha20_poly1305_armv8-win.S
[54/495] Write swift-version-24593BA9C3E375BF.txt
[55/495] Compiling chacha20_poly1305_armv8-apple.S
[56/495] Compiling chacha-x86_64-linux.S
[57/495] Compiling chacha-x86_64-apple.S
[58/495] Compiling chacha20_poly1305_armv8-linux.S
[59/495] Compiling chacha-x86-linux.S
[60/495] Compiling chacha-x86-apple.S
[61/615] Compiling CCryptoBoringSSLShims shims.c
[62/653] Compiling err_data.cc
[63/653] Compiling chacha-armv8-win.S
[64/653] Compiling chacha-armv8-linux.S
[65/653] Compiling chacha-armv8-apple.S
[66/653] Compiling chacha-armv4-linux.S
[67/653] Compiling aes128gcmsiv-x86_64-linux.S
[68/653] Compiling aes128gcmsiv-x86_64-apple.S
[69/653] Compiling x86_64-mont5-linux.S
[70/653] Compiling x86_64-mont5-apple.S
[71/653] Compiling x86_64-mont-linux.S
[72/653] Compiling x86_64-mont-apple.S
[74/653] Emitting module Logging
[74/654] Compiling x86-mont-linux.S
[75/654] Compiling x86-mont-apple.S
[76/654] Compiling vpaes-x86_64-linux.S
[77/654] Compiling vpaes-x86_64-apple.S
[78/654] Compiling vpaes-x86-linux.S
[79/654] Compiling vpaes-x86-apple.S
[80/654] Compiling vpaes-armv8-win.S
[81/654] Compiling vpaes-armv8-linux.S
[82/654] Compiling vpaes-armv8-apple.S
[83/654] Compiling vpaes-armv7-linux.S
[84/654] Compiling sha512-x86_64-linux.S
[85/654] Compiling sha512-x86_64-apple.S
[86/654] Compiling sha512-armv8-win.S
[87/654] Compiling sha512-armv8-linux.S
[88/654] Compiling sha512-armv8-apple.S
[89/654] Compiling sha512-armv4-linux.S
[90/654] Compiling sha512-586-linux.S
[91/654] Compiling sha512-586-apple.S
[92/654] Compiling sha256-x86_64-linux.S
[93/654] Compiling sha256-x86_64-apple.S
[94/654] Compiling sha256-armv8-win.S
[95/654] Compiling sha256-armv8-linux.S
[96/654] Compiling sha256-armv8-apple.S
[97/654] Compiling sha256-armv4-linux.S
[98/654] Compiling sha256-586-linux.S
[99/654] Compiling sha256-586-apple.S
[100/654] Compiling sha1-x86_64-linux.S
[101/654] Compiling sha1-x86_64-apple.S
[102/654] Compiling sha1-armv8-win.S
[103/654] Compiling sha1-armv8-linux.S
[104/654] Compiling sha1-armv8-apple.S
[105/654] Compiling sha1-armv4-large-linux.S
[106/654] Compiling sha1-586-linux.S
[107/654] Compiling sha1-586-apple.S
[108/654] Compiling rsaz-avx2-linux.S
[109/654] Compiling rsaz-avx2-apple.S
[110/654] Compiling rdrand-x86_64-linux.S
[111/654] Compiling rdrand-x86_64-apple.S
[112/654] Compiling p256_beeu-x86_64-asm-linux.S
[113/654] Compiling p256_beeu-x86_64-asm-apple.S
[114/654] Compiling p256_beeu-armv8-asm-win.S
[115/654] Compiling p256_beeu-armv8-asm-linux.S
[116/654] Compiling p256_beeu-armv8-asm-apple.S
[117/654] Compiling p256-x86_64-asm-linux.S
[118/654] Compiling p256-x86_64-asm-apple.S
[120/654] Compiling InternalCollectionsUtilities Debugging.swift
[121/654] Compiling InternalCollectionsUtilities Descriptions.swift
[121/654] Compiling p256-armv8-asm-win.S
[122/654] Compiling p256-armv8-asm-linux.S
[124/654] Compiling InternalCollectionsUtilities Iterable+CopyContents.swift
[125/654] Compiling InternalCollectionsUtilities Iterable+Equality.swift
[126/654] Compiling InternalCollectionsUtilities LifetimeOverride.swift
[127/654] Compiling InternalCollectionsUtilities MutableRef.swift
[127/657] Compiling p256-armv8-asm-apple.S
[129/657] Emitting module InternalCollectionsUtilities
[130/657] Compiling InternalCollectionsUtilities BorrowingIteratorProtocol+Equality.swift
[131/657] Compiling InternalCollectionsUtilities BorrowingIteratorProtocol+Extras.swift
[134/657] Compiling InternalCollectionsUtilities MutableSpan+Extras.swift
[135/657] Compiling InternalCollectionsUtilities OutputSpan+Extras.swift
[136/659] Compiling InternalCollectionsUtilities TemporaryAllocation.swift
[137/659] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[138/659] Compiling RealModule RealFunctions.swift
[142/660] Compiling ghashv8-armv8-win.S
[144/660] Compiling InternalCollectionsUtilities UnsafeMutablePointer+Extras.swift
[145/660] Compiling InternalCollectionsUtilities UnsafeMutableRawBufferPointer+Extras.swift
[146/660] Compiling InternalCollectionsUtilities UnsafePointer+Extras.swift
[147/660] Emitting module RealModule
[150/660] Compiling RealModule RelaxedArithmetic.swift
[153/660] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[154/660] Compiling InternalCollectionsUtilities Span+Extras.swift
[161/660] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[162/660] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[163/660] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[164/660] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[165/660] Compiling SwiftASN1 DER.swift
[166/660] Compiling SwiftASN1 Errors.swift
[167/660] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[168/660] Compiling InternalCollectionsUtilities UInt+reversed.swift
[169/660] Compiling InternalCollectionsUtilities Strideable+LimitHelpers.swift
[170/660] Compiling InternalCollectionsUtilities String+Padding.swift
[172/660] Compiling ghashv8-armv8-linux.S
[174/660] Compiling RealModule Real.swift
[175/660] Compiling RealModule Float80+Real.swift
[176/660] Compiling RealModule Float16+Real.swift
[177/661] Compiling Logging Logger+Attributes.swift
[177/661] Compiling ghashv8-armv8-apple.S
[179/661] Compiling Logging LoggingSystem.swift
[180/661] Compiling InternalCollectionsUtilities UnsafeRawBufferPointer+Extras.swift
[181/661] Compiling InternalCollectionsUtilities _SortedCollection.swift
[182/661] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[183/662] Compiling ghashv8-armv7-linux.S
[185/662] Compiling ghash-x86_64-linux.S
[187/662] Emitting module ModularArithmetic
[187/662] Compiling ghash-x86_64-apple.S
[188/662] Compiling ModularArithmetic Modulus.swift
[189/662] Compiling ModularArithmetic Scalar.swift
[191/663] Wrapping AST for RealModule for debugging
[193/678] Emitting module SpanPreview
[194/717] Compiling SpanPreview OutputSpan+InputSpanHelpers.swift
[195/717] Compiling SpanPreview InputSpan.swift
[196/722] Compiling SpanPreview MutableSpan+InputSpanHelpers.swift
[198/794] Compiling Logging Logger+With.swift
[199/797] Compiling Logging Logger.swift
[200/804] Compiling ComplexModule Complex+StringConvertible.swift
[201/807] Compiling Logging MetadataProvider.swift
[202/807] Compiling ComplexModule Complex.swift
[203/807] Compiling _RopeModule BigString+Metrics.swift
[204/807] Compiling _RopeModule BigString+Summary.swift
[205/807] Compiling _RopeModule BigString+Chunk+Counts.swift
[206/807] Compiling _RopeModule BigString+Chunk+Description.swift
[207/807] Compiling _RopeModule BigString+Chunk+Breaks.swift
[208/807] Compiling _RopeModule BigString+Chunk+Character.swift
[209/813] Compiling ComplexModule Polar.swift
[210/814] Compiling _RopeModule BigString+Ingester.swift
[211/814] Compiling _RopeModule BigString+Invariants.swift
[212/814] Compiling _RopeModule BigString+Builder.swift
[213/814] Compiling _RopeModule BigString+Contents.swift
[214/814] 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 |
[217/816] Compiling ComplexModule Complex+Numeric.swift
[219/816] Compiling HeapModule Heap+ExpressibleByArrayLiteral.swift
[220/816] Compiling MemoryMapping MMapDictionaryError.swift
[221/816] Compiling ComplexModule Scale.swift
[222/816] Emitting module SwiftASN1
[223/820] Compiling HeapModule Heap+Descriptions.swift
[224/869] Compiling HashTreeCollections _AncestorHashSlots.swift
[225/869] Compiling HashTreeCollections _Bitmap.swift
[226/892] 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 |
[227/892] Emitting module MemoryMapping
BUILD FAILURE 6.2 wasm