Skip to content
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

in boost 1.87 io_service has been removed, use io_context instead #6373

Open
stefanottili opened this issue Dec 17, 2024 · 0 comments
Open
Assignees

Comments

@stefanottili
Copy link

Describe the bug

Mac M1: brew upgrade upgraded boost from 1.86 to 1.87, now the compile fails with:

OpenROAD/src/dst/src/WorkerConnection.h:46:26: error: no type named 'io_service' in namespace 'boost::asio'
   46 |   WorkerConnection(asio::io_service& io_service,
      |                    ~~~~~~^

googling found this:

boost 1.87:

io_service was deprecated in favor of io_context back in 1.66.0 
(https://github.com/boostorg/asio/commit/b60e92b13ef68dfbb9af180d76eae41d22e19356).
Easiest approach is to require a minimum of Boost 1.66.0 and use newer APIs.
Otherwise, would need to create many #if BOOST_VERSION ... conditions for compatibility.

Expected Behavior

compile using boost 1.87

Environment

M1 Mac homebrew

To Reproduce

build using boost 1.87

Relevant log output

No response

Screenshots

No response

Additional Context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants