From owner-freebsd-python@freebsd.org Sat Sep 1 13:56:20 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 16F7DFF0323 for ; Sat, 1 Sep 2018 13:56:20 +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 CA9B68CA90 for ; Sat, 1 Sep 2018 13:56:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 8E0CBFF031D; 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 523D5FF031B for ; Sat, 1 Sep 2018 13:56:19 +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 93C3F8CA8D 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 D95272E9B0 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 w81DuHrh034979 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 w81DuHdu034978 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 From: bugzilla-noreply@freebsd.org To: python@FreeBSD.org Subject: [Bug 231073] lang/python27: consumers cannot build with Clang in C++17 mode Date: Sat, 01 Sep 2018 13:56:17 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None 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: jbeich@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: python@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status keywords bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D231073 Bug ID: 231073 Summary: lang/python27: consumers cannot build with Clang in C++17 mode Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Keywords: needs-patch Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: python@FreeBSD.org Reporter: jbeich@FreeBSD.org Flags: maintainer-feedback?(python@FreeBSD.org) Assignee: python@FreeBSD.org 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. --=20 You are receiving this mail because: You are the assignee for the bug.=