From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qt1-x841.google.com (mail-qt1-x841.google.com [IPv6:2607:f8b0:4864:20::841]) by sourceware.org (Postfix) with ESMTPS id 93BDB385E003 for ; Wed, 25 Mar 2020 22:24:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 93BDB385E003 Received: by mail-qt1-x841.google.com with SMTP id e14so3722551qts.2 for ; Wed, 25 Mar 2020 15:24:42 -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=ZEEluxivKzNLRPdmcflnaCLTpnyuMp2kLPWLoaZYTDk=; b=JPSqI6rFjahttehiYDOcGwZ1a10dh6H3y9MkRnPLOHoE83j7Ux9zTEgqIDcHqLqj5M bbb2A1feEAA5lrKO2Bf/xMWU5oIHSA6iiwhCdhVKy7Ku8ylDjp/xMYYIMUl3YhUASaa3 ySimVs1xkRmat7cBbKdS4RS+DGnx6uYkiinnlybu0YCq0d4y4oL1gd6uCL67+12i/3yt koca4+Y/GGbHz7rN4SDjmkNB0sQCQu/FWSAFhhHT4sKTEGdPWTCdyaFRHrW9/evI2mtI L4hk8hxUhnz5vixchFoM8WgK1SX2adaXVwYNOK/oBLYiwRwgRIzMt4AuPz+pg7EOtlqI SWPg== X-Gm-Message-State: ANhLgQ37L8EEW5MrLWVprsuZCpigBncaeIkxpof/l0nXN8Us88u24+X/ TK4gNJJox9FQPrUdht8poCm/lQab/3oZfazeJHUpYg== X-Google-Smtp-Source: ADFU+vs/kXgdTEFuuFPUeps5/7LQizXVxLvIy7igMX/WS6fDVVkjARHhVHJnH8XeT4GRqbrr5lrZaCFTidBwDG69Mms= X-Received: by 2002:ac8:2921:: with SMTP id y30mr5218982qty.161.1585175081807; Wed, 25 Mar 2020 15:24:41 -0700 (PDT) MIME-Version: 1.0 References: <03e669b7-9db7-cbbf-abb3-2c4869c526e9@gmail.com> <63388801-ba43-ecab-7384-c396515a32bc@gmail.com> In-Reply-To: <63388801-ba43-ecab-7384-c396515a32bc@gmail.com> From: Christian Biesinger Date: Wed, 25 Mar 2020 17:24:05 -0500 Message-ID: Subject: Re: gdb/head build, --with-python= FAILs @ "no usable python found " ? To: pgnet.dev@gmail.com Cc: gdb@sourceware.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-23.0 required=5.0 tests=BAYES_00, DKIMWL_WL_MED, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, USER_IN_DEF_DKIM_WL, USER_IN_DEF_SPF_WL 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 22:24:44 -0000 On Wed, Mar 25, 2020 at 5:14 PM PGNet Dev wrote: > > On 3/25/20 2:57 PM, Christian Biesinger wrote: > ... > > Yes, Python 3 is known to work, though Python 2.7 is also supported. > > gr8, thx > > > - What does gdb/config.log say? > > ==> https://pastebin.com/ZPaKjG9Z So the immediate problem is this: configure:10601: checking for python configure:10619: /usr/bin/gcc-10 -o conftest -O3 -Wall -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fmessage-length=0 -grecord-gcc-switches -march=native -mtune=native -O3 -Wall -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fmessage-length=0 -grecord-gcc-switches -march=native -mtune=native -D_FORTIFY_SOURCE=2 -I/usr/local/pyenv/versions/3.8-dev/include/python3.8 -I/usr/local/pyenv/versions/3.8-dev/include/python3.8 conftest.c -lpython3.8 -lcrypt -lpthread -ldl -lutil -lm -lm -Xlinker -export-dynamic -lncursesw -lm -ldl >&5 /usr/lib64/gcc/x86_64-suse-linux/10/../../../../x86_64-suse-linux/bin/ld: cannot find -lpython3.8 GDB uses basically this commandline to find the linker flags: python3.8 ./gdb/python-config.py --ldflags So I guess you'll either have to figure out why that does the wrong thing (it seems to ask Python for the right values) or pass LDFLAGS=/usr/local/pyenv/versions/3.8-dev/lib/ to configure. Hope this helps, Christian > > > > > - Do you also have the headers > > yep. > > ls -al /usr/local/pyenv/versions/3.8-dev/include/python3.8/Python.h > -rw-r--r-- 1 root root 3.6K Mar 20 20:44 /usr/local/pyenv/versions/3.8-dev/include/python3.8/Python.h > ... etc ... > > > and libraries installed? > > ls -al /usr/local/pyenv/versions/3.8-dev/lib/ > total 17M > drwxr-xr-x 4 root root 4.0K Mar 20 20:44 ./ > drwxr-xr-x 7 root root 4.0K Mar 20 20:49 ../ > lrwxrwxrwx 1 root root 19 Mar 20 20:44 libpython3.8.so -> libpython3.8.so.1.0* > -rwxr-xr-x 1 root root 17M Mar 20 20:44 libpython3.8.so.1.0* > -rwxr-xr-x 1 root root 8.6K Mar 20 20:44 libpython3.so* > drwxr-xr-x 2 root root 4.0K Mar 20 20:44 pkgconfig/ > drwxr-xr-x 35 root root 4.0K Mar 20 20:44 python3.8/ > > atm, NO add'l *FLAGS set to either ... > > > - Just to confirm, /usr/local/pyenv/versions/3.8-dev/bin/python3.8 is the binary and not a directory, right? > > correct. > > ls -ald /usr/local/pyenv/versions/3.8-dev/bin/python3.8 > -rwxr-xr-x 1 root root 15K Mar 20 20:44 /usr/local/pyenv/versions/3.8-dev/bin/python3.8* > > /usr/local/pyenv/versions/3.8-dev/bin/python3.8 -V > Python 3.8.2+