<?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>2264</bug_id>
          
          <creation_ts>2012-04-09 07:34:41 +0000</creation_ts>
          <short_desc>gdb failed to compile on 32bit host</short_desc>
          <delta_ts>2012-04-24 01:56:29 +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>OE-Core</product>
          <component>core</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.2 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jiajun Xu">jiajun.xu</reporter>
          <assigned_to name="Dexuan Cui">dexuan.cui</assigned_to>
          <cc>dexuan.cui</cc>
    
    <cc>hongnax.xu</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>ningx.ma</cc>
    
    <cc>sgw</cc>
    
    <cc>yilongx.y.sun</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>20051</commentid>
    <comment_count>0</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2012-04-09 07:34:41 +0000</bug_when>
    <thetext>tree/branch: poky/1.2_M4
commit: 27aa5489fb40d99c58bb2a4bbf2311e2c502a091

With 1.2 M4, I find on a 32bit host(Ubuntu 10.04), gdb failed to compile due to find the wrong path for libexpat. It&apos;s because that gdb will check libexpat. On 32bit host, there will be native libexpat under /usr/lib/. It will use the native one instead of the one under sysroot.

Error message as below:
#########

| checking dependency style of x86_64-poky-linux-gcc    -m64 --sysroot=/home/jxu49/osel/m4/self-hosted/tmp/sysroots/qemux86-64... (cached) gcc3
| checking libunwind.h usability... no
| checking libunwind.h presence... no
| checking for libunwind.h... no
| checking libunwind-ia64.h usability... no
| checking libunwind-ia64.h presence... no
| checking for libunwind-ia64.h... no
| checking for monstartup... yes
| checking for _mcleanup... yes
| checking for _etext... yes
| checking for etext... yes
| checking for gawk... (cached) gawk
| checking whether ln -s works... yes
| checking for x86_64-poky-linux-ranlib... (cached) x86_64-poky-linux-ranlib
| checking for bison... bison -y
| checking for x86_64-poky-linux-ar... x86_64-poky-linux-ar
| checking for x86_64-poky-linux-dlltool... x86_64-poky-linux-dlltool
| checking for x86_64-poky-linux-windres... x86_64-poky-linux-windres
| checking for x86_64-poky-linux-mig... no
| checking for mig... no
| checking for main in -lm... yes
| checking for wctype... yes
| checking for library containing gethostbyname... none required
| checking for library containing socketpair... none required
| checking for library containing zlibVersion... -lz
| checking zlib.h usability... yes
| checking zlib.h presence... yes
| checking for zlib.h... yes
| checking for library containing dlgetmodinfo... no
| checking for iconv... yes
| checking for iconv declaration... install-shextern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
| checking for library containing waddstr... -lncurses
| checking for library containing tgetent... none required
| checking size of unsigned long long... 8
| checking size of unsigned long... 8
| checking size of unsigned __int128... 16
| checking for library containing dlopen... -ldl
| checking whether to use expat... yes
| checking for ld used by GCC... x86_64-poky-linux-ld --sysroot=/home/jxu49/osel/m4/self-hosted/tmp/sysroots/qemux86-64
| checking if the linker (x86_64-poky-linux-ld --sysroot=/home/jxu49/osel/m4/self-hosted/tmp/sysroots/qemux86-64) is GNU ld... yes
| checking for shared library run path origin... done
| checking for libexpat... no
| configure: error: expat is missing or unusable
| make[1]: *** [configure-gdb] Error 1
| make[1]: Leaving directory `/home/jxu49/osel/m4/self-hosted/tmp/work/x86_64-poky-linux/gdb-7.4-r7.0/build-x86_64-poky-linux&apos;
| make: *** [all] Error 2
| ERROR: oe_runmake failed
NOTE: package gdb-7.4-r7.0: task do_compile: Failed
ERROR: Task 4 (/home/jxu49/osel/m4/meta/recipes-devtools/gdb/gdb_7.4.bb, do_compile) failed with exit code &apos;1&apos;
NOTE: Tasks Summary: Attempted 313 tasks of which 312 didn&apos;t need to be rerun and 1 failed.

Summary: 1 task failed:
  /home/jxu49/osel/m4/meta/recipes-devtools/gdb/gdb_7.4.bb, do_compile
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
#########</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20095</commentid>
    <comment_count>1</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2012-04-10 02:28:18 +0000</bug_when>
    <thetext>The patch is already in poky-contrib:
http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=stage/master_under_test&amp;id=943a9e381d81117701983b78a4b79bafd387aeb5

When it goes into poky master, I&apos;ll mark this bug as FIXED.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20159</commentid>
    <comment_count>2</comment_count>
    <who name="yilong, sun">yilongx.y.sun</who>
    <bug_when>2012-04-11 01:20:23 +0000</bug_when>
    <thetext>This issue can be reproduceable on 32bit host(centos5.6)

tree/branch: poky/1.2_M4
commit: 27aa5489fb40d99c58bb2a4bbf2311e2c502a091</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20160</commentid>
    <comment_count>3</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2012-04-11 01:51:59 +0000</bug_when>
    <thetext>Fixed by
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=c397384ef4d4ad453ee134319bfc2552ef3fb2fe</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20500</commentid>
    <comment_count>4</comment_count>
    <who name="yilong, sun">yilongx.y.sun</who>
    <bug_when>2012-04-17 07:06:15 +0000</bug_when>
    <thetext>This issue is Fixed and Verified.

tree/branch: poky/1.2_M4
commit: fae1c7a5fdcea199338b5f91efaafd7c72aec5dd</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20829</commentid>
    <comment_count>5</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2012-04-24 01:56:29 +0000</bug_when>
    <thetext>Mark it to status &quot;VERIFIED&quot; with the last comment from Yilong.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>