Skip to content

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

@stefanottili

Description

@stefanottili

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

Metadata

Metadata

Assignees

Labels

dstDistribution Processing Infrastructure

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions