From: Christian Biesinger <cbiesinger@chromium.org>
To: pgnet.dev@gmail.com
Cc: gdb@sourceware.org
Subject: Re: gdb/head build, --with-python=<path to working python> FAILs @ "no usable python found " ?
Date: Wed, 25 Mar 2020 16:57:02 -0500 [thread overview]
Message-ID: <CAPTJ0XE0YSEB4F8Qm_MvTOXgdCdzajwkXXrn3ALRU539QPN=yA@mail.gmail.com> (raw)
In-Reply-To: <03e669b7-9db7-cbbf-abb3-2c4869c526e9@gmail.com>
Yes, Python 3 is known to work, though Python 2.7 is also supported.
Questions:
- What does gdb/config.log say?
- Do you also have the headers and libraries installed?
- Just to confirm, /usr/local/pyenv/versions/3.8-dev/bin/python3.8 is the
binary and not a directory, right?
Christian
On Wed, Mar 25, 2020 at 4:51 PM PGNet Dev via Gdb <gdb@sourceware.org>
wrote:
> with a local/non-distro python 3.8 installed, via pyenv,
>
> pyenv global
> 3.8-dev
> pyenv which python3.8
> /usr/local/pyenv/versions/3.8-dev/bin/python3.8
> python3.8 -V
> Python 3.8.2+
> python3.8 -c "import sys; print('\n'.join(sys.path))"
> /usr/local/pyenv/versions/3.8-dev/lib/python38.zip
> /usr/local/pyenv/versions/3.8-dev/lib/python3.8
> /usr/local/pyenv/versions/3.8-dev/lib/python3.8/lib-dynload
>
> /usr/local/pyenv/versions/3.8-dev/lib/python3.8/site-packages
>
> building GDB head
>
> git clone git://sourceware.org/git/binutils-gdb.git
> cd binutils-gdb
> git log | head
> commit 33aa3c10f663b834c9573ede439b2df3c92f0cfe
> Author: Tom Tromey <tom@tromey.com>
> Date: Wed Mar 25 10:26:38 2020 -0600
>
> Fix error message in compile-object-load.c
> ...
>
> ./configure \
> --prefix=/usr/local/gdb \
> --with-python=/usr/local/pyenv/versions/3.8-dev/bin/python3.8
>
> ...
> configure: creating ./config.status
> config.status: creating Makefile
>
> fails @ make, "no usable python found",
>
> make V=1
>
> ...
> checking whether to use MPFR... auto
> checking for libmpfr... yes
> checking how to link with libmpfr... -lmpfr -lgmp
> checking whether to use python...
> /usr/local/pyenv/versions/3.8-dev/bin/python3.8
> checking for python... no
> configure: error: no usable python found at
> /usr/local/pyenv/versions/3.8-dev/bin/python3.8
> make[1]: *** [Makefile:11664: configure-gdb] Error 1
> make[1]: Leaving directory '/usr/local/src/binutils-gdb'
> make: *** [Makefile:854: all] Error 2
>
> In gdb src, the find-python code's a bit challenging to wade through, and
> possibly (?) outdated -- as I still see multiple references to EOL'd python
> 2.7x .
>
>
> IS gdb/head from upstream known to work with python3?
>
> what is the correct config for sufficiently spec'ing a local python
> install?
>
next prev parent reply other threads:[~2020-03-25 21:57 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-25 21:51 PGNet Dev
2020-03-25 21:57 ` Christian Biesinger [this message]
2020-03-25 22:14 ` PGNet Dev
2020-03-25 22:24 ` Christian Biesinger
2020-03-25 22:51 ` PGNet Dev
2020-03-25 22:55 ` Christian Biesinger
2020-03-25 23:24 ` PGNet Dev
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='CAPTJ0XE0YSEB4F8Qm_MvTOXgdCdzajwkXXrn3ALRU539QPN=yA@mail.gmail.com' \
--to=cbiesinger@chromium.org \
--cc=gdb@sourceware.org \
--cc=pgnet.dev@gmail.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