The Swift Package Index logo.Swift Package Index

Build Information

Failed to build PerfectMongoDB, reference main (490f49), with Swift 6.1 for Wasm on 8 Oct 2026 18:42:13 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344845-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.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/perfectlysoft/perfect-mongodb.git
Reference: main
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
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
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 main
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/perfectlysoft/perfect-mongodb.git
https://github.com/perfectlysoft/perfect-mongodb.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344845-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.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:005e294ea72e7f7733559677ac003354f37dc6afb35c5bbab6bc9a95fc174f44
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-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 MongoConnectionPool.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<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 MongoGridFS.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<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 MongoDatabase.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<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
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<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
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<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
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<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 BSON.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<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 BSONCodable.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<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 MongoCollection.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<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 MongoCollectionCodable.swift
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<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
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<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
<unknown>:0: warning: upcoming feature 'InferSendableFromCaptures' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'GlobalActorIsolatedTypesUsability' is already enabled as of Swift version 6
<unknown>:0: warning: upcoming feature 'DisableOutwardActorInference' is already enabled as of Swift version 6
<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 |
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-54344845-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.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from saguaro1/spi-images
Digest: sha256:005e294ea72e7f7733559677ac003354f37dc6afb35c5bbab6bc9a95fc174f44
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:wasm-6.1-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
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/12] 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 |
[3/12] 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 |
[4/12] 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/13] 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)
[6/13] 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 |
[7/13] 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 |
[8/13] 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 |
[9/13] 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 |
[10/13] 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 |
[11/13] 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 |
[12/13] 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 |
[13/13] 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.1 wasm