<?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>1922</bug_id>
          
          <creation_ts>2012-01-18 23:37:24 +0000</creation_ts>
          <short_desc>[LTP] &apos;ldd&apos; case failed on all platforms with Yocto 1.2 M2 rc1</short_desc>
          <delta_ts>2012-03-07 02:37:32 +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>1.2</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>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.2 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yi Zhao">yi.zhao</reporter>
          <assigned_to name="Jiajun Xu">jiajun.xu</assigned_to>
          <cc>jiajun.xu</cc>
    
    <cc>liang.li2</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>nitin.a.kamble</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_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>18255</commentid>
    <comment_count>0</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2012-01-18 23:37:24 +0000</bug_when>
    <thetext>Tree/branch: poky/1.2_M2
Commit: 0f4d99d207b224bb9ce23de00a48f795ae20b3a0
Image location:
http://autobuilder.pokylinux.org/nightly/20120111-3/machines/

LTP version: 20110915

&apos;ldd&apos; case failed on all platforms. The error message is like below:
############
/usr/lib/gcc/arm-poky-linux-gnueabi/4.6.3/../../../crt1.o: In function `_start&apos;:
init.c:(.text+0x34): undefined reference to `main&apos;
collect2: ld returned 1 exit status
  ASSERTION 1  
ldd: /tmp/ldd01-16044/a.out: No such file or directory
ASSERTION #1 FAIL
#############


Steps:
######
1. root@beagleboard:~# cd /opt/ltp/testcases/bin/
2. root@beagleboard:/opt/ltp/testcases/bin# ./ldd01 
######</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18260</commentid>
    <comment_count>1</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2012-01-19 05:50:14 +0000</bug_when>
    <thetext>Doesn&apos;t look kernel related. Toolchain changes ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18270</commentid>
    <comment_count>2</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2012-01-19 09:09:46 +0000</bug_when>
    <thetext>Can you tell me which image exactly your using, some images are for development, please confirm the image name.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18279</commentid>
    <comment_count>3</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2012-01-19 15:41:53 +0000</bug_when>
    <thetext>Does anybody know last when this has worked?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18284</commentid>
    <comment_count>4</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2012-01-19 17:38:05 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; Can you tell me which image exactly your using, some images are for
&gt; development, please confirm the image name.

It&apos;s sato-sdk image. Image location is http://autobuilder.pokylinux.org/nightly/20120111-3/machines/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18285</commentid>
    <comment_count>5</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2012-01-19 17:40:50 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; Does anybody know last when this has worked?

It works with 1.2_M1. 
Tree/Branch: poky/1.2_M1
Poky Commit: b806f726b1db2cb605869c1022ef727c1110255b</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18292</commentid>
    <comment_count>6</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2012-01-20 01:02:44 +0000</bug_when>
    <thetext>The ltp is pre-build binary in poky. The recipe is added by Jiajun in /meta/recipes-extended/ltp and included in sato-sdk image. When using it for testing, the &apos;ldd&apos; case failed.   

When I build the ltp from scratch on the target, the case can pass. 
Steps:
#########
1. Download the ltp testsuite from http://sourceforge.net/projects/ltp/files/LTP%20Source/ltp-20110915/
2. Copy the tarball to the target and decompress it.
3. # cd ltp-full-20110915; ./configure; cd testcases/commands/ade/ldd;  make; ./ldd01
########

The case can pass:
####################
root@beagleboard:~/ltp-full-20110915/testcases/commands/ade/ldd# ./ldd01 
  ASSERTION 1  
        /tmp/ldd01-6429/lddfile1.obj.so (0x40152000)
        /tmp/ldd01-6429/lddfile2.obj.so (0x400c0000)
        /tmp/ldd01-6429/lddfile3.obj.so (0x40020000)
        /tmp/ldd01-6429/lddfile4.obj.so (0x40133000)
        /tmp/ldd01-6429/lddfile5.obj.so (0x40029000)
ASSERTION #1 PASS
 ASSERTION 2  
        /tmp/ldd01-6429/lddfile1.obj.so (0x40116000)
        /tmp/ldd01-6429/lddfile2.obj.so (0x40002000)
        /tmp/ldd01-6429/lddfile3.obj.so (0x40040000)
        /tmp/ldd01-6429/lddfile4.obj.so (0x400ae000)
        /tmp/ldd01-6429/lddfile5.obj.so (0x4005b000)
                libc.so.6 (GLIBC_2.4) =&gt; /lib/libc.so.6
        /tmp/ldd01-6429/lddfile1.obj.so:
                libc.so.6 (GLIBC_2.4) =&gt; /lib/libc.so.6
        /tmp/ldd01-6429/lddfile2.obj.so:
                libc.so.6 (GLIBC_2.4) =&gt; /lib/libc.so.6
        /tmp/ldd01-6429/lddfile3.obj.so:
                libc.so.6 (GLIBC_2.4) =&gt; /lib/libc.so.6
        /tmp/ldd01-6429/lddfile4.obj.so:
                libc.so.6 (GLIBC_2.4) =&gt; /lib/libc.so.6
        /tmp/ldd01-6429/lddfile5.obj.so:
                libc.so.6 (GLIBC_2.4) =&gt; /lib/libc.so.6
                ld-linux.so.3 (GLIBC_2.4) =&gt; /lib/ld-linux.so.3
                ld-linux.so.3 (GLIBC_PRIVATE) =&gt; /lib/ld-linux.so.3
ASSERTION #2 PASS
TEST PASSES
####################</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18296</commentid>
    <comment_count>7</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2012-01-20 08:45:50 +0000</bug_when>
    <thetext>so the issue is with building of ltp in the poky.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18298</commentid>
    <comment_count>8</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2012-01-20 10:30:18 +0000</bug_when>
    <thetext>I find the binaries were getting stripped by our poky packaging code. And that was causing the failure: I disabled stripping of elf binaries for ltp recipe. Now the tests are passing in my local env, and also should pass in the image. 

Can you please test it and update the bugzilla?

Thanks,
Nitin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18307</commentid>
    <comment_count>9</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2012-01-20 17:10:26 +0000</bug_when>
    <thetext>(In reply to comment #8)
&gt; I find the binaries were getting stripped by our poky packaging code. And that
&gt; was causing the failure: I disabled stripping of elf binaries for ltp recipe.
&gt; Now the tests are passing in my local env, and also should pass in the image. 
&gt; Can you please test it and update the bugzilla?
&gt; Thanks,
&gt; Nitin

Hi Nitin,
It&apos;s casued by the new ltp recipe introduced into poky. I will take the owner of the bug. Thanks a lot for your comments and try.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18308</commentid>
    <comment_count>10</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2012-01-20 17:11:45 +0000</bug_when>
    <thetext>Jiajun,
  Thanks for jumping in. I think the issue is fixed, just need verification.
Thanks,
Nitin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18310</commentid>
    <comment_count>11</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2012-01-20 19:15:01 +0000</bug_when>
    <thetext>(In reply to comment #10)
&gt; Jiajun,
&gt;   Thanks for jumping in. I think the issue is fixed, just need verification.
&gt; Thanks,
&gt; Nitin

Sorry, Nitin. Yes, the bug is root caused and we could mark the bug as fixed. I will open another new bug since poky will strip all binaries during do_package, which makes LTP cases fail.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18312</commentid>
    <comment_count>12</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2012-01-20 19:17:08 +0000</bug_when>
    <thetext>Oh it&apos;s my bad, I did not post the link to the fix:

http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=nitin/misc

Here is a commit to fix the issue.

Nitin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18313</commentid>
    <comment_count>13</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2012-01-20 19:18:02 +0000</bug_when>
    <thetext>This is the exact commit:
http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=nitin/misc&amp;id=ffc4c2baa9ed5116336b1d5c2d6110f7e4163c27</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18314</commentid>
    <comment_count>14</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2012-01-20 19:18:30 +0000</bug_when>
    <thetext>Jiajun,
 Can you help with verification of the fix?

Thanks,
Nitin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18315</commentid>
    <comment_count>15</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2012-01-20 20:01:05 +0000</bug_when>
    <thetext>(In reply to comment #13)
&gt; This is the exact commit:
&gt; http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=nitin/misc&amp;id=ffc4c2baa9ed5116336b1d5c2d6110f7e4163c27

Really thanks, Nitin. :)
That&apos;s what we want. I have tested your patch and it could work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18363</commentid>
    <comment_count>16</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2012-01-25 14:45:22 +0000</bug_when>
    <thetext>commit 5c6aa87a9124815df768392cde715cbb8ce55104
Author: Nitin A Kamble &lt;nitin.a.kamble@intel.com&gt;
Date:   Fri Jan 20 10:11:10 2012 -0800

    ltp: disable elf binary stripping
    
    Otherwise the ltp tests ldd01 &amp; nm01 fail due to missing stripped
    information.
    
    This Fixes these bugs:
    [YOCTO #1922]
    [YOCTO #1923]
    
    (From OE-Core rev: 075266fa8bf12719c58a21c75a35fede5608dcdf)
    
    Signed-off-by: Nitin A Kamble &lt;nitin.a.kamble@intel.com&gt;
    Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18887</commentid>
    <comment_count>17</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2012-03-07 02:37:32 +0000</bug_when>
    <thetext>Verified with 1.2 M3 20120229 build

Tree/branch: poky/1.2_M3
Commit: 320558f494c618f53e0c773db3ea0109476e8359
Image location:
http://autobuilder.pokylinux.org/nightly/20120229-1/machines/qemu/qemuppc/

##########
tag=ldd stime=946714334
cmdline=&quot;export TCdat=$LTPROOT/testcases/bin; ldd01&quot;
contacts=&quot;&quot;
analysis=exit
&lt;&lt;&lt;test_output&gt;&gt;&gt;
  ASSERTION 1
    /tmp/ldd01-21544/lddfile1.obj.so (0x400dc000)
    /tmp/ldd01-21544/lddfile2.obj.so (0x40002000)
    /tmp/ldd01-21544/lddfile3.obj.so (0x400fd000)
    /tmp/ldd01-21544/lddfile4.obj.so (0x40116000)
    /tmp/ldd01-21544/lddfile5.obj.so (0x40040000)
ASSERTION #1 PASS
 ASSERTION 2
    /tmp/ldd01-21544/lddfile1.obj.so (0x4010d000)
    /tmp/ldd01-21544/lddfile2.obj.so (0x4002a000)
    /tmp/ldd01-21544/lddfile3.obj.so (0x40014000)
    /tmp/ldd01-21544/lddfile4.obj.so (0x40193000)
    /tmp/ldd01-21544/lddfile5.obj.so (0x40000000)
        libc.so.6 (GLIBC_2.4) =&gt; /lib/libc.so.6
    /tmp/ldd01-21544/lddfile1.obj.so:
        libc.so.6 (GLIBC_2.4) =&gt; /lib/libc.so.6
    /tmp/ldd01-21544/lddfile2.obj.so:
        libc.so.6 (GLIBC_2.4) =&gt; /lib/libc.so.6
    /tmp/ldd01-21544/lddfile3.obj.so:
        libc.so.6 (GLIBC_2.4) =&gt; /lib/libc.so.6
    /tmp/ldd01-21544/lddfile4.obj.so:
        libc.so.6 (GLIBC_2.4) =&gt; /lib/libc.so.6
    /tmp/ldd01-21544/lddfile5.obj.so:
        libc.so.6 (GLIBC_2.4) =&gt; /lib/libc.so.6
        ld-linux.so.3 (GLIBC_2.4) =&gt; /lib/ld-linux.so.3
        ld-linux.so.3 (GLIBC_PRIVATE) =&gt; /lib/ld-linux.so.3
ASSERTION #2 PASS
TEST PASSES
############</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>