<?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>243</bug_id>
          
          <creation_ts>2010-08-29 22:13:59 +0000</creation_ts>
          <short_desc>poky-image-lsb build failure on qemu ppc</short_desc>
          <delta_ts>2010-12-21 06:07:13 +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>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>0.9</version>
          <rep_platform>x86</rep_platform>
          <op_sys>ppc</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>0.9 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dongxiao Xu">dongxiao.xu</reporter>
          <assigned_to name="Dongxiao Xu">dongxiao.xu</assigned_to>
          <cc>kevin.tian</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          <cf_verified>Program Management</cf_verified>
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>9457</commentid>
    <comment_count>0</comment_count>
    <who name="Dongxiao Xu">dongxiao.xu</who>
    <bug_when>2010-08-29 22:13:59 +0000</bug_when>
    <thetext>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: (&apos;function do_compile failed&apos;, &apos;/srv/home/pokybuild/poky-slave/nightly-release/build/build/tmp/work/ppc603e-poky-linux/sed-4.1.2-r2/temp/log.do_compile.13040&apos;)
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&apos;
| 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&apos;
| make[2]: Nothing to be done for `all&apos;.
| 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&apos;
| 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&apos;
| 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 &apos;getline&apos;
| /srv/home/pokybuild/poky-slave/nightly-release/build/build/tmp/sysroots/ppc603e-poky-linux/usr/include/stdio.h:651: error: previous declaration of &apos;getline&apos; 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&apos;
| 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&apos;
| make: *** [all] Error 2
| FATAL: oe_runmake failed</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9470</commentid>
    <comment_count>1</comment_count>
    <who name="Dongxiao Xu">dongxiao.xu</who>
    <bug_when>2010-08-30 21:43:10 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9483</commentid>
    <comment_count>2</comment_count>
    <who name="Dongxiao Xu">dongxiao.xu</who>
    <bug_when>2010-08-31 17:41:52 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9517</commentid>
    <comment_count>3</comment_count>
    <who name="Dongxiao Xu">dongxiao.xu</who>
    <bug_when>2010-09-01 18:54:29 +0000</bug_when>
    <thetext>Mark the bug as verified since autobuilder/local have both passed the poky-image-lsb ppc build.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>