Bug 1199

Summary: qemuppc lsb-sdk rootfs image build failed on autobuilder in nightly build 20110625-1
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: liang li <liang.li2>
Component: meta-yoctoAssignee: Richard Purdie <richard.purdie>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Low CC: dexuan.cui, jiajun.xu, liangliang.wang, nitin.a.kamble, poky.bs.watcher, poky.watcher, sgw, yi.zhao
Version: unspecified   
Target Milestone: 1.1   
Hardware: x86   
OS: ppc   
Whiteboard: Waiting to reproduce (30-Jun-2011)
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description liang li 2011-06-28 00:17:59 UTC
Image location:
http://autobuilder.pokylinux.org/nightly/20110625-1/machines/qemu/qemuppc/
Tree/Branch: Poky/Master
Poky Commit: a1f79a7896b6411669b3ccada6204d2695e80fc5

failed bb:
oprofile-0.9.6.bb

errors below :
ERROR: Logfile of failure stored in: /srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/work/ppc603e-poky-linux/oprofile-0.9.6-r1/temp/log.do_configure.1548
Log data follows:
| automake (GNU automake) 1.11.1
| Copyright (C) 2009 Free Software Foundation, Inc.
| License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl-2.0.html>
| This is free software: you are free to change and redistribute it.
| There is NO WARRANTY, to the extent permitted by law.
| 
| Written by Tom Tromey <tromey@redhat.com>
|        and Alexandre Duret-Lutz <adl@gnu.org>.
| AUTOV is 1.11
| NOTE: Executing autoreconf --verbose --install --force --exclude=autopoint -I /srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/work/ppc603e-poky-linux/oprofile-0.9.6-r1/oprofile-0.9.6/m4/ -I/srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/x86_64-linux/usr/share/aclocal-1.11 -I /srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/qemuppc/usr/share/aclocal
| autoreconf: Entering directory `.'
| autoreconf: configure.in: not using Gettext
| autoreconf: running: aclocal -I /srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/work/ppc603e-poky-linux/oprofile-0.9.6-r1/oprofile-0.9.6/m4/ -I /srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/x86_64-linux/usr/share/aclocal-1.11 -I /srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/qemuppc/usr/share/aclocal -I /srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/work/ppc603e-poky-linux/oprofile-0.9.6-r1/oprofile-0.9.6/m4/ -I /srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/x86_64-linux/usr/share/aclocal-1.11 -I /srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/qemuppc/usr/share/aclocal --force --warnings=cross -I m4
| aclocal: unknown warning category `cross'
| autoreconf: configure.in: tracing
| configure.in:85: warning: cannot check for file existence when cross compiling
| ../../lib/autoconf/general.m4:2772: AC_CHECK_FILE is expanded from...
| configure.in:85: the top level
| configure.in:86: warning: cannot check for file existence when cross compiling
| ../../lib/autoconf/general.m4:2772: AC_CHECK_FILE is expanded from...
| configure.in:86: the top level
| autoreconf: running: libtoolize --copy --force
| libtoolize: putting auxiliary files in `.'.
| libtoolize: copying file `./ltmain.sh'
| libtoolize: putting macros in `m4'.
| libtoolize: copying file `m4/libtool.m4'
| libtoolize: copying file `m4/ltoptions.m4'
| libtoolize: copying file `m4/ltsugar.m4'
| libtoolize: copying file `m4/ltversion.m4'
| libtoolize: copying file `m4/lt~obsolete.m4'
| libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.in and
| libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
| libtoolize: `AC_PROG_RANLIB' is rendered obsolete by `LT_INIT'
| aclocal: unknown warning category `cross'
| autoreconf: running: /srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/x86_64-linux/usr/bin/autoconf --include=/srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/work/ppc603e-poky-linux/oprofile-0.9.6-r1/oprofile-0.9.6/m4/ --include=/srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/x86_64-linux/usr/share/aclocal-1.11 --include=/srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/qemuppc/usr/share/aclocal --force --warnings=cross
| configure.in:85: warning: cannot check for file existence when cross compiling
| ../../lib/autoconf/general.m4:2772: AC_CHECK_FILE is expanded from...
| configure.in:85: the top level
| configure.in:86: warning: cannot check for file existence when cross compiling
| ../../lib/autoconf/general.m4:2772: AC_CHECK_FILE is expanded from...
| configure.in:86: the top level
| autoreconf: running: /srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/x86_64-linux/usr/bin/autoheader --include=/srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/work/ppc603e-poky-linux/oprofile-0.9.6-r1/oprofile-0.9.6/m4/ --include=/srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/x86_64-linux/usr/share/aclocal-1.11 --include=/srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/qemuppc/usr/share/aclocal --force --warnings=cross
| autoreconf: running: automake --foreign --add-missing --copy --force-missing --warnings=cross
| automake: unknown warning category `cross'
| autoreconf: running: gnu-configize
| autoreconf: Leaving directory `.'
| NOTE: Running /srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/work/ppc603e-poky-linux/oprofile-0.9.6-r1/oprofile-0.9.6/configure 		 --build=x86_64-linux 		  --host=powerpc-poky-linux 		  --target=powerpc-poky-linux 		  --prefix=/usr 		  --exec_prefix=/usr 		  --bindir=/usr/bin 		  --sbindir=/usr/sbin 		  --libexecdir=/usr/libexec 		  --datadir=/usr/share 		  --sysconfdir=/etc 		  --sharedstatedir=/com 		  --localstatedir=/var 		  --libdir=/usr/lib 		  --includedir=/usr/include 		  --oldincludedir=/usr/include 		  --infodir=/usr/share/info 		  --mandir=/usr/share/man 		  --disable-silent-rules 		  --with-libtool-sysroot=/srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/qemuppc --with-kernel-support --without-x ...
| configure: WARNING: unrecognized options: --disable-silent-rules
| configure: loading site script /srv/home/pokybuild/poky-slave/nightly-external/build/meta/site/endian-big
| configure: loading site script /srv/home/pokybuild/poky-slave/nightly-external/build/meta/site/common-glibc
| configure: loading site script /srv/home/pokybuild/poky-slave/nightly-external/build/meta/site/powerpc-common
| configure: loading site script /srv/home/pokybuild/poky-slave/nightly-external/build/meta/site/powerpc-linux
| configure: loading site script /srv/home/pokybuild/poky-slave/nightly-external/build/meta/site/common
| configure: loading site script /srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/qemuppc/usr/share/powerpc-poky-linux_config_site.d/zlib_config
| configure: loading site script /srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/qemuppc/usr/share/powerpc-poky-linux_config_site.d/eglibc_config
| checking for a BSD-compatible install... /usr/bin/install -c
| checking whether build environment is sane... yes
| checking for powerpc-poky-linux-strip... powerpc-poky-linux-strip
| checking for a thread-safe mkdir -p... /bin/mkdir -p
| checking for gawk... gawk
| checking whether make sets $(MAKE)... yes
| checking for style of include used by make... GNU
| checking for powerpc-poky-linux-gcc... powerpc-poky-linux-gcc -mcpu=603e  -mhard-float --sysroot=/srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/qemuppc
| checking whether the C compiler works... yes
| checking for C compiler default output file name... a.out
| checking for suffix of executables...
| checking whether we are cross compiling... yes
| checking for suffix of object files... o
| checking whether we are using the GNU C compiler... yes
| checking whether powerpc-poky-linux-gcc -mcpu=603e  -mhard-float --sysroot=/srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/qemuppc accepts -g... yes
| checking for powerpc-poky-linux-gcc -mcpu=603e  -mhard-float --sysroot=/srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/qemuppc option to accept ISO C89... none needed
| checking dependency style of powerpc-poky-linux-gcc -mcpu=603e  -mhard-float --sysroot=/srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/qemuppc... gcc3
| checking whether basename is declared... yes
| checking for powerpc-poky-linux-ranlib... powerpc-poky-linux-ranlib
| checking whether ln -s works... yes
| checking build system type... x86_64-pc-linux-gnu
| checking host system type... powerpc-poky-linux-gnu
| checking how to print strings... printf
| checking for a sed that does not truncate output... /usr/bin/sed
| checking for grep that handles long lines and -e... /usr/bin/grep
| checking for egrep... /usr/bin/grep -E
| checking for fgrep... /usr/bin/grep -F
| checking for ld used by powerpc-poky-linux-gcc -mcpu=603e  -mhard-float --sysroot=/srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/qemuppc... powerpc-poky-linux-ld --sysroot=/srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/qemuppc
| checking if the linker (powerpc-poky-linux-ld --sysroot=/srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/qemuppc) is GNU ld... yes
| checking for BSD- or MS-compatible name lister (nm)... powerpc-poky-linux-nm
| checking the name lister (powerpc-poky-linux-nm) interface... BSD nm
| checking the maximum length of command line arguments... 3458764513820540925
| checking whether the shell understands some XSI constructs... yes
| checking whether the shell understands "+="... yes
| checking how to convert x86_64-pc-linux-gnu file names to powerpc-poky-linux-gnu format... func_convert_file_noop
| checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
| checking for powerpc-poky-linux-ld --sysroot=/srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/qemuppc option to reload object files... -r
| checking for powerpc-poky-linux-objdump... powerpc-poky-linux-objdump
| checking how to recognize dependent libraries... pass_all
| checking for powerpc-poky-linux-dlltool... no
| checking for dlltool... no
| checking how to associate runtime and link libraries... printf %s\n
| checking for powerpc-poky-linux-ar... powerpc-poky-linux-ar
| checking for archiver @FILE support... @
| checking for powerpc-poky-linux-strip... (cached) powerpc-poky-linux-strip
| checking for powerpc-poky-linux-ranlib... (cached) powerpc-poky-linux-ranlib
| checking command to parse powerpc-poky-linux-nm output from powerpc-poky-linux-gcc -mcpu=603e  -mhard-float --sysroot=/srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/qemuppc object... ok
| checking for sysroot... /srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/qemuppc
| checking for powerpc-poky-linux-mt... no
| checking for mt... mt
| configure: WARNING: using cross tools not prefixed with host triplet
| checking if mt is a manifest tool... no
| checking how to run the C preprocessor... powerpc-poky-linux-gcc -E --sysroot=/srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/qemuppc
| checking for ANSI C header files... (cached) yes
| checking for sys/types.h... (cached) yes
| checking for sys/stat.h... (cached) yes
| checking for stdlib.h... (cached) yes
| checking for string.h... (cached) yes
| checking for memory.h... (cached) yes
| checking for strings.h... (cached) yes
| checking for inttypes.h... (cached) yes
| checking for stdint.h... (cached) yes
| checking for unistd.h... (cached) yes
| checking for dlfcn.h... (cached) yes
| checking for objdir... .libs
| checking if powerpc-poky-linux-gcc -mcpu=603e  -mhard-float --sysroot=/srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/qemuppc supports -fno-rtti -fno-exceptions... no
| checking for powerpc-poky-linux-gcc -mcpu=603e  -mhard-float --sysroot=/srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/qemuppc option to produce PIC... -fPIC -DPIC
| checking if powerpc-poky-linux-gcc -mcpu=603e  -mhard-float --sysroot=/srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/qemuppc PIC flag -fPIC -DPIC works... yes
| checking if powerpc-poky-linux-gcc -mcpu=603e  -mhard-float --sysroot=/srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/qemuppc static flag -static works... yes
| checking if powerpc-poky-linux-gcc -mcpu=603e  -mhard-float --sysroot=/srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/qemuppc supports -c -o file.o... yes
| checking if powerpc-poky-linux-gcc -mcpu=603e  -mhard-float --sysroot=/srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/qemuppc supports -c -o file.o... (cached) yes
| checking whether the powerpc-poky-linux-gcc -mcpu=603e  -mhard-float --sysroot=/srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/qemuppc linker (powerpc-poky-linux-ld --sysroot=/srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/qemuppc) supports shared libraries... yes
| checking whether -lc should be explicitly linked in... no
| checking dynamic linker characteristics... GNU/Linux ld.so
| checking how to hardcode library paths into programs... immediate
| checking whether stripping libraries is possible... yes
| checking if libtool supports shared libraries... yes
| checking whether to build shared libraries... yes
| checking whether to build static libraries... yes
| checking for powerpc-poky-linux-gcc... (cached) powerpc-poky-linux-gcc -mcpu=603e  -mhard-float --sysroot=/srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/qemuppc
| checking whether we are using the GNU C compiler... (cached) yes
| checking whether powerpc-poky-linux-gcc -mcpu=603e  -mhard-float --sysroot=/srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/qemuppc accepts -g... (cached) yes
| checking for powerpc-poky-linux-gcc -mcpu=603e  -mhard-float --sysroot=/srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/qemuppc option to accept ISO C89... (cached) none needed
| checking dependency style of powerpc-poky-linux-gcc -mcpu=603e  -mhard-float --sysroot=/srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/qemuppc... (cached) gcc3
| checking how to run the C preprocessor... powerpc-poky-linux-gcc -E --sysroot=/srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/qemuppc
| checking whether we are using the GNU C++ compiler... yes
| checking whether powerpc-poky-linux-g++ -mcpu=603e  -mhard-float --sysroot=/srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/qemuppc accepts -g... yes
| checking dependency style of powerpc-poky-linux-g++ -mcpu=603e  -mhard-float --sysroot=/srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/qemuppc... gcc3
| checking how to run the C++ preprocessor... powerpc-poky-linux-g++ -mcpu=603e  -mhard-float --sysroot=/srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/qemuppc -E
| checking for ld used by powerpc-poky-linux-g++ -mcpu=603e  -mhard-float --sysroot=/srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/qemuppc... powerpc-poky-linux-ld --sysroot=/srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/qemuppc
| checking if the linker (powerpc-poky-linux-ld --sysroot=/srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/qemuppc) is GNU ld... yes
| checking whether the powerpc-poky-linux-g++ -mcpu=603e  -mhard-float --sysroot=/srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/qemuppc linker (powerpc-poky-linux-ld --sysroot=/srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/qemuppc) supports shared libraries... yes
| checking for powerpc-poky-linux-g++ -mcpu=603e  -mhard-float --sysroot=/srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/qemuppc option to produce PIC... -fPIC -DPIC
| checking if powerpc-poky-linux-g++ -mcpu=603e  -mhard-float --sysroot=/srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/qemuppc PIC flag -fPIC -DPIC works... yes
| checking if powerpc-poky-linux-g++ -mcpu=603e  -mhard-float --sysroot=/srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/qemuppc static flag -static works... yes
| checking if powerpc-poky-linux-g++ -mcpu=603e  -mhard-float --sysroot=/srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/qemuppc supports -c -o file.o... yes
| checking if powerpc-poky-linux-g++ -mcpu=603e  -mhard-float --sysroot=/srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/qemuppc supports -c -o file.o... (cached) yes
| checking whether the powerpc-poky-linux-g++ -mcpu=603e  -mhard-float --sysroot=/srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/qemuppc linker (powerpc-poky-linux-ld --sysroot=/srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/qemuppc) supports shared libraries... yes
| checking dynamic linker characteristics... (cached) GNU/Linux ld.so
| checking how to hardcode library paths into programs... immediate
| checking for ld... powerpc-poky-linux-ld --sysroot=/srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/sysroots/qemuppc
| checking for kernel OProfile support... yes
| checking whether malloc attribute is understood... no
| checking whether __builtin_expect is understood... yes
| checking for sched_setaffinity... yes
| checking for perfmonctl... no
| checking for poptGetContext in -lpopt... yes
| checking libiberty.h usability... yes
| checking libiberty.h presence... yes
| checking for libiberty.h... yes
| checking for cplus_demangle in -liberty... no
| configure: error: liberty library not found
| ERROR: oe_runconf failed
| ERROR: Function 'do_configure' failed (see /srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/work/ppc603e-poky-linux/oprofile-0.9.6-r1/temp/log.do_configure.1548 for further information)
| ERROR: Function 'do_configure' failed (see /srv/home/pokybuild/poky-slave/nightly-external/build/build/tmp/work/ppc603e-poky-linux/oprofile-0.9.6-r1/temp/log.do_configure.1548 for further information)
NOTE: package oprofile-0.9.6-r1: task do_configure: Failed
 
detail build log :
http://autobuilder.yoctoproject.org:8010/builders/nightly-external/builds/17/steps/shell_32/logs/stdio
Comment 1 liang li 2011-06-28 01:06:13 UTC
build locally on my machine, no such error:
steps: 
bitbake oprofile

test env
host :ubuntu 10.10 x86_64
linux kernel :2.6.35-28-generic #50-Ubuntu SMP
Comment 2 Richard Purdie 2011-06-29 03:07:38 UTC
We need the config.log file from this build.

It looks like some kind of race issue. Was binutils built before oprofile (and is binutils correctly in the DEPENDS of oprofile?)
Comment 3 Saul Wold 2011-06-30 15:21:17 UTC
I think this is a timing and ordering issue, it's not repeatable consistently.

And, yes oprofile does depend on binutils
Comment 4 Richard Purdie 2011-07-02 15:37:05 UTC
I just took another look at this after it failed on the M2 build. I think the problem is that both gcc and binutils are providing libiberty and hence conflicting in the sysroot during the build. If we remove libiberty from gcc's packaging, I suspect we'll stop seeing this bug.
Comment 5 Dexuan Cui 2011-07-03 22:59:37 UTC
(In reply to comment #4)
> I just took another look at this after it failed on the M2 build. I think the
> problem is that both gcc and binutils are providing libiberty and hence
> conflicting in the sysroot during the build. If we remove libiberty from gcc's
> packaging, I suspect we'll stop seeing this bug.
I think we already did this: please see bug 754's comment 1 and comment 2.
Comment 6 Richard Purdie 2011-07-04 00:48:44 UTC
Somehow the problem is back :(
Comment 8 liang li 2011-07-11 19:20:47 UTC
verified on nightly build 20110708-1:
http://autobuilder.pokylinux.org/nightly/20110708-1/machines/qemu/
git info :  9f4eaeef33da5595748253d59d95c7ca548e28fa
git branch: poky/master