From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21237 invoked by alias); 29 May 2018 11:34:11 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 21124 invoked by uid 89); 29 May 2018 11:33:59 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.4 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2 spammy=3.7, Hx-languages-length:867, reluctant X-HELO: mail-wr0-f169.google.com Received: from mail-wr0-f169.google.com (HELO mail-wr0-f169.google.com) (209.85.128.169) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 29 May 2018 11:33:58 +0000 Received: by mail-wr0-f169.google.com with SMTP id w7-v6so12971881wrn.6 for ; Tue, 29 May 2018 04:33:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:mime-version :content-language:content-transfer-encoding; bh=VycmK02zeBCh3xWT7xRZn44sR1uNvRLzrweSi/cyqfM=; b=n8spj5kosoQfKQOtMW6DLXjdR/WKqz6Y5igZ1qwrDoncDWsz+wocMzkiuukw9vMRYZ bacO6v06J+DTr/hEgGpZ6O+46T2l8qZ3qGRDJ2b59LaUC+wsoLW2Zbat/Ziqo6luD58v xqZm4ZjdAkex58lNsloeSQkPkod1OBpcM1T8MZxpFghz60oj93zg2vG03orfiAJ5CMWC 7AjYD/msg6TI54JopKT8GQQS+45uij8Hgpt6SvDoabA+kJLufxXT6aqpQPRSUnc7YlCk ld1W5xOKDiiNMnhIBdyXDEtyoJAAA3nKyM15sray5qIxiR7EHfFAJQDiO/6bP7U/ZGWS QECA== X-Gm-Message-State: ALKqPwdnBZUGKli5Y0C6ofX7LBWo8OwLAYznvkJbT3GmzARUXPoW+n2p 131zE9ZYOx9zphrqNq8Az4Inqw/G0Os= X-Google-Smtp-Source: AB8JxZr/nQtB7rb1DyUeVe2Nt+0RFJsIeucKDVwxnEKAamblsSMISso6xI8Ugywzxs9ozur059YhFA== X-Received: by 2002:adf:a0b9:: with SMTP id m54-v6mr12513301wrm.76.1527593635962; Tue, 29 May 2018 04:33:55 -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 t66-v6sm10350361wme.6.2018.05.29.04.33.54 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 May 2018 04:33:55 -0700 (PDT) To: "gdb@sourceware.org" From: Phil Muldoon Subject: GDB fails to build with Python 3.7 Message-ID: <5e55cd3c-7ccd-4cce-5297-ddddadf91975@redhat.com> Date: Tue, 29 May 2018 13:07: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/msg00753.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