Build Information
Failed to build swift-homomorphic-encryption, reference main (76fdde), with Swift 6.4 for Wasm on 14 Oct 2026 05:23:44 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344845-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.4-latest swift build --swift-sdk swift-6.4.0-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.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-54344845-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.4-latest swift build --swift-sdk swift-6.4.0-RELEASE_wasm 2>&1
wasm-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:d8610b27563fbed4643ddaec8e9397319e3b3e1372fc54686db2dacb952c1b8f
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-numerics
Fetching https://github.com/apple/swift-crypto.git
Fetching https://github.com/apple/swift-protobuf
Fetching https://github.com/apple/swift-async-algorithms.git
[1/8291] Fetching swift-log
[2/26934] Fetching swift-log, swift-crypto
[1847/33690] Fetching swift-log, swift-crypto, swift-numerics
[10795/40511] Fetching swift-log, swift-crypto, swift-numerics, swift-async-algorithms
Fetched https://github.com/apple/swift-log.git (0.52s)
[14592/32220] Fetching swift-crypto, swift-numerics, swift-async-algorithms
Fetching https://github.com/apple/swift-argument-parser.git
[15443/61001] Fetching swift-crypto, swift-numerics, swift-async-algorithms, swift-collections
[27924/116085] Fetching swift-crypto, swift-numerics, swift-async-algorithms, swift-collections, swift-protobuf
[66412/135199] Fetching swift-crypto, swift-numerics, swift-async-algorithms, swift-collections, swift-protobuf, swift-argument-parser
Fetched https://github.com/apple/swift-async-algorithms.git (1.50s)
Fetching https://github.com/apple/swift-algorithms
[92574/128378] Fetching swift-crypto, swift-numerics, swift-collections, swift-protobuf, swift-argument-parser
Fetched https://github.com/apple/swift-crypto.git (1.52s)
Fetched https://github.com/apple/swift-argument-parser.git (1.00s)
[55368/90621] Fetching swift-numerics, swift-collections, swift-protobuf
Fetched https://github.com/apple/swift-collections.git (1.54s)
[27138/61840] Fetching swift-numerics, swift-protobuf
[48621/67999] Fetching swift-numerics, swift-protobuf, swift-algorithms
Fetched https://github.com/apple/swift-algorithms (0.54s)
[50824/61840] Fetching swift-numerics, swift-protobuf
Fetched https://github.com/apple/swift-numerics (4.24s)
Fetched https://github.com/apple/swift-protobuf (4.28s)
Computing version for https://github.com/apple/swift-algorithms
Computed https://github.com/apple/swift-algorithms at 1.2.1 (5.18s)
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.18s)
Computing version for https://github.com/apple/swift-protobuf
Computed https://github.com/apple/swift-protobuf at 1.39.0 (0.19s)
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.22s)
Fetching https://github.com/apple/swift-asn1.git
[1/2041] Fetching swift-asn1
Fetched https://github.com/apple/swift-asn1.git (0.42s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.3 (0.61s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.16.1 (0.15s)
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-algorithms
Working copy of https://github.com/apple/swift-algorithms resolved at 1.2.1
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-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.16.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.3
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-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
Building for debugging...
[Computing dependencies]
[Constructing description]
[Pre-planning 1 / 1765]
[Planning 1184 / 1765]
[Planning deferred tasks]
[Constructing 1831 / 3938]
[122 / 892] MultiplicationSnippet-product
[262 / 910] ArgumentParserToolInfo
[268 / 963] SwiftProtobuf
[270 / 963] CryptoBoringWrapper
[289 / 963] InternalCollectionsUtilities
[302 / 963] CCryptoBoringSSL
[303 / 963] CCryptoBoringSSL
[311 / 963] CCryptoBoringSSL
[313 / 963] CCryptoBoringSSL
[324 / 963] CCryptoBoringSSL
[325 / 963] CCryptoBoringSSL
[327 / 963] CCryptoBoringSSL
[329 / 963] SwiftASN1
[337 / 963] CCryptoBoringSSL
[339 / 963] CCryptoBoringSSL
[341 / 963] CCryptoBoringSSL
[344 / 963] CCryptoBoringSSL
[348 / 963] SwiftProtobuf
[357 / 963] CCryptoBoringSSL
[366 / 963] CCryptoBoringSSL
[371 / 963] CCryptoBoringSSL
[374 / 963] CCryptoBoringSSL
[378 / 963] CCryptoBoringSSL
[382 / 963] CCryptoBoringSSL
[386 / 963] CCryptoBoringSSL
[390 / 963] CCryptoBoringSSL
[395 / 963] CCryptoBoringSSL
[397 / 963] CCryptoBoringSSL
[403 / 963] CCryptoBoringSSL
[404 / 963] CCryptoBoringSSL
[407 / 963] CCryptoBoringSSL
[410 / 963] CCryptoBoringSSL
[414 / 963] CCryptoBoringSSL
[422 / 963] CCryptoBoringSSL
[437 / 963] CCryptoBoringSSL
[447 / 963] CCryptoBoringSSL
[450 / 963] CCryptoBoringSSL
[454 / 963] CCryptoBoringSSL
[456 / 963] CCryptoBoringSSL
[458 / 963] CCryptoBoringSSL
[463 / 963] CCryptoBoringSSL
[465 / 963] CCryptoBoringSSL
[470 / 963] CCryptoBoringSSL
[474 / 963] CCryptoBoringSSL
[477 / 963] CCryptoBoringSSL
[478 / 963] CCryptoBoringSSL
[481 / 963] CCryptoBoringSSL
[484 / 963] CCryptoBoringSSL
[486 / 963] CCryptoBoringSSL
[489 / 963] CCryptoBoringSSL
[492 / 963] CCryptoBoringSSL
[497 / 963] CCryptoBoringSSL
[506 / 963] CCryptoBoringSSL
[510 / 963] CCryptoBoringSSL
[513 / 963] CCryptoBoringSSL
[518 / 963] CCryptoBoringSSL
[522 / 963] CCryptoBoringSSL
[527 / 963] CCryptoBoringSSL
[541 / 963] CCryptoBoringSSL
[545 / 963] CCryptoBoringSSL
[549 / 963] CCryptoBoringSSL
[557 / 963] CCryptoBoringSSL
[562 / 963] CCryptoBoringSSL
[566 / 963] CCryptoBoringSSL
[570 / 963] CCryptoBoringSSL
[573 / 963] CCryptoBoringSSL
[577 / 963] CCryptoBoringSSL
[580 / 963] CCryptoBoringSSL
[583 / 963] CCryptoBoringSSL
[586 / 963] CCryptoBoringSSL
[590 / 963] CCryptoBoringSSL
[593 / 963] CCryptoBoringSSL
[598 / 963] CCryptoBoringSSL
[607 / 963] CCryptoBoringSSL
[616 / 963] CCryptoBoringSSL
[620 / 963] CCryptoBoringSSL
[624 / 963] CCryptoBoringSSL
[628 / 963] CCryptoBoringSSL
[631 / 963] CCryptoBoringSSL
[634 / 963] CCryptoBoringSSL
[636 / 963] CCryptoBoringSSL
[639 / 963] CCryptoBoringSSL
[649 / 963] CCryptoBoringSSL
[659 / 963] CCryptoBoringSSL
[665 / 963] CCryptoBoringSSL
[668 / 963] CCryptoBoringSSL
[670 / 963] CCryptoBoringSSL
[673 / 963] CCryptoBoringSSL
[674 / 963] CCryptoBoringSSL
[676 / 963] CCryptoBoringSSL
[679 / 963] CCryptoBoringSSL
[681 / 963] CCryptoBoringSSL
[684 / 963] CCryptoBoringSSL
[688 / 963] SwiftProtobuf
[696 / 963] SwiftProtobuf
[696 / 963] SwiftASN1-product
[699 / 963] RealModule
[702 / 963] RealModule-product
[708 / 963] MemoryMapping
[710 / 963] MemoryMapping-product
error: SwiftCompile normal wasm32 /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:72:26: [1;31merror: [1;39mcannot find 'mmap' in scope[0;0m
[0;36m70 |[0;0m throw MemoryMappingError.emptyFile
[0;36m71 |[0;0m }
[0;36m72 |[0;0m guard let addr = [4;39mmmap[0;0m(nil, fileSize, PROT_READ, MAP_SHARED, fd, 0),
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'mmap' in scope[0;0m
[0;36m73 |[0;0m addr != MAP_FAILED
[0;36m74 |[0;0m else {
/host/spi-builder-workspace/Sources/MemoryMapping/MemoryMapping.swift:72:46: [1;31merror: [1;39mcannot find 'PROT_READ' in scope[0;0m
[0;36m70 |[0;0m throw MemoryMappingError.emptyFile
[0;36m71 |[0;0m }
[0;36m72 |[0;0m guard let addr = mmap(nil, fileSize, [4;39mPROT_READ[0;0m, MAP_SHARED, fd, 0),
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'PROT_READ' in scope[0;0m
[0;36m73 |[0;0m addr != MAP_FAILED
[0;36m74 |[0;0m else {
/host/spi-builder-workspace/Sources/MemoryMapping/MemoryMapping.swift:72:57: [1;31merror: [1;39mcannot find 'MAP_SHARED' in scope[0;0m
[0;36m70 |[0;0m throw MemoryMappingError.emptyFile
[0;36m71 |[0;0m }
[0;36m72 |[0;0m guard let addr = mmap(nil, fileSize, PROT_READ, [4;39mMAP_SHARED[0;0m, fd, 0),
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'MAP_SHARED' in scope[0;0m
[0;36m73 |[0;0m addr != MAP_FAILED
[0;36m74 |[0;0m else {
/host/spi-builder-workspace/Sources/MemoryMapping/MemoryMapping.swift:87:9: [1;31merror: [1;39mcannot find 'munmap' in scope[0;0m
[0;36m85 |[0;0m /// - Parameter buffer: The buffer representing the mapped memory region to unmap.
[0;36m86 |[0;0m public static func unmap(_ buffer: UnsafeMutableRawBufferPointer) {
[0;36m87 |[0;0m [4;39mmunmap[0;0m(buffer.baseAddress, buffer.count)
[0;36m|[0;0m `- [1;31merror: [1;39mcannot find 'munmap' in scope[0;0m
[0;36m88 |[0;0m }
[0;36m89 |[0;0m
Failed frontend command:
/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-webassembly-wasm32/MemoryMapping-t.build/Objects-normal/wasm32/MemoryMapping.d -emit-const-values-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-homomorphic-encryption.build/Debug-webassembly-wasm32/MemoryMapping-t.build/Objects-normal/wasm32/MemoryMapping.swiftconstvalues -emit-reference-dependencies-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-homomorphic-encryption.build/Debug-webassembly-wasm32/MemoryMapping-t.build/Objects-normal/wasm32/MemoryMapping.swiftdeps -serialize-diagnostics-path /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-homomorphic-encryption.build/Debug-webassembly-wasm32/MemoryMapping-t.build/Objects-normal/wasm32/MemoryMapping.dia -target wasm32-unknown-wasip1 -disable-objc-interop -sdk /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk -sysroot /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk -I /host/spi-builder-workspace/.build/out/Products/Debug-webassembly-wasm32 -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 /usr/lib/swift/host/plugins/testing\#/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_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static -use-static-resource-dir -enable-anonymous-context-mangled-names -file-compilation-dir /host -Xcc -resource-dir -Xcc /root/.swiftpm/swift-sdks/swift-6.4.0-RELEASE_wasm.artifactbundle/swift-6.4.0-RELEASE_wasm/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/clang -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-webassembly-wasm32/include -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-homomorphic-encryption.build/Debug-webassembly-wasm32/MemoryMapping-t.build/DerivedSources-normal/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-homomorphic-encryption.build/Debug-webassembly-wasm32/MemoryMapping-t.build/DerivedSources/wasm32 -Xcc -I/host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-homomorphic-encryption.build/Debug-webassembly-wasm32/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-webassembly-wasm32/MemoryMapping-t.build/Objects-normal/wasm32/MemoryMapping_const_extract_protocols.json -in-process-plugin-server-path /usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -parse-as-library -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/swift-homomorphic-encryption.build/Debug-webassembly-wasm32/MemoryMapping-t.build/Objects-normal/wasm32/MemoryMapping.o -index-unit-output-path /swift-homomorphic-encryption.build/Debug-webassembly-wasm32/MemoryMapping-t.build/Objects-normal/wasm32/MemoryMapping.o -index-store-path /host/spi-builder-workspace/.build/out -index-system-modules
error: Build failed
BUILD FAILURE 6.4 wasm