This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: how to build gdb-7.1 --with-python?
- From: Tom Tromey <tromey at redhat dot com>
- To: Steffen Dettmer <steffen dot dettmer at googlemail dot com>
- Cc: gdb at sourceware dot org
- Date: Fri, 25 Jun 2010 11:12:57 -0600
- Subject: Re: how to build gdb-7.1 --with-python?
- References: <AANLkTimAl-3mAWHltmwEoXB4b2GS3WCWGvLGQIKKGCW3@mail.gmail.com>
- Reply-to: tromey at redhat dot com
>>>>> "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