Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] gdb: add --with-libexpat-prefix
@ 2012-04-08 21:36 Andreas Oberritter
  2012-04-10 15:32 ` Saul Wold
  0 siblings, 1 reply; 3+ messages in thread
From: Andreas Oberritter @ 2012-04-08 21:36 UTC (permalink / raw)
  To: openembedded-core

From: Martin Jansa <Martin.Jansa@gmail.com>

* otherwise it sometimes finds host's expat

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
---
 meta/recipes-devtools/gdb/gdb-common.inc |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-devtools/gdb/gdb-common.inc b/meta/recipes-devtools/gdb/gdb-common.inc
index a8fca6f..5dd4f74 100644
--- a/meta/recipes-devtools/gdb/gdb-common.inc
+++ b/meta/recipes-devtools/gdb/gdb-common.inc
@@ -11,7 +11,7 @@ LTTNGUST_mipsel = ""
 LTTNGUST_mips64 = ""
 LTTNGUST_mips64el = ""
 
-INC_PR = "r7"
+INC_PR = "r8"
 
 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 = "--with-expat"
+EXPAT = "--with-expat --with-libexpat-prefix=${STAGING_DIR_HOST}"
 
 EXTRA_OECONF = "--disable-gdbtk --disable-tui --disable-x \
                 --with-curses --disable-multilib --with-system-readline --disable-sim \
-- 
1.7.5.4




^ permalink raw reply related	[flat|nested] 3+ messages in thread
* Re: [oe-commits] Andreas Oberritter : gdb: build with expat, add missing RRECOMMENDS_gdbserver
@ 2012-04-04 17:56 Andreas Oberritter
  2012-04-10  6:09 ` [PATCH] gdb: add --with-libexpat-prefix Martin Jansa
  0 siblings, 1 reply; 3+ messages in thread
From: Andreas Oberritter @ 2012-04-04 17:56 UTC (permalink / raw)
  To: openembedded-core

On 04.04.2012 19:45, Martin Jansa wrote:
> On Wed, Apr 04, 2012 at 07:40:38PM +0200, Andreas Oberritter wrote:
>> On 04.04.2012 18:59, Martin Jansa wrote:
>>> On Tue, Apr 03, 2012 at 01:15:37PM +0000, git@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@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@opendreambox.org>
>>>> Signed-off-by: Richard Purdie <richard.purdie@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
>>
>> Does "bitbake expat" help? Here I have:
> 
> expat was built already, so no doesn't help.
> 
> 
> -EXPAT = "--with-expat"
> +EXPAT = "--with-expat --with-libexpat-prefix=${STAGING_DIR_HOST}"
> 
> helps..

OK. Can you please submit an incremental patch? I wonder why it didn't
happen on my system, although I have libexpat-dev installed (Ubuntu).
Which Linux distribution are you using?

Regards,
Andreas



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-04-10 15:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-08 21:36 [PATCH] gdb: add --with-libexpat-prefix Andreas Oberritter
2012-04-10 15:32 ` Saul Wold
  -- strict thread matches above, loose matches on Subject: below --
2012-04-04 17:56 [oe-commits] Andreas Oberritter : gdb: build with expat, add missing RRECOMMENDS_gdbserver Andreas Oberritter
2012-04-10  6:09 ` [PATCH] gdb: add --with-libexpat-prefix Martin Jansa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox