<?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>161</bug_id>
          
          <creation_ts>2010-07-29 06:40:09 +0000</creation_ts>
          <short_desc>[toolchain] Cannot build LTP with ppc/arm toolchain</short_desc>
          <delta_ts>2010-12-21 06:09:42 +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>devtools / tool chain</component>
          <version>0.9</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</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>critical</bug_severity>
          <target_milestone>0.9 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jiajun Xu">jiajun.xu</reporter>
          <assigned_to name="Nitin Kamble">nitin.a.kamble</assigned_to>
          <cc>kevin.tian</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>sgw</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>9146</commentid>
    <comment_count>0</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2010-07-29 06:40:09 +0000</bug_when>
    <thetext>Testing Env:    
Host: Ubuntu 10.04 LTS
Kernel: 2.6.32-21-generic-pae
Poky gitinfo(used to build qemu-native):
faf6b2d33e8ce7fe7fdf5d8379b19c2e49b8c997 (git://git.pokylinux.org/poky.git)
Toolchain tarball location: http://yoctobuild01.jf.intel.com/milestone/20100725-1/

With the toolchain tarballs for ppc and arm from M2 20100725 build, LTP (20100430) cannot be built successfully.

With ppc toolchain, error is like following:
#########
root@vt-nhm4:/home/jxu49/test/M2-20100725/images/tmp/ppc/ltp-full-20100430# make
make -C &quot;lib&quot; \
                -f &quot;/home/jxu49/test/M2-20100725/images/tmp/ppc/ltp-full-20100430/lib/Makefile&quot; all
make[1]: Entering directory `/home/jxu49/test/M2-20100725/images/tmp/ppc/ltp-full-20100430/lib&apos;
powerpc-poky-linux-gcc -mcpu=603e -mhard-float -g -O2 -fno-strict-aliasing -pipe -Wall  -I../include -I../include  -c -o databin.o databin.c
In file included from /opt/poky/sysroots/powerpc-poky-linux/usr/include/sys/param.h:26,
                 from databin.c:33:
/opt/poky/sysroots/i586-pokysdk-linux/usr/lib/gcc/powerpc-poky-linux/4.3.3/include-fixed/limits.h:11:23: error: syslimits.h: No such file or directory
make[1]: *** [databin.o] Error 1
make[1]: Leaving directory `/home/jxu49/test/M2-20100725/images/tmp/ppc/ltp-full-20100430/lib&apos;
make: *** [lib-all] Error 2
#########

With arm toolchain, error is like following:
#########
root@vt-nhm4:/home/jxu49/test/M2-20100725/images/tmp/arm/ltp-full-20100430# make
make -C &quot;lib&quot; \
                -f &quot;/home/jxu49/test/M2-20100725/images/tmp/arm/ltp-full-20100430/lib/Makefile&quot; all
make[1]: Entering directory `/home/jxu49/test/M2-20100725/images/tmp/arm/ltp-full-20100430/lib&apos;
arm-poky-linux-gnueabi-gcc -march=armv5te -mtune=arm926ej-s -g -O2 -fno-strict-aliasing -pipe -Wall  -I../include -I../include  -c -o databin.o databin.c
In file included from /opt/poky/sysroots/arm-poky-linux-gnueabi/usr/include/sys/param.h:26,
                 from databin.c:33:
/opt/poky/sysroots/arm-poky-linux-gnueabi/usr/include/limits.h:125:26: error: no include path in which to search for limits.h
make[1]: *** [databin.o] Error 1
make[1]: Leaving directory `/home/jxu49/test/M2-20100725/images/tmp/arm/ltp-full-20100430/lib&apos;
make: *** [lib-all] Error 2
#########</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9159</commentid>
    <comment_count>1</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2010-07-29 17:32:36 +0000</bug_when>
    <thetext>how to reproduce this issue ?
are there steps to follow for reproducing ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9161</commentid>
    <comment_count>2</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2010-07-29 17:42:37 +0000</bug_when>
    <thetext>What I did is:
1. Download ppc/arm toolchain tarball from http://yoctobuild01.jf.intel.com/milestone/20100725-1/toolchain/i586/
2. extract toolchain tarball to /opt/poky
3. Download LTP from http://sourceforge.net/projects/ltp/files/LTP%20Source/ltp-20100430/ltp-full-20100430.tgz/download
4. extract LTP and cd into LTP folder
5. For ARM, Run 
&quot;source /opt/poky/environment-setup-arm-poky-linux-gnueabi&quot;
&quot;./configure --host=arm-poky-linux-gnueabi &amp;&amp; make&quot;
For PPC, Run
&quot;source /opt/poky/environment-setup-powerpc-poky-linux&quot;
&quot;./configure --host=powerpc-poky-linux&quot;

Then you can see the error.
BTW, i586 and mips toolchain has no such compile issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9199</commentid>
    <comment_count>3</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2010-07-30 09:33:41 +0000</bug_when>
    <thetext>Has this worked before? if yes what revision of poky tree?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9200</commentid>
    <comment_count>4</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2010-07-30 14:01:19 +0000</bug_when>
    <thetext>This is root caused as a limits.h filename (with others) getting truncated to limi . This is identified as opkg unarchive bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9201</commentid>
    <comment_count>5</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2010-07-30 16:09:07 +0000</bug_when>
    <thetext>sent a patch to opkg to fix this issue. 
commit is here: 

http://git.pokylinux.org/cgit.cgi/poky/commit/?id=983b094ed0b774c73f51a24b79f85f3b2c9f91be</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9202</commentid>
    <comment_count>6</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2010-07-30 16:10:35 +0000</bug_when>
    <thetext>verified ltp can built with newer toolchain tarball.

Nitin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9205</commentid>
    <comment_count>7</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2010-07-30 16:48:54 +0000</bug_when>
    <thetext>M2 commit: http://git.pokylinux.org/cgit.cgi/poky-contrib/commit/?id=600cf36b64bd6a473ed46d62c65622930b3fb287</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9220</commentid>
    <comment_count>8</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2010-08-03 06:22:15 +0000</bug_when>
    <thetext>Verified with M2-20100731 build, the bug is fixed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>