You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, I'm not sure if this library is intended to be used outside of the Xcode/iOS/macOS environment so, if it's not, feel free to close this issue immediately.
That said, the issue is actually pretty straightforward: adding realm-swift to a Swift project on Linux breaks the build.
Stacktrace & log output
~/realm-demo$ swift build
Building for debugging...
In file included from ~/realm-demo/.build/checkouts/realm-core/src/external/s2/util/math/mathlimits.cc:6:
~/realm-demo/.build/checkouts/realm-core/src/external/s2/util/math/mathlimits.h:18:10: fatal error: 'cfloat' file not found
#include <cfloat>
^~~~~~~~
1 error generated.
In file included from ~/realm-demo/.build/checkouts/realm-core/src/external/s2/util/math/mathutil.cc:10:
~/realm-demo/.build/checkouts/realm-core/src/external/s2/util/math/mathlimits.h:18:10: fatal error: 'cfloat' file not found
#include <cfloat>
^~~~~~~~
In file included from ~/realm-demo/.build/checkouts/realm-core/src/external/s2/s2latlng.cc:2:
~/realm-demo/.build/checkouts/realm-core/src/external/s2/s2.h:10:10: fatal error: 'algorithm' file not found
#include <algorithm>
^~~~~~~~~~~
In file included from ~/realm-demo/.build/checkouts/realm-core/src/external/s2/s2r2rect.cc:3:
In file included from ~/realm-demo/.build/checkouts/realm-core/src/external/s2/s2r2rect.h:6:
In file included from ~/realm-demo/.build/checkouts/realm-core/src/external/s2/base/basictypes.h:9:
~/realm-demo/.build/checkouts/realm-core/src/external/s2/base/casts.h:16:10: fatal error: 'typeinfo' file not found
#include <typeinfo> // for enumeration casts and tests
^~~~~~~~~~
~/realm-demo/.build/checkouts/realm-core/src/external/s2/s2polyline.cc:3:10: fatal error: 'set' file not found
#include <set>
^~~~~
In file included from ~/realm-demo/.build/checkouts/realm-core/src/external/s2/s2polygonbuilder.cc:3:
In file included from ~/realm-demo/.build/checkouts/realm-core/src/external/s2/s2polygonbuilder.h:7:
~/realm-demo/.build/checkouts/realm-core/src/external/s2/hash.h:4:10: fatal error: 'unordered_map' file not found
#include <unordered_map>
^~~~~~~~~~~~~~~
~/realm-demo/.build/checkouts/realm-core/src/external/s2/s2loop.cc:3:10: fatal error: 'algorithm' file not found
#include <algorithm>
^~~~~~~~~~~
In file included from ~/realm-demo/.build/checkouts/realm-core/src/external/s2/s2pointregion.cc:3:
In file included from ~/realm-demo/.build/checkouts/realm-core/src/external/s2/s2pointregion.h:6:
In file included from ~/realm-demo/.build/checkouts/realm-core/src/external/s2/base/logging.h:17:
In file included from ~/realm-demo/.build/checkouts/realm-core/src/realm/util/assert.hpp:23:
~/realm-demo/.build/checkouts/realm-core/src/realm/util/terminate.hpp:22:10: fatal error: 'cstdlib' file not found
#include <cstdlib>
^~~~~~~~~
~/realm-demo/.build/checkouts/realm-core/src/external/s2/s2latlngrect.cc:3:10: fatal error: 'algorithm' file not found
#include <algorithm>
^~~~~~~~~~~
In file included from ~/realm-demo/.build/checkouts/realm-core/src/external/s2/s2region.cc:3:
In file included from ~/realm-demo/.build/checkouts/realm-core/src/external/s2/s2region.h:6:
~/realm-demo/.build/checkouts/realm-core/src/external/s2/s2.h:10:10: fatal error: 'algorithm' file not found
#include <algorithm>
^~~~~~~~~~~
~/realm-demo/.build/checkouts/realm-core/src/external/s2/s2polygon.cc:3:10: fatal error: 'algorithm' file not found
#include <algorithm>
^~~~~~~~~~~
Can you reproduce the bug?
Always
Reproduction Steps
Install Swift (Linux installation instructions here, I used the tarball option)
Init a Swift project with
mkdir RealmDemo
cd RealmDemo
swift package init --name RealmDemo
Add the realm-swift dependency in Package.swift
Run swift build to build the project
Version
10.50.0
What Atlas Services are you using?
Local Database only
Are you using encryption?
No
Platform OS and version(s)
Linux Mint 19.3 (Ubuntu 22.04)
Build environment
Swift: 5.10
The text was updated successfully, but these errors were encountered:
Per my comment on the other issue, only Apple platforms are currently supported. We do have long-term plans to create a pure Swift SDK that can run anywhere, but we're still very far from that future and there's no certainty it will ever arrive.
How frequently does the bug occur?
Always
Description
First of all, I'm not sure if this library is intended to be used outside of the Xcode/iOS/macOS environment so, if it's not, feel free to close this issue immediately.
That said, the issue is actually pretty straightforward: adding
realm-swift
to a Swift project on Linux breaks the build.Stacktrace & log output
Can you reproduce the bug?
Always
Reproduction Steps
mkdir RealmDemo cd RealmDemo swift package init --name RealmDemo
realm-swift
dependency inPackage.swift
swift build
to build the projectVersion
10.50.0
What Atlas Services are you using?
Local Database only
Are you using encryption?
No
Platform OS and version(s)
Linux Mint 19.3 (Ubuntu 22.04)
Build environment
Swift: 5.10
The text was updated successfully, but these errors were encountered: