The Swift Package Index logo.Swift Package Index

Build Information

Failed to build RealmCoder 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/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:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/OakCityLabs/RealmCoder.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/129087] Fetching realm-cocoa
[72290/363981] Fetching realm-cocoa, realm-core
Fetched https://github.com/realm/realm-core from cache (21.68s)
Fetched https://github.com/realm/realm-cocoa.git from cache (21.71s)
Computing version for https://github.com/realm/realm-cocoa.git
Computed https://github.com/realm/realm-cocoa.git at 4.4.1 (0.54s)
Computing version for https://github.com/realm/realm-core
Computed https://github.com/realm/realm-core at 5.23.8 (0.49s)
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
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>
        ^~~~~~~~~~~~~~~~~~~~~~~~~
While building module 'RealmCore' imported from /host/spi-builder-workspace/.build/checkouts/realm-cocoa/Realm/RLMUtil.hpp:23:
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/RLMUtil.hpp:23:
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/RLMUtil.hpp:23:
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/RLMUtil.hpp:23:
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/RLMUtil.hpp:23:
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/RLMUtil.hpp:23:
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/RLMUtil.hpp:23:
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>
         ^~~~~~~~~~~~~~~
8 errors generated.
[2/53] Compiling RLMUtil.mm
[2/53] Compiling keychain_helper.cpp
[2/53] Compiling list_notifier.cpp
[2/53] Compiling collection_notifier.cpp
[2/53] Write swift-version-24593BA9C3E375BF.txt
[2/53] Compiling collection_change_builder.cpp
[2/53] Compiling object_notifier.cpp
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>
 ~~~~~~~~^
[2/53] Compiling external_commit_helper.cpp
[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
#import <Foundation/Foundation.h>
        ^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[0/51] Compiling RLMSwiftSupport.m
[0/51] Compiling RLMRealmUtil.mm
[0/51] Compiling RLMResults.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>
        ^~~~~~~~~~~~~~~~~~~~~~~~~
[0/51] Compiling RLMThreadSafeReference.mm
[0/51] 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>
        ^~~~~~~~~~~~~~~~~~~~~~~~~
[0/51] 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>
        ^~~~~~~~~~~~~~~~~~~~~~~~~
[0/51] Compiling RLMUtil.mm
[0/51] Write swift-version-24593BA9C3E375BF.txt
BUILD FAILURE 5.10 linux

Build Machine: Linux 1