The Swift Package Index logo.Swift Package Index

Build Information

Failed to build IceCream, reference 2.1.0 (e1d07b), with Swift 6.2 for Wasm on 20 Jun 2025 02:53:11 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/caiyue1993/IceCream.git
Reference: 2.1.0
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/caiyue1993/IceCream
 * tag               2.1.0      -> FETCH_HEAD
HEAD is now at e1d07b3 include CreamLocation file to pbxproj
Cloned https://github.com/caiyue1993/IceCream.git
Revision (git rev-parse @):
e1d07b31bd0e1a65b89ac72f629f4df6f6707fd3
SUCCESS checkout https://github.com/caiyue1993/IceCream.git at 2.1.0
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/caiyue1993/IceCream.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:44384f43f933eaa0f42803e9ef7c3d8388c5841ccc831a15a5edf63d8c273423
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.2-latest
Fetching https://github.com/realm/realm-cocoa
[1/131359] Fetching realm-cocoa
Fetched https://github.com/realm/realm-cocoa from cache (10.86s)
Computing version for https://github.com/realm/realm-cocoa
Computed https://github.com/realm/realm-cocoa at 4.4.1 (11.76s)
Fetching https://github.com/realm/realm-core
[1/252487] Fetching realm-core
Fetched https://github.com/realm/realm-core from cache (16.72s)
Computing version for https://github.com/realm/realm-core
Computed https://github.com/realm/realm-core at 5.23.8 (17.36s)
Creating working copy for https://github.com/realm/realm-cocoa
Working copy of https://github.com/realm/realm-cocoa resolved at 4.4.1
Creating working copy for https://github.com/realm/realm-core
Working copy of https://github.com/realm/realm-core resolved at 5.23.8
Building for debugging...
[0/53] Write sources
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/RLMUtil.mm:19:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/RLMUtil.hpp:19:
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/include/Realm/RLMConstants.h:19:9: fatal error: 'Foundation/Foundation.h' file not found
   19 | #import <Foundation/Foundation.h>
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[1/53] Compiling RLMUtil.mm
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/realm_coordinator.cpp:19:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/realm_coordinator.hpp:22:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/shared_realm.hpp:22:
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/execution_context_id.hpp:65:32: error: no member named 'thread' in namespace 'std'
   65 |     AnyExecutionContextID(std::thread::id thread_id) : AnyExecutionContextID(Type::Thread, std::move(thread_id)) { }
      |                           ~~~~~^
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/execution_context_id.hpp:104:32: error: no member named 'thread' in namespace 'std'
  104 |     util::AlignedUnion<1, std::thread::id, AbstractExecutionContextID>::type m_storage;
      |                           ~~~~~^
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/execution_context_id.hpp:62:48: error: no member named 'this_thread' in namespace 'std'
   62 |             *this = AnyExecutionContextID(std::this_thread::get_id());
      |                                           ~~~~~^
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/execution_context_id.hpp:112:55: error: no member named 'thread' in namespace 'std'
  112 | struct AnyExecutionContextID::TypeForStorageType<std::thread::id> {
      |                                                  ~~~~~^
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/realm_coordinator.cpp:19:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/realm_coordinator.hpp:22:
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/shared_realm.hpp:366:16: error: no viable conversion from returned value of type 'shared_ptr<make_shared_enabler>' to function return type 'shared_ptr<Realm>'
  366 |         return std::make_shared<make_shared_enabler>(std::move(config), std::move(coordinator));
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm.artifactbundle/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/__memory/shared_ptr.h:438:43: note: candidate constructor not viable: no known conversion from 'shared_ptr<make_shared_enabler>' to 'nullptr_t' (aka 'std::nullptr_t') for 1st argument
  438 |   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR shared_ptr(nullptr_t) _NOEXCEPT : __ptr_(nullptr), __cntrl_(nullptr) {}
      |                                           ^          ~~~~~~~~~
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm.artifactbundle/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/__memory/shared_ptr.h:583:25: note: candidate constructor not viable: no known conversion from 'shared_ptr<make_shared_enabler>' to 'const shared_ptr<Realm> &' for 1st argument
  583 |   _LIBCPP_HIDE_FROM_ABI shared_ptr(const shared_ptr& __r) _NOEXCEPT : __ptr_(__r.__ptr_), __cntrl_(__r.__cntrl_) {
      |                         ^          ~~~~~~~~~~~~~~~~~~~~~
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm.artifactbundle/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/__memory/shared_ptr.h:594:25: note: candidate constructor not viable: no known conversion from 'shared_ptr<make_shared_enabler>' to 'shared_ptr<Realm> &&' for 1st argument
  594 |   _LIBCPP_HIDE_FROM_ABI shared_ptr(shared_ptr&& __r) _NOEXCEPT : __ptr_(__r.__ptr_), __cntrl_(__r.__cntrl_) {
      |                         ^          ~~~~~~~~~~~~~~~~
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm.artifactbundle/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/__memory/shared_ptr.h:589:25: note: candidate template ignored: requirement '__compatible_with<make_shared_enabler, realm::Realm>::value' was not satisfied [with _Yp = make_shared_enabler]
  589 |   _LIBCPP_HIDE_FROM_ABI shared_ptr(const shared_ptr<_Yp>& __r) _NOEXCEPT : __ptr_(__r.__ptr_), __cntrl_(__r.__cntrl_) {
      |                         ^
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm.artifactbundle/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/__memory/shared_ptr.h:600:25: note: candidate template ignored: requirement '__compatible_with<make_shared_enabler, realm::Realm>::value' was not satisfied [with _Yp = make_shared_enabler]
  600 |   _LIBCPP_HIDE_FROM_ABI shared_ptr(shared_ptr<_Yp>&& __r) _NOEXCEPT : __ptr_(__r.__ptr_), __cntrl_(__r.__cntrl_) {
      |                         ^
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm.artifactbundle/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/__memory/shared_ptr.h:614:25: note: candidate template ignored: could not match 'auto_ptr' against 'shared_ptr'
  614 |   _LIBCPP_HIDE_FROM_ABI shared_ptr(auto_ptr<_Yp>&& __r) : __ptr_(__r.get()) {
      |                         ^
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm.artifactbundle/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/__memory/shared_ptr.h:627:25: note: candidate template ignored: could not match 'unique_ptr' against 'shared_ptr'
  627 |   _LIBCPP_HIDE_FROM_ABI shared_ptr(unique_ptr<_Yp, _Dp>&& __r) : __ptr_(__r.get()) {
      |                         ^
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm.artifactbundle/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/__memory/shared_ptr.h:648:25: note: candidate template ignored: could not match 'unique_ptr' against 'shared_ptr'
  648 |   _LIBCPP_HIDE_FROM_ABI shared_ptr(unique_ptr<_Yp, _Dp>&& __r) : __ptr_(__r.get()) {
      |                         ^
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm.artifactbundle/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/__memory/shared_ptr.h:451:34: note: explicit constructor is not a candidate
  451 |   _LIBCPP_HIDE_FROM_ABI explicit shared_ptr(_Yp* __p) : __ptr_(__p) {
      |                                  ^
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm.artifactbundle/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/__memory/shared_ptr.h:606:34: note: explicit constructor is not a candidate
  606 |   _LIBCPP_HIDE_FROM_ABI explicit shared_ptr(const weak_ptr<_Yp>& __r)
      |                                  ^
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/realm_coordinator.cpp:19:
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/realm_coordinator.hpp:164:10: error: no template named 'unique_lock' in namespace 'std'; did you mean 'unique_copy'?
  164 |     std::unique_lock<std::mutex> wait_for_notifiers(Pred&& wait_predicate);
      |     ~~~~~^~~~~~~~~~~
      |          unique_copy
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm.artifactbundle/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/__algorithm/unique_copy.h:102:1: note: 'unique_copy' declared here
  102 | unique_copy(_InputIterator __first, _InputIterator __last, _OutputIterator __result, _BinaryPredicate __pred) {
      | ^
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/realm_coordinator.cpp:19:
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/realm_coordinator.hpp:164:27: error: no member named 'mutex' in namespace 'std'
  164 |     std::unique_lock<std::mutex> wait_for_notifiers(Pred&& wait_predicate);
      |                      ~~~~~^
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/realm_coordinator.hpp:176:18: error: no type named 'mutex' in namespace 'std'
  176 |     mutable std::mutex m_schema_cache_mutex;
      |             ~~~~~^
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/realm_coordinator.hpp:182:10: error: no type named 'mutex' in namespace 'std'
  182 |     std::mutex m_realm_mutex;
      |     ~~~~~^
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/realm_coordinator.hpp:185:10: error: no type named 'mutex' in namespace 'std'
  185 |     std::mutex m_notifier_mutex;
      |     ~~~~~^
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/realm_coordinator.hpp:186:10: error: no type named 'condition_variable' in namespace 'std'
  186 |     std::condition_variable m_notifier_cv;
      |     ~~~~~^
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/realm_coordinator.hpp:219:28: error: no template named 'unique_lock' in namespace 'std'; did you mean 'unique_copy'?
  219 |                       std::unique_lock<std::mutex>& realm_lock, bool bind_to_context=true);
      |                       ~~~~~^~~~~~~~~~~
      |                            unique_copy
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm.artifactbundle/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/__algorithm/unique_copy.h:102:1: note: 'unique_copy' declared here
  102 | unique_copy(_InputIterator __first, _InputIterator __last, _OutputIterator __result, _BinaryPredicate __pred) {
      | ^
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/realm_coordinator.cpp:19:
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/realm_coordinator.hpp:219:45: error: no member named 'mutex' in namespace 'std'
  219 |                       std::unique_lock<std::mutex>& realm_lock, bool bind_to_context=true);
      |                                        ~~~~~^
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/realm_coordinator.hpp:219:23: error: expected parameter declarator
  219 |                       std::unique_lock<std::mutex>& realm_lock, bool bind_to_context=true);
      |                       ^
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/realm_coordinator.hpp:219:51: error: expected ')'
  219 |                       std::unique_lock<std::mutex>& realm_lock, bool bind_to_context=true);
      |                                                   ^
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/realm_coordinator.hpp:218:22: note: to match this '('
  218 |     void do_get_realm(Realm::Config config, std::shared_ptr<Realm>& realm,
      |                      ^
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/realm_coordinator.hpp:231:6: error: no template named 'unique_lock' in namespace 'std'; did you mean 'unique_copy'?
  231 | std::unique_lock<std::mutex> RealmCoordinator::wait_for_notifiers(Pred&& wait_predicate)
      | ~~~~~^~~~~~~~~~~
      |      unique_copy
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm.artifactbundle/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/__algorithm/unique_copy.h:102:1: note: 'unique_copy' declared here
  102 | unique_copy(_InputIterator __first, _InputIterator __last, _OutputIterator __result, _BinaryPredicate __pred) {
      | ^
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/realm_coordinator.cpp:19:
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/realm_coordinator.hpp:231:23: error: no member named 'mutex' in namespace 'std'
  231 | std::unique_lock<std::mutex> RealmCoordinator::wait_for_notifiers(Pred&& wait_predicate)
      |                  ~~~~~^
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/realm_coordinator.cpp:21:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/collection_notifier.hpp:22:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/collection_change_builder.hpp:22:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/collection_notifications.hpp:23:
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/util/atomic_shared_ptr.hpp:141:18: error: no type named 'mutex' in namespace 'std'
  141 |     mutable std::mutex m_mutex;
      |             ~~~~~^
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/util/atomic_shared_ptr.hpp:96:30: error: no member named 'mutex' in namespace 'std'
   96 |         std::lock_guard<std::mutex> lock(ptr.m_mutex);
      |                         ~~~~~^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
[1/53] Compiling realm_coordinator.cpp
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/object_notifier.cpp:19:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/object_notifier.hpp:22:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/collection_notifier.hpp:22:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/collection_change_builder.hpp:22:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/collection_notifications.hpp:23:
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/util/atomic_shared_ptr.hpp:141:18: error: no type named 'mutex' in namespace 'std'
  141 |     mutable std::mutex m_mutex;
      |             ~~~~~^
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/util/atomic_shared_ptr.hpp:96:30: error: no member named 'mutex' in namespace 'std'
   96 |         std::lock_guard<std::mutex> lock(ptr.m_mutex);
      |                         ~~~~~^
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/util/atomic_shared_ptr.hpp:101:30: error: no member named 'mutex' in namespace 'std'
  101 |         std::lock_guard<std::mutex> lock(ptr.m_mutex);
      |                         ~~~~~^
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/util/atomic_shared_ptr.hpp:110:18: error: no member named 'lock' in namespace 'std'; did you mean 'clock'?
  110 |             std::lock(m_mutex, ptr.m_mutex);
      |             ~~~~~^~~~
      |                  clock
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm.artifactbundle/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/ctime:71:9: note: 'clock' declared here
   71 | using ::clock _LIBCPP_USING_IF_EXISTS;
      |         ^
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/object_notifier.cpp:19:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/object_notifier.hpp:22:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/collection_notifier.hpp:22:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/collection_change_builder.hpp:22:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/collection_notifications.hpp:23:
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/util/atomic_shared_ptr.hpp:120:14: error: no member named 'lock' in namespace 'std'; did you mean 'clock'?
  120 |         std::lock(m_mutex, ptr.m_mutex);
      |         ~~~~~^~~~
      |              clock
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm.artifactbundle/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/ctime:71:9: note: 'clock' declared here
   71 | using ::clock _LIBCPP_USING_IF_EXISTS;
      |         ^
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/object_notifier.cpp:19:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/object_notifier.hpp:22:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/collection_notifier.hpp:22:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/collection_change_builder.hpp:22:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/collection_notifications.hpp:23:
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/util/atomic_shared_ptr.hpp:129:30: error: no member named 'mutex' in namespace 'std'
  129 |         std::lock_guard<std::mutex> lock(m_mutex);
      |                         ~~~~~^
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/util/atomic_shared_ptr.hpp:136:30: error: no member named 'mutex' in namespace 'std'
  136 |         std::lock_guard<std::mutex> lock(m_mutex);
      |                         ~~~~~^
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/object_notifier.cpp:19:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/object_notifier.hpp:22:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/collection_notifier.hpp:22:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/collection_change_builder.hpp:22:
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/collection_notifications.hpp:50:54: error: implicit instantiation of undefined template 'realm::util::AtomicSharedPtr<realm::_impl::CollectionNotifier>'
   50 |     util::AtomicSharedPtr<_impl::CollectionNotifier> m_notifier;
      |                                                      ^
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/util/atomic_shared_ptr.hpp:49:7: note: template is declared here
   49 | class AtomicSharedPtr;
      |       ^
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/object_notifier.cpp:19:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/object_notifier.hpp:22:
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/collection_notifier.hpp:195:10: error: no template named 'unique_lock' in namespace 'std'; did you mean 'unique_copy'?
  195 |     std::unique_lock<std::mutex> lock_target();
      |     ~~~~~^~~~~~~~~~~
      |          unique_copy
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm.artifactbundle/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/__algorithm/unique_copy.h:102:1: note: 'unique_copy' declared here
  102 | unique_copy(_InputIterator __first, _InputIterator __last, _OutputIterator __result, _BinaryPredicate __pred) {
      | ^
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/object_notifier.cpp:19:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/object_notifier.hpp:22:
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/collection_notifier.hpp:195:27: error: no member named 'mutex' in namespace 'std'
  195 |     std::unique_lock<std::mutex> lock_target();
      |                      ~~~~~^
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/collection_notifier.hpp:207:18: error: no type named 'mutex' in namespace 'std'
  207 |     mutable std::mutex m_realm_mutex;
      |             ~~~~~^
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/collection_notifier.hpp:228:10: error: no type named 'mutex' in namespace 'std'
  228 |     std::mutex m_callback_mutex;
      |     ~~~~~^
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/object_notifier.cpp:19:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/object_notifier.hpp:24:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/group_shared.hpp:26:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/interprocess_condvar.hpp:25:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/interprocess_mutex.hpp:24:
/host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/file.hpp:549:9: error: unknown type name 'dev_t'; did you mean 'div_t'?
  549 |         dev_t device;
      |         ^~~~~
      |         div_t
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm.artifactbundle/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/stdlib.h:76:35: note: 'div_t' declared here
   76 | typedef struct { int quot, rem; } div_t;
      |                                   ^
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/object_notifier.cpp:19:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/object_notifier.hpp:24:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/group_shared.hpp:26:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/interprocess_condvar.hpp:25:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/interprocess_mutex.hpp:24:
/host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/file.hpp:1289:23: error: invalid operands to binary expression ('const div_t' and 'const div_t')
 1289 |     return lhs.device == rhs.device && lhs.inode == rhs.inode;
      |            ~~~~~~~~~~ ^  ~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/file.hpp:1284:13: note: candidate function not viable: no known conversion from 'const div_t' to 'const File::UniqueID' for 1st argument
 1284 | inline bool operator==(const File::UniqueID& lhs, const File::UniqueID& rhs)
      |             ^          ~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/optional.hpp:509:6: note: candidate template ignored: could not match 'const Optional<T>' against 'const div_t'
  509 | bool operator==(const Optional<T>& lhs, const Optional<T>& rhs)
      |      ^
/host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/optional.hpp:551:6: note: candidate template ignored: could not match 'const Optional<T>' against 'const div_t'
  551 | bool operator==(const Optional<T>& lhs, None)
      |      ^
/host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/optional.hpp:570:6: note: candidate template ignored: could not match 'const Optional<T>' against 'const div_t'
  570 | bool operator==(None, const Optional<T>& rhs)
      |      ^
/host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/optional.hpp:588:6: note: candidate template ignored: could not match 'const Optional<T>' against 'const div_t'
  588 | bool operator==(const Optional<T>& lhs, const U& rhs)
      |      ^
/host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/optional.hpp:600:6: note: candidate template ignored: could not match 'const Optional<U>' against 'const div_t'
  600 | bool operator==(const T& lhs, const Optional<U>& rhs)
      |      ^
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/object_notifier.cpp:19:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/object_notifier.hpp:24:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/group_shared.hpp:26:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/interprocess_condvar.hpp:25:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/interprocess_mutex.hpp:24:
/host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/file.hpp:1303:20: error: invalid operands to binary expression ('const div_t' and 'const div_t')
 1303 |     if (lhs.device < rhs.device)
      |         ~~~~~~~~~~ ^ ~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/file.hpp:1298:13: note: candidate function not viable: no known conversion from 'const div_t' to 'const File::UniqueID' for 1st argument
 1298 | inline bool operator<(const File::UniqueID& lhs, const File::UniqueID& rhs)
      |             ^         ~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/optional.hpp:527:6: note: candidate template ignored: could not match 'const Optional<T>' against 'const div_t'
  527 | bool operator<(const Optional<T>& lhs, const Optional<T>& rhs)
      |      ^
/host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/optional.hpp:563:6: note: candidate template ignored: could not match 'const Optional<T>' against 'const div_t'
  563 | bool operator<(const Optional<T>& lhs, None)
      |      ^
/host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/optional.hpp:582:6: note: candidate template ignored: could not match 'const Optional<T>' against 'const div_t'
  582 | bool operator<(None, const Optional<T>& rhs)
      |      ^
/host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/optional.hpp:594:6: note: candidate template ignored: could not match 'const Optional<T>' against 'const div_t'
  594 | bool operator<(const Optional<T>& lhs, const T& rhs)
      |      ^
/host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/optional.hpp:606:6: note: candidate template ignored: could not match 'const Optional<T>' against 'const div_t'
  606 | bool operator<(const T& lhs, const Optional<T>& rhs)
      |      ^
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/object_notifier.cpp:19:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/object_notifier.hpp:24:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/group_shared.hpp:26:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/interprocess_condvar.hpp:25:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/interprocess_mutex.hpp:24:
/host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/file.hpp:1305:20: error: invalid operands to binary expression ('const div_t' and 'const div_t')
 1305 |     if (lhs.device > rhs.device)
      |         ~~~~~~~~~~ ^ ~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/optional.hpp:539:6: note: candidate template ignored: could not match 'const util::Optional<T>' against 'const div_t'
  539 | bool operator>(const util::Optional<T>& lhs, const util::Optional<T>& rhs)
      |      ^
[1/53] Compiling object_notifier.cpp
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/list_notifier.cpp:19:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/list_notifier.hpp:22:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/collection_notifier.hpp:22:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/collection_change_builder.hpp:22:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/collection_notifications.hpp:23:
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/util/atomic_shared_ptr.hpp:141:18: error: no type named 'mutex' in namespace 'std'
  141 |     mutable std::mutex m_mutex;
      |             ~~~~~^
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/util/atomic_shared_ptr.hpp:96:30: error: no member named 'mutex' in namespace 'std'
   96 |         std::lock_guard<std::mutex> lock(ptr.m_mutex);
      |                         ~~~~~^
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/util/atomic_shared_ptr.hpp:101:30: error: no member named 'mutex' in namespace 'std'
  101 |         std::lock_guard<std::mutex> lock(ptr.m_mutex);
      |                         ~~~~~^
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/util/atomic_shared_ptr.hpp:110:18: error: no member named 'lock' in namespace 'std'; did you mean 'clock'?
  110 |             std::lock(m_mutex, ptr.m_mutex);
      |             ~~~~~^~~~
      |                  clock
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm.artifactbundle/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/ctime:71:9: note: 'clock' declared here
   71 | using ::clock _LIBCPP_USING_IF_EXISTS;
      |         ^
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/list_notifier.cpp:19:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/list_notifier.hpp:22:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/collection_notifier.hpp:22:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/collection_change_builder.hpp:22:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/collection_notifications.hpp:23:
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/util/atomic_shared_ptr.hpp:120:14: error: no member named 'lock' in namespace 'std'; did you mean 'clock'?
  120 |         std::lock(m_mutex, ptr.m_mutex);
      |         ~~~~~^~~~
      |              clock
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm.artifactbundle/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/ctime:71:9: note: 'clock' declared here
   71 | using ::clock _LIBCPP_USING_IF_EXISTS;
      |         ^
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/list_notifier.cpp:19:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/list_notifier.hpp:22:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/collection_notifier.hpp:22:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/collection_change_builder.hpp:22:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/collection_notifications.hpp:23:
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/util/atomic_shared_ptr.hpp:129:30: error: no member named 'mutex' in namespace 'std'
  129 |         std::lock_guard<std::mutex> lock(m_mutex);
      |                         ~~~~~^
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/util/atomic_shared_ptr.hpp:136:30: error: no member named 'mutex' in namespace 'std'
  136 |         std::lock_guard<std::mutex> lock(m_mutex);
      |                         ~~~~~^
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/list_notifier.cpp:19:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/list_notifier.hpp:22:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/collection_notifier.hpp:22:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/collection_change_builder.hpp:22:
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/collection_notifications.hpp:50:54: error: implicit instantiation of undefined template 'realm::util::AtomicSharedPtr<realm::_impl::CollectionNotifier>'
   50 |     util::AtomicSharedPtr<_impl::CollectionNotifier> m_notifier;
      |                                                      ^
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/util/atomic_shared_ptr.hpp:49:7: note: template is declared here
   49 | class AtomicSharedPtr;
      |       ^
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/list_notifier.cpp:19:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/list_notifier.hpp:22:
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/collection_notifier.hpp:195:10: error: no template named 'unique_lock' in namespace 'std'; did you mean 'unique_copy'?
  195 |     std::unique_lock<std::mutex> lock_target();
      |     ~~~~~^~~~~~~~~~~
      |          unique_copy
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm.artifactbundle/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/__algorithm/unique_copy.h:102:1: note: 'unique_copy' declared here
  102 | unique_copy(_InputIterator __first, _InputIterator __last, _OutputIterator __result, _BinaryPredicate __pred) {
      | ^
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/list_notifier.cpp:19:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/list_notifier.hpp:22:
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/collection_notifier.hpp:195:27: error: no member named 'mutex' in namespace 'std'
  195 |     std::unique_lock<std::mutex> lock_target();
      |                      ~~~~~^
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/collection_notifier.hpp:207:18: error: no type named 'mutex' in namespace 'std'
  207 |     mutable std::mutex m_realm_mutex;
      |             ~~~~~^
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/collection_notifier.hpp:228:10: error: no type named 'mutex' in namespace 'std'
  228 |     std::mutex m_callback_mutex;
      |     ~~~~~^
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/list_notifier.cpp:19:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/list_notifier.hpp:24:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/group_shared.hpp:26:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/interprocess_condvar.hpp:25:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/interprocess_mutex.hpp:24:
/host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/file.hpp:549:9: error: unknown type name 'dev_t'; did you mean 'div_t'?
  549 |         dev_t device;
      |         ^~~~~
      |         div_t
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm.artifactbundle/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/stdlib.h:76:35: note: 'div_t' declared here
   76 | typedef struct { int quot, rem; } div_t;
      |                                   ^
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/list_notifier.cpp:19:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/list_notifier.hpp:24:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/group_shared.hpp:26:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/interprocess_condvar.hpp:25:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/interprocess_mutex.hpp:24:
/host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/file.hpp:1289:23: error: invalid operands to binary expression ('const div_t' and 'const div_t')
 1289 |     return lhs.device == rhs.device && lhs.inode == rhs.inode;
      |            ~~~~~~~~~~ ^  ~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/file.hpp:1284:13: note: candidate function not viable: no known conversion from 'const div_t' to 'const File::UniqueID' for 1st argument
 1284 | inline bool operator==(const File::UniqueID& lhs, const File::UniqueID& rhs)
      |             ^          ~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/optional.hpp:509:6: note: candidate template ignored: could not match 'const Optional<T>' against 'const div_t'
  509 | bool operator==(const Optional<T>& lhs, const Optional<T>& rhs)
      |      ^
/host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/optional.hpp:551:6: note: candidate template ignored: could not match 'const Optional<T>' against 'const div_t'
  551 | bool operator==(const Optional<T>& lhs, None)
      |      ^
/host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/optional.hpp:570:6: note: candidate template ignored: could not match 'const Optional<T>' against 'const div_t'
  570 | bool operator==(None, const Optional<T>& rhs)
      |      ^
/host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/optional.hpp:588:6: note: candidate template ignored: could not match 'const Optional<T>' against 'const div_t'
  588 | bool operator==(const Optional<T>& lhs, const U& rhs)
      |      ^
/host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/optional.hpp:600:6: note: candidate template ignored: could not match 'const Optional<U>' against 'const div_t'
  600 | bool operator==(const T& lhs, const Optional<U>& rhs)
      |      ^
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/list_notifier.cpp:19:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/list_notifier.hpp:24:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/group_shared.hpp:26:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/interprocess_condvar.hpp:25:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/interprocess_mutex.hpp:24:
/host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/file.hpp:1303:20: error: invalid operands to binary expression ('const div_t' and 'const div_t')
 1303 |     if (lhs.device < rhs.device)
      |         ~~~~~~~~~~ ^ ~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/file.hpp:1298:13: note: candidate function not viable: no known conversion from 'const div_t' to 'const File::UniqueID' for 1st argument
 1298 | inline bool operator<(const File::UniqueID& lhs, const File::UniqueID& rhs)
      |             ^         ~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/optional.hpp:527:6: note: candidate template ignored: could not match 'const Optional<T>' against 'const div_t'
  527 | bool operator<(const Optional<T>& lhs, const Optional<T>& rhs)
      |      ^
/host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/optional.hpp:563:6: note: candidate template ignored: could not match 'const Optional<T>' against 'const div_t'
  563 | bool operator<(const Optional<T>& lhs, None)
      |      ^
/host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/optional.hpp:582:6: note: candidate template ignored: could not match 'const Optional<T>' against 'const div_t'
  582 | bool operator<(None, const Optional<T>& rhs)
      |      ^
/host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/optional.hpp:594:6: note: candidate template ignored: could not match 'const Optional<T>' against 'const div_t'
  594 | bool operator<(const Optional<T>& lhs, const T& rhs)
      |      ^
/host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/optional.hpp:606:6: note: candidate template ignored: could not match 'const Optional<T>' against 'const div_t'
  606 | bool operator<(const T& lhs, const Optional<T>& rhs)
      |      ^
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/list_notifier.cpp:19:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/list_notifier.hpp:24:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/group_shared.hpp:26:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/interprocess_condvar.hpp:25:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/interprocess_mutex.hpp:24:
/host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/file.hpp:1305:20: error: invalid operands to binary expression ('const div_t' and 'const div_t')
 1305 |     if (lhs.device > rhs.device)
      |         ~~~~~~~~~~ ^ ~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/optional.hpp:539:6: note: candidate template ignored: could not match 'const util::Optional<T>' against 'const div_t'
  539 | bool operator>(const util::Optional<T>& lhs, const util::Optional<T>& rhs)
      |      ^
[1/53] Compiling list_notifier.cpp
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/primitive_list_notifier.cpp:19:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/primitive_list_notifier.hpp:22:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/collection_notifier.hpp:22:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/collection_change_builder.hpp:22:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/collection_notifications.hpp:23:
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/util/atomic_shared_ptr.hpp:141:18: error: no type named 'mutex' in namespace 'std'
  141 |     mutable std::mutex m_mutex;
      |             ~~~~~^
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/util/atomic_shared_ptr.hpp:96:30: error: no member named 'mutex' in namespace 'std'
   96 |         std::lock_guard<std::mutex> lock(ptr.m_mutex);
      |                         ~~~~~^
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/util/atomic_shared_ptr.hpp:101:30: error: no member named 'mutex' in namespace 'std'
  101 |         std::lock_guard<std::mutex> lock(ptr.m_mutex);
      |                         ~~~~~^
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/util/atomic_shared_ptr.hpp:110:18: error: no member named 'lock' in namespace 'std'; did you mean 'clock'?
  110 |             std::lock(m_mutex, ptr.m_mutex);
      |             ~~~~~^~~~
      |                  clock
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm.artifactbundle/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/ctime:71:9: note: 'clock' declared here
   71 | using ::clock _LIBCPP_USING_IF_EXISTS;
      |         ^
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/primitive_list_notifier.cpp:19:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/primitive_list_notifier.hpp:22:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/collection_notifier.hpp:22:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/collection_change_builder.hpp:22:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/collection_notifications.hpp:23:
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/util/atomic_shared_ptr.hpp:120:14: error: no member named 'lock' in namespace 'std'; did you mean 'clock'?
  120 |         std::lock(m_mutex, ptr.m_mutex);
      |         ~~~~~^~~~
      |              clock
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm.artifactbundle/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/ctime:71:9: note: 'clock' declared here
   71 | using ::clock _LIBCPP_USING_IF_EXISTS;
      |         ^
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/primitive_list_notifier.cpp:19:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/primitive_list_notifier.hpp:22:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/collection_notifier.hpp:22:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/collection_change_builder.hpp:22:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/collection_notifications.hpp:23:
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/util/atomic_shared_ptr.hpp:129:30: error: no member named 'mutex' in namespace 'std'
  129 |         std::lock_guard<std::mutex> lock(m_mutex);
      |                         ~~~~~^
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/util/atomic_shared_ptr.hpp:136:30: error: no member named 'mutex' in namespace 'std'
  136 |         std::lock_guard<std::mutex> lock(m_mutex);
      |                         ~~~~~^
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/primitive_list_notifier.cpp:19:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/primitive_list_notifier.hpp:22:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/collection_notifier.hpp:22:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/collection_change_builder.hpp:22:
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/collection_notifications.hpp:50:54: error: implicit instantiation of undefined template 'realm::util::AtomicSharedPtr<realm::_impl::CollectionNotifier>'
   50 |     util::AtomicSharedPtr<_impl::CollectionNotifier> m_notifier;
      |                                                      ^
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/util/atomic_shared_ptr.hpp:49:7: note: template is declared here
   49 | class AtomicSharedPtr;
      |       ^
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/primitive_list_notifier.cpp:19:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/primitive_list_notifier.hpp:22:
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/collection_notifier.hpp:195:10: error: no template named 'unique_lock' in namespace 'std'; did you mean 'unique_copy'?
  195 |     std::unique_lock<std::mutex> lock_target();
      |     ~~~~~^~~~~~~~~~~
      |          unique_copy
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm.artifactbundle/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/__algorithm/unique_copy.h:102:1: note: 'unique_copy' declared here
  102 | unique_copy(_InputIterator __first, _InputIterator __last, _OutputIterator __result, _BinaryPredicate __pred) {
      | ^
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/primitive_list_notifier.cpp:19:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/primitive_list_notifier.hpp:22:
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/collection_notifier.hpp:195:27: error: no member named 'mutex' in namespace 'std'
  195 |     std::unique_lock<std::mutex> lock_target();
      |                      ~~~~~^
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/collection_notifier.hpp:207:18: error: no type named 'mutex' in namespace 'std'
  207 |     mutable std::mutex m_realm_mutex;
      |             ~~~~~^
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/collection_notifier.hpp:228:10: error: no type named 'mutex' in namespace 'std'
  228 |     std::mutex m_callback_mutex;
      |     ~~~~~^
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/primitive_list_notifier.cpp:19:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/primitive_list_notifier.hpp:24:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/group_shared.hpp:26:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/interprocess_condvar.hpp:25:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/interprocess_mutex.hpp:24:
/host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/file.hpp:549:9: error: unknown type name 'dev_t'; did you mean 'div_t'?
  549 |         dev_t device;
      |         ^~~~~
      |         div_t
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm.artifactbundle/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm/wasm32-unknown-wasi/WASI.sdk/include/wasm32-wasi/stdlib.h:76:35: note: 'div_t' declared here
   76 | typedef struct { int quot, rem; } div_t;
      |                                   ^
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/primitive_list_notifier.cpp:19:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/primitive_list_notifier.hpp:24:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/group_shared.hpp:26:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/interprocess_condvar.hpp:25:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/interprocess_mutex.hpp:24:
/host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/file.hpp:1289:23: error: invalid operands to binary expression ('const div_t' and 'const div_t')
 1289 |     return lhs.device == rhs.device && lhs.inode == rhs.inode;
      |            ~~~~~~~~~~ ^  ~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/file.hpp:1284:13: note: candidate function not viable: no known conversion from 'const div_t' to 'const File::UniqueID' for 1st argument
 1284 | inline bool operator==(const File::UniqueID& lhs, const File::UniqueID& rhs)
      |             ^          ~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/optional.hpp:509:6: note: candidate template ignored: could not match 'const Optional<T>' against 'const div_t'
  509 | bool operator==(const Optional<T>& lhs, const Optional<T>& rhs)
      |      ^
/host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/optional.hpp:551:6: note: candidate template ignored: could not match 'const Optional<T>' against 'const div_t'
  551 | bool operator==(const Optional<T>& lhs, None)
      |      ^
/host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/optional.hpp:570:6: note: candidate template ignored: could not match 'const Optional<T>' against 'const div_t'
  570 | bool operator==(None, const Optional<T>& rhs)
      |      ^
/host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/optional.hpp:588:6: note: candidate template ignored: could not match 'const Optional<T>' against 'const div_t'
  588 | bool operator==(const Optional<T>& lhs, const U& rhs)
      |      ^
/host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/optional.hpp:600:6: note: candidate template ignored: could not match 'const Optional<U>' against 'const div_t'
  600 | bool operator==(const T& lhs, const Optional<U>& rhs)
      |      ^
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/primitive_list_notifier.cpp:19:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/primitive_list_notifier.hpp:24:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/group_shared.hpp:26:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/interprocess_condvar.hpp:25:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/interprocess_mutex.hpp:24:
/host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/file.hpp:1303:20: error: invalid operands to binary expression ('const div_t' and 'const div_t')
 1303 |     if (lhs.device < rhs.device)
      |         ~~~~~~~~~~ ^ ~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/file.hpp:1298:13: note: candidate function not viable: no known conversion from 'const div_t' to 'const File::UniqueID' for 1st argument
 1298 | inline bool operator<(const File::UniqueID& lhs, const File::UniqueID& rhs)
      |             ^         ~~~~~~~~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/optional.hpp:527:6: note: candidate template ignored: could not match 'const Optional<T>' against 'const div_t'
  527 | bool operator<(const Optional<T>& lhs, const Optional<T>& rhs)
      |      ^
/host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/optional.hpp:563:6: note: candidate template ignored: could not match 'const Optional<T>' against 'const div_t'
  563 | bool operator<(const Optional<T>& lhs, None)
      |      ^
/host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/optional.hpp:582:6: note: candidate template ignored: could not match 'const Optional<T>' against 'const div_t'
  582 | bool operator<(None, const Optional<T>& rhs)
      |      ^
/host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/optional.hpp:594:6: note: candidate template ignored: could not match 'const Optional<T>' against 'const div_t'
  594 | bool operator<(const Optional<T>& lhs, const T& rhs)
      |      ^
/host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/optional.hpp:606:6: note: candidate template ignored: could not match 'const Optional<T>' against 'const div_t'
  606 | bool operator<(const T& lhs, const Optional<T>& rhs)
      |      ^
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/primitive_list_notifier.cpp:19:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/primitive_list_notifier.hpp:24:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/group_shared.hpp:26:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/interprocess_condvar.hpp:25:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/interprocess_mutex.hpp:24:
/host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/file.hpp:1305:20: error: invalid operands to binary expression ('const div_t' and 'const div_t')
 1305 |     if (lhs.device > rhs.device)
      |         ~~~~~~~~~~ ^ ~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/realm-core/src/realm/util/optional.hpp:539:6: note: candidate template ignored: could not match 'const util::Optional<T>' against 'const div_t'
  539 | bool operator>(const util::Optional<T>& lhs, const util::Optional<T>& rhs)
      |      ^
[1/53] Compiling primitive_list_notifier.cpp
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/results_notifier.cpp:19:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/results_notifier.hpp:22:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/collection_notifier.hpp:22:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/collection_change_builder.hpp:22:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/collection_notifications.hpp:23:
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/util/atomic_shared_ptr.hpp:141:18: error: no type named 'mutex' in namespace 'std'
  141 |     mutable std::mutex m_mutex;
      |             ~~~~~^
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/util/atomic_shared_ptr.hpp:96:30: error: no member named 'mutex' in namespace 'std'
   96 |         std::lock_guard<std::mutex> lock(ptr.m_mutex);
      |                         ~~~~~^
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/util/atomic_shared_ptr.hpp:101:30: error: no member named 'mutex' in namespace 'std'
  101 |         std::lock_guard<std::mutex> lock(ptr.m_mutex);
      |                         ~~~~~^
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/util/atomic_shared_ptr.hpp:110:18: error: no member named 'lock' in namespace 'std'; did you mean 'clock'?
  110 |             std::lock(m_mutex, ptr.m_mutex);
      |             ~~~~~^~~~
      |                  clock
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm.artifactbundle/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/ctime:71:9: note: 'clock' declared here
   71 | using ::clock _LIBCPP_USING_IF_EXISTS;
      |         ^
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/results_notifier.cpp:19:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/results_notifier.hpp:22:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/collection_notifier.hpp:22:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/collection_change_builder.hpp:22:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/collection_notifications.hpp:23:
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/util/atomic_shared_ptr.hpp:120:14: error: no member named 'lock' in namespace 'std'; did you mean 'clock'?
  120 |         std::lock(m_mutex, ptr.m_mutex);
      |         ~~~~~^~~~
      |              clock
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm.artifactbundle/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/ctime:71:9: note: 'clock' declared here
   71 | using ::clock _LIBCPP_USING_IF_EXISTS;
      |         ^
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/results_notifier.cpp:19:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/results_notifier.hpp:22:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/collection_notifier.hpp:22:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/collection_change_builder.hpp:22:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/collection_notifications.hpp:23:
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/util/atomic_shared_ptr.hpp:129:30: error: no member named 'mutex' in namespace 'std'
  129 |         std::lock_guard<std::mutex> lock(m_mutex);
      |                         ~~~~~^
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/util/atomic_shared_ptr.hpp:136:30: error: no member named 'mutex' in namespace 'std'
  136 |         std::lock_guard<std::mutex> lock(m_mutex);
      |                         ~~~~~^
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/results_notifier.cpp:19:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/results_notifier.hpp:22:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/collection_notifier.hpp:22:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/collection_change_builder.hpp:22:
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/collection_notifications.hpp:50:54: error: implicit instantiation of undefined template 'realm::util::AtomicSharedPtr<realm::_impl::CollectionNotifier>'
   50 |     util::AtomicSharedPtr<_impl::CollectionNotifier> m_notifier;
      |                                                      ^
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/util/atomic_shared_ptr.hpp:49:7: note: template is declared here
   49 | class AtomicSharedPtr;
      |       ^
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/results_notifier.cpp:19:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/results_notifier.hpp:22:
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/collection_notifier.hpp:195:10: error: no template named 'unique_lock' in namespace 'std'; did you mean 'unique_copy'?
  195 |     std::unique_lock<std::mutex> lock_target();
      |     ~~~~~^~~~~~~~~~~
      |          unique_copy
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm.artifactbundle/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/__algorithm/unique_copy.h:102:1: note: 'unique_copy' declared here
  102 | unique_copy(_InputIterator __first, _InputIterator __last, _OutputIterator __result, _BinaryPredicate __pred) {
      | ^
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/results_notifier.cpp:19:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/results_notifier.hpp:22:
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/collection_notifier.hpp:195:27: error: no member named 'mutex' in namespace 'std'
  195 |     std::unique_lock<std::mutex> lock_target();
      |                      ~~~~~^
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/collection_notifier.hpp:207:18: error: no type named 'mutex' in namespace 'std'
  207 |     mutable std::mutex m_realm_mutex;
      |             ~~~~~^
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/collection_notifier.hpp:228:10: error: no type named 'mutex' in namespace 'std'
  228 |     std::mutex m_callback_mutex;
      |     ~~~~~^
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/results_notifier.cpp:19:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/results_notifier.hpp:23:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/results.hpp:28:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/shared_realm.hpp:22:
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/execution_context_id.hpp:65:32: error: no member named 'thread' in namespace 'std'
   65 |     AnyExecutionContextID(std::thread::id thread_id) : AnyExecutionContextID(Type::Thread, std::move(thread_id)) { }
      |                           ~~~~~^
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/execution_context_id.hpp:104:32: error: no member named 'thread' in namespace 'std'
  104 |     util::AlignedUnion<1, std::thread::id, AbstractExecutionContextID>::type m_storage;
      |                           ~~~~~^
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/execution_context_id.hpp:62:48: error: no member named 'this_thread' in namespace 'std'
   62 |             *this = AnyExecutionContextID(std::this_thread::get_id());
      |                                           ~~~~~^
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/execution_context_id.hpp:112:55: error: no member named 'thread' in namespace 'std'
  112 | struct AnyExecutionContextID::TypeForStorageType<std::thread::id> {
      |                                                  ~~~~~^
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/results_notifier.cpp:19:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/results_notifier.hpp:23:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/results.hpp:28:
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/shared_realm.hpp:366:16: error: no viable conversion from returned value of type 'shared_ptr<make_shared_enabler>' to function return type 'shared_ptr<Realm>'
  366 |         return std::make_shared<make_shared_enabler>(std::move(config), std::move(coordinator));
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm.artifactbundle/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/__memory/shared_ptr.h:438:43: note: candidate constructor not viable: no known conversion from 'shared_ptr<make_shared_enabler>' to 'nullptr_t' (aka 'std::nullptr_t') for 1st argument
  438 |   _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR shared_ptr(nullptr_t) _NOEXCEPT : __ptr_(nullptr), __cntrl_(nullptr) {}
      |                                           ^          ~~~~~~~~~
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm.artifactbundle/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/__memory/shared_ptr.h:583:25: note: candidate constructor not viable: no known conversion from 'shared_ptr<make_shared_enabler>' to 'const shared_ptr<Realm> &' for 1st argument
  583 |   _LIBCPP_HIDE_FROM_ABI shared_ptr(const shared_ptr& __r) _NOEXCEPT : __ptr_(__r.__ptr_), __cntrl_(__r.__cntrl_) {
      |                         ^          ~~~~~~~~~~~~~~~~~~~~~
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm.artifactbundle/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/__memory/shared_ptr.h:594:25: note: candidate constructor not viable: no known conversion from 'shared_ptr<make_shared_enabler>' to 'shared_ptr<Realm> &&' for 1st argument
  594 |   _LIBCPP_HIDE_FROM_ABI shared_ptr(shared_ptr&& __r) _NOEXCEPT : __ptr_(__r.__ptr_), __cntrl_(__r.__cntrl_) {
      |                         ^          ~~~~~~~~~~~~~~~~
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm.artifactbundle/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/__memory/shared_ptr.h:589:25: note: candidate template ignored: requirement '__compatible_with<make_shared_enabler, realm::Realm>::value' was not satisfied [with _Yp = make_shared_enabler]
  589 |   _LIBCPP_HIDE_FROM_ABI shared_ptr(const shared_ptr<_Yp>& __r) _NOEXCEPT : __ptr_(__r.__ptr_), __cntrl_(__r.__cntrl_) {
      |                         ^
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm.artifactbundle/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/__memory/shared_ptr.h:600:25: note: candidate template ignored: requirement '__compatible_with<make_shared_enabler, realm::Realm>::value' was not satisfied [with _Yp = make_shared_enabler]
  600 |   _LIBCPP_HIDE_FROM_ABI shared_ptr(shared_ptr<_Yp>&& __r) _NOEXCEPT : __ptr_(__r.__ptr_), __cntrl_(__r.__cntrl_) {
      |                         ^
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm.artifactbundle/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/__memory/shared_ptr.h:614:25: note: candidate template ignored: could not match 'auto_ptr' against 'shared_ptr'
  614 |   _LIBCPP_HIDE_FROM_ABI shared_ptr(auto_ptr<_Yp>&& __r) : __ptr_(__r.get()) {
      |                         ^
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm.artifactbundle/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/__memory/shared_ptr.h:627:25: note: candidate template ignored: could not match 'unique_ptr' against 'shared_ptr'
  627 |   _LIBCPP_HIDE_FROM_ABI shared_ptr(unique_ptr<_Yp, _Dp>&& __r) : __ptr_(__r.get()) {
      |                         ^
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm.artifactbundle/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/__memory/shared_ptr.h:648:25: note: candidate template ignored: could not match 'unique_ptr' against 'shared_ptr'
  648 |   _LIBCPP_HIDE_FROM_ABI shared_ptr(unique_ptr<_Yp, _Dp>&& __r) : __ptr_(__r.get()) {
      |                         ^
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm.artifactbundle/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/__memory/shared_ptr.h:451:34: note: explicit constructor is not a candidate
  451 |   _LIBCPP_HIDE_FROM_ABI explicit shared_ptr(_Yp* __p) : __ptr_(__p) {
      |                                  ^
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm.artifactbundle/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/__memory/shared_ptr.h:606:34: note: explicit constructor is not a candidate
  606 |   _LIBCPP_HIDE_FROM_ABI explicit shared_ptr(const weak_ptr<_Yp>& __r)
      |                                  ^
[1/53] Compiling results_notifier.cpp
[1/53] Write swift-version-24593BA9C3E375BF.txt
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/collection_change_builder.cpp:19:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/collection_change_builder.hpp:22:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/collection_notifications.hpp:23:
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/util/atomic_shared_ptr.hpp:141:18: error: no type named 'mutex' in namespace 'std'
  141 |     mutable std::mutex m_mutex;
      |             ~~~~~^
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/util/atomic_shared_ptr.hpp:96:30: error: no member named 'mutex' in namespace 'std'
   96 |         std::lock_guard<std::mutex> lock(ptr.m_mutex);
      |                         ~~~~~^
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/util/atomic_shared_ptr.hpp:101:30: error: no member named 'mutex' in namespace 'std'
  101 |         std::lock_guard<std::mutex> lock(ptr.m_mutex);
      |                         ~~~~~^
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/util/atomic_shared_ptr.hpp:110:18: error: no member named 'lock' in namespace 'std'; did you mean 'clock'?
  110 |             std::lock(m_mutex, ptr.m_mutex);
      |             ~~~~~^~~~
      |                  clock
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm.artifactbundle/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/ctime:71:9: note: 'clock' declared here
   71 | using ::clock _LIBCPP_USING_IF_EXISTS;
      |         ^
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/collection_change_builder.cpp:19:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/collection_change_builder.hpp:22:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/collection_notifications.hpp:23:
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/util/atomic_shared_ptr.hpp:120:14: error: no member named 'lock' in namespace 'std'; did you mean 'clock'?
  120 |         std::lock(m_mutex, ptr.m_mutex);
      |         ~~~~~^~~~
      |              clock
/root/.swiftpm/swift-sdks/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm.artifactbundle/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-05-30-a_wasm/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/ctime:71:9: note: 'clock' declared here
   71 | using ::clock _LIBCPP_USING_IF_EXISTS;
      |         ^
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/collection_change_builder.cpp:19:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/collection_change_builder.hpp:22:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/collection_notifications.hpp:23:
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/util/atomic_shared_ptr.hpp:129:30: error: no member named 'mutex' in namespace 'std'
  129 |         std::lock_guard<std::mutex> lock(m_mutex);
      |                         ~~~~~^
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/util/atomic_shared_ptr.hpp:136:30: error: no member named 'mutex' in namespace 'std'
  136 |         std::lock_guard<std::mutex> lock(m_mutex);
      |                         ~~~~~^
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/collection_change_builder.cpp:19:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/collection_change_builder.hpp:22:
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/collection_notifications.hpp:50:54: error: implicit instantiation of undefined template 'realm::util::AtomicSharedPtr<realm::_impl::CollectionNotifier>'
   50 |     util::AtomicSharedPtr<_impl::CollectionNotifier> m_notifier;
      |                                                      ^
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/util/atomic_shared_ptr.hpp:49:7: note: template is declared here
   49 | class AtomicSharedPtr;
      |       ^
[1/53] Compiling collection_change_builder.cpp
BUILD FAILURE 6.2 wasm