From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-x443.google.com (mail-pf1-x443.google.com [IPv6:2607:f8b0:4864:20::443]) by sourceware.org (Postfix) with ESMTPS id 4DC8A385E003 for ; Wed, 25 Mar 2020 21:51:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 4DC8A385E003 Received: by mail-pf1-x443.google.com with SMTP id 22so1717193pfa.9 for ; Wed, 25 Mar 2020 14:51:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:reply-to:to:from:subject:message-id:date :user-agent:mime-version:content-language:content-transfer-encoding; bh=9Dn8ojEbwkGHg/3mtY0nSFn/8BgxvaxVJXY9HxUAqw8=; b=UbDxdxCiOJZj8VOFei+KC9VWS4UgEd3AQcOjE2EtWU8mUpB+cLtuVqwSTomtP9Q3rN 84WDYztU3du2GUWaO3789Fs3V69zpkZDtN9bdT5MgkKQPlVxITTsJYi0mZB7asfGD8Dy D62E4H6oAVLrISNyqMsfbj7JZefYVJ4W/u6dm+4SWkAHwaqk/U6B9Dhq/l0WW6SNZQJE z41Eskn8MaHWQnFlENJvi3eBLl3GTbJswhAZeV9gTmSUkL3LYdLFuVkx/rxYIGbNbxvZ 7aJhdvw7SvGJDakFEpvTEfWZXD+NPfr5P6JTHAgbhdq1o2p2sa0xXtFv4Fu6m0iWHgCp HeUA== X-Gm-Message-State: ANhLgQ0QIxkcDZZsUdC48YxRtHf8xLQvnQURP6A/eWGT7dX92lBMLGU8 ndfhOox+Sgl+a07k3yB00mzyjMRa X-Google-Smtp-Source: ADFU+vvQSHcah5zeLU87PWeMtwAfdpucU5hQc8YaIiW4qpTYEo9ezmg9qpAaazqRr7yo4dykniMcHg== X-Received: by 2002:a63:5ec6:: with SMTP id s189mr67521pgb.374.1585173102198; Wed, 25 Mar 2020 14:51:42 -0700 (PDT) Received: from mua.localhost (99-7-172-215.lightspeed.snmtca.sbcglobal.net. [99.7.172.215]) by smtp.gmail.com with ESMTPSA id j19sm96662pfe.102.2020.03.25.14.51.41 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 25 Mar 2020 14:51:41 -0700 (PDT) Reply-To: pgnet.dev@gmail.com To: gdb@sourceware.org From: PGNet Dev Subject: gdb/head build, --with-python= FAILs @ "no usable python found " ? Message-ID: <03e669b7-9db7-cbbf-abb3-2c4869c526e9@gmail.com> Date: Wed, 25 Mar 2020 14:51:40 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org 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:51:44 -0000 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?