The Swift Package Index logo.Swift Package Index

Build Information

Failed to build RapidLMDB, reference 0.9.29 (c59d37), with Swift 6.1 for Android on 28 May 2025 11:14:52 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/tannerdsilva/RapidLMDB.git
Reference: 0.9.29
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/tannerdsilva/RapidLMDB
 * tag               0.9.29     -> FETCH_HEAD
HEAD is now at c59d372 Added comparison functions to Cursor
Cloned https://github.com/tannerdsilva/RapidLMDB.git
Revision (git rev-parse @):
c59d372d6f126f4d67992fbb7b8c49799d911e6c
SUCCESS checkout https://github.com/tannerdsilva/RapidLMDB.git at 0.9.29
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/tannerdsilva/RapidLMDB.git
https://github.com/tannerdsilva/RapidLMDB.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "clmdb",
      "requirement" : {
        "exact" : [
          "0.9.29"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/tannerdsilva/CLMDB.git"
    }
  ],
  "manifest_display_name" : "RapidLMDB",
  "name" : "RapidLMDB",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "RapidLMDB",
      "targets" : [
        "RapidLMDB"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "RapidLMDBTests",
      "module_type" : "SwiftTarget",
      "name" : "RapidLMDBTests",
      "path" : "Tests/RapidLMDBTests",
      "sources" : [
        "RapidLMDBTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "RapidLMDB"
      ],
      "type" : "test"
    },
    {
      "c99name" : "RapidLMDB",
      "module_type" : "SwiftTarget",
      "name" : "RapidLMDB",
      "path" : "Sources/RapidLMDB",
      "product_dependencies" : [
        "CLMDB"
      ],
      "product_memberships" : [
        "RapidLMDB"
      ],
      "sources" : [
        "Cursor.swift",
        "DataConvertible.swift",
        "Database.swift",
        "Environment.swift",
        "LMDBError.swift",
        "Transaction.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.2"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -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
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Fetching https://github.com/tannerdsilva/CLMDB.git
[1/46] Fetching clmdb
Fetched https://github.com/tannerdsilva/CLMDB.git from cache (0.22s)
Computing version for https://github.com/tannerdsilva/CLMDB.git
Computed https://github.com/tannerdsilva/CLMDB.git at 0.9.29 (1.36s)
Creating working copy for https://github.com/tannerdsilva/CLMDB.git
Working copy of https://github.com/tannerdsilva/CLMDB.git resolved at 0.9.29
Building for debugging...
[0/4] Write sources
[1/4] Compiling CLMDB midl.c
/host/spi-builder-workspace/.build/checkouts/CLMDB/Sources/CLMDB/mdb.c:4898:17: error: call to undeclared function 'pthread_mutexattr_setrobust'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
 4898 |                 if (!rc) rc = pthread_mutexattr_setrobust(&mattr, PTHREAD_MUTEX_ROBUST);
      |                               ^
/host/spi-builder-workspace/.build/checkouts/CLMDB/Sources/CLMDB/mdb.c:4898:53: error: use of undeclared identifier 'PTHREAD_MUTEX_ROBUST'
 4898 |                 if (!rc) rc = pthread_mutexattr_setrobust(&mattr, PTHREAD_MUTEX_ROBUST);
      |                                                                   ^
/host/spi-builder-workspace/.build/checkouts/CLMDB/Sources/CLMDB/mdb.c:10277:10: error: call to undeclared function 'pthread_mutex_consistent'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
 10277 |                         rc2 = mdb_mutex_consistent(mutex);
       |                               ^
/host/spi-builder-workspace/.build/checkouts/CLMDB/Sources/CLMDB/mdb.c:369:37: note: expanded from macro 'mdb_mutex_consistent'
  369 | #define mdb_mutex_consistent(mutex)     pthread_mutex_consistent(mutex)
      |                                         ^
/host/spi-builder-workspace/.build/checkouts/CLMDB/Sources/CLMDB/mdb.c:10277:10: note: did you mean 'pthread_mutex_init'?
/host/spi-builder-workspace/.build/checkouts/CLMDB/Sources/CLMDB/mdb.c:369:37: note: expanded from macro 'mdb_mutex_consistent'
  369 | #define mdb_mutex_consistent(mutex)     pthread_mutex_consistent(mutex)
      |                                         ^
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/pthread.h:242:5: note: 'pthread_mutex_init' declared here
  242 | int pthread_mutex_init(pthread_mutex_t* _Nonnull __mutex, const pthread_mutexattr_t* _Nullable __attr);
      |     ^
3 errors generated.
[2/4] Compiling CLMDB mdb.c
[2/4] Write swift-version-24593BA9C3E375BF.txt
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
[0/1] Planning build
Building for debugging...
/host/spi-builder-workspace/.build/checkouts/CLMDB/Sources/CLMDB/mdb.c:4898:17: error: call to undeclared function 'pthread_mutexattr_setrobust'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
 4898 |                 if (!rc) rc = pthread_mutexattr_setrobust(&mattr, PTHREAD_MUTEX_ROBUST);
      |                               ^
/host/spi-builder-workspace/.build/checkouts/CLMDB/Sources/CLMDB/mdb.c:4898:53: error: use of undeclared identifier 'PTHREAD_MUTEX_ROBUST'
 4898 |                 if (!rc) rc = pthread_mutexattr_setrobust(&mattr, PTHREAD_MUTEX_ROBUST);
      |                                                                   ^
/host/spi-builder-workspace/.build/checkouts/CLMDB/Sources/CLMDB/mdb.c:10277:10: error: call to undeclared function 'pthread_mutex_consistent'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
 10277 |                         rc2 = mdb_mutex_consistent(mutex);
       |                               ^
/host/spi-builder-workspace/.build/checkouts/CLMDB/Sources/CLMDB/mdb.c:369:37: note: expanded from macro 'mdb_mutex_consistent'
  369 | #define mdb_mutex_consistent(mutex)     pthread_mutex_consistent(mutex)
      |                                         ^
/host/spi-builder-workspace/.build/checkouts/CLMDB/Sources/CLMDB/mdb.c:10277:10: note: did you mean 'pthread_mutex_init'?
/host/spi-builder-workspace/.build/checkouts/CLMDB/Sources/CLMDB/mdb.c:369:37: note: expanded from macro 'mdb_mutex_consistent'
  369 | #define mdb_mutex_consistent(mutex)     pthread_mutex_consistent(mutex)
      |                                         ^
/root/.swiftpm/swift-sdks/swift-6.1-RELEASE-android-24-0.1.artifactbundle/swift-6.1-release-android-24-sdk/android-27c-sysroot/usr/include/pthread.h:242:5: note: 'pthread_mutex_init' declared here
  242 | int pthread_mutex_init(pthread_mutex_t* _Nonnull __mutex, const pthread_mutexattr_t* _Nullable __attr);
      |     ^
3 errors generated.
[0/2] Compiling CLMDB mdb.c
[0/2] Write swift-version-24593BA9C3E375BF.txt
BUILD FAILURE 6.1 android