From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 54057 invoked by alias); 29 May 2018 12:11:21 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 54011 invoked by uid 89); 29 May 2018 12:11:13 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=BAYES_00,KAM_NUMSUBJECT,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy=3.7, reluctant, HTo:U*pmuldoon X-HELO: esa7.dell-outbound.iphmx.com Received: from esa7.dell-outbound.iphmx.com (HELO esa7.dell-outbound.iphmx.com) (68.232.153.96) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 29 May 2018 12:11:12 +0000 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2GjAQAqQg1bmMmZ6ERbGgEBAQEBAgEBA?= =?us-ascii?q?QEIAQEBAYQYDoEnCphcgXmBD5M7gXgLHw+EPgKCGCE2FgECAQEBAQEBAgEBAhA?= =?us-ascii?q?BAQEBAQgLCwYoIwyCNSIRS1wBAQEBAQEjAg1jAQEBAwE6PwULAgEIGB4QVwIED?= =?us-ascii?q?gWDIgKBdwgPpkyIPYFjBQkBiCyCE4EzgmmFP4JkgiQCmGIHAoVsiHSBO4Nvh1y?= =?us-ascii?q?JbIcfgUgBggNwUCoBghiCIA4JiFmFPm+OToEZAQE?= X-IPAS-Result: =?us-ascii?q?A2GjAQAqQg1bmMmZ6ERbGgEBAQEBAgEBAQEIAQEBAYQYDoE?= =?us-ascii?q?nCphcgXmBD5M7gXgLHw+EPgKCGCE2FgECAQEBAQEBAgEBAhABAQEBAQgLCwYoI?= =?us-ascii?q?wyCNSIRS1wBAQEBAQEjAg1jAQEBAwE6PwULAgEIGB4QVwIEDgWDIgKBdwgPpky?= =?us-ascii?q?IPYFjBQkBiCyCE4EzgmmFP4JkgiQCmGIHAoVsiHSBO4Nvh1yJbIcfgUgBggNwU?= =?us-ascii?q?CoBghiCIA4JiFmFPm+OToEZAQE?= Received: from esa1.dell-outbound2.iphmx.com ([68.232.153.201]) by esa7.dell-outbound.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 May 2018 07:09:08 -0500 From: Received: from ausxipps301.us.dell.com ([143.166.148.223]) by esa1.dell-outbound2.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 May 2018 18:08:44 +0600 X-LoopCount0: from 10.166.136.216 X-DLP: DLP_GlobalPCIDSS To: CC: Subject: Re: GDB fails to build with Python 3.7 Date: Tue, 29 May 2018 12:11:00 -0000 Message-ID: <236499F6-8C72-4BF4-804D-5D4D2CE87BA9@dell.com> References: <23b4af30-51fd-e39d-e5a4-c8256203b984@redhat.com> In-Reply-To: <23b4af30-51fd-e39d-e5a4-c8256203b984@redhat.com> Content-Type: text/plain; charset="us-ascii" Content-ID: <29398728F287D441B85FAD829D78288E@dell.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-SW-Source: 2018-05/txt/msg00028.txt.bz2 > On May 29, 2018, at 7:37 AM, Phil Muldoon wrote: >=20 > Currently GDB fails to build with Python 3.7 >=20 > https://bugs.python.org/issue33470 >=20 > This is because we use an internal Python API: >=20 > #ifdef IS_PY3K > gdb_module =3D PyModule_Create (&python_GdbModuleDef); > /* Add _gdb module to the list of known built-in modules. */ > _PyImport_FixupBuiltin (gdb_module, "_gdb"); > #else > gdb_module =3D Py_InitModule ("_gdb", python_GdbMethods); > #endif >=20 > (the _PyImport_FixupBuiltin in python.c). >=20 > This internal API has been changed. According to the advice of the Python > maintainers we should never have used it in the first place. I didn't > add this (at least I don't think I did!), so I'm asking whomever > authored that code to please change it to be 3.7 compatible. I'm not > sure what the code achieves so I'm reluctant to touch it in case of > breakages on platforms I don't have easily access to. That may be part of my original Python 3 support work. I'd have to dig back in somewhat dusty memories to find the reason. Part of the problem is that Python initialization is different in Python 3 and the differences are (or were?) undocumented and not particularly obvious. I'll take a look. Right now I can't get configure to find Python at all on my Mac -- "--with-python=3D/Library/Frameworks...." isn't doing it. paul