<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>12833</bug_id>
          
          <creation_ts>2018-06-30 10:26:27 +0000</creation_ts>
          <short_desc>boost_python3 cannot be found after update to boost-1.67</short_desc>
          <delta_ts>2018-10-18 09:20:28 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>oe-core other</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.6 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Lukas Bulwahn">lukas.bulwahn</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>mingli.yu</cc>
    
    <cc>randy.macleod</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>80985</commentid>
    <comment_count>0</comment_count>
    <who name="Lukas Bulwahn">lukas.bulwahn</who>
    <bug_when>2018-06-30 10:26:27 +0000</bug_when>
    <thetext>After the boost update to 1.67 (http://git.openembedded.org/openembedded-core/commit/meta/recipes-support/boost?id=358cf46ea4d01b7ad8c355fa103d4a6922cc0a88),
boost_python3 is not found during do_configure:

```
| CMake Error at /home/lukas/repositories/openembedded.org/openembedded-core/build/tmp-glibc/work/i586-oe-linux/camera-calibration-parsers/1.11.13-r0/recipe-sysroot-native/usr/share/cmake-3.10/Modules/FindBoost.cmake:2050 (message):
|   Unable to find the requested Boost libraries.
| 
|   Boost version: 1.67.0
| 
|   Boost include path:
|   /home/lukas/repositories/openembedded.org/openembedded-core/build/tmp-glibc/work/i586-oe-linux/camera-calibration-parsers/1.11.13-r0/recipe-sysroot/usr/include
| 
| 
|   Could not find the following Boost libraries:
| 
|           boost_python3
| 
|   Some (but not all) of the required Boost libraries were found.  You may
|   need to install these additional Boost libraries.  Alternatively, set
|   BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT
|   to the location of Boost.
```

This issue was discovered in the meta-ros layer, where the recipes camera-calibration-parsers and cv-bridge fail when using python3 support.

The CMakeLists.txt of those packages just contain:

find_package(PythonLibs)
if(PYTHONLIBS_VERSION_STRING VERSION_LESS 3)
    find_package(Boost REQUIRED python)
else()
    find_package(Boost REQUIRED python3)
endif()

When python3 is used, the configure step fails.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81015</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2018-07-05 14:45:23 +0000</bug_when>
    <thetext>This should have been fixed in master with &quot;cmake: fix build issue with boost 1.67.0&quot; (oe-core 04f367e27e66105466611bee4d63abc78e0a4725).

Lukas, can you verify this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81020</commentid>
    <comment_count>2</comment_count>
    <who name="Lukas Bulwahn">lukas.bulwahn</who>
    <bug_when>2018-07-05 16:13:01 +0000</bug_when>
    <thetext>My clean build is now running to check that; will come back to you on this tomorrow-ish.

Lukas</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81022</commentid>
    <comment_count>3</comment_count>
    <who name="Lukas Bulwahn">lukas.bulwahn</who>
    <bug_when>2018-07-05 17:24:23 +0000</bug_when>
    <thetext>My test build just ran through on this build configuration:

Build Configuration:
BB_VERSION           = &quot;1.37.0&quot;
BUILD_SYS            = &quot;x86_64-linux&quot;
NATIVELSBSTRING      = &quot;ubuntu-16.04&quot;
TARGET_SYS           = &quot;i586-oe-linux&quot;
MACHINE              = &quot;qemux86&quot;
DISTRO               = &quot;nodistro&quot;
DISTRO_VERSION       = &quot;nodistro.0&quot;
TUNE_FEATURES        = &quot;m32 i586&quot;
TARGET_FPU           = &quot;&quot;
meta                 = &quot;master:416a8c241aff0dca6b8b123e52cf8e2d40c74c8d&quot;
meta-oe              
meta-python          
meta-multimedia      = &quot;master:4517d1c695efd0b175f4e7242e1a7bb4361527d9&quot;
meta-ros             = &quot;master:dd424fbc01c29ea16c0dfc011e52e11750c729f2&quot;


It did fail as pointed out already with not finding boost_python3.

Summary: 2 tasks failed:
  /home/lukas/repositories/github.com/bmwcarit/meta-ros/recipes-ros/image-common/camera-calibration-parsers_1.11.13.bb:do_configure
  /home/lukas/repositories/github.com/bmwcarit/meta-ros/recipes-ros/vision-opencv/cv-bridge_1.11.16.bb:do_configure
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

So that commit you mentioned did not resolve the issue yet.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81030</commentid>
    <comment_count>4</comment_count>
    <who name="Stephen K Jolley">sjolley.yp.pm</who>
    <bug_when>2018-07-06 16:17:23 +0000</bug_when>
    <thetext>It appears you question has been answered.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81550</commentid>
    <comment_count>5</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2018-09-13 15:13:01 +0000</bug_when>
    <thetext>Grace, Please check if this is a problem and work with Ross&apos;s help if needed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81574</commentid>
    <comment_count>6</comment_count>
    <who name="Mingli Yu">mingli.yu</who>
    <bug_when>2018-09-19 03:19:25 +0000</bug_when>
    <thetext>There is should be python3 exist after update to boost-1.67.

Compared the previous /usr/lib64/libboost_python3.so.1.66.0, there is /usr/lib64/libboost_python35.so.1.68.0 as the logic in below commit:

https://github.com/boostorg/python/commit/d4d41d94aecc9f8098aabd3587fcb95458451f71</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81575</commentid>
    <comment_count>7</comment_count>
    <who name="Mingli Yu">mingli.yu</who>
    <bug_when>2018-09-19 03:27:15 +0000</bug_when>
    <thetext>(In reply to comment #6)
&gt; There is should be python3 exist after update to boost-1.67.
&gt; 
&gt; Compared the previous /usr/lib64/libboost_python3.so.1.66.0, there is
&gt; /usr/lib64/libboost_python35.so.1.68.0 as the logic in below commit:

It should be /usr/lib64/libboost_python35.so.1.67.0 in boost-1.67.

&gt; 
&gt; https://github.com/boostorg/python/commit/
&gt; d4d41d94aecc9f8098aabd3587fcb95458451f71</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81576</commentid>
    <comment_count>8</comment_count>
    <who name="Mingli Yu">mingli.yu</who>
    <bug_when>2018-09-19 05:26:11 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; My test build just ran through on this build configuration:
&gt; 
&gt; Build Configuration:
&gt; BB_VERSION           = &quot;1.37.0&quot;
&gt; BUILD_SYS            = &quot;x86_64-linux&quot;
&gt; NATIVELSBSTRING      = &quot;ubuntu-16.04&quot;
&gt; TARGET_SYS           = &quot;i586-oe-linux&quot;
&gt; MACHINE              = &quot;qemux86&quot;
&gt; DISTRO               = &quot;nodistro&quot;
&gt; DISTRO_VERSION       = &quot;nodistro.0&quot;
&gt; TUNE_FEATURES        = &quot;m32 i586&quot;
&gt; TARGET_FPU           = &quot;&quot;
&gt; meta                 = &quot;master:416a8c241aff0dca6b8b123e52cf8e2d40c74c8d&quot;
&gt; meta-oe              
&gt; meta-python          
&gt; meta-multimedia      = &quot;master:4517d1c695efd0b175f4e7242e1a7bb4361527d9&quot;
&gt; meta-ros             = &quot;master:dd424fbc01c29ea16c0dfc011e52e11750c729f2&quot;
&gt; 
&gt; 
&gt; It did fail as pointed out already with not finding boost_python3.
&gt; 
&gt; Summary: 2 tasks failed:
&gt;  
&gt; /home/lukas/repositories/github.com/bmwcarit/meta-ros/recipes-ros/image-
&gt; common/camera-calibration-parsers_1.11.13.bb:do_configure
&gt;  
&gt; /home/lukas/repositories/github.com/bmwcarit/meta-ros/recipes-ros/vision-
&gt; opencv/cv-bridge_1.11.16.bb:do_configure
&gt; Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
&gt; 
&gt; So that commit you mentioned did not resolve the issue yet.

I didn&apos;t encounter the build issue as you paste.
Could you help to provide your reproduce steps?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81679</commentid>
    <comment_count>9</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2018-10-01 15:09:52 +0000</bug_when>
    <thetext>Lukas, can you reproduce this with master?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81682</commentid>
    <comment_count>10</comment_count>
    <who name="Lukas Bulwahn">lukas.bulwahn</who>
    <bug_when>2018-10-01 16:17:54 +0000</bug_when>
    <thetext>Hi Mingli, hi Ross,

I have seen your request to try to reproduce, but was really way too busy the last few days to take action and answer. I will try to reproduce it tomorrow morning (CET) and report back if it is resolved or not.

Lukas</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81694</commentid>
    <comment_count>11</comment_count>
    <who name="Lukas Bulwahn">lukas.bulwahn</who>
    <bug_when>2018-10-02 07:59:15 +0000</bug_when>
    <thetext>I can still reproduce the issue on the following build when enabling

ROS_USE_PYTHON3 = &quot;yes&quot;

in my local.conf

and this build configuration:

Build Configuration:
BB_VERSION           = &quot;1.39.1&quot;
BUILD_SYS            = &quot;x86_64-linux&quot;
NATIVELSBSTRING      = &quot;ubuntu-16.04&quot;
TARGET_SYS           = &quot;x86_64-oe-linux&quot;
MACHINE              = &quot;qemux86-64&quot;
DISTRO               = &quot;nodistro&quot;
DISTRO_VERSION       = &quot;nodistro.0&quot;
TUNE_FEATURES        = &quot;m64 core2&quot;
TARGET_FPU           = &quot;&quot;
meta                 = &quot;master:8dcd4e6e791c3a8b8bf5e69dca9bb9c887231d69&quot;
meta-oe              
meta-python          
meta-multimedia      = &quot;master:d273070293cf646fb399167dccc1a1b18dc41cb6&quot;
meta-ros             = &quot;master:ad00e80bd424095c0de08590c5d0df87091c36ae&quot;

Then, 

  meta-ros/recipes-ros/vision-opencv/cv-bridge_1.11.16.bb:do_configure
  meta-ros/recipes-ros/image-common/camera-calibration-parsers_1.11.13.bb:do_configure

both fail with:

|   Unable to find the requested Boost libraries.
| 
|   Boost version: 1.68.0
| 
|   Boost include path:
|   /home/lukas/repositories/openembedded.org/openembedded-core/build/tmp-glibc/work/core2-64-oe-linux/camera-calibration-parsers/1.11.13-r0/recipe-sysroot/usr/include
| 
| 
|   Could not find the following Boost libraries:
| 
|           boost_python3
| 
|   Some (but not all) of the required Boost libraries were found.  You may
|   need to install these additional Boost libraries.  Alternatively, set
|   BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT
|   to the location of Boost.
| Call Stack (most recent call first):
|   CMakeLists.txt:10 (find_package)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81768</commentid>
    <comment_count>12</comment_count>
    <who name="Stephen K Jolley">sjolley.yp.pm</who>
    <bug_when>2018-10-05 17:17:38 +0000</bug_when>
    <thetext>Ross, it appears that this can be reproduced.  It this satisfactory? If not, please ask the question again and place back in NEEDINFO.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81839</commentid>
    <comment_count>13</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2018-10-12 14:53:23 +0000</bug_when>
    <thetext>Mingli was able to reproduce the error last night using Lukas&apos;s instructions.
She can take the defect but won&apos;t be able to work on it until late next week or early the following week.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81862</commentid>
    <comment_count>14</comment_count>
    <who name="Mingli Yu">mingli.yu</who>
    <bug_when>2018-10-16 09:04:06 +0000</bug_when>
    <thetext>Patch send out as https://patchwork.openembedded.org/patch/155696/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81894</commentid>
    <comment_count>15</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2018-10-18 09:20:28 +0000</bug_when>
    <thetext>So boost 1.67 changed the library name from libboost_python[MAJOR] to libboost_python[MAJOR][MINOR].  This is a deliberate change by Boost upstream and other recipes such as opencv whicih still look for just MAJOR will need to be changed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>