Build Information
Failed to build PerfectMongoDB, reference 4.0.3 (490f49), with Swift 6.3 for Wasm on 8 Oct 2026 18:38:50 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-54344843-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.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1Build Log
========================================
RunAll
========================================
Builder version: 5.1.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/perfectlysoft/perfect-mongodb.git
Reference: 4.0.3
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/perfectlysoft/perfect-mongodb
* tag 4.0.3 -> FETCH_HEAD
HEAD is now at 490f490 Merge pull request #33 from PerfectlySoft/legacy-shim-edge-cases
Cloned https://github.com/perfectlysoft/perfect-mongodb.git
Revision (git rev-parse @):
490f490fc64822be673ba464b5e0da647ffda2da
SUCCESS checkout https://github.com/perfectlysoft/perfect-mongodb.git at 4.0.3
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.3
Building package at path: $PWD
https://github.com/perfectlysoft/perfect-mongodb.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344843-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.3-latest swift build --swift-sdk swift-6.3.2-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from saguaro1/spi-images
Digest: sha256:df2e9038ff906af397ec7b7e13902ccb183f8867606bc33419e44453a9abdb4b
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.3-latest
warning: couldn't find pc file for bson2
warning: couldn't find pc file for mongoc2
warning: couldn't find pc file for bson2
warning: couldn't find pc file for mongoc2
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/13] Compiling PerfectMongoDB MongoGridFS.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/PerfectCBSON/shim.h:2:10: error: 'bson/bson.h' file not found
1 | #define BCON_H_
2 | #include <bson/bson.h>
| `- error: 'bson/bson.h' file not found
3 |
4 | // libbson 2.3 added bson_append_array_unsafe_begin and deprecated bson_append_array_begin
/host/spi-builder-workspace/Sources/PerfectMongoDB/BSON.swift:20:8: error: could not build C module 'PerfectCBSON'
18 | //
19 |
20 | import PerfectCBSON
| `- error: could not build C module 'PerfectCBSON'
21 | import Foundation
22 |
[4/14] Compiling PerfectMongoDB MongoDatabase.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/PerfectCBSON/shim.h:2:10: error: 'bson/bson.h' file not found
1 | #define BCON_H_
2 | #include <bson/bson.h>
| `- error: 'bson/bson.h' file not found
3 |
4 | // libbson 2.3 added bson_append_array_unsafe_begin and deprecated bson_append_array_begin
/host/spi-builder-workspace/Sources/PerfectMongoDB/BSON.swift:20:8: error: could not build C module 'PerfectCBSON'
18 | //
19 |
20 | import PerfectCBSON
| `- error: could not build C module 'PerfectCBSON'
21 | import Foundation
22 |
[5/14] Compiling PerfectMongoDB MongoConnectionPool.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/PerfectCBSON/shim.h:2:10: error: 'bson/bson.h' file not found
1 | #define BCON_H_
2 | #include <bson/bson.h>
| `- error: 'bson/bson.h' file not found
3 |
4 | // libbson 2.3 added bson_append_array_unsafe_begin and deprecated bson_append_array_begin
/host/spi-builder-workspace/Sources/PerfectMongoDB/BSON.swift:20:8: error: could not build C module 'PerfectCBSON'
18 | //
19 |
20 | import PerfectCBSON
| `- error: could not build C module 'PerfectCBSON'
21 | import Foundation
22 |
[6/14] Compiling PerfectMongoDB MongoCursor.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/PerfectCBSON/shim.h:2:10: error: 'bson/bson.h' file not found
1 | #define BCON_H_
2 | #include <bson/bson.h>
| `- error: 'bson/bson.h' file not found
3 |
4 | // libbson 2.3 added bson_append_array_unsafe_begin and deprecated bson_append_array_begin
/host/spi-builder-workspace/Sources/PerfectMongoDB/BSON.swift:20:8: error: could not build C module 'PerfectCBSON'
18 | //
19 |
20 | import PerfectCBSON
| `- error: could not build C module 'PerfectCBSON'
21 | import Foundation
22 |
[7/14] Compiling PerfectMongoDB MongoJSONConvertables.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/PerfectCBSON/shim.h:2:10: error: 'bson/bson.h' file not found
1 | #define BCON_H_
2 | #include <bson/bson.h>
| `- error: 'bson/bson.h' file not found
3 |
4 | // libbson 2.3 added bson_append_array_unsafe_begin and deprecated bson_append_array_begin
/host/spi-builder-workspace/Sources/PerfectMongoDB/BSON.swift:20:8: error: could not build C module 'PerfectCBSON'
18 | //
19 |
20 | import PerfectCBSON
| `- error: could not build C module 'PerfectCBSON'
21 | import Foundation
22 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[8/14] Emitting module PerfectMongoDB
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/PerfectCBSON/shim.h:2:10: error: 'bson/bson.h' file not found
1 | #define BCON_H_
2 | #include <bson/bson.h>
| `- error: 'bson/bson.h' file not found
3 |
4 | // libbson 2.3 added bson_append_array_unsafe_begin and deprecated bson_append_array_begin
/host/spi-builder-workspace/Sources/PerfectMongoDB/BSON.swift:20:8: error: could not build C module 'PerfectCBSON'
18 | //
19 |
20 | import PerfectCBSON
| `- error: could not build C module 'PerfectCBSON'
21 | import Foundation
22 |
[9/14] Compiling PerfectMongoDB MongoCollection.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/PerfectCBSON/shim.h:2:10: error: 'bson/bson.h' file not found
1 | #define BCON_H_
2 | #include <bson/bson.h>
| `- error: 'bson/bson.h' file not found
3 |
4 | // libbson 2.3 added bson_append_array_unsafe_begin and deprecated bson_append_array_begin
/host/spi-builder-workspace/Sources/PerfectMongoDB/BSON.swift:20:8: error: could not build C module 'PerfectCBSON'
18 | //
19 |
20 | import PerfectCBSON
| `- error: could not build C module 'PerfectCBSON'
21 | import Foundation
22 |
[10/14] Compiling PerfectMongoDB MongoCollectionCodable.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/PerfectCBSON/shim.h:2:10: error: 'bson/bson.h' file not found
1 | #define BCON_H_
2 | #include <bson/bson.h>
| `- error: 'bson/bson.h' file not found
3 |
4 | // libbson 2.3 added bson_append_array_unsafe_begin and deprecated bson_append_array_begin
/host/spi-builder-workspace/Sources/PerfectMongoDB/BSON.swift:20:8: error: could not build C module 'PerfectCBSON'
18 | //
19 |
20 | import PerfectCBSON
| `- error: could not build C module 'PerfectCBSON'
21 | import Foundation
22 |
[11/14] Compiling PerfectMongoDB BSON.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/PerfectCBSON/shim.h:2:10: error: 'bson/bson.h' file not found
1 | #define BCON_H_
2 | #include <bson/bson.h>
| `- error: 'bson/bson.h' file not found
3 |
4 | // libbson 2.3 added bson_append_array_unsafe_begin and deprecated bson_append_array_begin
/host/spi-builder-workspace/Sources/PerfectMongoDB/BSON.swift:20:8: error: could not build C module 'PerfectCBSON'
18 | //
19 |
20 | import PerfectCBSON
| `- error: could not build C module 'PerfectCBSON'
21 | import Foundation
22 |
[12/14] Compiling PerfectMongoDB BSONCodable.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/PerfectCBSON/shim.h:2:10: error: 'bson/bson.h' file not found
1 | #define BCON_H_
2 | #include <bson/bson.h>
| `- error: 'bson/bson.h' file not found
3 |
4 | // libbson 2.3 added bson_append_array_unsafe_begin and deprecated bson_append_array_begin
/host/spi-builder-workspace/Sources/PerfectMongoDB/BSON.swift:20:8: error: could not build C module 'PerfectCBSON'
18 | //
19 |
20 | import PerfectCBSON
| `- error: could not build C module 'PerfectCBSON'
21 | import Foundation
22 |
[13/14] Compiling PerfectMongoDB MongoAsync.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/PerfectCBSON/shim.h:2:10: error: 'bson/bson.h' file not found
1 | #define BCON_H_
2 | #include <bson/bson.h>
| `- error: 'bson/bson.h' file not found
3 |
4 | // libbson 2.3 added bson_append_array_unsafe_begin and deprecated bson_append_array_begin
/host/spi-builder-workspace/Sources/PerfectMongoDB/BSON.swift:20:8: error: could not build C module 'PerfectCBSON'
18 | //
19 |
20 | import PerfectCBSON
| `- error: could not build C module 'PerfectCBSON'
21 | import Foundation
22 |
[14/14] Compiling PerfectMongoDB MongoClient.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "shim.h"
| `- note: in file included from <module-includes>:1:
2 |
/host/spi-builder-workspace/Sources/PerfectCBSON/shim.h:2:10: error: 'bson/bson.h' file not found
1 | #define BCON_H_
2 | #include <bson/bson.h>
| `- error: 'bson/bson.h' file not found
3 |
4 | // libbson 2.3 added bson_append_array_unsafe_begin and deprecated bson_append_array_begin
/host/spi-builder-workspace/Sources/PerfectMongoDB/BSON.swift:20:8: error: could not build C module 'PerfectCBSON'
18 | //
19 |
20 | import PerfectCBSON
| `- error: could not build C module 'PerfectCBSON'
21 | import Foundation
22 |
BUILD FAILURE 6.3 wasm