From owner-freebsd-python@freebsd.org Sat Sep 1 13:56:19 2018 Return-Path: Delivered-To: freebsd-python@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B26A6FF031E for ; Sat, 1 Sep 2018 13:56:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 506BF8CA8E for ; Sat, 1 Sep 2018 13:56:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 10EF6FF0319; Sat, 1 Sep 2018 13:56:19 +0000 (UTC) Delivered-To: python@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E15CDFF0317 for ; Sat, 1 Sep 2018 13:56:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6246A8CA8B for ; Sat, 1 Sep 2018 13:56:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 7C2502E9AE for ; Sat, 1 Sep 2018 13:56:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w81DuHYK034971 for ; Sat, 1 Sep 2018 13:56:17 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w81DuH9F034970 for python@FreeBSD.org; Sat, 1 Sep 2018 13:56:17 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" From: bugzilla-noreply@freebsd.org To: python@FreeBSD.org Subject: maintainer-feedback requested: [Bug 231073] lang/python27: consumers cannot build with Clang in C++17 mode Date: Sat, 01 Sep 2018 13:56:17 +0000 X-Bugzilla-Type: request X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: needs-patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: python@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? Message-ID: In-Reply-To: References: X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Sep 2018 13:56:20 -0000 Bugzilla Automation has asked freebsd-python mailing list for maintainer-feedback: Bug 231073: lang/python27: consumers cannot build with Clang in C++17 mode https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D231073 --- Description --- Consumers may want to switch to C++17 but some dependencies aren't ready for Python 3.* or C++17 library may want to keep supporting Python 2.* in addit= ion to Python 3.*. $ echo '#include ' >a.cc $ c++ -std=3Dgnu++17 $(python2.7-config --cflags) -c a.cc In file included from a.cc:1: In file included from /usr/local/include/python2.7/Python.h:88: /usr/local/include/python2.7/unicodeobject.h:534:5: error: ISO C++17 does n= ot allow 'register' storage class specifier [-Wregister] register PyObject *obj, /* Object */ ^~~~~~~~~ /usr/local/include/python2.7/unicodeobject.h:553:5: error: ISO C++17 does n= ot allow 'register' storage class specifier [-Wregister] register PyObject *obj /* Object */ ^~~~~~~~~ /usr/local/include/python2.7/unicodeobject.h:575:5: error: ISO C++17 does n= ot allow 'register' storage class specifier [-Wregister] register const wchar_t *w, /* wchar_t buffer */ ^~~~~~~~~ /usr/local/include/python2.7/unicodeobject.h:593:5: error: ISO C++17 does n= ot allow 'register' storage class specifier [-Wregister] register wchar_t *w, /* wchar_t buffer */ ^~~~~~~~~ In file included from a.cc:1: In file included from /usr/local/include/python2.7/Python.h:97: /usr/local/include/python2.7/stringobject.h:173:5: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister] register PyObject *obj, /* string or Unicode object */ ^~~~~~~~~ /usr/local/include/python2.7/stringobject.h:174:5: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister] register char **s, /* pointer to buffer variable */ ^~~~~~~~~ /usr/local/include/python2.7/stringobject.h:175:5: error: ISO C++17 does not allow 'register' storage class specifier [-Wregister] register Py_ssize_t *len /* pointer to length variable or NULL ^~~~~~~~~ 7 errors generated.