The Swift Package Index logo.Swift Package Index

Build Information

Failed to build PerfectMongoDB, reference main (490f49), with Swift 6.3 for Android on 8 Oct 2026 18:38:48 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-54344849-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:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 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:         android
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-54344849-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:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.3-latest: Pulling from saguaro1/spi-images
Digest: sha256:a57e63703100e13e1ecb61b565870501ccb169d7515bc7af7f0994f211e1b1f6
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:android-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-272D24FF697CF451.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/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 |
[4/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 |
[5/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 |
[6/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 |
[7/14] 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 |
[8/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 |
[9/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 |
[10/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 |
[11/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 |
[12/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 |
[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 android