The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build CombineRealm with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.29.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/CombineCommunity/CombineRealm.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/CombineCommunity/CombineRealm
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 8812f34 fixes RealmSwift dependency version
Cloned https://github.com/CombineCommunity/CombineRealm.git
Revision (git rev-parse @):
8812f3472790c7a0467c4f917179ab5ae02212ce
SUCCESS checkout https://github.com/CombineCommunity/CombineRealm.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/CombineCommunity/CombineRealm.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Fetching https://github.com/realm/realm-core
Fetching https://github.com/realm/realm-cocoa.git
[1/129104] Fetching realm-cocoa
[51643/364096] Fetching realm-cocoa, realm-core
Fetched https://github.com/realm/realm-core from cache (17.60s)
Fetched https://github.com/realm/realm-cocoa.git from cache (17.62s)
Computing version for https://github.com/realm/realm-cocoa.git
Computed https://github.com/realm/realm-cocoa.git at 5.3.5 (0.63s)
Computing version for https://github.com/realm/realm-core
Computed https://github.com/realm/realm-core at 6.0.19 (0.51s)
Creating working copy for https://github.com/realm/realm-cocoa.git
Working copy of https://github.com/realm/realm-cocoa.git resolved at 5.3.5
Creating working copy for https://github.com/realm/realm-core
Working copy of https://github.com/realm/realm-core resolved at 6.0.19
warning: 'realm-cocoa': Invalid Source '/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/primitive_list_notifier.cpp': File not found.
Building for debugging...
While building module 'RealmCore' imported from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/schema.hpp:25:
In file included from <module-includes>:62:
/host/spi-builder-workspace/.build/checkouts/realm-core/src/external/pegtl/include/tao/pegtl/internal/demangle_nop.hpp:17:29: error: redefinition of 'demangle'
         inline std::string demangle( const char* symbol )
                            ^
/host/spi-builder-workspace/.build/checkouts/realm-core/src/external/pegtl/include/tao/pegtl/internal/demangle_cxxabi.hpp:22:29: note: previous definition is here
         inline std::string demangle( const char* symbol )
                            ^
While building module 'RealmCore' imported from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/schema.hpp:25:
In file included from <module-includes>:71:
/host/spi-builder-workspace/.build/checkouts/realm-core/src/external/pegtl/include/tao/pegtl/internal/endian_win.hpp:19:17: error: redefinition of 'to_and_from_le'
         struct to_and_from_le
                ^
/host/spi-builder-workspace/.build/checkouts/realm-core/src/external/pegtl/include/tao/pegtl/internal/endian_gcc.hpp:115:17: note: previous definition is here
         struct to_and_from_le
                ^
While building module 'RealmCore' imported from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/schema.hpp:25:
In file included from <module-includes>:71:
/host/spi-builder-workspace/.build/checkouts/realm-core/src/external/pegtl/include/tao/pegtl/internal/endian_win.hpp:32:17: error: redefinition of 'to_and_from_be<1>'
         struct to_and_from_be< 1 >
                ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/realm-core/src/external/pegtl/include/tao/pegtl/internal/endian_gcc.hpp:128:17: note: previous definition is here
         struct to_and_from_be< 1 >
                ^
While building module 'RealmCore' imported from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/schema.hpp:25:
In file included from <module-includes>:71:
/host/spi-builder-workspace/.build/checkouts/realm-core/src/external/pegtl/include/tao/pegtl/internal/endian_win.hpp:46:17: error: redefinition of 'to_and_from_be<2>'
         struct to_and_from_be< 2 >
                ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/realm-core/src/external/pegtl/include/tao/pegtl/internal/endian_gcc.hpp:142:17: note: previous definition is here
         struct to_and_from_be< 2 >
                ^
While building module 'RealmCore' imported from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/schema.hpp:25:
In file included from <module-includes>:71:
/host/spi-builder-workspace/.build/checkouts/realm-core/src/external/pegtl/include/tao/pegtl/internal/endian_win.hpp:60:17: error: redefinition of 'to_and_from_be<4>'
         struct to_and_from_be< 4 >
                ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/realm-core/src/external/pegtl/include/tao/pegtl/internal/endian_gcc.hpp:156:17: note: previous definition is here
         struct to_and_from_be< 4 >
                ^
While building module 'RealmCore' imported from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/schema.hpp:25:
In file included from <module-includes>:71:
/host/spi-builder-workspace/.build/checkouts/realm-core/src/external/pegtl/include/tao/pegtl/internal/endian_win.hpp:83:17: error: redefinition of 'to_and_from_be<8>'
         struct to_and_from_be< 8 >
                ^~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/.build/checkouts/realm-core/src/external/pegtl/include/tao/pegtl/internal/endian_gcc.hpp:179:17: note: previous definition is here
         struct to_and_from_be< 8 >
                ^
While building module 'RealmCore' imported from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/schema.hpp:25:
In file included from <module-includes>:159:
/host/spi-builder-workspace/.build/checkouts/realm-core/src/external/pegtl/src/example/pegtl/double.hpp:7:10: fatal error: 'tao/pegtl.hpp' file not found
#include <tao/pegtl.hpp>
         ^~~~~~~~~~~~~~~
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/schema.hpp:25:10: fatal error: could not build module 'RealmCore'
#include <realm/util/features.h>
 ~~~~~~~~^
8 errors generated.
[0/54] Compiling realm_coordinator.cpp
[0/54] Compiling collection_notifier.cpp
[0/54] Compiling weak_realm_notifier.cpp
[0/54] Compiling object_notifier.cpp
[0/54] Compiling list_notifier.cpp
[0/54] Compiling results_notifier.cpp
[0/54] Compiling transact_log_handler.cpp
[0/54] Write swift-version-24593BA9C3E375BF.txt
warning: 'realm-cocoa': Invalid Source '/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/primitive_list_notifier.cpp': File not found.
[0/1] Planning build
Building for debugging...
[0/54] Write sources
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
#import <Foundation/Foundation.h>
        ^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[1/54] Compiling RLMSwiftSupport.m
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
#import <Foundation/Foundation.h>
        ^~~~~~~~~~~~~~~~~~~~~~~~~
[1/54] Compiling RLMUtil.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
#import <Foundation/Foundation.h>
        ^~~~~~~~~~~~~~~~~~~~~~~~~
[1/54] Compiling RLMThreadSafeReference.mm
[1/54] Compiling RLMRealmUtil.mm
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/RLMResults.mm:19:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/RLMResults_Private.hpp:19:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/RLMResults_Private.h:19:
In file included from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/include/Realm/RLMResults.h:19:
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/include/Realm/RLMCollection.h:19:9: fatal error: 'Foundation/Foundation.h' file not found
#import <Foundation/Foundation.h>
        ^~~~~~~~~~~~~~~~~~~~~~~~~
[1/54] Compiling RLMResults.mm
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
#import <Foundation/Foundation.h>
        ^~~~~~~~~~~~~~~~~~~~~~~~~
[1/54] Compiling RLMUpdateChecker.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
#import <Foundation/Foundation.h>
        ^~~~~~~~~~~~~~~~~~~~~~~~~
[1/54] Compiling RLMSchema.mm
[1/54] Write swift-version-24593BA9C3E375BF.txt
BUILD FAILURE 5.10 linux