Build Information
Failed to build CombineRealm with Swift 5.10 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4606859-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: 2.0.1
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/CombineCommunity/CombineRealm
* tag 2.0.1 -> FETCH_HEAD
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 2.0.1
========================================
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-4606859-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
[76173/364096] Fetching realm-cocoa, realm-core
Fetched https://github.com/realm/realm-core from cache (15.17s)
Fetched https://github.com/realm/realm-cocoa.git from cache (15.19s)
Computing version for https://github.com/realm/realm-cocoa.git
Computed https://github.com/realm/realm-cocoa.git at 5.3.5 (0.52s)
Computing version for https://github.com/realm/realm-core
Computed https://github.com/realm/realm-core at 6.0.19 (0.45s)
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/impl/external_commit_helper.hpp:22:
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/impl/external_commit_helper.hpp:22:
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/impl/external_commit_helper.hpp:22:
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/impl/external_commit_helper.hpp:22:
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/impl/external_commit_helper.hpp:22:
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/impl/external_commit_helper.hpp:22:
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/impl/external_commit_helper.hpp:22:
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/apple/external_commit_helper.cpp:19:
/host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/ObjectStore/src/impl/external_commit_helper.hpp:22:10: fatal error: could not build module 'RealmCore'
#include <realm/util/features.h>
~~~~~~~~^
8 errors generated.
[0/54] Compiling external_commit_helper.cpp
[0/54] Compiling keychain_helper.cpp
[0/54] Compiling index_set.cpp
[0/54] Compiling list.cpp
[0/54] Compiling collection_notifications.cpp
[0/54] Compiling collection_change_builder.cpp
[0/54] Write swift-version-24593BA9C3E375BF.txt
[0/54] Compiling collection_notifier.cpp
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
[1/54] Compiling RLMRealmUtil.mm
[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/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
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
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
[1/54] Write swift-version-24593BA9C3E375BF.txt
BUILD FAILURE 5.10 linux