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

boost::serialization from the boost 1.74 library fails to compile on AppleClang #1927

Closed
1 of 7 tasks
jngrad opened this issue Oct 28, 2020 · 3 comments
Closed
1 of 7 tasks

Comments

@jngrad
Copy link

jngrad commented Oct 28, 2020

Description
brew install boost install boost 1.74, which is not compatible with the AppleClang 12 compiler. Compiling C++ code containing a include to boost::serialization headers can fail with error: explicit specialization of undeclared template struct 'version'. Can be solved by rolling back to boost 1.73.

Area for Triage:

Question, Bug, or Feature?:
Bug

Virtual environments affected

  • Ubuntu 16.04
  • Ubuntu 18.04
  • Ubuntu 20.04
  • macOS 10.15
  • macOS 11.0
  • Windows Server 2016 R2
  • Windows Server 2019

Expected behavior
brew install boost boost-mpi should install a boost version other than 1.74.
brew install [email protected] [email protected] should install the 1.73 version.

Actual behavior
brew install boost boost-mpi install the 1.74 version, which cannot compile with AppleClang: run 1322746536.
The previous version of boost available until today was 1.73, but cannot be installed anymore: run 1322911956, run 1322700474.

Repro steps

  1. run brew install boost boost-mpi
  2. compile any .cpp file containing #include <boost/serialization/optional.hpp> with AppleClang

Here is a minimal project: jngrad/espresso@boost174-appleclang12. The GitHub Action fails.

The regression was introduced in the boost 1.74 library and will probably get fixed in 1.75. See tickets boostorg/serialization#210 and boostorg/serialization#217. Here are links to the MWE that passes with 1.73 and fails with 1.74.

@maxim-lobanov
Copy link
Contributor

@jngrad Hello,
Could you please clarify what is the issue with GitHub Actions images? We don't provide boost on MacOS images and don't control version that is installed from brew.

@jngrad
Copy link
Author

jngrad commented Oct 28, 2020

We don't provide boost on MacOS images and don't control version that is installed from brew.

My mistake. Ticket can be closed. Sorry for the inconvenience!

@maxim-lobanov
Copy link
Contributor

Sure, no problem.
I suggest reporting this issue to brew or boost team. Probably they can provide formula for 1.73 separately from 1.74

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

3 participants