Build Information
Failed to build swift-rocksdb, reference v0.0.1 (c7acea), with Swift 6.3 for Android on 16 Apr 2026 18:04:06 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/dyumin/swift-rocksdb.git
Reference: v0.0.1
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/dyumin/swift-rocksdb
* tag v0.0.1 -> FETCH_HEAD
HEAD is now at c7acea5 Create LICENSE
Submodule path 'Sources/rocksdb/rocksdb': checked out 'ea9f65345c8d5c3a2dda332e5a85231395b68361'
Submodule 'rocksdb' (https://github.com/dyumin/rocksdb.git) registered for path 'Sources/rocksdb/rocksdb'
Cloning into '/host/spi-builder-workspace/Sources/rocksdb/rocksdb'...
Cloned https://github.com/dyumin/swift-rocksdb.git
Revision (git rev-parse @):
c7acea59267a46117b727751c99a03a649414e7e
SUCCESS checkout https://github.com/dyumin/swift-rocksdb.git at v0.0.1
========================================
Build
========================================
Selected platform: android
Swift version: 6.3
Building package at path: $PWD
https://github.com/dyumin/swift-rocksdb.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:9008270ea37a55e78725e6225015adb5eff8582da520c5232bf0499f32c36dc4
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:android-6.3-latest
Building for debugging...
[0/358] Compiling cache_bench_tool.cc
[1/358] Write sources
[2/358] Write swift-version--4F562202D5529B1.txt
[3/358] Compiling cache_entry_roles.cc
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/cache/cache_reservation_manager.cc:9:
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/cache/cache_reservation_manager.h:24:
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/util/coding.h:24:
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/util/coding_lean.h:25:13: error: no member named 'kLittleEndian' in namespace 'rocksdb::port'
25 | if (port::kLittleEndian) {
| ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/util/coding_lean.h:34:13: error: no member named 'kLittleEndian' in namespace 'rocksdb::port'
34 | if (port::kLittleEndian) {
| ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/util/coding_lean.h:45:13: error: no member named 'kLittleEndian' in namespace 'rocksdb::port'
45 | if (port::kLittleEndian) {
| ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/util/coding_lean.h:63:13: error: no member named 'kLittleEndian' in namespace 'rocksdb::port'
63 | if (port::kLittleEndian) {
| ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/util/coding_lean.h:75:13: error: no member named 'kLittleEndian' in namespace 'rocksdb::port'
75 | if (port::kLittleEndian) {
| ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/util/coding_lean.h:89:13: error: no member named 'kLittleEndian' in namespace 'rocksdb::port'
89 | if (port::kLittleEndian) {
| ^~~~~~~~~~~~~
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/cache/cache_reservation_manager.cc:9:
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/cache/cache_reservation_manager.h:24:
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/util/coding.h:119:13: error: no member named 'kLittleEndian' in namespace 'rocksdb::port'
119 | if (port::kLittleEndian) {
| ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/util/coding.h:130:13: error: no member named 'kLittleEndian' in namespace 'rocksdb::port'
130 | if (port::kLittleEndian) {
| ^~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/util/coding.h:141:13: error: no member named 'kLittleEndian' in namespace 'rocksdb::port'
141 | if (port::kLittleEndian) {
| ^~~~~~~~~~~~~
9 errors generated.
[4/358] Compiling cache_reservation_manager.cc
[4/358] Compiling build_version.cc
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/utilities/write_batch_with_index/write_batch_with_index_internal.cc:6:
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/utilities/write_batch_with_index/write_batch_with_index_internal.h:11:
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/db/dbformat.h:23:
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/util/coding.h:24:
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/util/coding_lean.h:25:7: error: use of undeclared identifier 'port'
25 | if (port::kLittleEndian) {
| ^
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/util/coding_lean.h:34:7: error: use of undeclared identifier 'port'
34 | if (port::kLittleEndian) {
| ^
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/util/coding_lean.h:45:7: error: use of undeclared identifier 'port'
45 | if (port::kLittleEndian) {
| ^
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/util/coding_lean.h:63:7: error: use of undeclared identifier 'port'
63 | if (port::kLittleEndian) {
| ^
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/util/coding_lean.h:75:7: error: use of undeclared identifier 'port'
75 | if (port::kLittleEndian) {
| ^
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/util/coding_lean.h:89:7: error: use of undeclared identifier 'port'
89 | if (port::kLittleEndian) {
| ^
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/utilities/write_batch_with_index/write_batch_with_index_internal.cc:6:
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/utilities/write_batch_with_index/write_batch_with_index_internal.h:11:
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/db/dbformat.h:23:
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/util/coding.h:119:7: error: use of undeclared identifier 'port'
119 | if (port::kLittleEndian) {
| ^
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/util/coding.h:130:7: error: use of undeclared identifier 'port'
130 | if (port::kLittleEndian) {
| ^
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/util/coding.h:141:7: error: use of undeclared identifier 'port'
141 | if (port::kLittleEndian) {
| ^
[4/358] Compiling write_batch_with_index_internal.cc
[4/358] Compiling write_batch_with_index.cc
[4/358] Compiling cache_helpers.cc
[4/358] Compiling cpp-intepop rocksdb_cpp_interop.cpp
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/cache/cache.cc:12:
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/cache/lru_cache.h:14:
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/cache/sharded_cache.h:20:
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/util/mutexlock.h:37:28: error: no type named 'Mutex' in namespace 'rocksdb::port'
37 | explicit MutexLock(port::Mutex *mu) : mu_(mu) { this->mu_->Lock(); }
| ~~~~~~^
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/util/mutexlock.h:45:9: error: no type named 'Mutex' in namespace 'rocksdb::port'
45 | port::Mutex *const mu_;
| ~~~~~~^
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/util/mutexlock.h:55:27: error: no type named 'RWMutex' in namespace 'rocksdb::port'
55 | explicit ReadLock(port::RWMutex *mu) : mu_(mu) { this->mu_->ReadLock(); }
| ~~~~~~^
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/util/mutexlock.h:63:9: error: no type named 'RWMutex' in namespace 'rocksdb::port'
63 | port::RWMutex *const mu_;
| ~~~~~~^
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/util/mutexlock.h:71:29: error: no type named 'RWMutex' in namespace 'rocksdb::port'
71 | explicit ReadUnlock(port::RWMutex *mu) : mu_(mu) { mu->AssertHeld(); }
| ~~~~~~^
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/util/mutexlock.h:79:9: error: no type named 'RWMutex' in namespace 'rocksdb::port'
79 | port::RWMutex *const mu_;
| ~~~~~~^
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/util/mutexlock.h:89:28: error: no type named 'RWMutex' in namespace 'rocksdb::port'
89 | explicit WriteLock(port::RWMutex *mu) : mu_(mu) { this->mu_->WriteLock(); }
| ~~~~~~^
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/util/mutexlock.h:97:9: error: no type named 'RWMutex' in namespace 'rocksdb::port'
97 | port::RWMutex *const mu_;
| ~~~~~~^
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/util/mutexlock.h:122:13: error: no member named 'AsmVolatilePause' in namespace 'rocksdb::port'
122 | port::AsmVolatilePause();
| ^~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/util/mutexlock.h:142:17: error: variable has incomplete type 'struct ALIGN_AS'
142 | struct ALIGN_AS(CACHE_LINE_SIZE) CacheAlignedWrapper {
| ^
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/util/mutexlock.h:142:8: note: forward declaration of 'rocksdb::ALIGN_AS'
142 | struct ALIGN_AS(CACHE_LINE_SIZE) CacheAlignedWrapper {
| ^
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/util/mutexlock.h:142:33: error: expected ';' after top level declarator
142 | struct ALIGN_AS(CACHE_LINE_SIZE) CacheAlignedWrapper {
| ^
| ;
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/util/mutexlock.h:151:15: error: use of undeclared identifier 'CacheAlignedWrapper'
151 | struct Unwrap<CacheAlignedWrapper<T>> {
| ^~~~~~~~~~~~~~~~~~~
In file included from [4/358] Compiling cache.cc
[4/358] Compiling cache_key.cc
BUILD FAILURE 6.3 android