Openembedded Core Discussions
 help / color / mirror / Atom feed
* Re: [oe-commits] Andreas Oberritter : gdb: build with expat, add missing RRECOMMENDS_gdbserver
       [not found] <20120403131537.5CE3310218@opal>
@ 2012-04-04 16:59 ` Martin Jansa
  2012-04-04 17:40   ` Andreas Oberritter
  0 siblings, 1 reply; 11+ messages in thread
From: Martin Jansa @ 2012-04-04 16:59 UTC (permalink / raw)
  To: openembedded-core; +Cc: openembedded-commits

[-- Attachment #1: Type: text/plain, Size: 5562 bytes --]

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

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@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-commits

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]

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

* Re: [oe-commits] Andreas Oberritter : gdb: build with expat, add missing RRECOMMENDS_gdbserver
  2012-04-04 16:59 ` [oe-commits] Andreas Oberritter : gdb: build with expat, add missing RRECOMMENDS_gdbserver Martin Jansa
@ 2012-04-04 17:40   ` Andreas Oberritter
  2012-04-04 17:45     ` Martin Jansa
  0 siblings, 1 reply; 11+ messages in thread
From: Andreas Oberritter @ 2012-04-04 17:40 UTC (permalink / raw)
  To: openembedded-core

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:

configure:10704: checking for libexpat
configure:10723: mipsel-oe-linux-gcc  -mel -mabi=32   -mhard-float -march=mips32 --sysroot=/home/obi/src/git/opendreambox-2.1/tmp/sysroots/dm7020hd -o conftest -Os -pipe -g -feliminate-unused-debug-types    -Wl,-O1  -Wl,--as-needed conftest.c -ldl -lncurses -lz -lm    -lexpat >&5
configure:10723: $? = 0
configure:10733: result: yes

Regards,
Andreas



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

* Re: [oe-commits] Andreas Oberritter : gdb: build with expat, add missing RRECOMMENDS_gdbserver
  2012-04-04 17:40   ` Andreas Oberritter
@ 2012-04-04 17:45     ` Martin Jansa
  2012-04-04 17:56       ` Andreas Oberritter
  0 siblings, 1 reply; 11+ messages in thread
From: Martin Jansa @ 2012-04-04 17:45 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

[-- Attachment #1: Type: text/plain, Size: 3279 bytes --]

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..

> 
> configure:10704: checking for libexpat
> configure:10723: mipsel-oe-linux-gcc  -mel -mabi=32   -mhard-float -march=mips32 --sysroot=/home/obi/src/git/opendreambox-2.1/tmp/sysroots/dm7020hd -o conftest -Os -pipe -g -feliminate-unused-debug-types    -Wl,-O1  -Wl,--as-needed conftest.c -ldl -lncurses -lz -lm    -lexpat >&5
> configure:10723: $? = 0
> configure:10733: result: yes
> 
> Regards,
> Andreas
> 
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]

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

* Re: [oe-commits] Andreas Oberritter : gdb: build with expat, add missing RRECOMMENDS_gdbserver
  2012-04-04 17:45     ` Martin Jansa
@ 2012-04-04 17:56       ` Andreas Oberritter
  2012-04-04 18:06         ` Martin Jansa
  2012-04-10  6:09         ` [PATCH] gdb: add --with-libexpat-prefix Martin Jansa
  0 siblings, 2 replies; 11+ 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] 11+ 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-04 18:06         ` Martin Jansa
  2012-04-04 18:22           ` Martin Jansa
  2012-04-07  6:02           ` Khem Raj
  2012-04-10  6:09         ` [PATCH] gdb: add --with-libexpat-prefix Martin Jansa
  1 sibling, 2 replies; 11+ messages in thread
From: Martin Jansa @ 2012-04-04 18:06 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

[-- Attachment #1: Type: text/plain, Size: 3335 bytes --]

On Wed, Apr 04, 2012 at 07:56:58PM +0200, Andreas Oberritter wrote:
> 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).

I've tested it only with target gdb (so I don't feel comfortable to send
patch before testing -cross-canadian and -cross, but I don't have time
for it now).

> Which Linux distribution are you using?

Gentoo minimal chroot
http://git.shr-project.org/git/?p=shr-chroot.git;a=summary

Cheers,
-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]

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

* Re: [oe-commits] Andreas Oberritter : gdb: build with expat, add missing RRECOMMENDS_gdbserver
  2012-04-04 18:06         ` Martin Jansa
@ 2012-04-04 18:22           ` Martin Jansa
  2012-04-04 21:16             ` Andreas Oberritter
  2012-04-07  6:02           ` Khem Raj
  1 sibling, 1 reply; 11+ messages in thread
From: Martin Jansa @ 2012-04-04 18:22 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

[-- Attachment #1: Type: text/plain, Size: 3779 bytes --]

On Wed, Apr 04, 2012 at 08:06:15PM +0200, Martin Jansa wrote:
> On Wed, Apr 04, 2012 at 07:56:58PM +0200, Andreas Oberritter wrote:
> > 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).
> 
> I've tested it only with target gdb (so I don't feel comfortable to send
> patch before testing -cross-canadian and -cross, but I don't have time
> for it now).
> 
> > Which Linux distribution are you using?
> 
> Gentoo minimal chroot
> http://git.shr-project.org/git/?p=shr-chroot.git;a=summary

confirmed on other host also using shr-chroot.. if you want to test it
yourself, here is patch (or somewhere there if reabased already)
http://git.openembedded.org/openembedded-core-contrib/commit/?h=shr&id=ef16c225a564d465ebab800204434b0d684c4069

Cheers,

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]

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

* Re: [oe-commits] Andreas Oberritter : gdb: build with expat, add missing RRECOMMENDS_gdbserver
  2012-04-04 18:22           ` Martin Jansa
@ 2012-04-04 21:16             ` Andreas Oberritter
  2012-04-04 22:16               ` Andreas Oberritter
  0 siblings, 1 reply; 11+ messages in thread
From: Andreas Oberritter @ 2012-04-04 21:16 UTC (permalink / raw)
  To: openembedded-core

On 04.04.2012 20:22, Martin Jansa wrote:
> On Wed, Apr 04, 2012 at 08:06:15PM +0200, Martin Jansa wrote:
>> On Wed, Apr 04, 2012 at 07:56:58PM +0200, Andreas Oberritter wrote:
>>> 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).
>>
>> I've tested it only with target gdb (so I don't feel comfortable to send
>> patch before testing -cross-canadian and -cross, but I don't have time
>> for it now).
>>
>>> Which Linux distribution are you using?
>>
>> Gentoo minimal chroot
>> http://git.shr-project.org/git/?p=shr-chroot.git;a=summary
> 
> confirmed on other host also using shr-chroot.. if you want to test it
> yourself, here is patch (or somewhere there if reabased already)
> http://git.openembedded.org/openembedded-core-contrib/commit/?h=shr&id=ef16c225a564d465ebab800204434b0d684c4069

I've built gdb-cross with your patch applied without problems.
gdb-cross-canadian-mipsel is still compiling. However, since the problem
you discovered didn't show on my machine, this may not be meaningful at all.

Regards,
Andreas



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

* Re: [oe-commits] Andreas Oberritter : gdb: build with expat, add missing RRECOMMENDS_gdbserver
  2012-04-04 21:16             ` Andreas Oberritter
@ 2012-04-04 22:16               ` Andreas Oberritter
  0 siblings, 0 replies; 11+ messages in thread
From: Andreas Oberritter @ 2012-04-04 22:16 UTC (permalink / raw)
  To: openembedded-core

On 04.04.2012 23:16, Andreas Oberritter wrote:
> I've built gdb-cross with your patch applied without problems.
> gdb-cross-canadian-mipsel is still compiling. However, since the problem
> you discovered didn't show on my machine, this may not be meaningful at all.

FWIW, gdb-cross-canadian-mipsel also finished without errors.

> Regards,
> Andreas



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

* Re: [oe-commits] Andreas Oberritter : gdb: build with expat, add missing RRECOMMENDS_gdbserver
  2012-04-04 18:06         ` Martin Jansa
  2012-04-04 18:22           ` Martin Jansa
@ 2012-04-07  6:02           ` Khem Raj
  2012-04-08  7:35             ` Koen Kooi
  1 sibling, 1 reply; 11+ messages in thread
From: Khem Raj @ 2012-04-07  6:02 UTC (permalink / raw)
  To: openembedded-core

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 04/04/2012 11:06 AM, Martin Jansa wrote:
>>>>> 
>>>>> -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).
> I've tested it only with target gdb (so I don't feel comfortable to
> send patch before testing -cross-canadian and -cross, but I don't
> have time for it now).
> 

This patch is good. So dont hesitate to send it.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk9/2GMACgkQuwUzVZGdMxSOAgCcCKwcG44tZMcTxkdY5tMgy2xj
qhYAnivdRqKDZoO4+lIjO9vPsX/lSCq1
=sMZh
-----END PGP SIGNATURE-----



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

* Re: [oe-commits] Andreas Oberritter : gdb: build with expat, add missing RRECOMMENDS_gdbserver
  2012-04-07  6:02           ` Khem Raj
@ 2012-04-08  7:35             ` Koen Kooi
  0 siblings, 0 replies; 11+ messages in thread
From: Koen Kooi @ 2012-04-08  7:35 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer


Op 7 apr. 2012, om 08:02 heeft Khem Raj het volgende geschreven:

> On 04/04/2012 11:06 AM, Martin Jansa wrote:
> >>>>> 
> >>>>> -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).
> > I've tested it only with target gdb (so I don't feel comfortable to
> > send patch before testing -cross-canadian and -cross, but I don't
> > have time for it now).
> > 
> 
> This patch is good. So dont hesitate to send it.

Indeed, let's get it in before the yocto-1.2 releasebranch gets created.




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

* [PATCH] gdb: add --with-libexpat-prefix
  2012-04-04 17:56       ` Andreas Oberritter
  2012-04-04 18:06         ` Martin Jansa
@ 2012-04-10  6:09         ` Martin Jansa
  1 sibling, 0 replies; 11+ messages in thread
From: Martin Jansa @ 2012-04-10  6:09 UTC (permalink / raw)
  To: openembedded-core

* otherwise it sometimes finds host's expat

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

diff --git a/meta/recipes-devtools/gdb/gdb-common.inc b/meta/recipes-devtools/gdb/gdb-common.inc
index a8fca6f..4f7ea4b 100644
--- a/meta/recipes-devtools/gdb/gdb-common.inc
+++ b/meta/recipes-devtools/gdb/gdb-common.inc
@@ -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.8.5




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

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

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20120403131537.5CE3310218@opal>
2012-04-04 16:59 ` [oe-commits] Andreas Oberritter : gdb: build with expat, add missing RRECOMMENDS_gdbserver Martin Jansa
2012-04-04 17:40   ` Andreas Oberritter
2012-04-04 17:45     ` Martin Jansa
2012-04-04 17:56       ` Andreas Oberritter
2012-04-04 18:06         ` Martin Jansa
2012-04-04 18:22           ` Martin Jansa
2012-04-04 21:16             ` Andreas Oberritter
2012-04-04 22:16               ` Andreas Oberritter
2012-04-07  6:02           ` Khem Raj
2012-04-08  7:35             ` Koen Kooi
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