From owner-freebsd-ppc@freebsd.org Fri Dec 27 07:39:53 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 0A18C1E5A08 for ; Fri, 27 Dec 2019 07:39:53 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic314-21.consmr.mail.gq1.yahoo.com (sonic314-21.consmr.mail.gq1.yahoo.com [98.137.69.84]) (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 47kdyH4Rplz3L8W for ; Fri, 27 Dec 2019 07:39:51 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: jSt0TS8VM1msSJFtH1u7CP1T7mtFRQ1_.PyFukvjzCrmzH6bXI3FjoS6aeq0GHX 7cghshDqGcepy.a4MyEYmq5eD9w7eAwms05ZGnzVU9HVZTsiH7ApVoz0Tt03a65qgHwrozs3k0mO AnvaQF8r0NAWvd6hJV.lKbmAcLolQQDMbyesLKo_.x69iGD0nesy4.Z1UzMAseypsUenBSvOLSzC eIpEzB8iJMFR2HEHjmlFFWRwYyCgF1aSLouidjDh7_EdG0FSAkkNED1pLQQJ8GuQXuzpGsnArlOa w.av3orW_nO9qd.oXGDvOPsMDMPhlLH5p0Hva8_oZy00yAVqHF6b4ey_IAiUcerBeHysai_0xQnl NcwAHmW9rDZUnY4A2HpquA868JltHp9OFzmmqzYjrU1TGywrN2gC2T_rrehUM.322HRgzC8f2Mfr GktMGSsJYIh314MhclTDMV1fqo02pyl1ciCA1YDGr90zzKVrr7oOVahmwe8ZF_7Ljm0237Ps44I1 IE8FvB29AU9Gum3zOEp0E8zlLpRAtddewwMnWI0j2Kt68P3IwKd9jdAV.9c7_NELKX9lnZuYzFHb np6rN6A_5XSdZUICOhiruyAjjeVR2Rdmjoa7vBtiRshPi.JrOIytQAT_sihnY9uECeUhMVfyjFJ4 DqxmVoRcowd4Ony.2w.hYVw5.9A7xD4RQcxF23_GDgp23RKiYm6qvx4WoZPwnOimgXCWDVohaL2o k0jHnAou1nkJQplsxbmtUaSiaZBBVwzRQxzU613Dv6p_L5mDr8ioztStKDGjIy.sTdWQn_uJ4my1 FsXvfs.Hg4xdr2Gh9jYrctUQVfmXjH5W.kUIOoCEOOlxhTX48_bL1MYIdWTN8kK4E6APPDmV3zwL SEOmqSvX20VKafrt4LARlv9guZUOqVbelvETgYMwCWhT2RMWjj1KRYCU_f.07uhDnD.16Wk3G5UI 365E_1xNrRaTCcRyTkyBsgYrjkAjoj_2_4RasfnyeN.ZVhYVRQ7_PHN1_cMEIoMIpHgXTM9S2Ww1 5ojZbCQbNA0SMGaXDrhdA4M7n4Qq5iWbsJCIr99w3TXqkn07zLr0r4c8DqGQzM9J5IHHF89F.8gJ bJo9vPWxlqEs42DNL9xHM0.3ElpqVmEYOEuqBMBB.GjQuD79J.l.23cve99LJwpeq6bcc1mBTheh VWlRsk_2yANRIlFvXk4u3v59qj3v6.utuneSLG._BCfD3mLPvS1UDMXuzmsWY3DQZkFOkIQXm.UB _cl3qOdWwtPd_vxLnY8IpUBzE4ejkY3WCiypKCZ3Fm3h1vSKUfBJA3zS4MtT3DGG2s2A4XnfmSlj DZPeLGKHE_huNDWXCgh9knZiOxaD6ZOshbdOmwtYNQHXHG0uhwRvgSiNfGqN3ru8ybtb_GflRpO2 urIkVUL1V2VZQe8cTwG00bOexzPr14Ojh3po- Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.gq1.yahoo.com with HTTP; Fri, 27 Dec 2019 07:39:48 +0000 Received: by smtp425.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 22a6b456439b76b4d6389950dbff5f11; Fri, 27 Dec 2019 07:39:47 +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 23:39:45 -0800 Cc: John Baldwin , freebsd-toolchain@freebsd.org, freebsd-ppc@freebsd.org, freebsd-ports@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Gerald Pfeifer X-Mailer: Apple Mail (2.3608.40.2.2.4) X-Rspamd-Queue-Id: 47kdyH4Rplz3L8W X-Spamd-Bar: - X-Spamd-Result: default: False [-1.16 / 15.00]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; RCPT_COUNT_FIVE(0.00)[5]; DKIM_TRACE(0.00)[yahoo.com:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; 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)[]; DWL_DNSWL_NONE(0.00)[yahoo.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-0.76)[-0.758,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(0.00)[ip: (5.68), ipnet: 98.137.64.0/21(0.89), asn: 36647(0.71), country: US(-0.05)]; NEURAL_SPAM_MEDIUM(0.10)[0.095,0]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[84.69.137.98.list.dnswl.org : 127.0.5.0]; RWL_MAILSPIKE_POSSIBLE(0.00)[84.69.137.98.rep.mailspike.net : 127.0.0.17]; RCVD_COUNT_TWO(0.00)[2] 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 07:39:53 -0000 On 2019-Dec-26, at 20:49, Gerald Pfeifer wrote: > On Thu, 26 Dec 2019, 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 > I maintain this is a bug in clang which should be address there. >=20 > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D239266 I wish they would, but . . . Unfortunately, this is likely a hard sell to the upstream clang folks because https://www.nxp.com/docs/en/reference-manual/ALTIVECPIM.pdf defines vec_step in "2.5.3 Value for Adjusting Pointers" and does not bother with specifying language namespace niceties, as I remember. That dates back to 1999-June. (The "POWER expert" quoted in comment 11 was wrong about the Altivec PIM not having a definition.) Clang has been this way for a long time and ends up considering how many AltiVec related builds would be broken by such a breaking change for those builds. The later OpenCL specification of its vec_step has the same sort of status as I remember. Thus, the same type of considerations likely are involved again. So I expect that, if devel/freebsd-gcc[69] waits for clang to be fixed, instead of having a (hopefully temporary) workaround, then for a significant time those ports likely will not work for being built via clang for targeting powerpc64 or powerpc. An unfortunate context, for sure. >> 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/ >=20 > That is a hack that can be used to work around the issue; I strongly > recommend addressing this in clang properly, though. >=20 =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)