Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Tom Tromey <tromey@redhat.com>
To: Steffen Dettmer <steffen.dettmer@googlemail.com>
Cc: gdb@sourceware.org
Subject: Re: how to build gdb-7.1 --with-python?
Date: Fri, 25 Jun 2010 17:13:00 -0000	[thread overview]
Message-ID: <m3aaqj5946.fsf@fleche.redhat.com> (raw)
In-Reply-To: <AANLkTimAl-3mAWHltmwEoXB4b2GS3WCWGvLGQIKKGCW3@mail.gmail.com>	(Steffen Dettmer's message of "Fri, 25 Jun 2010 17:40:44 +0200")

>>>>> "Steffen" == Steffen Dettmer <steffen.dettmer@googlemail.com> writes:

Steffen> I googled, but did not find installation instructions. gdb/README
Steffen> just states `--with-python', so I though it would be easy, as
Steffen> soon as I upgraded my Python. So from python.org I grabbed 2.5
Steffen> and installed it (default configure options).

Ok.  Default arguments means it was installed in /usr/local.

Steffen> Went back to gdb builddir and used:

Steffen>   ../configure --with-python --target=arm-elf --disable-werror
Steffen>      --disable-expat --with-expat=no

Steffen> Worked. Ran make. Failed after a while with:

Steffen>   checking for python2.5... no
Steffen>   checking for python2.4... no
Steffen>   configure: error: python is missing or unusable

Try --with-python=/usr/local

With CVS gdb, you instead point to the 'python' executable.

Steffen> Now I got resolved symbols from libdl (dl_open and
Steffen> friends) and even from libpthread (sem_init, pthread_create...).

This sounds familiar... I think it was fixed after 7.1.
It is more ordinary to install and use libpython.so, not the .a.
If you want to go this route it may be simpler to try CVS gdb (though I
am not sure -- I'm always just using my distro's python).

Tom


  reply	other threads:[~2010-06-25 17:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-25 15:40 Steffen Dettmer
2010-06-25 17:13 ` Tom Tromey [this message]
2010-06-28 11:04   ` Steffen Dettmer

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=m3aaqj5946.fsf@fleche.redhat.com \
    --to=tromey@redhat.com \
    --cc=gdb@sourceware.org \
    --cc=steffen.dettmer@googlemail.com \
    /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