<?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>12567</bug_id>
          
          <creation_ts>2018-02-22 15:05:39 +0000</creation_ts>
          <short_desc>parallel_make_argument broken</short_desc>
          <delta_ts>2018-02-27 10:30:40 +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>core</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.5 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Diego Russo">diego.russo</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>stephano</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>79551</commentid>
    <comment_count>0</comment_count>
    <who name="Diego Russo">diego.russo</who>
    <bug_when>2018-02-22 15:05:39 +0000</bug_when>
    <thetext>Pull request https://github.com/openembedded/openembedded-core/commit/ccd1142d22b31ed85d8823b1bc9e11ccfd72b61f?diff=unified#r27676626 has introduced two new functions which deal with parallelism: parallel_make and parallel_make_argument.
The implementation of parallel_make_argument is broken when a limit is passed to the function.

The boost recipe (https://github.com/openembedded/openembedded-core/blob/ccd1142d22b31ed85d8823b1bc9e11ccfd72b61f/meta/recipes-support/boost/boost.inc) uses the new function in this way:

BOOST_PARALLEL_MAKE = &quot;${@oe.utils.parallel_make_argument(d, &apos;-j%d&apos;, limit=64)}&quot;

with limit=64 to safeguard a bug which is present in bjam.

In our builds we have set PARALLEL_MAKE=16, so we expect bjam to run with -j16 but instead it will be always running with -j64.

This because the implementation of parallel_make_argument is not correct.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79552</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2018-02-22 15:13:16 +0000</bug_when>
    <thetext>Patch already on the list, will be in master soon.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79553</commentid>
    <comment_count>2</comment_count>
    <who name="Diego Russo">diego.russo</who>
    <bug_when>2018-02-22 15:14:38 +0000</bug_when>
    <thetext>Ross, thanks for the update!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79613</commentid>
    <comment_count>3</comment_count>
    <who name="Diego Russo">diego.russo</who>
    <bug_when>2018-02-27 10:30:40 +0000</bug_when>
    <thetext>I see this has been fixed by https://github.com/openembedded/openembedded-core/commit/45205be547967c84dff96403c3a6825a62e3ca6a

I tried a build and it is working as expected setting PARALLEL_MAKE=16

bjam -j16 -d+2 -q --ignore-site-config -sTOOLS=gcc -sGCC=arm-oe-linux-gnueabi-gcc...

I&apos;ll close the ticket as resolved/fixed.

Thanks</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>