Build Information
Failed to build FluentMongo, reference 1.2.2 (76bc6e), with Swift 6.4 for Wasm on 19 Sep 2026 23:08:36 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344844-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.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/asensei/vapor-fluent-mongo.git
Reference: 1.2.2
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
* tag 1.2.2 -> FETCH_HEAD
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 1.2.2
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.4
Building package at path: $PWD
https://github.com/asensei/vapor-fluent-mongo.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344844-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.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm 2>&1
wasm-6.4-latest: Pulling from saguaro1/spi-images
Digest: sha256:4328fdb43c680d205c1d6761b1e3267aa38277eefdda9ddfb17b6a0f1a77857a
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.4-latest
Fetching https://github.com/vapor/fluent-kit.git
Fetching https://github.com/mongodb/mongo-swift-driver.git
[1/13968] Fetching fluent-kit
[13969/53874] Fetching fluent-kit, mongo-swift-driver
Fetched https://github.com/vapor/fluent-kit.git (0.67s)
[1996/39906] Fetching mongo-swift-driver
Fetched https://github.com/mongodb/mongo-swift-driver.git (2.85s)
Computing version for https://github.com/mongodb/mongo-swift-driver.git
Computed https://github.com/mongodb/mongo-swift-driver.git at 1.3.1 (3.09s)
Fetching https://github.com/apple/swift-nio
Fetching https://github.com/Quick/Nimble.git
Fetching https://github.com/mongodb/swift-bson
Fetching https://github.com/apple/swift-atomics
[1/3391] Fetching swift-bson
[375/5266] Fetching swift-bson, swift-atomics
[5267/25252] Fetching swift-bson, swift-atomics, nimble
[19458/111325] Fetching swift-bson, swift-atomics, nimble, swift-nio
Fetched https://github.com/apple/swift-atomics (2.75s)
Fetched https://github.com/mongodb/swift-bson (2.75s)
Fetched https://github.com/Quick/Nimble.git (2.76s)
Fetched https://github.com/apple/swift-nio (2.79s)
Computing version for https://github.com/vapor/fluent-kit.git
Computed https://github.com/vapor/fluent-kit.git at 1.36.1 (3.01s)
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/vapor/sql-kit.git
Fetching https://github.com/vapor/async-kit.git
[1/8096] Fetching swift-log
[7531/10610] Fetching swift-log, async-kit
[10611/16968] Fetching swift-log, async-kit, sql-kit
Fetched https://github.com/vapor/async-kit.git (1.06s)
Fetched https://github.com/vapor/sql-kit.git (1.06s)
Fetched https://github.com/apple/swift-log.git (1.06s)
Computing version for https://github.com/mongodb/swift-bson
Computed https://github.com/mongodb/swift-bson at 3.1.0 (1.28s)
Fetching https://github.com/swift-extras/swift-extras-json
Fetching https://github.com/swift-extras/swift-extras-base64
[1/1094] Fetching swift-extras-json
[45/2048] Fetching swift-extras-json, swift-extras-base64
Fetched https://github.com/swift-extras/swift-extras-json (0.49s)
Fetched https://github.com/swift-extras/swift-extras-base64 (0.50s)
Computing version for https://github.com/swift-extras/swift-extras-base64
Computed https://github.com/swift-extras/swift-extras-base64 at 0.5.0 (0.71s)
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.20s)
Computing version for https://github.com/apple/swift-atomics
Computed https://github.com/apple/swift-atomics at 1.3.1 (0.18s)
Computing version for https://github.com/Quick/Nimble.git
Computed https://github.com/Quick/Nimble.git at 8.1.2 (0.21s)
Computing version for https://github.com/vapor/async-kit.git
Computed https://github.com/vapor/async-kit.git at 1.22.0 (0.19s)
Fetching https://github.com/apple/swift-algorithms.git
Fetching https://github.com/apple/swift-collections.git
[1/6145] Fetching swift-algorithms
[6146/33497] Fetching swift-algorithms, swift-collections
Fetched https://github.com/apple/swift-algorithms.git (1.13s)
Fetched https://github.com/apple/swift-collections.git (1.14s)
Computing version for https://github.com/apple/swift-algorithms.git
Computed https://github.com/apple/swift-algorithms.git at 1.2.1 (1.33s)
Fetching https://github.com/apple/swift-numerics.git
[1/6636] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics.git (0.56s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.6.0 (0.86s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.1.1 (0.17s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.15.1 (0.20s)
Computing version for https://github.com/apple/swift-nio
Computed https://github.com/apple/swift-nio at 2.103.0 (0.35s)
Fetching https://github.com/apple/swift-system.git
[1/6898] Fetching swift-system
Fetched https://github.com/apple/swift-system.git (0.67s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.8.1 (0.91s)
Computing version for https://github.com/vapor/sql-kit.git
Computed https://github.com/vapor/sql-kit.git at 3.36.0 (0.18s)
Creating working copy for https://github.com/vapor/async-kit.git
Working copy of https://github.com/vapor/async-kit.git resolved at 1.22.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/vapor/sql-kit.git
Working copy of https://github.com/vapor/sql-kit.git resolved at 3.36.0
Creating working copy for https://github.com/apple/swift-atomics
Working copy of https://github.com/apple/swift-atomics resolved at 1.3.1
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/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.15.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.1.1
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
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.6.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/apple/swift-nio
Working copy of https://github.com/apple/swift-nio resolved at 2.103.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/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/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-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.8.1
Building for debugging...
[Computing dependencies]
[Constructing description]
[Pre-planning 1 / 1167]
[Planning deferred tasks]
[Starting]
[36 / 523] RealModule
[190 / 560] InternalCollectionsUtilities
[193 / 569] Logging
[193 / 569] RealModule
[206 / 569] _NIODataStructures
[208 / 569] _NIODataStructures
[222 / 569] RealModule
[223 / 569] _NIODataStructures
[234 / 570] _NIOBase64
[238 / 570] NIOConcurrencyHelpers-product
[243 / 571] NIOConcurrencyHelpers
[250 / 572] _NIODataStructures
[254 / 572] _NIODataStructures
[256 / 572] Logging
[260 / 573] NIOConcurrencyHelpers
[266 / 575] ExtrasBase64
[270 / 588] ExtrasJSON
[273 / 589] Logging
[278 / 589] ExtrasJSON
[281 / 589] ExtrasJSON
[290 / 590]
[298 / 600] _RopeModule
[303 / 601] _RopeModule
[306 / 601] ExtrasBase64
[312 / 602] ExtrasBase64
[320 / 604] CNIOPosix
[325 / 622] CNIOOpenBSD
[334 / 622] CNIOAtomics
[336 / 622] CNIOAtomics
[341 / 622] _RopeModule
[343 / 622] OrderedCollections
[344 / 622] OrderedCollections
[346 / 623] _RopeModule
[348 / 623] Atomics
[355 / 623] Logging
[358 / 623] Atomics
[362 / 623] OrderedCollections
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:
[1m/host/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/CLibMongoC/include/CLibMongoC_mongoc-socket.h:32:10: [0m[0;1;31mfatal error: [0m[1m'netdb.h' file not found[0m
32 | #include <netdb.h>[0m
| [0;1;32m ^~~~~~~~~
[0m1 error generated.
error: CompileC /host/spi-builder-workspace/.build/out/Intermediates.noindex/mongo-swift-driver.build/Debug-webassembly-wasm32/CLibMongoC-t.build/Objects-normal/wasm32/mongoc-write-concern.o /host/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/CLibMongoC/mongoc/mongoc-write-concern.c normal wasm32 c com.apple.compilers.llvm.clang.1_0.compiler failed with a nonzero exit code. Command line: cd /host
Using response file: /host/spi-builder-workspace/.build/out/Intermediates.noindex/mongo-swift-driver.build/Debug-webassembly-wasm32/CLibMongoC-t.build/Objects-normal/wasm32/9f65232cb83f8421e3a495a5062eba382369c975104ee97bafc405ab795bfc5e-common-args.resp
/usr/bin/clang -x c -target wasm32-unknown-wasip1 -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -fcolor-diagnostics -Wno-trigraphs -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -w -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-implicit-fallthrough -fstrict-aliasing -Wdeprecated-declarations -Wno-sign-conversion -Wno-infinite-recursion -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-semicolon-before-method-body --sysroot /root/.swiftpm/swift-sdks/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm.artifactbundle/swift-6.4.x-DEVELOPMENT-SNAPSHOT-2026-09-04-a_wasm/wasm32-unknown-wasip1/WASI.sdk @/host/spi-builder-workspace/.build/out/Intermediates.noindex/mongo-swift-driver.build/Debug-webassembly-wasm32/CLibMongoC-t.build/Objects-normal/wasm32/9f65232cb83f8421e3a495a5062eba382369c975104ee97bafc405ab795bfc5e-common-args.resp -MMD -MT dependencies -MF /host/spi-builder-workspace/.build/out/Intermediates.noindex/mongo-swift-driver.build/Debug-webassembly-wasm32/CLibMongoC-t.build/Objects-normal/wasm32/mongoc-write-concern.d --serialize-diagnostics /host/spi-builder-workspace/.build/out/Intermediates.noindex/mongo-swift-driver.build/Debug-webassembly-wasm32/CLibMongoC-t.build/Objects-normal/wasm32/mongoc-write-concern.dia -c /host/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/CLibMongoC/mongoc/mongoc-write-concern.c -o /host/spi-builder-workspace/.build/out/Intermediates.noindex/mongo-swift-driver.build/Debug-webassembly-wasm32/CLibMongoC-t.build/Objects-normal/wasm32/mongoc-write-concern.o
error: Build failed
BUILD FAILURE 6.4 wasm