-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Boost 1.70: #2905
Support Boost 1.70: #2905
Conversation
Jenkins Build SummaryBuilt from this commit Built at 20190517 - 21:31:00 Test Results
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Passes all tests on macOS.
Needs these updated build instructions for macOS: HowardHinnant@8553a36
Pushed with updated readme with @HowardHinnant changes. Note: reverted the change saying the min version was 1.70. I believe it's still 1.67 with this commit. |
I'll double check that. I tried with boost 1.67 and it failed. But I now think that during yesterday's boost 1.70 linker warning hunt I left my 1.67 in a compromised state. Rebuilding 1.67 and will retest this against it, and will comment back here. |
Re-added @HowardHinnant docs about 1.70 being the min boost version on mac. There are build issues with older versions. |
More info: I'm unable to build boost 1.67 with the latest Apple developer tools. However boost binaries are available (https://sourceforge.net/projects/boost/files/boost-binaries/). And I've confirmed that this commit works with boost 1.67, assuming 1.67 is already built. |
Thanks @HowardHinnant Given this is a boost build issue and not a rippled issue, I changed the min version back to 1.67 |
The the gcc.debug jenkins test are failing with |
Tested on Windows using Boost 1.67, 1.69 and 1.70 final. |
|
||
namespace ripple { | ||
|
||
// Before boost 1.70, get_lowest_layer required an explicit templat parameter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
misspell templat
Rebased and pushed FindBoost change from @mellery451 |
This patch removes calls to several deprecated asio functions. * `io_service::post` becomes `post` (free function) * `io_service::work` becomes `executor_work_guard` * `io_service::wrap` becomes `bind_executor` * `get_io_context` becomes `get_executor` or `get_executor().context()` This patch was tested with boost 1.69 and 1.70. The functions `ripple::get_lowest_layer` and `beast::create_waitable_timer` are required to handle a breaking difference between these versions. When rippled no longer needs to support pre 1.70 boost versions, both of these functions may be removed, and the waitable timer injections may also be removed.
This patch removes calls to several deprecated asio functions.
io_service::post
becomespost
(free function)io_service::work
becomesexecutor_work_guard
io_service::wrap
becomesbind_executor
get_io_context
becomesget_executor
orget_executor().context()
This patch was tested with boost 1.69 and 1.70. The functions
ripple::get_lowest_layer
andbeast::create_waitable_timer
are required tohandle a breaking difference between these versions. When rippled no longer
needs to support pre 1.70 boost versions, both of these functions may be
removed, and the waitable timer injections may also be removed.
Note: this was tested against boost 1.69 and boost 1.70 rc2. We should not merge this until we test against the actual released boost 1.70.
@HowardHinnant @miguelportilla