Build Information
Failed to build FluentMongo, reference master (76bc6e
), with Swift 6.2 (beta) for Wasm on 20 Jun 2025 20:09:09 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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/asensei/vapor-fluent-mongo.git
Reference: master
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/asensei/vapor-fluent-mongo
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 76bc6e5 test against mongo v7 (#28)
Cloned https://github.com/asensei/vapor-fluent-mongo.git
Revision (git rev-parse @):
76bc6e52ceb62cadb13aa39ac0ecd7920f31fbe2
SUCCESS checkout https://github.com/asensei/vapor-fluent-mongo.git at master
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.2
Building package at path: $PWD
https://github.com/asensei/vapor-fluent-mongo.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/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/vapor/fluent-kit.git
Fetching https://github.com/mongodb/mongo-swift-driver.git
[1/13328] Fetching fluent-kit
[13329/53225] Fetching fluent-kit, mongo-swift-driver
Fetched https://github.com/vapor/fluent-kit.git from cache (0.60s)
[4389/39897] Fetching mongo-swift-driver
Fetched https://github.com/mongodb/mongo-swift-driver.git from cache (5.04s)
Computing version for https://github.com/mongodb/mongo-swift-driver.git
Computed https://github.com/mongodb/mongo-swift-driver.git at 1.3.1 (5.49s)
Fetching https://github.com/Quick/Nimble.git
Fetching https://github.com/apple/swift-nio
Fetching https://github.com/apple/swift-atomics
Fetching https://github.com/mongodb/swift-bson
[1/1797] Fetching swift-atomics
[1781/5181] Fetching swift-atomics, swift-bson
[2171/24765] Fetching swift-atomics, swift-bson, nimble
[5236/101104] Fetching swift-atomics, swift-bson, nimble, swift-nio
Fetched https://github.com/apple/swift-atomics from cache (0.59s)
Fetched https://github.com/mongodb/swift-bson from cache (0.59s)
[5600/95923] Fetching nimble, swift-nio
Fetched https://github.com/Quick/Nimble.git from cache (4.94s)
Fetched https://github.com/apple/swift-nio from cache (5.01s)
Computing version for https://github.com/vapor/fluent-kit.git
Computed https://github.com/vapor/fluent-kit.git at 1.36.1 (5.44s)
Fetching https://github.com/vapor/async-kit.git
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/vapor/sql-kit.git
[1/3836] Fetching swift-log
[2188/6206] Fetching swift-log, async-kit
[6207/12189] Fetching swift-log, async-kit, sql-kit
Fetched https://github.com/vapor/async-kit.git from cache (0.32s)
[9461/9819] Fetching swift-log, sql-kit
Fetched https://github.com/vapor/sql-kit.git from cache (0.42s)
Fetched https://github.com/apple/swift-log.git from cache (0.42s)
Computing version for https://github.com/mongodb/swift-bson
Computed https://github.com/mongodb/swift-bson at 3.1.0 (1.10s)
Fetching https://github.com/swift-extras/swift-extras-base64
Fetching https://github.com/swift-extras/swift-extras-json
[1/833] Fetching swift-extras-base64
[476/1889] Fetching swift-extras-base64, swift-extras-json
Fetched https://github.com/swift-extras/swift-extras-base64 from cache (0.38s)
Fetched https://github.com/swift-extras/swift-extras-json from cache (0.38s)
Computing version for https://github.com/swift-extras/swift-extras-base64
Computed https://github.com/swift-extras/swift-extras-base64 at 0.5.0 (1.11s)
Computing version for https://github.com/swift-extras/swift-extras-json
Computed https://github.com/swift-extras/swift-extras-json at 0.6.0 (3.36s)
Computing version for https://github.com/apple/swift-atomics
Computed https://github.com/apple/swift-atomics at 1.3.0 (0.65s)
Computing version for https://github.com/Quick/Nimble.git
Computed https://github.com/Quick/Nimble.git at 8.1.2 (0.70s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.67s)
Computing version for https://github.com/vapor/async-kit.git
Computed https://github.com/vapor/async-kit.git at 1.20.0 (0.91s)
Fetching https://github.com/apple/swift-algorithms.git
Fetching https://github.com/apple/swift-collections.git
[1/5959] Fetching swift-algorithms
[478/22599] Fetching swift-algorithms, swift-collections
Fetched https://github.com/apple/swift-algorithms.git from cache (0.92s)
[8653/16640] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.64s)
Computing version for https://github.com/apple/swift-algorithms.git
Computed https://github.com/apple/swift-algorithms.git at 1.2.1 (2.21s)
Fetching https://github.com/apple/swift-numerics.git
[1/5757] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics.git from cache (0.60s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.0.3 (1.29s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (1.45s)
Computing version for https://github.com/apple/swift-nio
Computed https://github.com/apple/swift-nio at 2.83.0 (1.28s)
Fetching https://github.com/apple/swift-system.git
[1/4436] Fetching swift-system
Fetched https://github.com/apple/swift-system.git from cache (0.62s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.5.0 (1.36s)
Computing version for https://github.com/vapor/sql-kit.git
Computed https://github.com/vapor/sql-kit.git at 3.33.0 (0.67s)
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
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/vapor/sql-kit.git
Working copy of https://github.com/vapor/sql-kit.git resolved at 3.33.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-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.3
Creating working copy for https://github.com/vapor/fluent-kit.git
Working copy of https://github.com/vapor/fluent-kit.git resolved at 1.36.1
Creating working copy for https://github.com/apple/swift-numerics.git
Working copy of https://github.com/apple/swift-numerics.git resolved at 1.0.3
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-algorithms.git
Working copy of https://github.com/apple/swift-algorithms.git resolved at 1.2.1
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
Creating working copy for https://github.com/vapor/async-kit.git
Working copy of https://github.com/vapor/async-kit.git resolved at 1.20.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/Quick/Nimble.git
Working copy of https://github.com/Quick/Nimble.git resolved at 8.1.2
Creating working copy for https://github.com/mongodb/mongo-swift-driver.git
Working copy of https://github.com/mongodb/mongo-swift-driver.git resolved at 1.3.1
Building for debugging...
[0/172] Write sources
[22/172] Compiling _NumericsShims _NumericsShims.c
[23/172] Compiling CNIOWindows shim.c
[24/172] Write swift-version-24593BA9C3E375BF.txt
[25/172] Compiling CNIOWindows WSAStartup.c
[26/172] Compiling CNIOWASI CNIOWASI.c
[26/172] Compiling _AtomicsShims.c
[28/172] Compiling CNIODarwin shim.c
[29/172] Compiling CNIOLinux shim.c
[30/172] Compiling CNIOLinux liburing_shims.c
[32/220] Emitting module Logging
[33/220] Emitting module InternalCollectionsUtilities
[33/221] Compiling c-nioatomics.c
[34/221] Compiling c-atomics.c
In file included from /host/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/CLibMongoC/mongoc/mongoc-write-concern.c:20:
In file included from /host/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/CLibMongoC/mongoc/mongoc-util-private.h:23:
In file included from /host/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/CLibMongoC/include/CLibMongoC_mongoc.h:29:
In file included from /host/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/CLibMongoC/include/CLibMongoC_mongoc-client.h:30:
In file included from /host/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/CLibMongoC/include/CLibMongoC_mongoc-gridfs.h:25:
In file included from /host/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/CLibMongoC/include/CLibMongoC_mongoc-stream.h:24:
/host/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/CLibMongoC/include/CLibMongoC_mongoc-socket.h:32:10: fatal error: 'netdb.h' file not found
32 | #include <netdb.h>
| ^~~~~~~~~
1 error generated.
[35/225] Compiling mongoc-write-concern.c
[36/225] Emitting module RealModule
[37/225] Emitting module _NIOBase64
BUILD FAILURE 6.2 wasm