The Swift Package Index logo.Swift Package Index

Build Information

Failed to build PerfectMongoDB, reference main (490f49), with Swift 6.2 for macOS (SPM) on 8 Oct 2026 18:30:11 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.3.0.app xcrun swift build --arch arm64

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 /Users/admin/builder/spi-builder-workspace/.git/
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:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/perfectlysoft/perfect-mongodb.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.3.0.app xcrun swift build --arch arm64
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version--3CB7CFEC50E0D141.txt
[3/13] Compiling PerfectMongoDB MongoGridFS.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "shim.h"
  |         `- note: in file included from <module-includes>:1:
2 |
/Users/admin/builder/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
/Users/admin/builder/spi-builder-workspace/Sources/PerfectMongoDB/BSON.swift:20:8: error: could not build Objective-C module 'PerfectCBSON'
 18 | //
 19 |
 20 | import PerfectCBSON
    |        `- error: could not build Objective-C module 'PerfectCBSON'
 21 | import Foundation
 22 |
[4/14] Compiling PerfectMongoDB MongoDatabase.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "shim.h"
  |         `- note: in file included from <module-includes>:1:
2 |
/Users/admin/builder/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
/Users/admin/builder/spi-builder-workspace/Sources/PerfectMongoDB/BSON.swift:20:8: error: could not build Objective-C module 'PerfectCBSON'
 18 | //
 19 |
 20 | import PerfectCBSON
    |        `- error: could not build Objective-C module 'PerfectCBSON'
 21 | import Foundation
 22 |
[5/14] Compiling PerfectMongoDB MongoJSONConvertables.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "shim.h"
  |         `- note: in file included from <module-includes>:1:
2 |
/Users/admin/builder/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
/Users/admin/builder/spi-builder-workspace/Sources/PerfectMongoDB/BSON.swift:20:8: error: could not build Objective-C module 'PerfectCBSON'
 18 | //
 19 |
 20 | import PerfectCBSON
    |        `- error: could not build Objective-C module 'PerfectCBSON'
 21 | import Foundation
 22 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/14] Emitting module PerfectMongoDB
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "shim.h"
  |         `- note: in file included from <module-includes>:1:
2 |
/Users/admin/builder/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
/Users/admin/builder/spi-builder-workspace/Sources/PerfectMongoDB/BSON.swift:20:8: error: could not build Objective-C module 'PerfectCBSON'
 18 | //
 19 |
 20 | import PerfectCBSON
    |        `- error: could not build Objective-C module 'PerfectCBSON'
 21 | import Foundation
 22 |
[7/14] Compiling PerfectMongoDB MongoClient.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "shim.h"
  |         `- note: in file included from <module-includes>:1:
2 |
/Users/admin/builder/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
/Users/admin/builder/spi-builder-workspace/Sources/PerfectMongoDB/BSON.swift:20:8: error: could not build Objective-C module 'PerfectCBSON'
 18 | //
 19 |
 20 | import PerfectCBSON
    |        `- error: could not build Objective-C module 'PerfectCBSON'
 21 | import Foundation
 22 |
[8/14] Compiling PerfectMongoDB MongoCursor.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "shim.h"
  |         `- note: in file included from <module-includes>:1:
2 |
/Users/admin/builder/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
/Users/admin/builder/spi-builder-workspace/Sources/PerfectMongoDB/BSON.swift:20:8: error: could not build Objective-C module 'PerfectCBSON'
 18 | //
 19 |
 20 | import PerfectCBSON
    |        `- error: could not build Objective-C module 'PerfectCBSON'
 21 | import Foundation
 22 |
[9/14] Compiling PerfectMongoDB MongoCollectionCodable.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "shim.h"
  |         `- note: in file included from <module-includes>:1:
2 |
/Users/admin/builder/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
/Users/admin/builder/spi-builder-workspace/Sources/PerfectMongoDB/BSON.swift:20:8: error: could not build Objective-C module 'PerfectCBSON'
 18 | //
 19 |
 20 | import PerfectCBSON
    |        `- error: could not build Objective-C module 'PerfectCBSON'
 21 | import Foundation
 22 |
[10/14] Compiling PerfectMongoDB MongoConnectionPool.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "shim.h"
  |         `- note: in file included from <module-includes>:1:
2 |
/Users/admin/builder/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
/Users/admin/builder/spi-builder-workspace/Sources/PerfectMongoDB/BSON.swift:20:8: error: could not build Objective-C module 'PerfectCBSON'
 18 | //
 19 |
 20 | import PerfectCBSON
    |        `- error: could not build Objective-C module 'PerfectCBSON'
 21 | import Foundation
 22 |
[11/14] Compiling PerfectMongoDB MongoAsync.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "shim.h"
  |         `- note: in file included from <module-includes>:1:
2 |
/Users/admin/builder/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
/Users/admin/builder/spi-builder-workspace/Sources/PerfectMongoDB/BSON.swift:20:8: error: could not build Objective-C module 'PerfectCBSON'
 18 | //
 19 |
 20 | import PerfectCBSON
    |        `- error: could not build Objective-C module 'PerfectCBSON'
 21 | import Foundation
 22 |
[12/14] Compiling PerfectMongoDB MongoCollection.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "shim.h"
  |         `- note: in file included from <module-includes>:1:
2 |
/Users/admin/builder/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
/Users/admin/builder/spi-builder-workspace/Sources/PerfectMongoDB/BSON.swift:20:8: error: could not build Objective-C module 'PerfectCBSON'
 18 | //
 19 |
 20 | import PerfectCBSON
    |        `- error: could not build Objective-C module 'PerfectCBSON'
 21 | import Foundation
 22 |
[13/14] Compiling PerfectMongoDB BSON.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "shim.h"
  |         `- note: in file included from <module-includes>:1:
2 |
/Users/admin/builder/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
/Users/admin/builder/spi-builder-workspace/Sources/PerfectMongoDB/BSON.swift:20:8: error: could not build Objective-C module 'PerfectCBSON'
 18 | //
 19 |
 20 | import PerfectCBSON
    |        `- error: could not build Objective-C module 'PerfectCBSON'
 21 | import Foundation
 22 |
[14/14] Compiling PerfectMongoDB BSONCodable.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "shim.h"
  |         `- note: in file included from <module-includes>:1:
2 |
/Users/admin/builder/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
/Users/admin/builder/spi-builder-workspace/Sources/PerfectMongoDB/BSON.swift:20:8: error: could not build Objective-C module 'PerfectCBSON'
 18 | //
 19 |
 20 | import PerfectCBSON
    |        `- error: could not build Objective-C module 'PerfectCBSON'
 21 | import Foundation
 22 |
warning: failed to retrieve search paths with pkg-config; maybe pkg-config is not installed
warning: you may be able to install bson2 using your system-packager:
    brew install mongo-c-driver
warning: you may be able to install mongoc2 using your system-packager:
    brew install mongo-c-driver
warning: you may be able to install bson2 using your system-packager:
    brew install mongo-c-driver
warning: you may be able to install mongoc2 using your system-packager:
    brew install mongo-c-driver
BUILD FAILURE 6.2 macosSpm