Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Khem Raj <raj.khem@gmail.com>
To: "Eric Bénard" <eric@eukrea.com>
Cc: Martin Jansa <martin.jansa@gmail.com>,
	Patches and discussions about the oe-core layer
	<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH 1/1] Revert "gdb-cross-canadian: build gdb with python support"
Date: Fri, 23 Mar 2012 00:12:25 -0700	[thread overview]
Message-ID: <4F6C2259.7000802@gmail.com> (raw)
In-Reply-To: <20120322223127.136698cf@eb-e6520>

On 03/22/2012 02:31 PM, Eric Bénard wrote:
> Hi Khem, Hi Nitin,
>
> Le Thu, 22 Mar 2012 12:16:44 -0700,
> Khem Raj<raj.khem@gmail.com>  a écrit :
>> On Thu, Mar 22, 2012 at 10:38 AM, Kamble, Nitin A
>> <nitin.a.kamble@intel.com>  wrote:
>>> Looks like we need this patch for the python recipe to generate debug modules:
>>> http://patch-tracker.debian.org/patch/series/view/python2.7/2.7.2-8/debug-build.diff
>>
>> yep thats the one. Apply it to python and rebuild python-native and
>> stage it then see if that helps. You might have to adjust the FILES
>> and PACKAGES to put the new files in right places.
>
> With this patch all the libraries (including libpython2.7) now have a _d
> suffix : is that what we really want ?
>
> Once that's hacked in the recipe so that do_compile works - in case
> someone has an idea - I get a failure during installation of
> python-nativesdk :
> build/tmp-eglibc/work/x86_64-nativesdk-oesdk-linux/python-nativesdk-2.7.2-r1.9/image/usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/lib/python2.7/sysconfig.py :
> return os.path.join(get_path('platstdlib'), "config" + (sys.pydebug and
> "_d" or ""), "Makefile") | AttributeError: 'module' object has no
> attribute 'pydebug
>
> I checked on both debian&  fedora and they are using this patch only to
> generate debug packages, not for the standard package.
> Moreover, when I execute gdb on my PC (Fedora 16) it runs fine and I
> don't have readline_d.so installed in lib-dynload so it seems possible
> to get gdb to work with python without having debug symbols.
>
> Eric

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




  parent reply	other threads:[~2012-03-23  7:21 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
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 [this message]
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=4F6C2259.7000802@gmail.com \
    --to=raj.khem@gmail.com \
    --cc=eric@eukrea.com \
    --cc=martin.jansa@gmail.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