Bug 2264

Summary: gdb failed to compile on 32bit host
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Jiajun Xu <jiajun.xu>
Component: coreAssignee: Dexuan Cui <dexuan.cui>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: dexuan.cui, hongnax.xu, meta.mr.watcher, meta.watcher, ningx.ma, sgw, yilongx.y.sun
Version: unspecified   
Target Milestone: 1.2 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Jiajun Xu 2012-04-09 07:34:41 UTC
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'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'
| 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 '1'
NOTE: Tasks Summary: Attempted 313 tasks of which 312 didn'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.
#########
Comment 1 Dexuan Cui 2012-04-10 02:28:18 UTC
The patch is already in poky-contrib:
http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=stage/master_under_test&id=943a9e381d81117701983b78a4b79bafd387aeb5

When it goes into poky master, I'll mark this bug as FIXED.
Comment 2 yilong, sun 2012-04-11 01:20:23 UTC
This issue can be reproduceable on 32bit host(centos5.6)

tree/branch: poky/1.2_M4
commit: 27aa5489fb40d99c58bb2a4bbf2311e2c502a091
Comment 4 yilong, sun 2012-04-17 07:06:15 UTC
This issue is Fixed and Verified.

tree/branch: poky/1.2_M4
commit: fae1c7a5fdcea199338b5f91efaafd7c72aec5dd
Comment 5 Jiajun Xu 2012-04-24 01:56:29 UTC
Mark it to status "VERIFIED" with the last comment from Yilong.