From: Andreas Oberritter <obi@opendreambox.org>
To: openembedded-core@lists.openembedded.org
Subject: Re: [oe-commits] Andreas Oberritter : gdb: build with expat, add missing RRECOMMENDS_gdbserver
Date: Wed, 04 Apr 2012 23:16:10 +0200 [thread overview]
Message-ID: <4F7CBA1A.3040506@opendreambox.org> (raw)
In-Reply-To: <20120404182250.GH4181@jama.jama.net>
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
next prev parent reply other threads:[~2012-04-04 21:25 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F7CBA1A.3040506@opendreambox.org \
--to=obi@opendreambox.org \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox