[OE-core] [PATCH 1/1] Revert "gdb-cross-canadian: build gdb with python support"

Kamble, Nitin A nitin.a.kamble at intel.com
Wed Mar 21 20:48:23 UTC 2012



> -----Original Message-----
> From: Martin Jansa [mailto:martin.jansa at gmail.com]
> Sent: Wednesday, March 21, 2012 12:49 PM
> To: Eric Bénard
> Cc: Kamble, Nitin A; openembedded-core at lists.openembedded.org;
> richard.purdie at linuxfoundation.org
> Subject: Re: [PATCH 1/1] Revert "gdb-cross-canadian: build gdb with
> python support"
> 
> On Wed, Mar 21, 2012 at 08:32:49PM +0100, Eric Bénard wrote:
> > Hi Nitin,
> >
> > Le Wed, 21 Mar 2012 18:07:50 +0000,
> > "Kamble, Nitin A" <nitin.a.kamble at intel.com> a écrit :
> > > > From: Eric Bénard [mailto:eric at eukrea.com] I'm launching a build
> > > > and will keep you informed of the result. If that only fails for
> > > > x86 or x86_64 targets, we can use overrides to disable python
> > > > support only for these targets.
> > > >
> > > > Eric
> > >
> > > I also starting test for sdk gdb for qemuarm target. Will keep you
> posted. Any solution that gives a working sdk gdb for all arches will
> be good.
> > >
> > that works fine here at least for target qemux86 :
> > [ebenard at eb-e6520 ~]$ cat /etc/fedora-release Fedora release 16
> > (Verne)
> >
> > [ebenard at eb-e6520 ~]$ uname -a
> > Linux eb-e6520 3.2.9-2.fc16.x86_64 #1 SMP Mon Mar 5 20:55:39 UTC 2012
> > x86_64 x86_64 x86_64 GNU/Linux
> >
> > [ebenard at eb-e6520 ~]$
> > source /usr/local/oecore-x86_64/environment-setup-i586-oe-linux
> >
> > [ebenard at eb-e6520 ~]$ which i586-oe-linux-gdb
> > /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/bin/i586-oe-
> l
> > inux/i586-oe-linux-gdb
> >
> > [ebenard at eb-e6520 ~]$ 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) python import sys
> > (gdb) python sys.stdout.write("hello, world\n") hello, world
> > (gdb)
> 
> Just retested with qemux86-64 and distroless oe-core and also works
> 
> OE @ /usr/local/oecore-i686 $ 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=i686-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
> 
> the same with armv7a (and my normal SHR layers on top of oe-core)
> 
> OE @ /usr/local/oecore-i686 $
> sysroots/i686-oesdk-linux/usr/bin/armv7a-vfp-neon-oe-linux-gnueabi/arm-
> oe-linux-gnueabi-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=i686-oesdk-linux --target=arm-oe-
> linux-gnueabi".
> For bug reporting instructions, please see:
> <http://www.gnu.org/software/gdb/bugs/>.
> (gdb) python print 42
> 42
> 
> And host system is gentoo..
> 
> Nitin: please try with distroless oe-core to see if it's host or poky
> issue (poky still has own SDK_* paths..).
> 
> Cheers,
> 
> --
> Martin 'JaMa' Jansa     jabber: Martin.Jansa at gmail.com

Hi Martin,
  I removed the meta-yocto layer, which removed poky distro from the config. And I am still seeing same issue.

[nitin at nbuild0 /]$ cd /usr/local/oecore-x86_64/
[nitin at nbuild0 oecore-x86_64]$ ls
environment-setup-x86_64-oe-linux  site-config-x86_64-oe-linux  sysroots  version-x86_64-oe-linux
[nitin at nbuild0 oecore-x86_64]$ . environment-setup-x86_64-oe-linux
 [nitin at 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): 0x00007f3221852030 ***
Aborted (core dumped)


Thanks,
Nitin





More information about the Openembedded-core mailing list