From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 79311 invoked by alias); 29 May 2018 11:37:29 -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 79244 invoked by uid 89); 29 May 2018 11:37:19 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=BAYES_00,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2 spammy=3.7, reluctant, Hx-languages-length:867 X-HELO: mail-wr0-f182.google.com Received: from mail-wr0-f182.google.com (HELO mail-wr0-f182.google.com) (209.85.128.182) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 29 May 2018 11:37:16 +0000 Received: by mail-wr0-f182.google.com with SMTP id i12-v6so24943312wrc.4 for ; Tue, 29 May 2018 04:37:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:message-id:date:mime-version :content-language:content-transfer-encoding; bh=VycmK02zeBCh3xWT7xRZn44sR1uNvRLzrweSi/cyqfM=; b=XHlY2ZtbWnYIh6TerB/N952Z0kefUcGmPuDbImV3lDzEQzu+AD2QoC2kNitGQxTJ34 xqdYU/cmR7lGA009jlhKyeknQ7SbRcNMKPgHwZt9ga9bLoDPH4f8F2x7jsGKwkmokwSn hzr0j9LTwUs5DEpG8yfjBUsvTvqwxEu1DaJMvhIyIn1qK4v1xBf17p2axR7pxtCDzuiG eOHFyGt15z7F05ZTFO81GxC5MyIcNDg51l9bvLrClNZNGWjIByQ6zPJpDHINAcyXXIEk BxUP2vgkIyiGDUmjCt0LI6ZD0DDVMDtBoe/bwgC3jkm56HUkm0rUk3hqMtRjSWWJew85 jqxg== X-Gm-Message-State: ALKqPwdfXT5KKz8EccUIhSNVqlCGtaNSY1NsqBd/OXRxkLJ7RQ2hi/0O PB9w9rkYzm3lpq8wur2xevbmyy8l/XY= X-Google-Smtp-Source: ADUXVKJbKGcgFqpCP6n47nNobmVlEYWx4TYbWDx8xF2DD+z/zpwe5yaV54DkaE8TIFodx5ch0OonuQ== X-Received: by 2002:adf:b053:: with SMTP id g19-v6mr8638131wra.128.1527593832254; Tue, 29 May 2018 04:37:12 -0700 (PDT) Received: from ?IPv6:2a02:c7f:ae6a:ed00:4685:ff:fe66:9f4? ([2a02:c7f:ae6a:ed00:4685:ff:fe66:9f4]) by smtp.gmail.com with ESMTPSA id e7-v6sm32481188wrn.88.2018.05.29.04.37.11 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 May 2018 04:37:11 -0700 (PDT) From: Phil Muldoon Subject: GDB fails to build with Python 3.7 To: gdb@sourceware.org Message-ID: <23b4af30-51fd-e39d-e5a4-c8256203b984@redhat.com> Date: Tue, 29 May 2018 11:37:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2018-05/txt/msg00027.txt.bz2 Currently GDB fails to build with Python 3.7 https://bugs.python.org/issue33470 This is because we use an internal Python API: #ifdef IS_PY3K gdb_module = PyModule_Create (&python_GdbModuleDef); /* Add _gdb module to the list of known built-in modules. */ _PyImport_FixupBuiltin (gdb_module, "_gdb"); #else gdb_module = Py_InitModule ("_gdb", python_GdbMethods); #endif (the _PyImport_FixupBuiltin in python.c). 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. Cheers Phil