From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk1-x72b.google.com (mail-qk1-x72b.google.com [IPv6:2607:f8b0:4864:20::72b]) by sourceware.org (Postfix) with ESMTPS id 1E68C385E003 for ; Wed, 25 Mar 2020 21:57:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 1E68C385E003 Received: by mail-qk1-x72b.google.com with SMTP id b62so4408578qkf.6 for ; Wed, 25 Mar 2020 14:57:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=IjzHiP9zVr32GN+YfSTdVQuiCMKC8MEGOC+t8p51/qY=; b=FIsiPcY05v1GvBg2pcG86zR2Uitg7uT7551CXw6fsjeTsiOwdTWbfBJYyKwFeBmlP7 I0mFwT7/Rhm20yhY+ANvYJliw5IbxD/8SCb7a2SmmCwrba2IYtvhjIVd4cXqquyVQbTo g9Nh/ObSYSvkIk33fVvRfHitMW0NnIO8GTqurZjwMT1YXiIRUS6A8/GNmvQOIr7Kxuba kUd6h24DyotvptDUNaFDpe1fLAUI5O+LOgiu/cp1NJ7H9TG1P3DIq7XHd49ZNAo57ngW XeiN6tNOYBnaoQ733Bni2ljLp/sOnG7eTaZ4sPBcU71AwdBx9lNVNtCJ8ePt/ddRTayy uJjw== X-Gm-Message-State: ANhLgQ2LAi59SRbYiByyAy1i5GAR01vM7RsHaT9PChe8AljxXt2VhDuW gVg/yqmVy8RYnPilybw8ule15ZZn662gRpVQpvry6wxgIUE= X-Google-Smtp-Source: ADFU+vta7eEH84teWalbH1jzgRh7iCWMQVVxKfUbxKEvebz4JZ/J9Rac+Ic90caQoMMfQtGyNlbOyZfpJ/SV6Npy2Nw= X-Received: by 2002:a05:620a:2101:: with SMTP id l1mr5027922qkl.375.1585173459292; Wed, 25 Mar 2020 14:57:39 -0700 (PDT) MIME-Version: 1.0 References: <03e669b7-9db7-cbbf-abb3-2c4869c526e9@gmail.com> In-Reply-To: <03e669b7-9db7-cbbf-abb3-2c4869c526e9@gmail.com> From: Christian Biesinger Date: Wed, 25 Mar 2020 16:57:02 -0500 Message-ID: Subject: Re: gdb/head build, --with-python= FAILs @ "no usable python found " ? To: pgnet.dev@gmail.com Cc: gdb@sourceware.org X-Spam-Status: No, score=-9.2 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, USER_IN_DEF_SPF_WL autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Mar 2020 21:57:41 -0000 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 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 > 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? >