The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-homomorphic-encryption, reference main (ab3f8c), with Swift 6.4 for Wasm on 5 Nov 2026 00:11:52 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.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 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.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-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.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:439c9a525449f13061cf4a8f755895df6bdc90ef7885bc03630392396f826d74
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-protobuf
Fetching https://github.com/apple/swift-crypto.git
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-async-algorithms.git
[1/8340] Fetching swift-log
[3671/27264] Fetching swift-log, swift-crypto
[9288/34089] Fetching swift-log, swift-crypto, swift-async-algorithms
[18005/63624] Fetching swift-log, swift-crypto, swift-async-algorithms, swift-collections
Fetched https://github.com/apple/swift-async-algorithms.git (1.43s)
Fetching https://github.com/apple/swift-argument-parser.git
Fetched https://github.com/apple/swift-collections.git (1.44s)
Fetching https://github.com/apple/swift-algorithms
[1/56016] Fetching swift-protobuf
[2/62175] Fetching swift-protobuf, swift-algorithms
[7281/81505] Fetching swift-protobuf, swift-algorithms, swift-argument-parser
Fetched https://github.com/apple/swift-algorithms (0.55s)
[5354/75346] Fetching swift-protobuf, swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser.git (0.83s)
[10083/56016] Fetching swift-protobuf
Fetching https://github.com/apple/swift-numerics
Fetched https://github.com/apple/swift-log.git (5.67s)
[1/6773] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics (0.60s)
Fetched https://github.com/apple/swift-crypto.git (6.28s)
Fetched https://github.com/apple/swift-protobuf (6.31s)
Computing version for https://github.com/apple/swift-algorithms
Computed https://github.com/apple/swift-algorithms at 1.2.1 (7.25s)
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.5 (0.23s)
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 5.1.1 (0.23s)
Fetching https://github.com/apple/swift-asn1.git
[1/2051] Fetching swift-asn1
Fetched https://github.com/apple/swift-asn1.git (0.46s)
Computing version for https://github.com/apple/swift-asn1.git
Computed https://github.com/apple/swift-asn1.git at 1.7.4 (0.64s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.17.0 (0.16s)
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-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-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-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
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-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-algorithms
Working copy of https://github.com/apple/swift-algorithms resolved at 1.2.1
Building for debugging...
[Computing dependencies]
[Provisioning 6 / 77]
[Pre-planning 1 / 1853]
[Planning 815 / 1853]
[Planning deferred tasks]
[Constructing 1518 / 4106]
[Starting]
[71 / 915] SwiftASN1
[265 / 924] InternalCollectionsUtilities
[271 / 933] ArgumentParserToolInfo
[277 / 987] SwiftProtobuf
[277 / 987] RealModule
[279 / 987] Logging
[297 / 987] ArgumentParserToolInfo
[306 / 987] CryptoBoringWrapper
[318 / 987] SwiftASN1
[320 / 987] SwiftASN1
[324 / 987] SwiftASN1
[326 / 988] SwiftProtobuf
[327 / 988] SwiftProtobuf
[331 / 988] SwiftProtobuf
[337 / 988] SwiftProtobuf
[338 / 988] SwiftProtobuf-product
[339 / 988] SwiftProtobuf-product
[340 / 988] SwiftProtobuf-product
[343 / 988] RealModule
[345 / 988] RealModule-product
[348 / 988] RealModule
[349 / 988] ModularArithmetic
[355 / 989] SwiftASN1
[357 / 990] RealModule
[361 / 990] Logging
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