Skip to content

Fails to build against boost 1.90. #292

@sorenstoutner

Description

@sorenstoutner

When building against boost 1.90, I receive the following error:

/build/package/package/monero/contrib/epee/src/abstract_http_client.cpp:41:23: error: ‘floor’ was not declared in this scope; did you mean ‘std::chrono::floor’?
   41 |       num_char = (int)floor((float)num_char / (float)radix);
      |                       ^~~~~
      |                       std::chrono::floor
In file included from /usr/include/c++/15/chrono:45,
                 from /build/package/package/monero/contrib/epee/include/net/net_ssl.h:32,
                 from /build/package/package/monero/contrib/epee/include/net/abstract_http_client.h:31,
                 from /build/package/package/monero/contrib/epee/src/abstract_http_client.cpp:1:
/usr/include/c++/15/bits/chrono.h:1045:7: note: ‘std::chrono::floor’ declared here
 1045 |       floor(const time_point<_Clock, _Dur>& __tp)
      |       ^~~~~
make[3]: *** [monero/contrib/epee/src/CMakeFiles/obj_epee.dir/build.make:124: monero/contrib/epee/src/CMakeFiles/obj_epee.dir/abstract_http_client.cpp.o] Error 1

https://salsa.debian.org/cryptocoin-team/feather-wallet/-/jobs/9172497#L3703

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