<?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>1923</bug_id>
          
          <creation_ts>2012-01-18 23:41:45 +0000</creation_ts>
          <short_desc>[LTP] &apos;nm&apos; case failed on all platforms with Yocto 1.2 M2 rc1</short_desc>
          <delta_ts>2012-03-07 02:36:06 +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>18256</commentid>
    <comment_count>0</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2012-01-18 23:41:45 +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;nm&apos; case failed on all platforms. The error message is like below:
############
-------System test for nm command------
nm: nmfile1.obj: no symbols
nm: nmfile1.obj: no symbols
nm: nmfile2.obj: no symbols
nm: nmfile3.obj: no symbols
nm: nmfile1.obj: no symbols
nm: nmfile1.obj: no symbols
nm: nmfile2.obj: no symbols
nm: nmfile3.obj: no symbols
nm -A: FAIL
#############


Steps:
######
1. root@beagleboard:~# cd /opt/ltp/testcases/bin/
2. root@beagleboard:/opt/ltp/testcases/bin# ./nm01 
######</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18261</commentid>
    <comment_count>1</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2012-01-19 05:51:14 +0000</bug_when>
    <thetext>Is this ARM toolchain related ? Is this really only happening on the
beagleboard ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18262</commentid>
    <comment_count>2</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2012-01-19 05:54:12 +0000</bug_when>
    <thetext>It also happens on other platforms, including both Intel and non-Intel platforms.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18263</commentid>
    <comment_count>3</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2012-01-19 05:54:53 +0000</bug_when>
    <thetext>Thanks for the update. 

We&apos;ll have to figure out what has happened with the toolchain.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18264</commentid>
    <comment_count>4</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2012-01-19 05:55:25 +0000</bug_when>
    <thetext>(and reading, I see that the all platform part was already covered). sorry about that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18271</commentid>
    <comment_count>5</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2012-01-19 09:12:50 +0000</bug_when>
    <thetext>again which image is failing?

Can you also provide the test case in a form that we can use.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18280</commentid>
    <comment_count>6</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2012-01-19 15:42:24 +0000</bug_when>
    <thetext>Does anybody know last when this has worked?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18293</commentid>
    <comment_count>7</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2012-01-20 01:07:59 +0000</bug_when>
    <thetext>This issue is same as bug 1922. When using the pre-build ltp, the case failed. When build the ltp 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/nm;  make; ./nm01
########

The case can pass:
####################
root@beagleboard:~/ltp-full-20110915/testcases/commands/ade/nm# ./nm01 
-------System test for nm command------
-)1
-)2
-)3
-)4
-)5
-)6
-)7
-)8
nm01: PASS
####################</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18299</commentid>
    <comment_count>8</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2012-01-20 10:30:25 +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>18306</commentid>
    <comment_count>9</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2012-01-20 17:09:57 +0000</bug_when>
    <thetext>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>18309</commentid>
    <comment_count>10</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2012-01-20 17:12:10 +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>18311</commentid>
    <comment_count>11</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2012-01-20 19:15:03 +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>18316</commentid>
    <comment_count>12</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2012-01-20 20:01:38 +0000</bug_when>
    <thetext>(In reply to comment #11)
&gt; (In reply to comment #10)
&gt; &gt; Jiajun,
&gt; &gt;   Thanks for jumping in. I think the issue is fixed, just need verification.
&gt; &gt; Thanks,
&gt; &gt; Nitin
&gt; Sorry, Nitin. Yes, the bug is root caused and we could mark the bug as fixed. I
&gt; will open another new bug since poky will strip all binaries during do_package,
&gt; which makes LTP cases fail.

The bug has been fixed by Nitin&apos;s patch on http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=nitin/misc&amp;id=ffc4c2baa9ed5116336b1d5c2d6110f7e4163c27.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18364</commentid>
    <comment_count>13</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2012-01-25 14:45:37 +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>18886</commentid>
    <comment_count>14</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2012-03-07 02:36:06 +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=nm stime=946714336
cmdline=&quot;export TCdat=$LTPROOT/testcases/bin; nm01 &quot;
contacts=&quot;&quot;
analysis=exit
&lt;&lt;&lt;test_output&gt;&gt;&gt;
-------System test for nm command------
-)1
-)2
-)3
-)4
-)5
-)6
-)7
-)8
nm01: PASS
############</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>