Bug 12762

Summary: cmake 3.10.3 unable to find boost 1.66.0
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Dennis Menschel <menschel-d>
Component: devtools / tool chainAssignee: Armin Kuster <akuster>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: c.a.strahl, meta.mr.watcher, meta.watcher
Version: 2.5.1   
Target Milestone: 2.6   
Hardware: x86   
OS: Multiple   
Whiteboard: with backport to 2.5.1
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
Log of do_configure task for example recipe (sumo, failed)
none
Log of do_configure task for example recipe (rocko, succeeded)
none
Minimal working example to reproduce error none

Description Dennis Menschel 2018-05-30 08:16:01 UTC
Created attachment 4313 [details]
Log of do_configure task for example recipe (sumo, failed)

Branch sumo currently includes cmake 3.10.3 and boost 1.66.0.
Unfortunately, that version of cmake can only find boost versions of up to 1.65.1.

Attached are the logs from the do_configure task for both sumo (where the error occurs) and rocko (where the error does not occur).
Also attached is a minimal working example that has been used to test and reproduce the error.


Preconditions/Environment
-------------------------
poky.git: b369e613a1d3af6439905724031aa2b75423aeee


Triggering Action/Cause
-----------------------
Try to build a recipe with a cmake-based project that requires boost.


Expectation
-----------
Boost and its required components are found.


Actual Result
-------------
Required components are not found.


Reproducibility
---------------
Always.


Possible Solution
-----------------
The current version 3.11.2 of cmake knows how to find boost up to version 1.67.0, so a reasonable solution would be to upgrade cmake.
Comment 1 Dennis Menschel 2018-05-30 08:17:36 UTC
Created attachment 4314 [details]
Log of do_configure task for example recipe (rocko, succeeded)
Comment 2 Dennis Menschel 2018-05-30 08:19:44 UTC
Created attachment 4315 [details]
Minimal working example to reproduce error
Comment 3 Christian Strahl 2018-05-30 11:15:20 UTC
I've exactly the same problem.

Since cmake-3.11 is required to use boost-1.66, both has to be available in sumo.

(As a workaround I've added cmake-3.11 to my own layer)
Comment 4 Armin Kuster 2018-06-03 16:22:28 UTC
this should affect Master. it is at the same cmake version as sumo is currently.
Comment 5 Armin Kuster 2018-06-03 17:48:55 UTC
found some patches we will need to backport
Comment 6 Armin Kuster 2018-06-03 18:03:10 UTC
cmake commit:
https://gitlab.kitware.com/cmake/cmake/commit/433a2d495a2481c63b82c11a30f7c642d6abe63f fixed it for sumo
Comment 7 Armin Kuster 2018-06-03 18:04:18 UTC
Master will need to have cmake updated or more patches back ported to support boost 1.67
Comment 10 Armin Kuster 2018-06-09 20:17:32 UTC
sent a selftest for cmake to the list too
Comment 11 Armin Kuster 2018-06-10 00:05:01 UTC
sumo build passed.

may be in sumo proper in the next merge by RP
Comment 13 Armin Kuster 2018-09-06 15:03:10 UTC
.