<?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>7731</bug_id>
          
          <creation_ts>2015-05-07 15:30:49 +0000</creation_ts>
          <short_desc>Build race at configure time</short_desc>
          <delta_ts>2015-05-12 20:18:11 +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>kernel</component>
          <version>1.9</version>
          <rep_platform>All</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>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Bruce Ashfield">bruce.ashfield</assigned_to>
          <cc>bruce.ashfield</cc>
    
    <cc>tom.zanussi</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>50858</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-05-07 15:30:49 +0000</bug_when>
    <thetext>ERROR: Function failed: do_kernel_metadata (log file is located at /data/poky-master/tmp/work/beaglebone-poky-linux-gnueabi/linux-yocto/3.14.36+gitAUTOINC+46df2668fa_dbe5b52e93-r0/temp/log.do_kernel_metadata.7261)
ERROR: Logfile of failure stored in: /data/poky-master/tmp/work/beaglebone-poky-linux-gnueabi/linux-yocto/3.14.36+gitAUTOINC+46df2668fa_dbe5b52e93-r0/temp/log.do_kernel_metadata.7261
Log data follows:
| DEBUG: Executing shell function do_kernel_metadata
| .meta
| [INFO]: checkpoint is already restored, nothing to do
| WARNING: addon feature &quot;features/netfilter/netfilter&quot; was not found
| ERROR: required features were not found. aborting
| ERROR: Could not update standard/beaglebone
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_kernel_metadata (log file is located at /data/poky-master/tmp/work/beaglebone-poky-linux-gnueabi/linux-yocto/3.14.36+gitAUTOINC+46df2668fa_dbe5b52e93-r0/temp/log.do_kernel_metadata.7261)

The .meta/cfg/kernel-cache directory does exist in the build directory after the failure.

Chat from Bruce on IM:

&quot;&quot;&quot;
yah. but it is so very weird, it has to be the move to work-shared (part of the kernel_checkout) and the configuration/meta-data phase.
I&apos;ll check the ordering between those tasks.
both just say: before do_patch
so I bet they race.
&quot;&quot;&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50867</commentid>
    <comment_count>1</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2015-05-07 18:32:24 +0000</bug_when>
    <thetext>this should be the fix:

diff --git a/meta/classes/kernel-yocto.bbclass b/meta/classes/kernel-yocto.bbclass
index da541a1ac663..11beb682367a 100644
--- a/meta/classes/kernel-yocto.bbclass
+++ b/meta/classes/kernel-yocto.bbclass
@@ -215,7 +215,7 @@ do_kernel_checkout() {
 }
 do_kernel_checkout[dirs] = &quot;${S}&quot;
 
-addtask kernel_checkout before do_patch after do_unpack
+addtask kernel_checkout before do_kernel_metadata after do_unpack
 addtask kernel_metadata after do_validate_branches before do_patch
 do_kernel_metadata[depends] = &quot;kern-tools-native:do_populate_sysroot&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50869</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-05-07 19:12:59 +0000</bug_when>
    <thetext>Yeah that looks like a good candidate!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>