<?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>714</bug_id>
          
          <creation_ts>2011-02-13 23:48:21 +0000</creation_ts>
          <short_desc>Missing linux kernel header files sdk-images causes posixtestsuite test to fail</short_desc>
          <delta_ts>2011-03-16 08:20:52 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Kernel</product>
          <component>kernel-tooling</component>
          <version>1.0</version>
          <rep_platform>x86</rep_platform>
          <op_sys>arm</op_sys>
          <bug_status>VERIFIED</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.0 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yi Zhao">yi.zhao</reporter>
          <assigned_to name="Lianhao Lu">lianhao.lu</assigned_to>
          <cc>bruce.ashfield</cc>
    
    <cc>dexuan.cui</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>jiajun.xu</cc>
    
    <cc>liang.li2</cc>
    
    <cc>liangliang.wang</cc>
    
    <cc>lianhao.lu</cc>
    
    <cc>liping.ke</cc>
    
    <cc>sgw</cc>
    
    <cc>yi.zhao</cc>
    
    <cc>yp.kernel.watcher</cc>
    
    <cc>yp.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          <cf_verified>Program Management</cf_verified>
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>11725</commentid>
    <comment_count>0</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2011-02-13 23:48:21 +0000</bug_when>
    <thetext>Testing Env:    
Host: Ubuntu 10.10 x86_64
Kernel: 2.6.35-25-generic

qemuxarm sdk image from weekly build 20110212
http://autobuilder.pokylinux.org/nightly/20110212-1/qemu/qemuarm/

When I perform posixtestsuite, some cases failed and I got error log like this:

######################
conformance/interfaces/mlock/5-1: build: FAILED: Compiler output:
In file included from /usr/include/errno.h:36:0,
                 from conformance/interfaces/mlock/5-1.c:16:
/usr/include/bits/errno.h:25:26: fatal error: linux/errno.h: No such file or directory
compilation terminated.
conformance/interfaces/mlock/speculative/12-1: build: FAILED: Compiler output:
In file included from /usr/include/errno.h:36:0,
                 from conformance/interfaces/mlock/speculative/12-1.c:20:
/usr/include/bits/errno.h:25:26: fatal error: linux/errno.h: No such file or directory
compilation terminated.
conformance/interfaces/mlock/10-1: build: FAILED: Compiler output:
In file included from /usr/include/errno.h:36:0,
                 from conformance/interfaces/mlock/10-1.c:19:
/usr/include/bits/errno.h:25:26: fatal error: linux/errno.h: No such file or directory
compilation terminated.
conformance/interfaces/mlock/8-1: build: FAILED: Compiler output:
In file included from /usr/include/errno.h:36:0,
                 from conformance/interfaces/mlock/8-1.c:20:
/usr/include/bits/errno.h:25:26: fatal error: linux/errno.h: No such file or directory
compilation terminated.
############################

There is no &apos;linux&apos; directory under /usr/include/ directory.

And this also causes LTP compile faild.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11775</commentid>
    <comment_count>1</comment_count>
    <who name="liping Ke">liping.ke</who>
    <bug_when>2011-02-15 01:23:17 +0000</bug_when>
    <thetext>PPC should have the same problem, any file include &lt;errno.h&gt; will meet the problem. linux headers under target rootfs /usr/include/linux are missing for the latest changeset.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11776</commentid>
    <comment_count>2</comment_count>
    <who name="liping Ke">liping.ke</who>
    <bug_when>2011-02-15 01:25:20 +0000</bug_when>
    <thetext>Also, it&apos;s missing in meta-toolchain-sdk tarball, besides target rootfs. We meet the problem in ppc build.

Thanks,
criping</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11777</commentid>
    <comment_count>3</comment_count>
    <who name="liping Ke">liping.ke</who>
    <bug_when>2011-02-15 01:49:41 +0000</bug_when>
    <thetext>This bug is there, not sure whether I have done a wrong ops to mark it as &quot;fixed&quot;. So reopen it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11779</commentid>
    <comment_count>4</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2011-02-15 02:58:52 +0000</bug_when>
    <thetext>Lianhao has got the root cause and will send out the patch:

diff --git a/meta/recipes-kernel/linux-libc-headers/linux-libc-headers-yocto_git.bb b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers-yocto_git.bb
index 0d58354..14e6b60 100644
--- a/meta/recipes-kernel/linux-libc-headers/linux-libc-headers-yocto_git.bb
+++ b/meta/recipes-kernel/linux-libc-headers/linux-libc-headers-yocto_git.bb
@@ -6,6 +6,8 @@ B = &quot;${S}&quot;
 INHIBIT_DEFAULT_DEPS = &quot;1&quot;
 DEPENDS += &quot;unifdef-native&quot;
 PROVIDES = &quot;linux-libc-headers&quot;
+RPROVIDES_${PN}-dev = &quot;linux-libc-headers-dev&quot;
+
 PV = &quot;2.6.37+git-${SRCPV}&quot;
 PR = &quot;r2&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11825</commentid>
    <comment_count>5</comment_count>
    <who name="Lianhao Lu">lianhao.lu</who>
    <bug_when>2011-02-16 17:16:22 +0000</bug_when>
    <thetext>Fixed in commits http://git.pokylinux.org/cgit/cgit.cgi/poky/commit/?id=afd4169bd24d4a14f59df5622efdcf5c6eb08eb2. 

Added RPROVIDES_${PN}-dev and RPROVIDES_${PN}-dbg for
linux-libc-headers-yocto to provides &quot;linux-libc-headers-dev&quot; and
&quot;linux-libc-headers-dbg&quot; respectively.

This resolved the dependency issue of libc6-dev depending upon
linux-libc-headers-dev. Package linux-libc-headers-yocto-dev will be
installed as linux-libc-headers-dev.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11896</commentid>
    <comment_count>6</comment_count>
    <who name="Lianhao Lu">lianhao.lu</who>
    <bug_when>2011-02-20 22:00:52 +0000</bug_when>
    <thetext>*** Bug 694 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12345</commentid>
    <comment_count>7</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2011-03-07 21:22:48 +0000</bug_when>
    <thetext>Verified on nightly build 20110305
http://autobuilder.yoctoproject.org/nightly/20110305-4/machines/</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>