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

Linux Boost version mismatch for CXX20 #22

Closed
raneamri opened this issue Aug 2, 2024 · 7 comments
Closed

Linux Boost version mismatch for CXX20 #22

raneamri opened this issue Aug 2, 2024 · 7 comments

Comments

@raneamri
Copy link
Contributor

raneamri commented Aug 2, 2024

QuantLib expects Boost ver. ≥1.75.0 for CXX ≥20 but Linux fetches 1.74.0 with sudo apt install -y libboost-dev ccache ninja-build:

CMake Error at /usr/local/share/cmake-3.30/Modules/FindPackageHandleStandardArgs.cmake:233 (message):
  Could NOT find Boost: Found unsuitable version "1.74.0", but required is at
  least "1.75.0" (found /usr/include, )
@xcelerit-team
Copy link
Contributor

That depends on the Linux distribution and version and how it's setup I guess... Which Linux version are you using?

@raneamri
Copy link
Contributor Author

raneamri commented Aug 2, 2024

This error was produced by CI workflow, which is running on ubuntu-latest. No other change was made to the repos except for the addition of set(CMAKE_CXX_STANDARD 20) in QuantLib's CMake file when this error came up.

@xcelerit-team
Copy link
Contributor

Their development images used for building quantlib install boost from scratch. And the version used currently in their Linux builds is rolling. (see also here)

The container images can be found here, and we see it's using Boost 1.85.

Perhaps we should try to use the same container for our CI builds that QuantLib is using - that would make things easier to stay compatible....

@xcelerit-team
Copy link
Contributor

(and note that you can set the standard using the CMake command-line, i.e. add -DCMAKE_CXX_STANDARD=20 to the cmake configure call)

@raneamri
Copy link
Contributor Author

raneamri commented Aug 2, 2024

Good idea, I'll match the Linux workflow to QuantLib's. Is it also worth adding matrix configuration for CXX 20?

@xcelerit-team
Copy link
Contributor

yes

@raneamri
Copy link
Contributor Author

Should be fixed by #23

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