<?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>13124</bug_id>
          
          <creation_ts>2019-01-07 07:11:28 +0000</creation_ts>
          <short_desc>multiconfig builds break when preparing the task hash (runqueue)</short_desc>
          <delta_ts>2019-01-31 15:38:56 +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>BitBake</product>
          <component>bitbake</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>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.7 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alejandro Hernandez">alejandr</reporter>
          <assigned_to name="Joshua Watt">JPEWhacker</assigned_to>
          <cc>alejandr</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</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>82691</commentid>
    <comment_count>0</comment_count>
    <who name="Alejandro Hernandez">alejandr</who>
    <bug_when>2019-01-07 07:11:28 +0000</bug_when>
    <thetext>After the new implementation of task hashes on https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=57e3c55f6dd17f8019335818c6f34e67f8110295

multiconfig builds now break due to a KeyError.


I suspect this is because this is because it is not taking into account that the Key could contain &quot;mc:...&quot; if it is a multiconfig build. 

Usually a multiconfig build is used to build several configurations with one single bitbake command, we can set it up following the documentation (https://www.yoctoproject.org/docs/current/mega-manual/mega-manual.html#dev-building-images-for-multiple-targets-using-multiple-configurations), but in this case even a multiconfig build that builds one single configuration would suffice to reproduce the issue (because it will still have the &quot;mc&quot;):

on local.conf:
BBMULTICONFIG = &quot;x86&quot;

on conf/multiconfig/x86.conf:
MACHINE=&quot;qemux86&quot;
TMPDIR=&quot;${TOPDIR}/multix86&quot;

$ bitbake multiconfig:x86:core-image-minimal

ERROR: Running idle function
 File &quot;poky/bitbake/lib/bb/runqueue.py&quot;, line 1170, in RunQueueData.prepare_task_hash(tid=&apos;multiconfig:x86:poky/meta/recipes-support/attr/acl_2.2.52.bb:do_fetch&apos;):
             self.runtaskentries[tid].hash = bb.parse.siggen.get_taskhash(taskfn, taskname, procdep, self.dataCaches[mc])
    &gt;        self.runtaskentries[tid].unihash = bb.parse.siggen.get_unihash(fn + &quot;.&quot; + taskname)

  File &quot;poky/bitbake/lib/bb/siggen.py&quot;, line 45, in SignatureGeneratorOEBasicHash.get_unihash(task=&apos;poky/meta/recipes-support/attr/acl_2.2.52.bb.do_fetch&apos;):
         def get_unihash(self, task):
    &gt;        return self.taskhash[task]

KeyError: &apos;poky/meta/recipes-support/attr/acl_2.2.52.bb.do_fetch&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82704</commentid>
    <comment_count>1</comment_count>
    <who name="Joshua Watt">JPEWhacker</who>
    <bug_when>2019-01-07 19:24:55 +0000</bug_when>
    <thetext>http://lists.openembedded.org/pipermail/bitbake-devel/2019-January/019717.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82912</commentid>
    <comment_count>2</comment_count>
    <who name="Joshua Watt">JPEWhacker</who>
    <bug_when>2019-01-31 15:38:56 +0000</bug_when>
    <thetext>https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=46f6f6a5f9de5e7f8f32f6ae768af61ec20ade4a</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>