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

Kamble, Nitin A nitin.a.kamble at intel.com
Fri Mar 23 16:07:52 UTC 2012


> -----Original Message-----
> From: Khem Raj [mailto:raj.khem at gmail.com]
> Sent: Friday, March 23, 2012 5:07 AM
> To: Eric Bénard
> Cc: Kamble, Nitin A; Patches and discussions about the oe-core layer;
> Martin Jansa
> Subject: Re: [OE-core] [PATCH 1/1] Revert "gdb-cross-canadian: build
> gdb with python support"
> 
> On 03/23/2012 01:31 AM, Eric Bénard wrote:
> > Hi Khem,
> >
> > Le Fri, 23 Mar 2012 00:12:25 -0700,
> > Khem Raj<raj.khem at gmail.com>  a écrit :
> >> OK can you try following patch ? (untested) it does not fix the
> paths so
> >> once you install sdk it will have to be fixed as you did with
> chrpath
> >> for testing
> >>
> >> http://paste.ubuntu.com/896082/
> >>
> >> I think issue is currently we are linking with static version of
> >> libpython and also the search path to find python executable for gdb
> >> when running is /usr/bin and not the python from SDK so this patch
> >> takes care of both
> >>
> > very good catch, now gdb runs fine and strace shows that it loads
> > the right library :
> >
> > open("/usr/local/oecore-x86_64/sysroots/x86_64-oesdk-
> linux/usr/lib/python2.7/lib-dynload/readline.so",
> > O_RDONLY) = 6 fstat(6, {st_mode=S_IFREG|0755, st_size=23520, ...}) =
> 0
> > futex(0x7f3ada48e0a8, FUTEX_WAKE_PRIVATE, 2147483647) = 0
> > open("/usr/local/oecore-x86_64/sysroots/x86_64-oesdk-
> linux/usr/lib/python2.7/lib-dynload/readline.so",
> > O_RDONLY) = 7 read(7,
> > "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`%\0\0\0\0\0\0"...,
> 832)
> > = 832 fstat(7, {st_mode=S_IFREG|0755, st_size=23520, ...}) = 0
> > mmap(NULL, 2118952, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
> 7,
> > 0) = 0x7f3ad8a05000
> >
> > Eric
> 
> good. So this patch does the trick. I will post proper patch shortly
> we still need to fix the rpath problem though

Khem,
   Thanks for fixing the gdb issue at the root cause. And I have a fix for the rpath issue.
Thanks,
Nitin





More information about the Openembedded-core mailing list