The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-homomorphic-encryption, reference main (c57ed7), with Swift 6.4 for Wasm on 20 Nov 2026 13:56:09 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344843-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

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.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-54344843-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:d7b72fae8894fba3c2632fd7068ea480e9b111160d8dd7b4d9df5fbcfe7a40ee
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-async-algorithms.git
Fetching https://github.com/apple/swift-crypto.git
Fetching https://github.com/apple/swift-protobuf
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/apple/swift-numerics
[1/8544] Fetching swift-log
[8033/27521] Fetching swift-log, swift-crypto
[8546/34425] Fetching swift-log, swift-crypto, swift-async-algorithms
[8547/41287] Fetching swift-log, swift-crypto, swift-async-algorithms, swift-numerics
[24209/71632] Fetching swift-log, swift-crypto, swift-async-algorithms, swift-numerics, swift-collections
[40939/129117] Fetching swift-log, swift-crypto, swift-async-algorithms, swift-numerics, swift-collections, swift-protobuf
Fetched https://github.com/apple/swift-async-algorithms.git (1.52s)
Fetched https://github.com/apple/swift-log.git (1.52s)
Fetching https://github.com/apple/swift-algorithms
Fetching https://github.com/apple/swift-argument-parser.git
[69981/113669] Fetching swift-crypto, swift-numerics, swift-collections, swift-protobuf
Fetched https://github.com/apple/swift-collections.git (1.53s)
Fetched https://github.com/apple/swift-crypto.git (1.53s)
[21234/64347] Fetching swift-numerics, swift-protobuf
[29283/70535] Fetching swift-numerics, swift-protobuf, swift-algorithms
[38345/89973] Fetching swift-numerics, swift-protobuf, swift-algorithms, swift-argument-parser
Fetched https://github.com/apple/swift-algorithms (0.53s)
[33120/83785] Fetching swift-numerics, swift-protobuf, swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser.git (0.82s)
[41353/64347] Fetching swift-numerics, swift-protobuf
Fetched https://github.com/apple/swift-numerics (4.86s)
Fetched https://github.com/apple/swift-protobuf (4.90s)
Computing version for https://github.com/apple/swift-algorithms
Computed https://github.com/apple/swift-algorithms at 1.2.1 (5.78s)
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-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.23s)
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-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.22s)
Fetching https://github.com/apple/swift-asn1.git
[1/2079] Fetching swift-asn1
Fetched https://github.com/apple/swift-asn1.git (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.59s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.17.2 (0.15s)
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-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
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-numerics
Working copy of https://github.com/apple/swift-numerics resolved at 1.1.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-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
Building for debugging...
[Computing dependencies]
[Provisioning 1 / 77]
[Pre-planning 1 / 1853]
[Planning 1061 / 1853]
[Planning deferred tasks]
[Constructing 1738 / 4106]
[123 / 915] ModularArithmetic
[272 / 930] MemoryMapping
[278 / 984] SwiftProtobuf
[290 / 984] CryptoBoringWrapper
[290 / 984] MemoryMapping
[302 / 984] SwiftProtobuf
[303 / 984] CryptoBoringWrapper
[304 / 984] SwiftASN1
[320 / 984] SwiftProtobuf
[324 / 985] SwiftProtobuf
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: 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: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 |
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