[OE-core] [oe-commits] Andreas Oberritter : gdb: build with expat, add missing RRECOMMENDS_gdbserver

Martin Jansa martin.jansa at gmail.com
Wed Apr 4 16:59:43 UTC 2012


On Tue, Apr 03, 2012 at 01:15:37PM +0000, git at git.openembedded.org wrote:
> Module: openembedded-core.git
> Branch: master
> Commit: 38ee88e3b32b7444d7f1eb64f1b4f69a48fe0458
> URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=38ee88e3b32b7444d7f1eb64f1b4f69a48fe0458
> 
> Author: Andreas Oberritter <obi at opendreambox.org>
> Date:   Tue Apr  3 00:23:55 2012 +0200
> 
> gdb: build with expat, add missing RRECOMMENDS_gdbserver
> 
> * Fixes communication between gdbserver and gdb-cross
>   by using the same expat settings for both recipes.
> * Adds missing build dependencies for expat/expat-native.
> * Adds missing glibc-thread-db runtime recommendation
>   to gdbserver, which was set only for gdb.
> 
> Signed-off-by: Andreas Oberritter <obi at opendreambox.org>
> Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

Here it's trying to use host's expat when building target gdb and fails...

| checking for libexpat... no
| configure: error: expat is missing or unusable
| make[1]: *** [configure-gdb] Error 1
| make[1]: Leaving directory `/OE/shr-core/tmp-eglibc/work/armv7a-vfp-neon-oe-linux-gnueabi/gdb/gdb-7.4-r7.0/build-arm-oe-linux-gnueabi'
| make: *** [all] Error 2
| ERROR: oe_runmake failed
NOTE: package gdb-7.4-r7.0: task do_compile: Failed
ERROR: Task 3561 (/OE/shr-core/openembedded-core/meta/recipes-devtools/gdb/gdb_7.4.bb, do_compile) failed with exit code '1'

from config.log:
configure:10704: checking for libexpat
configure:10723: arm-oe-linux-gnueabi-gcc  -march=armv7-a -fno-tree-vectorize     -mthumb-interwork -mfloat-abi=softfp -mfpu=neon -mtune=cortex-a8 --sysroot=/OE/shr-core/tmp-eglibc/sysroots/om-gta04 -o conftest -O2 -pipe -g -feliminate-unused-debug-types    -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed conftest.c -ldl -lncurses -lz -lm    /usr/lib/libexpat.so >&5
/OE/shr-core/tmp-eglibc/sysroots/x86_64-linux/usr/libexec/armv7a-vfp-neon-oe-linux-gnueabi/gcc/arm-oe-linux-gnueabi/4.6.4/ld: error: /usr/lib/libexpat.so: incompatible target
conftest.c:98: error: undefined reference to 'XML_ParserCreate'
collect2: ld returned 1 exit status

Cheers,

> 
> ---
> 
>  meta/recipes-devtools/gdb/gdb-common.inc           |    8 +++++---
>  .../recipes-devtools/gdb/gdb-cross-canadian_7.4.bb |    1 -
>  meta/recipes-devtools/gdb/gdb-cross.inc            |    2 +-
>  meta/recipes-devtools/gdb/gdb-cross_7.4.bb         |    1 -
>  4 files changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/meta/recipes-devtools/gdb/gdb-common.inc b/meta/recipes-devtools/gdb/gdb-common.inc
> index 0833a03..a8fca6f 100644
> --- a/meta/recipes-devtools/gdb/gdb-common.inc
> +++ b/meta/recipes-devtools/gdb/gdb-common.inc
> @@ -2,7 +2,7 @@ DESCRIPTION = "gdb - GNU debugger"
>  HOMEPAGE = "http://www.gnu.org/software/gdb/"
>  LICENSE="GPLv3+"
>  SECTION = "devel"
> -DEPENDS = "ncurses readline ${LTTNGUST}"
> +DEPENDS = "expat ncurses readline ${LTTNGUST}"
>  
>  LTTNGUST = "lttng-ust"
>  LTTNGUST_libc-uclibc = ""
> @@ -11,7 +11,7 @@ LTTNGUST_mipsel = ""
>  LTTNGUST_mips64 = ""
>  LTTNGUST_mips64el = ""
>  
> -INC_PR = "r6"
> +INC_PR = "r7"
>  
>  LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \
>  		file://COPYING.LIB;md5=9f604d8a4f8e74f4f5140845a21b6674 \
> @@ -36,7 +36,7 @@ B = "${WORKDIR}/build-${TARGET_SYS}"
>  
>  EXTRA_OEMAKE = "'SUBDIRS=intl mmalloc libiberty opcodes bfd sim gdb etc utils'"
>  
> -EXPAT = "--without-expat"
> +EXPAT = "--with-expat"
>  
>  EXTRA_OECONF = "--disable-gdbtk --disable-tui --disable-x \
>                  --with-curses --disable-multilib --with-system-readline --disable-sim \
> @@ -63,4 +63,6 @@ do_install_append() {
>  
>  RRECOMMENDS_gdb_append_linux = " glibc-thread-db "
>  RRECOMMENDS_gdb_append_linux-gnueabi = " glibc-thread-db "
> +RRECOMMENDS_gdbserver_append_linux = " glibc-thread-db "
> +RRECOMMENDS_gdbserver_append_linux-gnueabi = " glibc-thread-db "
>  
> diff --git a/meta/recipes-devtools/gdb/gdb-cross-canadian_7.4.bb b/meta/recipes-devtools/gdb/gdb-cross-canadian_7.4.bb
> index 8e68c75..b2f39ce 100644
> --- a/meta/recipes-devtools/gdb/gdb-cross-canadian_7.4.bb
> +++ b/meta/recipes-devtools/gdb/gdb-cross-canadian_7.4.bb
> @@ -4,6 +4,5 @@ require gdb-cross-canadian.inc
>  PR = "${INC_PR}.5"
>  
>  GDBPROPREFIX = "--program-prefix='${TARGET_PREFIX}'"
> -EXPAT = "--with-expat"
>  
>  S = "${WORKDIR}/${BPN}-${PV}"
> diff --git a/meta/recipes-devtools/gdb/gdb-cross.inc b/meta/recipes-devtools/gdb/gdb-cross.inc
> index 20db86b..588a208 100644
> --- a/meta/recipes-devtools/gdb/gdb-cross.inc
> +++ b/meta/recipes-devtools/gdb/gdb-cross.inc
> @@ -1,6 +1,6 @@
>  require gdb-common.inc
>  
> -DEPENDS = "ncurses-native"
> +DEPENDS = "expat-native ncurses-native"
>  
>  #EXTRA_OEMAKE += "LDFLAGS='${BUILD_LDFLAGS}'"
>  
> diff --git a/meta/recipes-devtools/gdb/gdb-cross_7.4.bb b/meta/recipes-devtools/gdb/gdb-cross_7.4.bb
> index eaf8f36..a14d0ba 100644
> --- a/meta/recipes-devtools/gdb/gdb-cross_7.4.bb
> +++ b/meta/recipes-devtools/gdb/gdb-cross_7.4.bb
> @@ -1,7 +1,6 @@
>  require gdb-cross.inc
>  
>  SRC_URI += "file://sim-install-6.6.patch"
> -EXPAT = "--with-expat"
>  
>  PR = "${INC_PR}.0"
>  
> 
> 
> _______________________________________________
> Openembedded-commits mailing list
> Openembedded-commits at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-commits

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20120404/f30c65a3/attachment-0002.sig>


More information about the Openembedded-core mailing list