Skip to content

I tried to build the oxen-core in MacOS 15.0 Sequoia but got failed #1792

Description

@Cuong020900

Describe the bug

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/include/c++/v1/string:4085:1: note: candidate template ignored: could not match 'basic_string' against 'array'
In file included from /Users/trancuong/Sotatek/TEST/Oxen/oxen-core/src/ringct/rctOps.cpp:35:
In file included from /Users/trancuong/Sotatek/TEST/Oxen/oxen-core/src/cryptonote_basic/cryptonote_format_utils.h:41:
/Users/trancuong/Sotatek/TEST/Oxen/oxen-core/src/l2_tracker/events.h:53:10: error: return type of defaulted 'operator<=>' cannot be deduced because three-way comparison for member 'address' has a deduced return type and is not yet defined
    auto operator<=>(const ContributorV2& o) const = default;
         ^
/Users/trancuong/Sotatek/TEST/Oxen/oxen-core/src/l2_tracker/events.h:49:18: note: member 'address' declared here
    eth::address address;
                 ^
/Users/trancuong/Sotatek/TEST/Oxen/oxen-core/src/crypto/base.h:53:6: note: selected 'operator<=>' for member 'address' declared here
auto operator<=>(const T& left, const T& right) {
     ^
In file included from /Users/trancuong/Sotatek/TEST/Oxen/oxen-core/src/ringct/rctOps.cpp:35:
In file included from /Users/trancuong/Sotatek/TEST/Oxen/oxen-core/src/cryptonote_basic/cryptonote_format_utils.h:41:
/Users/trancuong/Sotatek/TEST/Oxen/oxen-core/src/l2_tracker/events.h:53:10: warning: explicitly defaulted three-way comparison operator is implicitly deleted [-Wdefaulted-function-deleted]
    auto operator<=>(const ContributorV2& o) const = default;
         ^
/Users/trancuong/Sotatek/TEST/Oxen/oxen-core/src/l2_tracker/events.h:49:18: note: defaulted 'operator<=>' is implicitly deleted because there is no viable three-way comparison function for member 'address'
    eth::address address;
                 ^
/Users/trancuong/Sotatek/TEST/Oxen/oxen-core/src/crypto/base.h:53:6: note: candidate template ignored: substitution failure [with T = eth::address]
auto operator<=>(const T& left, const T& right) {
     ^
/Users/trancuong/Sotatek/TEST/Oxen/oxen-core/src/l2_tracker/events.h:53:54: note: replace 'default' with 'delete'
    auto operator<=>(const ContributorV2& o) const = default;
                                                     ^~~~~~~
                                                     delete
1 warning and 2 errors generated.
make[2]: *** [src/ringct/CMakeFiles/ringct_basic.dir/rctOps.cpp.o] Error 1
make[1]: *** [src/ringct/CMakeFiles/ringct_basic.dir/all] Error 2
make: *** [all] Error 2

To Reproduce

  1. git clone --recurse-submodules https://github.com/oxen-io/oxen-core.git
    cd oxen-core
  2. brew install cmake pkg-config openssl zeromq
  3. mkdir build && cd build
  4. cmake ..
  5. make -j$(nproc)

Expected behaviour
Build success

Screenshots or Logs

Image

Additional Information (please complete the following information):

  • Operating System: MacOS 15.0, Macbook M1 Pro 14 inch
  • Local
  • commit hash: 70b3fbe

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions