From owner-freebsd-ppc@freebsd.org Fri Dec 27 00:05:58 2019 Return-Path: Delivered-To: freebsd-ppc@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6B0431DC588 for ; Fri, 27 Dec 2019 00:05:58 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic313-20.consmr.mail.gq1.yahoo.com (sonic313-20.consmr.mail.gq1.yahoo.com [98.137.65.83]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 47kRtX3lZLz4Sv6 for ; Fri, 27 Dec 2019 00:05:56 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: 0S_1wtwVM1mEwnRQgXFsddxdJ5LST8G7DlxgFCxGB_ZahQTVqR9kowV0.8IL1v1 Mpc4DWyBuhYENmE6bFoNw_KCAbc5NLu2MuB4iofDpq6A2ptHmm4OYFWXvPlU9nxWmfI6CipRWX9p W0tFyvRicQTmBp06cHDwUZ1VrB7vheMTKvke_ZnAYtEkbCaLBMzzkguUBkALEJL9Ps_YGsJdKOtl zflaH.Z6ZxGj16Edc3eiw4YTGv.Vh5xbGes9Clq3hnxIkFTC0I6sGSlhl4MZ.mIQZuphTpepvVki cRBCTcbpQHymDp9Gb5adaXbT_.U6c31_O7ZyRX683Xqj9V3Rppxrt7pBWpWVAs9iIUERmxP_oIK_ EwXxr7vpEl0TPetBBmUavhcYnVMzIRbCboI9.yh2I3Z2OoVZQ.gtYZue8O7hRq5O62Nmz7oQhz4X 0ukZ7z..x.zBai4WjavFdkRctql_NQc8uSyDrb9t_APdWFrmfzJykhznKZbGJVpeh1L_Cujkqeoe UDxaY.cDIPFF.c3CDyRM_oS252xoUhFI9t91Wt6LwlybGyu.8voLSJeH9gZZh9MDZIAYc11z9GR. tOeIgFmujZ6WE5i6Yv.w6SHbhRsHkCHxBlLk_Dm7_W9EtItF2dHjJPA4RGiYJisLL7RpyJmFfW_W 1rfXJVEqxPiqn8bPJWhaF.u73h7y8OkMDlFz11jokfs7IfolSOwMBHJBWnUhdppuhnGa1xcXjmtm kc.es02p4lGcT_tqhYrM0OUjdOpcjlGyN1_Xd3WVTYC6tSL3hJr2fCkvl6Nn2Aoh_wYUf0sIO.C2 HAJR_CrC8EhE3KiJ.svv2_Uqap_WbbRa1st1t5Vx_6s3_sP6S5aDHcRXWxS7OlOB1UV4J_TYKcI4 zw2fBnSo6j3U3AjqXMWyw78VO3CD8ASEDPpdEZ52FBWc6YsYroB_nf_zaO1GWidmeWRzfzO_ZIWa RR9j8KuN6emOQm.Oo3b8gOfZnLuvIR94IE13f.NJocgOnGdF.MUdi6TWHGiEwXf_Gd4H6AmJu6_F 0iLiKQOWtLoJyyRMVJ378vr9jGFE91S2DkW2Ppa2YOQh0uQJn6RKDo_EC7E52DrjJAl6bS2SfXl5 6WmMFwXM8ECk2VFEQ4.hUe9TthCPC.9la8A2cCcWQ4Zq3Bf0hGK2A2e64LABPQpMnDx5f6dEVsgH WzthTSW6qTREo7I4CHzK2R.CkLdhfFjCEaSHwI3C.pZJikNctLwEKJgbniP9e002KQG9egVAp4jS CMKAqIoP_wTM32XvAHQElE20Sk32mtDVK5_S3ESZ1CNQmUgNc4jhqtGEXPutVkJCECdmg.VlANtX qG1XvIImiU.nu4l0Gy9f1E5X8T6k0ysVadMHT0rGiF59RhFbYbKNABeBVTfi9fIxMgEPwL1CLjVv uDj.8TiNDoOmo.0SYF.Sk_39ghHYlwtIux7zIs6isng-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.gq1.yahoo.com with HTTP; Fri, 27 Dec 2019 00:05:53 +0000 Received: by smtp407.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 2bb26dffaecc776b5e6103104071845d; Fri, 27 Dec 2019 00:05:48 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Subject: Re: devel/freebsd-gcc9@powerpc (for example) : it has the clang vs. gcc vec_step name conflict (for powerpc families): build fails under clang From: Mark Millard In-Reply-To: Date: Thu, 26 Dec 2019 16:05:47 -0800 Cc: Gerald Pfeifer Content-Transfer-Encoding: quoted-printable Message-Id: <227049B0-B9DD-46F9-9BC8-3B5403250C92@yahoo.com> References: To: John Baldwin , FreeBSD Toolchain , freebsd-ppc@freebsd.org, FreeBSD ports X-Mailer: Apple Mail (2.3608.40.2.2.4) X-Rspamd-Queue-Id: 47kRtX3lZLz4Sv6 X-Spamd-Bar: - X-Spamd-Result: default: False [-1.54 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.19)[-0.188,0]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; FREEMAIL_FROM(0.00)[yahoo.com]; MIME_GOOD(-0.10)[text/plain]; MV_CASE(0.50)[]; NEURAL_HAM_LONG(-0.86)[-0.857,0]; RCVD_COUNT_TWO(0.00)[2]; RCPT_COUNT_FIVE(0.00)[5]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; RCVD_IN_DNSWL_NONE(0.00)[83.65.137.98.list.dnswl.org : 127.0.5.0]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/21, country:US]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(0.00)[ip: (4.31), ipnet: 98.137.64.0/21(0.89), asn: 36647(0.71), country: US(-0.05)]; DWL_DNSWL_NONE(0.00)[yahoo.com.dwl.dnswl.org : 127.0.5.0] X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Dec 2019 00:05:58 -0000 On 2019-Dec-26, at 15:21, Mark Millard wrote: > I tried to build devel/freebsd-gcc9@powerpc on a powerpc64 (in an > ELFv1 clang environment) and it reported (listing just one of the > examples that pointed to vec_step): >=20 >=20 > = /wrkdirs/usr/ports/devel/freebsd-gcc9/work-powerpc/gcc-9.2.0/gcc/tree-vect= -loop.c:4595:12: error: expected unqualified-id > tree vec_step =3D build_vector_from_val (cr_index_vector_type, = step); > ^ >=20 > (Unsure if white handling will still end up with ^ > pointing to vec_step.) >=20 > clang reserves a name that the gcc source code uses: > vec_step . (I'll not get into the long, messy history > of this name and multiple standards built on top of > C/C++, not necessarily in a language appropriate > way.) >=20 > It turns out that: >=20 > # ls -laT /usr/ports/devel/freebsd-gcc9/files/ > total 44 > drwxr-xr-x 2 root wheel 512 Dec 25 19:25:26 2019 . > drwxr-xr-x 3 root wheel 512 Dec 25 19:25:26 2019 .. > -rw-r--r-- 1 root wheel 4781 Dec 25 19:25:26 2019 = patch-freebsd-format-extensions > -rw-r--r-- 1 root wheel 1413 Dec 25 19:25:26 2019 = patch-freebsd-libdir > -rw-r--r-- 1 root wheel 588 Dec 25 19:25:26 2019 = patch-gcc-configure > -rw-r--r-- 1 root wheel 16346 Dec 25 19:25:26 2019 = patch-gcc-freebsd-mips > -rw-r--r-- 1 root wheel 231 Dec 25 19:25:26 2019 xtoolchain.mk.in >=20 > is missing the patch-clang-vec_step that is in: >=20 > FBSDG5L2# ls -laT /usr/ports/lang/gcc9/files/ > total 32 > drwxr-xr-x 2 root wheel 512 Dec 25 20:57:52 2019 . > drwxr-xr-x 3 root wheel 512 Dec 25 21:07:33 2019 .. > -rw-r--r-- 1 root wheel 3450 Jun 1 18:44:50 2019 = patch-arm-unwind-cxx-support > -rw-r--r-- 1 root wheel 651 Sep 18 11:08:37 2019 = patch-clang-vec_step > -rw-r--r-- 1 root wheel 2148 Jun 1 18:44:50 2019 = patch-gets-no-more > -rw-r--r-- 1 root wheel 2897 Jun 1 18:44:50 2019 = patch-gfortran-libgcc > -rw-r--r-- 1 root wheel 932 Dec 25 19:25:10 2019 patch-powerpc32 > -rw-r--r-- 1 root wheel 294 Sep 15 13:10:46 2019 pkg-message.in >=20 > I do not know if other differences in the patch > lists might be important to other aspects (in > either direction). I should have also noted that devel/freebsd-gcc6 has the same issue: # ls -laT /usr/ports/devel/freebsd-gcc6/files/ total 44 drwxr-xr-x 2 root wheel 512 Dec 25 19:25:37 2019 . drwxr-xr-x 3 root wheel 512 Dec 25 19:25:37 2019 .. -rw-r--r-- 1 root wheel 4657 Dec 25 19:25:37 2019 = patch-freebsd-format-extensions -rw-r--r-- 1 root wheel 1413 Dec 25 19:25:37 2019 = patch-freebsd-libdir -rw-r--r-- 1 root wheel 16435 Dec 25 19:25:37 2019 = patch-gcc-freebsd-mips -rw-r--r-- 1 root wheel 204 Dec 25 19:25:37 2019 xtoolchain.mk.in It also needs patch-clang-vec_step (or some equivalent) for powerpc and powerpc64 targeting to compile via clang, because of clang reserving the vec_step identifier and the gcc source code using that identifier. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)