The Swift Package Index logo.Swift Package Index

Build Information

Failed to build swift-rocksdb, reference v0.0.1 (c7acea), with Swift 6.3 for Wasm on 16 Apr 2026 18:03:26 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1

Build 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:         wasm
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-4609320-0":/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:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Building for debugging...
[0/358] Compiling cache_bench_tool.cc
[1/358] Write sources
[2/358] Write swift-version-24593BA9C3E375BF.txt
[3/358] Compiling cache_entry_roles.cc
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/cache/cache_helpers.cc:6:
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/cache/cache_helpers.h:10:
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/include/rocksdb/advanced_cache.h:18:
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/include/rocksdb/options.h:33:
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/include/rocksdb/write_buffer_manager.h:170:8: error: no type named 'mutex' in namespace 'std'
  170 |   std::mutex cache_res_mgr_mu_;
      |   ~~~~~^
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/include/rocksdb/write_buffer_manager.h:174:8: error: no type named 'mutex' in namespace 'std'
  174 |   std::mutex mu_;
      |   ~~~~~^
2 errors generated.
[4/358] Compiling cache_helpers.cc
[4/358] Compiling write_batch_with_index.cc
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/cache/cache_key.cc:11:
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/include/rocksdb/advanced_cache.h:18:
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/include/rocksdb/options.h:33:
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/include/rocksdb/write_buffer_manager.h:170:8: error: no type named 'mutex' in namespace 'std'
  170 |   std::mutex cache_res_mgr_mu_;
      |   ~~~~~^
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/include/rocksdb/write_buffer_manager.h:174:8: error: no type named 'mutex' in namespace 'std'
  174 |   std::mutex mu_;
      |   ~~~~~^
[4/358] Compiling cache_key.cc
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/cache/compressed_secondary_cache.cc:6:
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/cache/compressed_secondary_cache.h:12:
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/cache/cache_reservation_manager.h:21:
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/cache/typed_cache.h:31:
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/cache/cache_helpers.h:10:
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/include/rocksdb/advanced_cache.h:18:
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/include/rocksdb/options.h:33:
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/include/rocksdb/write_buffer_manager.h:170:8: error: no type named 'mutex' in namespace 'std'
  170 |   std::mutex cache_res_mgr_mu_;
      |   ~~~~~^
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/include/rocksdb/write_buffer_manager.h:174:8: error: no type named 'mutex' in namespace 'std'
  174 |   std::mutex mu_;
      |   ~~~~~^
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/cache/compressed_secondary_cache.cc:6:
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/cache/compressed_secondary_cache.h:12:
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/compressed_secondary_cache.cc:6:
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/cache/compressed_secondary_cache.h:12:
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) {
      |             ^~~~~~~~~~~~~
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/cache/compressed_secondary_cache.cc:6:
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/cache/compressed_secondary_cache.h:12:
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/cache/cache_reservation_manager.h:315:8: error: no type named 'mutex' in namespace 'std'
  315 |   std::mutex cache_res_mgr_mu_;
      |   ~~~~~^
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/cache/cache_reservation_manager.h:240:28: error: no member named 'mutex' in namespace 'std'
  240 |       std::lock_guard<std::mutex> lock(cache_res_mgr_->cache_res_mgr_mu_);
      |                            ^~~~~
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/cache/cache_reservation_manager.h:266:26: error: no member named 'mutex' in namespace 'std'
  266 |     std::lock_guard<std::mutex> lock(cache_res_mgr_mu_);
      |                          ^~~~~
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/cache/cache_reservation_manager.h:272:26: error: no member named 'mutex' in namespace 'std'
  272 |     std::lock_guard<std::mutex> lock(cache_res_mgr_mu_);
      |                          ^~~~~
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/cache/cache_reservation_manager.h:295:28: error: no member named 'mutex' in namespace 'std'
  295 |       std::lock_guard<std::mutex> lock(cache_res_mgr_mu_);
      |                            ^~~~~
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/cache/cache_reservation_manager.h:302:53: error: no matching member function for call to 'shared_from_this'
  301 |             std::enable_shared_from_this<
      |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  302 |                 ConcurrentCacheReservationManager>::shared_from_this(),
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__memory/shared_ptr.h:1448:41: note: candidate function not viable: no known conversion from 'rocksdb::ConcurrentCacheReservationManager' to 'std::enable_shared_from_this<rocksdb::ConcurrentCacheReservationManager>' for object argument
 1448 |   _LIBCPP_HIDE_FROM_ABI shared_ptr<_Tp> shared_from_this() { return shared_ptr<_Tp>(__weak_this_); }
      |                                         ^
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__memory/shared_ptr.h:1449:47: note: candidate function not viable: no known conversion from 'rocksdb::ConcurrentCacheReservationManager' to 'const std::enable_shared_from_this<rocksdb::ConcurrentCacheReservationManager>' for object argument
 1449 |   _LIBCPP_HIDE_FROM_ABI shared_ptr<_Tp const> shared_from_this() const { return shared_ptr<const _Tp>(__weak_this_); }
      |                                               ^
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/cache/compressed_secondary_cache.cc:6:
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/cache/compressed_secondary_cache.h:12:
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/cache/cache_reservation_manager.h:310:26: error: no member named 'mutex' in namespace 'std'
  310 |     std::lock_guard<std::mutex> lock(cache_res_mgr_mu_);
      |                          ^~~~~
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/cache/compressed_secondary_cache.cc:6:
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/cache/compressed_secondary_cache.h:13:
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(); }
      |                      ~~~~~~^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
[4/358] Compiling compressed_secondary_cache.cc
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/cache/clock_cache.cc:10:
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/cache/clock_cache.h:21:
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/cache/sharded_cache.h:18:
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/include/rocksdb/advanced_cache.h:18:
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/include/rocksdb/options.h:33:
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/include/rocksdb/write_buffer_manager.h:170:8: error: no type named 'mutex' in namespace 'std'
  170 |   std::mutex cache_res_mgr_mu_;
      |   ~~~~~^
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/include/rocksdb/write_buffer_manager.h:174:8: error: no type named 'mutex' in namespace 'std'
  174 |   std::mutex mu_;
      |   ~~~~~^
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/cache/clock_cache.cc:10:
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/cache/clock_cache.h:21:
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:124:14: error: no member named 'this_thread' in namespace 'std'
  124 |         std::this_thread::yield();
      |         ~~~~~^
/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 /host/spi-builder-workspace/Sources/rocksdb/rocksdb/cache/clock_cache.cc:10:
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/cache/clock_cache.h:21:
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/cache/sharded_cache.h:124:17: error: no type named 'Mutex' in namespace 'rocksdb::port'
  124 |   mutable port::Mutex config_mutex_;
      |           ~~~~~~^
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/cache/sharded_cache.h:142:48: error: no member named 'cacheline_aligned_alloc' in namespace 'rocksdb::port'
  142 |         shards_(static_cast<CacheShard*>(port::cacheline_aligned_alloc(
      |                                                ^~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/cache/sharded_cache.h:150:11: error: no type named 'cacheline_aligned_free' in namespace 'rocksdb::port'
  150 |     port::cacheline_aligned_free(shards_);
      |     ~~~~~~^
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/cache/clock_cache.cc:10:
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/cache/clock_cache.h:24:
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/port/mmap.h:13:
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/wasm32-wasip1/sys/mman.h:2:2: error: "WASI lacks a true mmap; to enable minimal mmap emulation, compile with -D_WASI_EMULATED_MMAN and link with -lwasi-emulated-mman"
    2 | #error "WASI lacks a true mmap; to enable minimal mmap emulation, \
      |  ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
[4/358] Compiling clock_cache.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) {
      |       ^
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:24:
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/util/user_comparator_wrapper.h:11:
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/monitoring/perf_context_imp.h:7:
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/monitoring/perf_step_timer.h:8:
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/monitoring/statistics_impl.h:12:
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/monitoring/histogram.h:140:8: error: no type named 'mutex' in namespace 'std'
  140 |   std::mutex mutex_;
      |   ~~~~~^
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:24:
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/util/user_comparator_wrapper.h:11:
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/monitoring/perf_context_imp.h:7:
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/monitoring/perf_step_timer.h:8:
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/monitoring/statistics_impl.h:16:
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/util/core_local.h:47:40: error: no member named 'thread' in namespace 'std'
   47 |   int num_cpus = static_cast<int>(std::thread::hardware_concurrency());
      |                                   ~~~~~^
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/util/core_local.h:68:15: error: use of undeclared identifier 'port'
   68 |   int cpuid = port::PhysicalCoreID();
      |               ^
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:24:
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/util/user_comparator_wrapper.h:11:
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/monitoring/perf_context_imp.h:7:
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/monitoring/perf_step_timer.h:8:
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/monitoring/statistics_impl.h:17:
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/util/mutexlock.h:37:22: error: use of undeclared identifier 'port'
   37 |   explicit MutexLock(port::Mutex *mu) : mu_(mu) { this->mu_->Lock(); }
      |                      ^
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/util/mutexlock.h:45:3: error: use of undeclared identifier 'port'
   45 |   port::Mutex *const mu_;
      |   ^
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/util/mutexlock.h:55:21: error: use of undeclared identifier 'port'
   55 |   explicit ReadLock(port::RWMutex *mu) : mu_(mu) { this->mu_->ReadLock(); }
      |                     ^
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/util/mutexlock.h:63:3: error: use of undeclared identifier 'port'
   63 |   port::RWMutex *const mu_;
      |   ^
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/util/mutexlock.h:71:23: error: use of undeclared identifier 'port'
   71 |   explicit ReadUnlock(port::RWMutex *mu) : mu_(mu) { mu->AssertHeld(); }
      |                       ^
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/util/mutexlock.h:79:3: error: use of undeclared identifier 'port'
   79 |   port::RWMutex *const mu_;
      |   ^
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/util/mutexlock.h:89:22: error: use of undeclared identifier 'port'
   89 |   explicit WriteLock(port::RWMutex *mu) : mu_(mu) { this->mu_->WriteLock(); }
      |                      ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
[4/358] Compiling write_batch_with_index_internal.cc
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/cache/charged_cache.cc:6:
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/cache/charged_cache.h:11:
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/include/rocksdb/advanced_cache.h:18:
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/include/rocksdb/options.h:33:
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/include/rocksdb/write_buffer_manager.h:170:8: error: no type named 'mutex' in namespace 'std'
  170 |   std::mutex cache_res_mgr_mu_;
      |   ~~~~~^
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/include/rocksdb/write_buffer_manager.h:174:8: error: no type named 'mutex' in namespace 'std'
  174 |   std::mutex mu_;
      |   ~~~~~^
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/cache/charged_cache.cc:8:
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) {
      |             ^~~~~~~~~~~~~
[4/358] Compiling charged_cache.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:21:
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/cache/typed_cache.h:31:
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/cache/cache_helpers.h:10:
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/include/rocksdb/advanced_cache.h:18:
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/include/rocksdb/options.h:33:
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/include/rocksdb/write_buffer_manager.h:170:8: error: no type named 'mutex' in namespace 'std'
  170 |   std::mutex cache_res_mgr_mu_;
      |   ~~~~~^
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/include/rocksdb/write_buffer_manager.h:174:8: error: no type named 'mutex' in namespace 'std'
  174 |   std::mutex mu_;
      |   ~~~~~^
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) {
      |             ^~~~~~~~~~~~~
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/cache/cache_reservation_manager.cc:9:
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/cache/cache_reservation_manager.h:315:8: error: no type named 'mutex' in namespace 'std'
  315 |   std::mutex cache_res_mgr_mu_;
      |   ~~~~~^
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/cache/cache_reservation_manager.h:240:28: error: no member named 'mutex' in namespace 'std'
  240 |       std::lock_guard<std::mutex> lock(cache_res_mgr_->cache_res_mgr_mu_);
      |                            ^~~~~
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/cache/cache_reservation_manager.h:266:26: error: no member named 'mutex' in namespace 'std'
  266 |     std::lock_guard<std::mutex> lock(cache_res_mgr_mu_);
      |                          ^~~~~
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/cache/cache_reservation_manager.h:272:26: error: no member named 'mutex' in namespace 'std'
  272 |     std::lock_guard<std::mutex> lock(cache_res_mgr_mu_);
      |                          ^~~~~
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/cache/cache_reservation_manager.h:295:28: error: no member named 'mutex' in namespace 'std'
  295 |       std::lock_guard<std::mutex> lock(cache_res_mgr_mu_);
      |                            ^~~~~
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/cache/cache_reservation_manager.h:302:53: error: no matching member function for call to 'shared_from_this'
  301 |             std::enable_shared_from_this<
      |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  302 |                 ConcurrentCacheReservationManager>::shared_from_this(),
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__memory/shared_ptr.h:1448:41: note: candidate function not viable: no known conversion from 'rocksdb::ConcurrentCacheReservationManager' to 'std::enable_shared_from_this<rocksdb::ConcurrentCacheReservationManager>' for object argument
 1448 |   _LIBCPP_HIDE_FROM_ABI shared_ptr<_Tp> shared_from_this() { return shared_ptr<_Tp>(__weak_this_); }
      |                                         ^
/root/.swiftpm/swift-sdks/swift-6.3-RELEASE_wasm.artifactbundle/swift-6.3-RELEASE_wasm/wasm32-unknown-wasip1/WASI.sdk/include/c++/v1/__memory/shared_ptr.h:1449:47: note: candidate function not viable: no known conversion from 'rocksdb::ConcurrentCacheReservationManager' to 'const std::enable_shared_from_this<rocksdb::ConcurrentCacheReservationManager>' for object argument
 1449 |   _LIBCPP_HIDE_FROM_ABI shared_ptr<_Tp const> shared_from_this() const { return shared_ptr<const _Tp>(__weak_this_); }
      |                                               ^
In file included from /host/spi-builder-workspace/Sources/rocksdb/rocksdb/cache/cache_reservation_manager.cc:9:
/host/spi-builder-workspace/Sources/rocksdb/rocksdb/cache/cache_reservation_manager.h:310:26: error: no member named 'mutex' in namespace 'std'
  310 |     std::lock_guard<std::mutex> lock(cache_res_mgr_mu_);
      |                          ^~~~~
[4/358] Compiling cache_reservation_manager.cc
BUILD FAILURE 6.3 wasm