Bug 243 - poky-image-lsb build failure on qemu ppc
Summary: poky-image-lsb build failure on qemu ppc
Status: VERIFIED FIXED
Alias: None
Product: Meta-yocto
Classification: Build System, Metadata & Runtime
Component: meta-yocto (show other bugs)
Version: 0.9
Hardware: x86 ppc
: High major
Target Milestone: 0.9 M3
Assignee: Dongxiao Xu
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2010-08-29 22:13 UTC by Dongxiao Xu
Modified: 2010-12-21 06:07 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified: Program Management
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dongxiao Xu 2010-08-29 22:13:59 UTC
Audobuilder reports build failure of qemuppc poky-image-lsb. 
Part of the error is:

NOTE: package rpm-5.1.10-r2: task do_compile: Started
NOTE: package pciutils-3.1.5-r0: task do_compile: Succeeded
NOTE: Running task 3487 of 6447 (ID: 2302, /srv/home/pokybuild/poky-slave/nightly-release/build/meta/recipes-bsp/pciutils/pciutils_3.1.5.bb, do_install)
NOTE: package sed-4.1.2-r2: task do_qa_configure: Started
NOTE: Checking autotools environment for common misconfiguration
WARNING: sed: Recipe file does not have license file information (LIC_FILES_CHKSUM)
NOTE: package sed-4.1.2-r2: task do_qa_configure: Succeeded
NOTE: Running task 3488 of 6447 (ID: 2069, /srv/home/pokybuild/poky-slave/nightly-release/build/meta/packages/sed/sed_4.1.2.bb, do_compile)
NOTE: package pciutils-3.1.5-r0: task do_install: Started
NOTE: package pciutils-3.1.5-r0: task do_install: Succeeded
NOTE: package sed-4.1.2-r2: task do_compile: Started
NOTE: Running task 3489 of 6447 (ID: 2052, /srv/home/pokybuild/poky-slave/nightly-release/build/meta/packages/psmisc/psmisc_22.2.bb, do_qa_configure)
ERROR: Task failed: ('function do_compile failed', '/srv/home/pokybuild/poky-slave/nightly-release/build/build/tmp/work/ppc603e-poky-linux/sed-4.1.2-r2/temp/log.do_compile.13040')
ERROR: Logfile of failure stored in: /srv/home/pokybuild/poky-slave/nightly-release/build/build/tmp/work/ppc603e-poky-linux/sed-4.1.2-r2/temp/log.do_compile.13040
Log data follows:
| NOTE: make -j 15
| make  all-recursive
| make[1]: Entering directory `/srv/home/pokybuild/poky-slave/nightly-release/build/build/tmp/work/ppc603e-poky-linux/sed-4.1.2-r2/sed-4.1.2'
| Making all in intl
| make[2]: Entering directory `/srv/home/pokybuild/poky-slave/nightly-release/build/build/tmp/work/ppc603e-poky-linux/sed-4.1.2-r2/sed-4.1.2/intl'
| make[2]: Nothing to be done for `all'.
| make[2]: Leaving directory `/srv/home/pokybuild/poky-slave/nightly-release/build/build/tmp/work/ppc603e-poky-linux/sed-4.1.2-r2/sed-4.1.2/intl'
| Making all in lib
| make[2]: Entering directory `/srv/home/pokybuild/poky-slave/nightly-release/build/build/tmp/work/ppc603e-poky-linux/sed-4.1.2-r2/sed-4.1.2/lib'
| powerpc-poky-linux-gcc -mcpu=603e -mhard-float --sysroot=/srv/home/pokybuild/poky-slave/nightly-release/build/build/tmp/sysroots/ppc603e-poky-linux -DHAVE_CONFIG_H -I. -I..  -I../lib -I../intl -I.. -I../lib   -fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2 -ggdb -feliminate-unused-debug-types -MT getopt1.o -MD -MP -MF .deps/getopt1.Tpo -c -o getopt1.o getopt1.c
| powerpc-poky-linux-gcc -mcpu=603e -mhard-float --sysroot=/srv/home/pokybuild/poky-slave/nightly-release/build/build/tmp/sysroots/ppc603e-poky-linux -DHAVE_CONFIG_H -I. -I..  -I../lib -I../intl -I.. -I../lib   -fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2 -ggdb -feliminate-unused-debug-types -MT getopt.o -MD -MP -MF .deps/getopt.Tpo -c -o getopt.o getopt.c
| powerpc-poky-linux-gcc -mcpu=603e -mhard-float --sysroot=/srv/home/pokybuild/poky-slave/nightly-release/build/build/tmp/sysroots/ppc603e-poky-linux -DHAVE_CONFIG_H -I. -I..  -I../lib -I../intl -I.. -I../lib   -fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2 -ggdb -feliminate-unused-debug-types -MT utils.o -MD -MP -MF .deps/utils.Tpo -c -o utils.o utils.c
| powerpc-poky-linux-gcc -mcpu=603e -mhard-float --sysroot=/srv/home/pokybuild/poky-slave/nightly-release/build/build/tmp/sysroots/ppc603e-poky-linux -DHAVE_CONFIG_H -I. -I..  -I../lib -I../intl -I.. -I../lib   -fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2 -ggdb -feliminate-unused-debug-types -MT getline.o -MD -MP -MF .deps/getline.Tpo -c -o getline.o getline.c
| getline.c:34: error: conflicting types for 'getline'
| /srv/home/pokybuild/poky-slave/nightly-release/build/build/tmp/sysroots/ppc603e-poky-linux/usr/include/stdio.h:651: error: previous declaration of 'getline' was here
| mv -f .deps/getopt1.Tpo .deps/getopt1.Po
| make[2]: *** [getline.o] Error 1
| make[2]: *** Waiting for unfinished jobs....
| mv -f .deps/getopt.Tpo .deps/getopt.Po
| mv -f .deps/utils.Tpo .deps/utils.Po
| make[2]: Leaving directory `/srv/home/pokybuild/poky-slave/nightly-release/build/build/tmp/work/ppc603e-poky-linux/sed-4.1.2-r2/sed-4.1.2/lib'
| make[1]: *** [all-recursive] Error 1
| make[1]: Leaving directory `/srv/home/pokybuild/poky-slave/nightly-release/build/build/tmp/work/ppc603e-poky-linux/sed-4.1.2-r2/sed-4.1.2'
| make: *** [all] Error 2
| FATAL: oe_runmake failed
Comment 1 Dongxiao Xu 2010-08-30 21:43:10 UTC
The error log shows sed compilation error on PPC arch.

After doing some investigation, I found that sed will firstly check whether there is a working getline function in system, if not (ppc), it use its self-defined getline().
However in 4.1.2, this function definition is not match with its
declaration.

I have sent a fix to list.
Comment 2 Dongxiao Xu 2010-08-31 17:41:52 UTC
After some investigation, I found that ppc arch could not detect the system getline() function (provided by glibc), however other architecture could, like x86, arm, and mips. This is because these architecture sets the following line in meta/site/xxx-common or meta/site/xxx-linux, thus it is the reason why this bug is only found in ppc and not triggered in other archs.

# gettext
am_cv_func_working_getline=${am_cv_func_working_getline=yes}

Now both fixes have been merged into poky/master, so mark the bug as fixed.
Comment 3 Dongxiao Xu 2010-09-01 18:54:29 UTC
Mark the bug as verified since autobuilder/local have both passed the poky-image-lsb ppc build.