Bug 214

Summary: oprofile recipe is failing to build on arm
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Nitin Kamble <nitin.a.kamble>
Component: devtools / tool chainAssignee: Kevin Tian <kevin.tian>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Undecided CC: josh, kevin.tian, meta.mr.watcher, meta.watcher, sgw
Version: unspecified   
Target Milestone: 0.9 M1   
Hardware: x86   
OS: arm   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Nitin Kamble 2010-08-17 09:31:08 UTC
$ MACHINE=qemuarm bitbake oprofile
.
.
.
file-0.9.6/libregex/tests'
| make[2]: Leaving directory `/home/nitin/build/build-eglibc/tmp/work/armv5te-poky-linux-gnueabi/oprofile-0.9.6-r0/oprofile-0.9.6/libregex'
| Making all in libpp
| make[2]: Entering directory `/home/nitin/build/build-eglibc/tmp/work/armv5te-poky-linux-gnueabi/oprofile-0.9.6-r0/oprofile-0.9.6/libpp'
| make[2]: Nothing to be done for `all'.
| make[2]: Leaving directory `/home/nitin/build/build-eglibc/tmp/work/armv5te-poky-linux-gnueabi/oprofile-0.9.6-r0/oprofile-0.9.6/libpp'
| Making all in opjitconv
| make[2]: Entering directory `/home/nitin/build/build-eglibc/tmp/work/armv5te-poky-linux-gnueabi/oprofile-0.9.6-r0/oprofile-0.9.6/opjitconv'
| /bin/sh ../arm-poky-linux-gnueabi-libtool --tag=CC   --mode=link ccache arm-poky-linux-gnueabi-gcc -march=armv5te -mtune=arm926ej-s --sysroot=/home/nitin/build/build-eglibc/tmp/sysroots/armv5te-poky-linux-gnueabi -W -Wall -fno-common -Wdeclaration-after-statement -fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2 -ggdb -feliminate-unused-debug-types  -Wl,-O1 -Wl,--as-needed -o opjitconv opjitconv.o conversion.o parse_dump.o jitsymbol.o create_bfd.o debug_line.o ../libutil/libutil.a -lbfd -liberty -ldl
| arm-poky-linux-gnueabi-libtool: link: cannot find the library `/home/nitin/build/build-eglibc/tmp/sysroots/armv5te-poky-linux-gnueabi/usr/lib/home/nitin/build/build-eglibc/tmp/sysroots/armv5te-poky-linux-gnueabi/libz.la' or unhandled argument `/home/nitin/build/build-eglibc/tmp/sysroots/armv5te-poky-linux-gnueabi/usr/lib/home/nitin/build/build-eglibc/tmp/sysroots/armv5te-poky-linux-gnueabi/libz.la'
| make[2]: *** [opjitconv] Error 1
| make[2]: Leaving directory `/home/nitin/build/build-eglibc/tmp/work/armv5te-poky-linux-gnueabi/oprofile-0.9.6-r0/oprofile-0.9.6/opjitconv'
| make[1]: *** [all-recursive] Error 1
| make[1]: Leaving directory `/home/nitin/build/build-eglibc/tmp/work/armv5te-poky-linux-gnueabi/oprofile-0.9.6-r0/oprofile-0.9.6'
| make: *** [all] Error 2
| FATAL: oe_runmake failed
NOTE: package oprofile-0.9.6-r0: task do_compile: Failed
ERROR: TaskFailed event exception, aborting
.
.
.
ERROR: '/home/nitin/prj/poky.git/meta/packages/oprofile/oprofile_0.9.6.bb' failed
Comment 1 Joshua Lock - Disabled 2010-08-24 03:51:12 UTC
Is this failing only with eglibc?
Comment 2 Nitin Kamble 2010-08-24 07:21:47 UTC
It was not specific to eglibc. I think there is a commit done by Kevin in the master to fix this.
Comment 3 Joshua Lock - Disabled 2010-08-24 07:35:50 UTC
Kevin, can you update on whether you've fixed this bug?

Thanks
Comment 4 Kevin Tian 2010-08-24 17:03:29 UTC
yes, I think it has been fixed. Sorry that I don't know there's a bug reported before:

commit 4cdaa1789a82a89121c0c2b91724848755f12863
Author: Kevin Tian <kevin.tian@intel.com>
Date:   Fri Aug 20 13:13:36 2010 +0800

    gdb: disable installation of bfd/iberty/opcodes

    Those are assumed to be provided by binutils, so we disable installation
    here. Without doing so, a broken libbfd.la from gdb is installed to sysroot
    which overrides binutils version and then hurt other packages such as
    oprofile

    also fix --with-readline to --with-system-readline

    Signed-off-by: Kevin Tian <kevin.tian@intel.com>