Tree/branch: poky/1.2_M2 Commit: 0f4d99d207b224bb9ce23de00a48f795ae20b3a0 Image location: http://autobuilder.pokylinux.org/nightly/20120111-3/machines/ LTP version: 20110915 'nm' 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 ######
Is this ARM toolchain related ? Is this really only happening on the beagleboard ?
It also happens on other platforms, including both Intel and non-Intel platforms.
Thanks for the update. We'll have to figure out what has happened with the toolchain.
(and reading, I see that the all platform part was already covered). sorry about that.
again which image is failing? Can you also provide the test case in a form that we can use.
Does anybody know last when this has worked?
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 ####################
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
Hi Nitin, It'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.
Jiajun, Thanks for jumping in. I think the issue is fixed, just need verification. Thanks, Nitin
(In reply to comment #10) > Jiajun, > Thanks for jumping in. I think the issue is fixed, just need verification. > Thanks, > 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.
(In reply to comment #11) > (In reply to comment #10) > > Jiajun, > > Thanks for jumping in. I think the issue is fixed, just need verification. > > Thanks, > > 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. The bug has been fixed by Nitin's patch on http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=nitin/misc&id=ffc4c2baa9ed5116336b1d5c2d6110f7e4163c27.
commit 5c6aa87a9124815df768392cde715cbb8ce55104 Author: Nitin A Kamble <nitin.a.kamble@intel.com> Date: Fri Jan 20 10:11:10 2012 -0800 ltp: disable elf binary stripping Otherwise the ltp tests ldd01 & 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 <nitin.a.kamble@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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="export TCdat=$LTPROOT/testcases/bin; nm01 " contacts="" analysis=exit <<<test_output>>> -------System test for nm command------ -)1 -)2 -)3 -)4 -)5 -)6 -)7 -)8 nm01: PASS ############