Build Information
Failed to build mongo-swift-driver, reference v1.3.1 (cd8618
), with Swift 6.2 (beta) for Wasm on 19 Jun 2025 11:45:57 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.64.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.2
Building package at path: $PWD
https://github.com/mongodb/mongo-swift-driver.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:44384f43f933eaa0f42803e9ef7c3d8388c5841ccc831a15a5edf63d8c273423
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest
Fetching https://github.com/mongodb/swift-bson
Fetching https://github.com/apple/swift-atomics
Fetching https://github.com/apple/swift-nio
Fetching https://github.com/Quick/Nimble.git
[1/3384] Fetching swift-bson
[69/5181] Fetching swift-bson, swift-atomics
[2342/24765] Fetching swift-bson, swift-atomics, nimble
[5236/101092] Fetching swift-bson, swift-atomics, nimble, swift-nio
Fetched https://github.com/mongodb/swift-bson from cache (0.93s)
[7965/97708] Fetching swift-atomics, nimble, swift-nio
Fetched https://github.com/Quick/Nimble.git from cache (3.03s)
[53700/78124] Fetching swift-atomics, swift-nio
Fetched https://github.com/apple/swift-atomics from cache (7.16s)
Fetched https://github.com/apple/swift-nio from cache (7.25s)
Computing version for https://github.com/mongodb/swift-bson
Computed https://github.com/mongodb/swift-bson at 3.1.0 (7.71s)
Fetching https://github.com/swift-extras/swift-extras-base64
Fetching https://github.com/swift-extras/swift-extras-json
[1/1056] Fetching swift-extras-json
[1057/1889] Fetching swift-extras-json, swift-extras-base64
Fetched https://github.com/swift-extras/swift-extras-json from cache (0.39s)
Fetched https://github.com/swift-extras/swift-extras-base64 from cache (0.39s)
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.32s)
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.70s)
Computing version for https://github.com/apple/swift-atomics
Computed https://github.com/apple/swift-atomics at 1.3.0 (0.43s)
Computing version for https://github.com/Quick/Nimble.git
Computed https://github.com/Quick/Nimble.git at 8.1.2 (0.93s)
Computing version for https://github.com/apple/swift-nio
Computed https://github.com/apple/swift-nio at 2.83.0 (1.04s)
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-system.git
[1/4436] Fetching swift-system
[2397/21076] Fetching swift-system, swift-collections
Fetched https://github.com/apple/swift-system.git from cache (0.78s)
[4327/16640] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.76s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.5.0 (2.55s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (0.80s)
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/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/mongodb/swift-bson
Working copy of https://github.com/mongodb/swift-bson resolved at 3.1.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-nio
Working copy of https://github.com/apple/swift-nio resolved at 2.83.0
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.5.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.2.0
Building for debugging...
[0/181] Compiling bson-clock.c
[1/181] Compiling CNIOWindows shim.c
[2/181] Write sources
[4/181] Compiling bson-atomic.c
[4/181] Write sources
[19/181] Compiling _AtomicsShims.c
[20/181] Compiling common-thread.c
[21/181] Compiling CNIOWindows WSAStartup.c
/host/spi-builder-workspace/Sources/CLibMongoC/bson/bson-context.c:53:21: warning: 'getpid' is deprecated: WASI lacks process identifiers; to enable emulation of the `getpid` function using a placeholder value, which doesn't reflect the host PID of the program, compile with -D_WASI_EMULATED_GETPID and link with -lwasi-emulated-getpid [-Wdeprecated-declarations]
53 | pid = (uint64_t) getpid ();
| ^
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm.artifactbundle/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/unistd.h:155:16: note: 'getpid' has been explicitly marked deprecated here
155 | __attribute__((__deprecated__(
| ^
1 warning generated.
[22/181] Compiling bson-context.c
[23/181] Compiling CNIOLinux shim.c
[24/181] Compiling CNIOWASI CNIOWASI.c
[25/181] Write swift-version-24593BA9C3E375BF.txt
[26/181] Compiling bson-iso8601.c
[27/181] Compiling CNIOLinux liburing_shims.c
[28/181] Compiling bcon.c
[29/181] Compiling CNIODarwin shim.c
[30/181] Compiling bson-reader.c
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/247] Compiling mongoc-write-concern.c
[31/258] Compiling c-atomics.c
[31/258] Compiling c-nioatomics.c
BUILD FAILURE 6.2 wasm