From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id F40D4386CE4B; Thu, 30 Jun 2022 17:01:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F40D4386CE4B From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug build/29308] New: [gdb/build] python 3.10 problems Date: Thu, 30 Jun 2022 17:01:00 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: build X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Jun 2022 17:01:01 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29308 Bug ID: 29308 Summary: [gdb/build] python 3.10 problems Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: build Assignee: unassigned at sourceware dot org Reporter: vries at gcc dot gnu.org Target Milestone: --- On openSUSE tumbleweed I build with --with-python=3Dpython3, and python3 has recently been bumped to: ... $ /usr/bin/python3 --version Python 3.10.5 ... Consequently, I run into build failures, due to (reproducing outside build): ... $ python3.10 ./gdb/python/python-config.py --includes ./gdb/python/python-config.py:7: DeprecationWarning: The distutils package = is deprecated and slated for removal in Python 3.12. Use setuptools or check P= EP 632 for potential alternatives from distutils import sysconfig /data/vries/gdb_versions/devel/binutils-gdb.git/./gdb/python/python-config.= py:7: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysco= nfig instead from distutils import sysconfig -I/usr/include/python3.10 -I/usr/include/python3.10 ... The message suggests using module sysconfig, but there's no suppport for get_python_inc in there. The PEP also doesn't list a solution. Also setuptools is mentioned, but that doesn't seem to provide a get_python= _inc replacement either. Looking in python3-config, it's no longer a python script, but a shell scri= pt, so we can't find an example there either. For now working around it by using --with-python=3D/usr/bin/python3.8. --=20 You are receiving this mail because: You are on the CC list for the bug.=