[MDEV-21734] wsrep-lib fails to configure or error message is misleading Created: 2020-02-13  Updated: 2020-06-10  Resolved: 2020-06-10

Status: Closed
Project: MariaDB Server
Component/s: Galera
Affects Version/s: 10.5
Fix Version/s: N/A

Type: Bug Priority: Minor
Reporter: Aleksey Midenkov Assignee: Teemu Ollakka
Resolution: Not a Bug Votes: 0
Labels: None


 Description   

 CMake Error at /usr/share/cmake-3.15/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
   Could NOT find Boost (missing: unit_test_framework) (found suitable version
   "1.67.0", minimum required is "1.54.0")
 Call Stack (most recent call first):
   /usr/share/cmake-3.15/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
   /usr/share/cmake-3.15/Modules/FindBoost.cmake:2161 (find_package_handle_standard_args)
   wsrep-lib/CMakeLists.txt:93 (find_package)

As I can understand from the message I have "1.67.0" and minimum required is "1.54.0", so no reason to fail IMO.

Actually, it's because of missing some boost packages, so it's the message `(found suitable version
"1.67.0", minimum required is "1.54.0")` which is misleading. It contradicts with same line `Could NOT find Boost` btw... Please forward to correct person of CMake scripting.



 Comments   
Comment by Teemu Ollakka [ 2020-05-29 ]

This seems to be the way the cmake Boost module reports missing library. With cmake 3.16.3 and following the documentation https://cmake.org/cmake/help/latest/module/FindBoost.html

cmake_minimum_required (VERSION 3.10)
project(test)
find_package(Boost 1.59.0 COMPONENTS unit_test_framework)

reports

-- Could NOT find Boost: missing: unit_test_framework (found /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake (found suitable version "1.71.0", minimum required is "1.59.0"))

if some some Boost components are present but unit_test_framework is not.

Generated at Thu Feb 08 09:09:24 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.