The Swift Package Index logo.Swift Package Index

Build Information

Failed to build mongo-swift-driver, reference v1.3.1 (cd8618), with Swift 6.3 for Wasm on 13 Apr 2026 01:05:26 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mongodb/mongo-swift-driver.git
Reference: v1.3.1
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/mongodb/mongo-swift-driver
 * tag               v1.3.1     -> FETCH_HEAD
HEAD is now at cd8618a 1.3.1
Cloned https://github.com/mongodb/mongo-swift-driver.git
Revision (git rev-parse @):
cd8618a10f89b72bad6edb1066a8fb60df57811b
SUCCESS checkout https://github.com/mongodb/mongo-swift-driver.git at v1.3.1
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/mongodb/mongo-swift-driver.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Fetching https://github.com/mongodb/swift-bson
Fetching https://github.com/Quick/Nimble.git
Fetching https://github.com/apple/swift-nio
Fetching https://github.com/apple/swift-atomics
[1/1820] Fetching swift-atomics
[438/5204] Fetching swift-atomics, swift-bson
[5070/25021] Fetching swift-atomics, swift-bson, nimble
Fetched https://github.com/apple/swift-atomics from cache (0.51s)
[4375/23201] Fetching swift-bson, nimble
[6160/106307] Fetching swift-bson, nimble, swift-nio
Fetched https://github.com/mongodb/swift-bson from cache (1.68s)
[56073/102923] Fetching nimble, swift-nio
Fetched https://github.com/Quick/Nimble.git from cache (1.71s)
[36567/83106] Fetching swift-nio
Fetched https://github.com/apple/swift-nio from cache (11.37s)
Computing version for https://github.com/mongodb/swift-bson
Computed https://github.com/mongodb/swift-bson at 3.1.0 (12.25s)
Fetching https://github.com/swift-extras/swift-extras-json
Fetching https://github.com/swift-extras/swift-extras-base64
[1/833] Fetching swift-extras-base64
[285/1927] Fetching swift-extras-base64, swift-extras-json
Fetched https://github.com/swift-extras/swift-extras-json from cache (0.46s)
Fetched https://github.com/swift-extras/swift-extras-base64 from cache (0.46s)
Computing version for https://github.com/swift-extras/swift-extras-base64
Computed https://github.com/swift-extras/swift-extras-base64 at 0.5.0 (2.36s)
Computing version for https://github.com/swift-extras/swift-extras-json
Computed https://github.com/swift-extras/swift-extras-json at 0.6.0 (0.61s)
Computing version for https://github.com/apple/swift-atomics
Computed https://github.com/apple/swift-atomics at 1.3.0 (0.61s)
Computing version for https://github.com/Quick/Nimble.git
Computed https://github.com/Quick/Nimble.git at 8.1.2 (1.56s)
Computing version for https://github.com/apple/swift-nio
Computed https://github.com/apple/swift-nio at 2.97.1 (1.26s)
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-collections.git
[1/5601] Fetching swift-system
[1906/29126] Fetching swift-system, swift-collections
Fetched https://github.com/apple/swift-system.git from cache (0.72s)
[1882/23525] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (2.57s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.6.4 (3.40s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.4.1 (1.06s)
Creating working copy for https://github.com/Quick/Nimble.git
Working copy of https://github.com/Quick/Nimble.git resolved at 8.1.2
Creating working copy for https://github.com/swift-extras/swift-extras-base64
Working copy of https://github.com/swift-extras/swift-extras-base64 resolved at 0.5.0
Creating working copy for https://github.com/swift-extras/swift-extras-json
Working copy of https://github.com/swift-extras/swift-extras-json resolved at 0.6.0
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.4.1
Creating working copy for https://github.com/apple/swift-nio
Working copy of https://github.com/apple/swift-nio resolved at 2.97.1
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.6.4
Creating working copy for https://github.com/apple/swift-atomics
Working copy of https://github.com/apple/swift-atomics resolved at 1.3.0
Creating working copy for https://github.com/mongodb/swift-bson
Working copy of https://github.com/mongodb/swift-bson resolved at 3.1.0
Building for debugging...
[0/185] Compiling _AtomicsShims.c
[1/185] Write sources
[8/185] Write swift-version-24593BA9C3E375BF.txt
[9/185] Write sources
[17/185] Compiling CNIOWindows shim.c
[18/192] Write sources
[20/210] Compiling CNIOWASI CNIOWASI.c
[21/210] Compiling CNIOWindows WSAStartup.c
[22/210] Compiling CNIOOpenBSD shim.c
[23/227] Compiling CNIOPosix event_loop_id.c
[24/227] Compiling CNIOLinux shim.c
[25/227] Compiling CNIOLinux liburing_shims.c
[26/234] Compiling CNIODarwin shim.c
[28/273] Emitting module _NIODataStructures
[29/273] Emitting module InternalCollectionsUtilities
[29/275] Compiling c-nioatomics.c
error: emit-module command failed with exit code 1 (use -v to see invocation)
[31/275] Emitting module Nimble
/host/spi-builder-workspace/.build/checkouts/Nimble/Sources/Nimble/Adapters/NimbleEnvironment.swift:1:8: error: no such module 'Dispatch'
 1 | import Dispatch
   |        `- error: no such module 'Dispatch'
 2 | import Foundation
 3 |
In file included from /host/spi-builder-workspace/Sources/CLibMongoC/mongoc/mongoc-write-concern.c:20:
In file included from /host/spi-builder-workspace/Sources/CLibMongoC/mongoc/mongoc-util-private.h:23:
In file included from /host/spi-builder-workspace/Sources/CLibMongoC/include/CLibMongoC_mongoc.h:29:
In file included from /host/spi-builder-workspace/Sources/CLibMongoC/include/CLibMongoC_mongoc-client.h:30:
In file included from /host/spi-builder-workspace/Sources/CLibMongoC/include/CLibMongoC_mongoc-gridfs.h:25:
In file included from /host/spi-builder-workspace/Sources/CLibMongoC/include/CLibMongoC_mongoc-stream.h:24:
/host/spi-builder-workspace/Sources/CLibMongoC/include/CLibMongoC_mongoc-socket.h:32:10: fatal error: 'netdb.h' file not found
   32 | #include <netdb.h>
      |          ^~~~~~~~~
1 error generated.
[31/275] Compiling mongoc-write-concern.c
[31/275] Compiling c-atomics.c
[32/275] Emitting module ExtrasBase64
[33/275] Emitting module _NIOBase64
BUILD FAILURE 6.3 wasm