From: Martin Jansa <martin.jansa@gmail.com>
To: "Eric Bénard" <eric@eukrea.com>
Cc: "openembedded-core@lists.openembedded.org"
<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH 1/1] Revert "gdb-cross-canadian: build gdb with python support"
Date: Thu, 22 Mar 2012 09:47:33 +0100 [thread overview]
Message-ID: <20120322084732.GD4010@jama.jama.net> (raw)
In-Reply-To: <20120321230514.1c170480@eb-e6520>
[-- Attachment #1: Type: text/plain, Size: 9391 bytes --]
On Wed, Mar 21, 2012 at 11:05:14PM +0100, Eric Bénard wrote:
> Le Wed, 21 Mar 2012 21:53:10 +0000,
> "Kamble, Nitin A" <nitin.a.kamble@intel.com> a écrit :
> > If it is working for you, I don't understand why is it not working here.
> >
> it's not working _only_ for me, Martin also had success.
Tested again this time with SDKMACHINE ?= "x86-64"
and notice that for me it uses libz libpython2.7 from sdk.
OE @ /usr/local/oecore-x86_64 $ x86_64-oe-linux-gdb
GNU gdb (GDB) 7.4
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=x86_64-oesdk-linux --target=x86_64-oe-linux".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
(gdb) python print 42
42
(gdb) quit
OE @ /usr/local/oecore-x86_64 $ which x86_64-oe-linux-gdb
/usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/bin/x86_64-oe-linux/x86_64-oe-linux-gdb
OE @ /usr/local/oecore-x86_64 $ ldd /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/bin/x86_64-oe-linux/x86_64-oe-linux-gdb
linux-vdso.so.1 (0x00007ffffdfff000)
libreadline.so.6 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/lib/libreadline.so.6 (0x00007fd92e32e000)
libdl.so.2 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/libdl.so.2 (0x00007fd92e12a000)
libncurses.so.5 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/libncurses.so.5 (0x00007fd92df07000)
libtinfo.so.5 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/libtinfo.so.5 (0x00007fd92dce0000)
libz.so.1 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/lib/libz.so.1 (0x00007fd92dacb000)
libm.so.6 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/libm.so.6 (0x00007fd92d7d7000)
libpthread.so.0 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/libpthread.so.0 (0x00007fd92d5ba000)
libutil.so.1 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/libutil.so.1 (0x00007fd92d3b7000)
libpython2.7.so.1.0 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/lib/libpython2.7.so.1.0 (0x00007fd92cfe8000)
libexpat.so.1 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/lib/libexpat.so.1 (0x00007fd92cdbf000)
libc.so.6 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/libc.so.6 (0x00007fd92ca1a000)
/usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/ld-linux-x86-64.so.2 (0x00007fd92e56e000)
>
> > [nitin@nbuild0 oecore-x86_64]$ cd /usr/local/oecore-x86_64/
> > [nitin@nbuild0 oecore-x86_64]$ ls
> > environment-setup-x86_64-oe-linux site-config-x86_64-oe-linux sysroots version-x86_64-oe-linux
> > [nitin@nbuild0 oecore-x86_64]$ . environment-setup-x86_64-oe-linux
> > [nitin@nbuild0 oecore-x86_64]$ ./sysroots/x86_64-oesdk-linux/usr/bin/x86_64-oe-linux/x86_64-oe-linux-gdb
> > *** glibc detected *** ./sysroots/x86_64-oesdk-linux/usr/bin/x86_64-oe-linux/x86_64-oe-linux-gdb: double free or corruption (out): 0x00007f3226818030 ***
> > Aborted (core dumped)
> > [nitin@nbuild0 oecore-x86_64]$ ldd ./sysroots/x86_64-oesdk-linux/usr/bin/x86_64-oe-linux/x86_64-oe-linux-gdb
> > linux-vdso.so.1 => (0x00007fffd05d8000)
> > libreadline.so.6 => /lib64/libreadline.so.6 (0x0000003f07400000)
> > libdl.so.2 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/libdl.so.2 (0x00007fa207a72000)
> > libncurses.so.5 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/libncurses.so.5 (0x00007fa20784f000)
> > libtinfo.so.5 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/libtinfo.so.5 (0x00007fa207628000)
> > libz.so.1 => /lib64/libz.so.1 (0x0000003f06c00000)
> > libm.so.6 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/libm.so.6 (0x00007fa2073a5000)
> > libpthread.so.0 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/libpthread.so.0 (0x00007fa207188000)
> > libutil.so.1 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/libutil.so.1 (0x00007fa206f84000)
> > libexpat.so.1 => /lib64/libexpat.so.1 (0x0000003f09800000)
> > libc.so.6 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/libc.so.6 (0x00007fa206bfd000)
> > /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2 (0x0000003f05000000)
> >
> >
> > I am seeing that the sdk gdb is dynamically linking with some of the host libraries as seen above.
> >
> ebenard@eb-e6520 x86_64-oe-linux]$ ldd x86_64-oe-linux-gdb
> ./x86_64-oe-linux-gdb: /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/libc.so.6: version `GLIBC_2.14' not found (required by /lib64/libz.so.1)
> ./x86_64-oe-linux-gdb: /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/libc.so.6: version `GLIBC_2.14' not found (required by /usr/lib64/libpython2.7.so.1.0)
> linux-vdso.so.1 => (0x00007fff12dff000)
> libreadline.so.6 => /lib64/libreadline.so.6 (0x0000003ba3a00000)
> libdl.so.2 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/libdl.so.2 (0x00007fbfa6c67000)
> libncurses.so.5 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/libncurses.so.5 (0x00007fbfa6a44000)
> libtinfo.so.5 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/libtinfo.so.5 (0x00007fbfa681d000)
> libz.so.1 => /lib64/libz.so.1 (0x0000003ba3200000)
> libm.so.6 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/libm.so.6 (0x00007fbfa659a000)
> libpthread.so.0 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/libpthread.so.0 (0x00007fbfa637d000)
> libutil.so.1 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/libutil.so.1 (0x00007fbfa6179000)
> libpython2.7.so.1.0 => /usr/lib64/libpython2.7.so.1.0 (0x0000003bb3000000)
> libexpat.so.1 => /lib64/libexpat.so.1 (0x0000003ba7200000)
> libc.so.6 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/libc.so.6 (0x00007fbfa5df1000)
> /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2 (0x0000003ba1600000)
> [ebenard@eb-e6520 x86_64-oe-linux]$ ./x86_64-oe-linux-gdb
> GNU gdb (GDB) 7.4
> Copyright (C) 2012 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law. Type "show
> copying" and "show warranty" for details.
> This GDB was configured as "--host=x86_64-oesdk-linux
> --target=x86_64-oe-linux". For bug reporting instructions, please see:
> <http://www.gnu.org/software/gdb/bugs/>.
> (gdb) quit
> [ebenard@eb-e6520 x86_64-oe-linux]$ cd ../i586-oe-linux/
>
> [ebenard@eb-e6520 i586-oe-linux]$ ldd i586-oe-linux-gdb
> ./i586-oe-linux-gdb: /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/libc.so.6: version `GLIBC_2.14' not found (required by /lib64/libz.so.1)
> ./i586-oe-linux-gdb: /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/libc.so.6: version `GLIBC_2.14' not found (required by /usr/lib64/libpython2.7.so.1.0)
> linux-vdso.so.1 => (0x00007fff7c949000)
> libreadline.so.6 => /lib64/libreadline.so.6 (0x0000003ba3a00000)
> libdl.so.2 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/libdl.so.2 (0x00007fe6f9c74000)
> libncurses.so.5 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/libncurses.so.5 (0x00007fe6f9a51000)
> libtinfo.so.5 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/libtinfo.so.5 (0x00007fe6f982a000)
> libz.so.1 => /lib64/libz.so.1 (0x0000003ba3200000)
> libm.so.6 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/libm.so.6 (0x00007fe6f95a7000)
> libpthread.so.0 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/libpthread.so.0 (0x00007fe6f938a000)
> libutil.so.1 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/libutil.so.1 (0x00007fe6f9186000)
> libpython2.7.so.1.0 => /usr/lib64/libpython2.7.so.1.0 (0x0000003bb3000000)
> libexpat.so.1 => /lib64/libexpat.so.1 (0x0000003ba7200000)
> libc.so.6 => /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/libc.so.6 (0x00007fe6f8dfe000)
> /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/lib/ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2 (0x0000003ba1600000)
> [ebenard@eb-e6520 i586-oe-linux]$ ./i586-oe-linux-gdb
> GNU gdb (GDB) 7.4
> Copyright (C) 2012 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law. Type "show copying"
> and "show warranty" for details.
> This GDB was configured as "--host=x86_64-oesdk-linux --target=i586-oe-linux".
> For bug reporting instructions, please see:
> <http://www.gnu.org/software/gdb/bugs/>.
> (gdb) quit
>
> --
> http://eukrea.com/en/news/104-2012
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]
next prev parent reply other threads:[~2012-03-22 8:56 UTC|newest]
Thread overview: 65+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-21 16:35 [PATCH 0/1] fix for the sdk gdb issue nitin.a.kamble
2012-03-21 16:35 ` [PATCH 1/1] Revert "gdb-cross-canadian: build gdb with python support" nitin.a.kamble
2012-03-21 17:07 ` Eric Bénard
2012-03-21 17:47 ` Kamble, Nitin A
2012-03-21 17:52 ` Eric Bénard
2012-03-21 17:57 ` Kamble, Nitin A
2012-03-21 18:02 ` Eric Bénard
2012-03-21 18:07 ` Kamble, Nitin A
2012-03-21 19:32 ` Eric Bénard
2012-03-21 19:49 ` Martin Jansa
2012-03-21 20:48 ` Kamble, Nitin A
2012-03-21 21:02 ` Eric Bénard
2012-03-21 21:12 ` Kamble, Nitin A
2012-03-21 21:35 ` Eric Bénard
2012-03-21 21:53 ` Kamble, Nitin A
2012-03-21 22:05 ` Eric Bénard
2012-03-21 22:10 ` Kamble, Nitin A
2012-03-21 22:21 ` Saul Wold
2012-03-21 22:37 ` Eric Bénard
2012-03-21 22:55 ` Kamble, Nitin A
2012-03-21 23:07 ` Kamble, Nitin A
2012-03-22 12:09 ` Eric Bénard
2012-03-21 22:22 ` Kamble, Nitin A
2012-03-22 8:47 ` Martin Jansa [this message]
2012-03-22 8:50 ` Eric Bénard
2012-03-22 0:27 ` Khem Raj
2012-03-22 1:58 ` Kamble, Nitin A
2012-03-22 4:24 ` Khem Raj
2012-03-22 4:55 ` Kamble, Nitin A
2012-03-22 5:06 ` Khem Raj
2012-03-22 5:42 ` Khem Raj
2012-03-22 12:13 ` Eric Bénard
2012-03-22 12:17 ` Khem Raj
2012-03-22 12:43 ` Eric Bénard
2012-03-22 12:57 ` Khem Raj
2012-03-22 13:14 ` Eric Bénard
2012-03-22 13:34 ` Eric Bénard
2012-03-22 13:54 ` Khem Raj
2012-03-22 16:20 ` Kamble, Nitin A
2012-03-22 16:38 ` Khem Raj
2012-03-22 17:38 ` Kamble, Nitin A
2012-03-22 19:16 ` Khem Raj
2012-03-22 21:31 ` Eric Bénard
2012-03-22 21:40 ` Kamble, Nitin A
2012-03-23 8:07 ` Eric Bénard
2012-03-22 21:48 ` Kamble, Nitin A
2012-03-23 5:33 ` Khem Raj
2012-03-23 6:29 ` Khem Raj
2012-03-23 7:12 ` Khem Raj
2012-03-23 8:31 ` Eric Bénard
2012-03-23 12:07 ` Khem Raj
2012-03-23 16:07 ` Kamble, Nitin A
2012-03-21 22:04 ` Kamble, Nitin A
2012-03-21 22:09 ` Eric Bénard
2012-03-21 23:25 ` Kamble, Nitin A
2012-03-21 23:29 ` Richard Purdie
2012-03-21 21:48 ` Kamble, Nitin A
2012-03-21 19:04 ` Kamble, Nitin A
2012-03-21 19:36 ` Eric Bénard
2012-03-21 19:48 ` Kamble, Nitin A
2012-03-21 17:58 ` Martin Jansa
-- strict thread matches above, loose matches on Subject: below --
2012-03-23 16:36 Khem Raj
2012-03-23 17:01 ` Kamble, Nitin A
2012-03-23 17:44 ` Richard Purdie
2012-03-23 18:01 ` Khem Raj
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=20120322084732.GD4010@jama.jama.net \
--to=martin.jansa@gmail.com \
--cc=eric@eukrea.com \
--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