This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: how to build gdb-7.1 --with-python?


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]