<?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>2032</bug_id>
          
          <creation_ts>2012-02-27 17:00:18 +0000</creation_ts>
          <short_desc>FRI2: do_kernel_checkout failes for linux-libc-headers-yocto</short_desc>
          <delta_ts>2012-03-15 12:40: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>BSPs</product>
          <component>bsps-configuration</component>
          <version>1.2</version>
          <rep_platform>Other</rep_platform>
          <op_sys>x86_64</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>major</bug_severity>
          <target_milestone>1.2 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Saul Wold">sgw</reporter>
          <assigned_to name="Bruce Ashfield">bruce.ashfield</assigned_to>
          <cc>dvhart</cc>
    
    <cc>yp.bsp.watcher</cc>
    
    <cc>yp.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>18767</commentid>
    <comment_count>0</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2012-02-27 17:00:18 +0000</bug_when>
    <thetext>I am getting a very reproducible failure from a cleanall state with linux-libc-headers-yocto when building for FRI2

NOTE: Running task 454 of 468 (ID: 1, /intel/poky2/distro/meta/recipes-kernel/linux-libc-headers/linux-libc-headers-yocto_git.bb, do_kernel_checkout)
NOTE: package linux-libc-headers-yocto-2.6.37+git-1+69cfbdf9f1ff461a75e5b77d6d7ba35e97db4cc3_1+69cfbdf9f1ff461a75e5b77d6d7ba35e97db4cc3-r4: task do_kernel_checkout: Started
ERROR: Function failed: do_kernel_checkout (see /intel/poky2/builds/fri/tmp/work/core2-poky-linux/linux-libc-headers-yocto-2.6.37+git-1+69cfbdf9f1ff461a75e5b77d6d7ba35e97db4cc3_1+69cfbdf9f1ff461a75e5b77d6d7ba35e97db4cc3-r4/temp/log.do_kernel_checkout.7612 for further information)
ERROR: Logfile of failure stored in: /intel/poky2/builds/fri/tmp/work/core2-poky-linux/linux-libc-headers-yocto-2.6.37+git-1+69cfbdf9f1ff461a75e5b77d6d7ba35e97db4cc3_1+69cfbdf9f1ff461a75e5b77d6d7ba35e97db4cc3-r4/temp/log.do_kernel_checkout.7612
Log data follows:
| ERROR: Function failed: do_kernel_checkout (see /intel/poky2/builds/fri/tmp/work/core2-poky-linux/linux-libc-headers-yocto-2.6.37+git-1+69cfbdf9f1ff461a75e5b77d6d7ba35e97db4cc3_1+69cfbdf9f1ff461a75e5b77d6d7ba35e97db4cc3-r4/temp/log.do_kernel_checkout.7612 for further information)
| + cd /intel/poky2/builds/fri/tmp/work/core2-poky-linux/linux-libc-headers-yocto-2.6.37+git-1+69cfbdf9f1ff461a75e5b77d6d7ba35e97db4cc3_1+69cfbdf9f1ff461a75e5b77d6d7ba35e97db4cc3-r4/linux
| + do_kernel_checkout
| + rm -rf /intel/poky2/builds/fri/tmp/work/core2-poky-linux/linux-libc-headers-yocto-2.6.37+git-1+69cfbdf9f1ff461a75e5b77d6d7ba35e97db4cc3_1+69cfbdf9f1ff461a75e5b77d6d7ba35e97db4cc3-r4/linux
| + mkdir -p /intel/poky2/builds/fri/tmp/work/core2-poky-linux/linux-libc-headers-yocto-2.6.37+git-1+69cfbdf9f1ff461a75e5b77d6d7ba35e97db4cc3_1+69cfbdf9f1ff461a75e5b77d6d7ba35e97db4cc3-r4/linux/.git
| + set +e
| + &apos;[&apos; -d /intel/poky2/builds/fri/tmp/work/core2-poky-linux/linux-libc-headers-yocto-2.6.37+git-1+69cfbdf9f1ff461a75e5b77d6d7ba35e97db4cc3_1+69cfbdf9f1ff461a75e5b77d6d7ba35e97db4cc3-r4/git/.git &apos;]&apos;
| + echo &apos;WARNING. /intel/poky2/builds/fri/tmp/work/core2-poky-linux/linux-libc-headers-yocto-2.6.37+git-1+69cfbdf9f1ff461a75e5b77d6d7ba35e97db4cc3_1+69cfbdf9f1ff461a75e5b77d6d7ba35e97db4cc3-r4/git is not a bare clone.&apos;
| WARNING. /intel/poky2/builds/fri/tmp/work/core2-poky-linux/linux-libc-headers-yocto-2.6.37+git-1+69cfbdf9f1ff461a75e5b77d6d7ba35e97db4cc3_1+69cfbdf9f1ff461a75e5b77d6d7ba35e97db4cc3-r4/git is not a bare clone.
| + echo &apos;Ensure that the SRC_URI includes the &apos;\&apos;&apos;bareclone=1&apos;\&apos;&apos; option.&apos;
| Ensure that the SRC_URI includes the &apos;bareclone=1&apos; option.
| + mv /intel/poky2/builds/fri/tmp/work/core2-poky-linux/linux-libc-headers-yocto-2.6.37+git-1+69cfbdf9f1ff461a75e5b77d6d7ba35e97db4cc3_1+69cfbdf9f1ff461a75e5b77d6d7ba35e97db4cc3-r4/git/.git /intel/poky2/builds/fri/tmp/work/core2-poky-linux/linux-libc-headers-yocto-2.6.37+git-1+69cfbdf9f1ff461a75e5b77d6d7ba35e97db4cc3_1+69cfbdf9f1ff461a75e5b77d6d7ba35e97db4cc3-r4/linux
| + rm -rf /intel/poky2/builds/fri/tmp/work/core2-poky-linux/linux-libc-headers-yocto-2.6.37+git-1+69cfbdf9f1ff461a75e5b77d6d7ba35e97db4cc3_1+69cfbdf9f1ff461a75e5b77d6d7ba35e97db4cc3-r4/git/
| + cd /intel/poky2/builds/fri/tmp/work/core2-poky-linux/linux-libc-headers-yocto-2.6.37+git-1+69cfbdf9f1ff461a75e5b77d6d7ba35e97db4cc3_1+69cfbdf9f1ff461a75e5b77d6d7ba35e97db4cc3-r4/linux
| + git branch -a
| + grep -q meta
| + &apos;[&apos; 0 -ne 0 &apos;]&apos;
| + &apos;[&apos; -z &apos;&apos; &apos;]&apos;
| + git branch -a
| + grep -q
| Usage: grep [OPTION]... PATTERN [FILE]...
| Try `grep --help&apos; for more information.
| + &apos;[&apos; 2 -ne 0 &apos;]&apos;
| + echo &apos;ERROR. The branch &apos;\&apos;&apos;&apos;\&apos;&apos; is required and was not&apos;
| ERROR. The branch &apos;&apos; is required and was not
| + echo &apos;found. Ensure that the SRC_URI points to a valid linux-yocto&apos;
| found. Ensure that the SRC_URI points to a valid linux-yocto
| + echo &apos;kernel repository&apos;
| kernel repository
| + exit 1
NOTE: package linux-libc-headers-yocto-2.6.37+git-1+69cfbdf9f1ff461a75e5b77d6d7ba35e97db4cc3_1+69cfbdf9f1ff461a75e5b77d6d7ba35e97db4cc3-r4: task do_kernel_checkout: Failed
ERROR: Task 1 (/intel/poky2/distro/meta/recipes-kernel/linux-libc-headers/linux-libc-headers-yocto_git.bb, do_kernel_checkout) failed with exit code &apos;1&apos;
NOTE: Tasks Summary: Attempted 454 tasks of which 421 didn&apos;t need to be rerun and 1 failed.

Summary: 1 task failed:
  /intel/poky2/distro/meta/recipes-kernel/linux-libc-headers/linux-libc-headers-yocto_git.bb, do_kernel_checkout
Summary: There was 1 ERROR message shown, returning a non-zero exit code.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18771</commentid>
    <comment_count>1</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2012-02-27 19:35:49 +0000</bug_when>
    <thetext>patch sent to the mailing list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18811</commentid>
    <comment_count>2</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2012-02-29 23:59:05 +0000</bug_when>
    <thetext>There is more to it that what the patch addresses.

Once we get past do_kernel_checkout, if the KBRANCH doesn&apos;t exist in the repository, then do_validate_branches craps out. This means new BSPs on newer kernels will cause the older linux-libc-headers-yocto to fail. We can use the tarball PREFERRED_VERSION workaround in these cases - but it seems to be we would be better off just PROVIDING linux-libc-headers in the linux-yocto* recipes. Then we have a guaranteed 1:1 mapping and don&apos;t have to jump through the checkout/validate hoops multiple times.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18812</commentid>
    <comment_count>3</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2012-03-01 00:45:42 +0000</bug_when>
    <thetext>No there shouldn&apos;t be more to this than my patch addresses. There
is supposed to always be a default KBRANCH.

I built and deployed this 10 or 11 times today alone, with the BSP in
question.

So there must be something different in the configurations.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18813</commentid>
    <comment_count>4</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2012-03-01 00:50:18 +0000</bug_when>
    <thetext>Maybe that I am now building for 3.2 which has a different branching hierarchy than 3.0 ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18814</commentid>
    <comment_count>5</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2012-03-01 00:51:57 +0000</bug_when>
    <thetext>I could be. The recipe needs a bump regardless. So your comment stands
(it shouldn&apos;t be PV of 2.6.37). I&apos;ll address that and see if I can reproduce the
problem.


We may be able to unify the libc-headers and the kernel recipe, but it does
break the
separation between the two that has traditionally been enforced</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18815</commentid>
    <comment_count>6</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2012-03-01 01:03:40 +0000</bug_when>
    <thetext>Just logging the last run;

NOTE: package linux-libc-headers-yocto-2.6.37+git-1+69cfbdf9f1ff461a75e5b77d6d7ba35e97db4cc3_1+69cfbdf9f1ff461a75e5b77d6d7ba35e97db4cc3-r4: task do_validate_branches: StartedNOTE: package linux-libc-headers-yocto-2.6.37+git-1+69cfbdf9f1ff461a75e5b77d6d7ba35e97db4cc3_1+69cfbdf9f1ff461a75e5b77d6d7ba35e97db4cc3-r4: task do_validate_branches: SucceededNOTE: Running task 497 of 510 (ID: 3, /home/bruce/poky/meta/recipes-kernel/linux-libc-headers/linux-libc-headers-yocto_git.bb, do_patch)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18816</commentid>
    <comment_count>7</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2012-03-01 01:52:50 +0000</bug_when>
    <thetext>Can someone else confirm that my contrib branch (zedd/kernel) fixes the libc-header
build ? Since clearly, my testing alone isn&apos;t sufficient.

You want this change in particular:


commit da4b543dc2f74f5172f1d7b3500d76f0ba81c8dd
Author: Bruce Ashfield &lt;bruce.ashfield@windriver.com&gt;
Date:   Wed Feb 29 20:46:13 2012 -0500

    linux-libc-headers-yocto: bump to v3.2.8
    
    Making two changes for BSPs that prefer linux-libc-headers-yocto:
    
      - bumping to v3.2.8 headers
      - stubbing out unecessary linux-yocto functions when headers
        are being built
    
    Signed-off-by: Bruce Ashfield &lt;bruce.ashfield@windriver.com&gt;

:100644 100644 734170f... 10b6b83... M  meta/recipes-kernel/linux-libc-headers/linux-libc-headers-yocto_git.bb</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18817</commentid>
    <comment_count>8</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2012-03-01 02:03:57 +0000</bug_when>
    <thetext>This is mostly what I did to fix it locally. The other change I made was to set the &quot;bareclone=1&quot; in the SRC_URI.

This change makes it use &quot;master&quot; if the BSP doesn&apos;t exist. It seems like &quot;standard/default/base&quot; would be a better default. However, I tried that and couldn&apos;t find a way to change KBRANCH in the libc-headers recipe if the specified KBRANCH didn&apos;t exist in the git tree.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18819</commentid>
    <comment_count>9</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2012-03-01 02:10:03 +0000</bug_when>
    <thetext>I&apos;ll be doing a mass bareclone=1 change to all the linux-yocto* recipes, so for now, I kept
it out of this fix. It&apos;ll be a complete switchover shortly.

We actually do want standard/base, since standard/default/base gets us configuration fragments,
which aren&apos;t used as part of the headers. So to keep it safe, sticking with standard/base to get
any changes is what we want. My change should be setting it to standard/base, did you see
something different ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18820</commentid>
    <comment_count>10</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2012-03-01 02:12:55 +0000</bug_when>
    <thetext>Ah yes, it is standard/base, and this patch builds fri2 using a 3.2 kernel just fine.

Acked-by: Darren Hart &lt;dvhart@linux.intel.com&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18821</commentid>
    <comment_count>11</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2012-03-01 02:16:29 +0000</bug_when>
    <thetext>Sending patch to the list. bareclone to follow later.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19135</commentid>
    <comment_count>12</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2012-03-15 12:40:56 +0000</bug_when>
    <thetext>Marking as resolved.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>