From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 950863857BAE; Sat, 25 Jun 2022 18:47:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 950863857BAE From: "mark at klomp dot org" To: gdb-prs@sourceware.org Subject: [Bug python/29287] New: PySys_SetPath has been deprecated in Python 3.11 Date: Sat, 25 Jun 2022 18:47:05 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: python X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mark at klomp dot 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: Sat, 25 Jun 2022 18:47:05 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29287 Bug ID: 29287 Summary: PySys_SetPath has been deprecated in Python 3.11 Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: python Assignee: unassigned at sourceware dot org Reporter: mark at klomp dot org Target Milestone: --- The fedrawhide builder found an issue building against python 3.11: https://builder.sourceware.org/buildbot/#/builders/84/builds/70 In file included from varobj.c:38: python/python-internal.h: In function =E2=80=98void gdb_PySys_SetPath(const= wchar_t*)=E2=80=99: python/python-internal.h:189:17: error: =E2=80=98void PySys_SetPath(const w= char_t*)=E2=80=99 is deprecated [-Werror=3Ddeprecated-declarations] 189 | PySys_SetPath (const_cast (path)); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/python3.11/Python.h:96, from python/python-internal.h:86: /usr/include/python3.11/sysmodule.h:15:38: note: declared here 15 | Py_DEPRECATED(3.11) PyAPI_FUNC(void) PySys_SetPath(const wchar_t *); | ^~~~~~~~~~~~~ cc1plus: all warnings being treated as errors make[2]: *** [Makefile:1896: varobj.o] Error 1 See https://docs.python.org/3.11/c-api/sys.html#c.PySys_SetPath --=20 You are receiving this mail because: You are on the CC list for the bug.=