Project

General

Profile

Bug #37771

Warn the user when different version of boost is used

Added by Jos Collin about 5 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
build
Target version:
-
% Done:

0%

Source:
Community (dev)
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

It is possible to cheat cmake when libboost-dev (version older than 1.67) is installed in your building host, without specifying -DWITH_SYSTEM_BOOST=ON and also have a copy of boost in build/boost. In such cases, cmake is happy with the one in build/boost. But the compiler is not, as the preprocessor pulled in the header in /usr/include/boost. We need to at least warn the user to watch out this discrepancy.

Please see the discussion here: https://github.com/ceph/ceph/pull/25640#discussion_r243767152

Also available in: Atom PDF