The Swift Package Index logo.Swift Package Index

Build Information

Failed to build RealmCoder, reference master (8730ac), with Swift 6.1 for Wasm on 27 May 2025 15:59:41 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/OakCityLabs/RealmCoder.git
Reference: master
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/OakCityLabs/RealmCoder
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 8730ac1 Merge branch 'master' into documentation
Cloned https://github.com/OakCityLabs/RealmCoder.git
Revision (git rev-parse @):
8730ac1a45811fff4df2907adde5f1347a813ed4
SUCCESS checkout https://github.com/OakCityLabs/RealmCoder.git at master
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/OakCityLabs/RealmCoder.git
https://github.com/OakCityLabs/RealmCoder.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "realm-cocoa",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "4.4.1",
            "upper_bound" : "5.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/realm/realm-cocoa.git"
    }
  ],
  "manifest_display_name" : "RealmCoder",
  "name" : "RealmCoder",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "11.0"
    }
  ],
  "products" : [
    {
      "name" : "RealmCoder",
      "targets" : [
        "RealmCoder"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "5"
  ],
  "targets" : [
    {
      "c99name" : "RealmCoderTests",
      "module_type" : "SwiftTarget",
      "name" : "RealmCoderTests",
      "path" : "Tests/RealmCoderTests",
      "sources" : [
        "ModelTests/EnvelopedUserTests.swift",
        "ModelTests/FarmTests.swift",
        "ModelTests/MuppetTests.swift",
        "ModelTests/ParkingLotTests.swift",
        "ModelTests/PetFinderTests.swift",
        "ModelTests/UserTests.swift",
        "Models/Animal.swift",
        "Models/Farm.swift",
        "Models/Muppet.swift",
        "Models/User/EnvelopedUser.swift",
        "Models/User/User.swift",
        "Models/Vehicle/Car.swift",
        "Models/Vehicle/Motorcycle.swift",
        "Models/Vehicle/ParkingLot.swift",
        "Models/Vehicle/Vehicle.swift",
        "RealmCoderTests.swift",
        "Utils.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "RealmCoder"
      ],
      "type" : "test"
    },
    {
      "c99name" : "RealmCoder",
      "module_type" : "SwiftTarget",
      "name" : "RealmCoder",
      "path" : "Sources/RealmCoder",
      "product_dependencies" : [
        "RealmSwift"
      ],
      "product_memberships" : [
        "RealmCoder"
      ],
      "sources" : [
        "RealmCodable.swift",
        "RealmCoder.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
Fetching https://github.com/realm/realm-cocoa.git
[1/131268] Fetching realm-cocoa
Fetched https://github.com/realm/realm-cocoa.git from cache (9.37s)
Computing version for https://github.com/realm/realm-cocoa.git
Computed https://github.com/realm/realm-cocoa.git at 4.4.1 (9.96s)
Fetching https://github.com/realm/realm-core
[1/252487] Fetching realm-core
Fetched https://github.com/realm/realm-core from cache (16.30s)
Computing version for https://github.com/realm/realm-core
Computed https://github.com/realm/realm-core at 5.23.8 (16.89s)
Creating working copy for https://github.com/realm/realm-cocoa.git
Working copy of https://github.com/realm/realm-cocoa.git 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
[2/53] Compiling binding_callback_thread_observer.cpp
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/RLMQueryUtil.mm:19:
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/RLMQueryUtil.hpp:19:9: fatal error: 'Foundation/Foundation.h' file not found
   19 | #import <Foundation/Foundation.h>
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[3/53] Compiling RLMQueryUtil.mm
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/collection_notifier.cpp:19:
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);
      |                         ~~~~~^
[3/53] Compiling collection_notifier.cpp
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/RLMObjectStore.mm:19:
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/RLMObjectStore.h:19:9: fatal error: 'Foundation/Foundation.h' file not found
   19 | #import <Foundation/Foundation.h>
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
[3/53] Compiling RLMObjectStore.mm
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>
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
[3/53] Compiling RLMUtil.mm
[3/53] Compiling schema.cpp
[3/53] Write swift-version-24593BA9C3E375BF.txt
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/collection_notifications.cpp:19:
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-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/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/collection_notifications.cpp:19:
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-wasm-6.1-RELEASE-wasm32-unknown-wasi.artifactbundle/6.1-RELEASE-wasm32-unknown-wasi/wasm32-unknown-wasi/WASI.sdk/include/c++/v1/ctime:71:9: note: 'clock' declared here
   71 | using ::clock _LIBCPP_USING_IF_EXISTS;
      |         ^
[3/53] Compiling collection_notifications.cpp
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/RLMUpdateChecker.mm:21:
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/RLMRealm.h:19:9: fatal error: 'Foundation/Foundation.h' file not found
   19 | #import <Foundation/Foundation.h>
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
[3/53] Compiling RLMUpdateChecker.mm
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest swift build --swift-sdk wasm32-unknown-wasi 2>&1
wasm-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:7e37457820e5f17452a98118754f345f2619722c485f2db0d8b666940a83afd2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:wasm-6.1-latest
[0/1] Planning build
Building for debugging...
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/RLMSwiftSupport.m:19:
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/RLMSwiftSupport.h:19:9: fatal error: 'Foundation/Foundation.h' file not found
   19 | #import <Foundation/Foundation.h>
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[0/50] Compiling RLMSwiftSupport.m
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/RLMUpdateChecker.mm:21:
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/RLMRealm.h:19:9: fatal error: 'Foundation/Foundation.h' file not found
   19 | #import <Foundation/Foundation.h>
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
[0/50] Compiling RLMUpdateChecker.mm
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/RLMThreadSafeReference.mm:19:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/RLMThreadSafeReference_Private.hpp:19:
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/RLMThreadSafeReference.h:19:9: fatal error: 'Foundation/Foundation.h' file not found
   19 | #import <Foundation/Foundation.h>
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
[0/50] Compiling RLMThreadSafeReference.mm
[0/50] Compiling RLMResults.mm
[0/50] Compiling RLMRealmUtil.mm
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/RLMSchema.mm:19:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/RLMSchema_Private.h:19:
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/include/Realm/RLMSchema.h:19:9: fatal error: 'Foundation/Foundation.h' file not found
   19 | #import <Foundation/Foundation.h>
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
[0/50] Compiling RLMSchema.mm
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>
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
[0/50] Compiling RLMUtil.mm
[0/50] Write swift-version-24593BA9C3E375BF.txt
BUILD FAILURE 6.1 wasm