<?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>10184</bug_id>
          
          <creation_ts>2016-08-24 12:30:59 +0000</creation_ts>
          <short_desc>Autobuilder fails when PARALLEL_MAKE ?= &quot;-j ${@oe.utils.cpu_count()}&quot;</short_desc>
          <delta_ts>2018-10-11 15:30:28 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>5</classification_id>
          <classification>Infrastructure</classification>
          <product>AutoBuilder</product>
          <component>autobuilder</component>
          <version>2.0.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>OBSOLETE</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Eilís Ní Fhlannagáin">pidge</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>infras.ab.watcher</cc>
    
    <cc>Infras.watcher</cc>
    
    <cc>pidge</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</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>65482</commentid>
    <comment_count>0</comment_count>
    <who name="Eilís Ní Fhlannagáin">pidge</who>
    <bug_when>2016-08-24 12:30:59 +0000</bug_when>
    <thetext>If you set autoconf up to allow PARALLEL_MAKE ?= &quot;-j ${@oe.utils.cpu_count()}&quot;, then odd things happen.

Specifically:

NOTE: recipe quilt-native-0.64-r0: task do_compile: Started
ERROR: oe_runmake failed
ERROR: Function failed: do_compile (log file is located at /home/pidge/yocto-autobuilder/yocto-worker/nightly/build/build-brcm97449svms-refboard/tmp/work/x86_64-linux/quilt-native/0.64-r0/temp/log.do_compile.16490)
ERROR: Logfile of failure stored in: /home/pidge/yocto-autobuilder/yocto-worker/nightly/build/build-brcm97449svms-refboard/tmp/work/x86_64-linux/quilt-native/0.64-r0/temp/log.do_compile.16490
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make 16
| make: *** No rule to make target &apos;16&apos;.  Stop.
| ERROR: oe_runmake failed
| ERROR: Function failed: do_compile (log file is located at /home/pidge/yocto-autobuilder/yocto-worker/nightly/build/build-brcm97449svms-refboard/tmp/work/x86_64-linux/quilt-native/0.64-r0/temp/log.do_compile.16490)
NOTE: recipe quilt-native-0.64-r0: task do_compile: Failed

It seems the -j is getting stripped out somewhere.

If you set the PARALLEL_MAKE to something like &quot;-j 4&quot; then everything is fine.

This might be happening in bitbake, as this works fine in shell (obviously).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65492</commentid>
    <comment_count>1</comment_count>
    <who name="Bill Randle">bill.randle</who>
    <bug_when>2016-08-24 17:17:28 +0000</bug_when>
    <thetext>If you are putting this in config/autobuilder.conf, the value for PARALLEL_MAKE is just the number with no &quot;-j&quot;. The &quot;-j&quot; is added later in CreateAutoConf.py. This confused me no end at one point and I got that same exact &apos;make 16&apos; error.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65504</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2016-08-25 14:48:29 +0000</bug_when>
    <thetext>Beth: Was this a configuration error as per Bill&apos;s question?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65509</commentid>
    <comment_count>3</comment_count>
    <who name="Eilís Ní Fhlannagáin">pidge</who>
    <bug_when>2016-08-25 15:16:16 +0000</bug_when>
    <thetext>Well, so let me explain my setup.

I do not run CreateAutoConf. It&apos;s taken care of by some external processes. I run a somewhat hacked RunPreamble that does the setup, and then I run BuildImages.

So, yeah, I don&apos;t think it&apos;s coming from autobuilder.conf. I guess the way to test this is set an append in CreateAutoConf:

PARALLEL_MAKE = &quot;-j ${@oe.utils.cpu_count()}&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>81820</commentid>
    <comment_count>4</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2018-10-11 15:30:28 +0000</bug_when>
    <thetext>New autobuilder code doesn&apos;t have this issue.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>