From nobody Tue Apr 19 12:09:26 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 865AC11E4E93; Tue, 19 Apr 2022 12:09:27 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KjMzp4r6vz3r1K; Tue, 19 Apr 2022 12:09:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650370166; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=hpQiSlSftzUn4rOdiCyU9qNpB6I4lr1h2esefaWL/Pw=; b=BOyexOVwTEb7zYruqnC/2tkodiA20wvZrwZop9QwKN8yUZL5O4OzflI86Zhbqte5Nbdqkw GNAmqO1u0JnN80cXjOju7jmYSIMXSdZe44ODNjTTdU2PZxzGLaYB1S8tLU+tMZINB+L8dZ /wmWiSy6HljNL4LQT695UuvqI/+8tXWzsJY1GXerkhZMVHMbIQ85Xgeql6l687IhEvwp7N aKjjbRh8lG1pj3Yyekq8eRq+U3O5WbeBqITj/MvpEbQKY3Nf9oAX9UhJhi+bk8/L7eIs9P X5mmPvIL5sUaIJwDv1KSyE05NE4i8W/4bmecKOB5n2i9Clg5dLdfEL4ZsM19EA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 70E1326F20; Tue, 19 Apr 2022 12:09:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 23JC9QiS076436; Tue, 19 Apr 2022 12:09:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23JC9Q9q076435; Tue, 19 Apr 2022 12:09:26 GMT (envelope-from git) Date: Tue, 19 Apr 2022 12:09:26 GMT Message-Id: <202204191209.23JC9Q9q076435@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Piotr Kubaj Subject: git: 8c9d243e6e1b - main - lang/gcc11-devel: build on powerpc64le using clang List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: pkubaj X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8c9d243e6e1bdf66c34b265a6d04395faf037e0c Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650370166; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=hpQiSlSftzUn4rOdiCyU9qNpB6I4lr1h2esefaWL/Pw=; b=xtRRm0uX6ejRQ8GwQrmyCHeiJsGTbAXrZanbEcncp/cyZcVy+0tBua675EDNhpWFv5ggBX JXf10B8ens/lzxoca3igQY8y3GWGhod/3QsvMle03Ad5ZOe/fXYCJMxbmztM3haLfbreNd QOoKM3gZLAZYsYR5sk79yH1vEF8i0OAychg39kj6seW4QD6PRFMfzQi6y2lZsGmPs8HW+y 5okTxqk/CA+t1apzNvRJcl/5hgRHFmNk6Gnxoj/q5VQ7xUfxpqnPZUn/qOdBRdp/8My/Ew Z0IDPDh2nM3sP2qR8yBn7ohIPAXmyCLHXev3AvJCaiXeu1UpXUDW6/i5mRcw1A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1650370166; a=rsa-sha256; cv=none; b=DuSb8AxW5UPi8gEqYNxpyXsf0+hdcktj+PM9bW3652rWazZxOzl0iDUIR1gCmE3AYU5qQG TckzvmBIch5vj5le9RlIV3q5tO/j3xDSBjMOT5BijQn+QXj5/ziWpcxPRQmgDfjM56jjAQ hX3bkDOaBAMIyap9vrK+JUGxDE8Ulh9TW0un4hohOpz60VMuaLF0/slozTAJPOaxZjEzIW M3cMFwg7Jwqn+wfqnJKGaqMsOTg4PJMlg5x0mRFliWCRH1JrWJB0JnDNrg67wtsTdPOf8q k8oX61wSlAJNywzXe0twE7CVBn9kZKRCFlF4oxXtMRcbONXUHShKdGLBuTuVCA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=8c9d243e6e1bdf66c34b265a6d04395faf037e0c commit 8c9d243e6e1bdf66c34b265a6d04395faf037e0c Author: Piotr Kubaj AuthorDate: 2022-04-17 20:18:27 +0000 Commit: Piotr Kubaj CommitDate: 2022-04-19 12:09:14 +0000 lang/gcc11-devel: build on powerpc64le using clang Copy the patch used for other gcc ports. --- lang/gcc11-devel/Makefile | 3 --- lang/gcc11-devel/files/patch-clang-vec_step | 21 +++++++++++++++++++++ 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/lang/gcc11-devel/Makefile b/lang/gcc11-devel/Makefile index aea8ea11b2a5..34326b253c12 100644 --- a/lang/gcc11-devel/Makefile +++ b/lang/gcc11-devel/Makefile @@ -70,9 +70,6 @@ CONFIGURE_ENV+= UNAME_m="powerpc64" CONFIGURE_ARGS+= --with-abi=elfv2 . endif USE_GCC= yes - -.elif ${ARCH} == powerpc64le -USE_GCC= yes .endif LANGUAGES:= c,c++,objc,fortran,jit diff --git a/lang/gcc11-devel/files/patch-clang-vec_step b/lang/gcc11-devel/files/patch-clang-vec_step new file mode 100644 index 000000000000..68fbeedad582 --- /dev/null +++ b/lang/gcc11-devel/files/patch-clang-vec_step @@ -0,0 +1,21 @@ +https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=239266 reports how +clang unfortunately poisons user namespace by default (without any +special options). + +Until that changes (or GCC changes) we need to avoid using vec_step +as a variable. + +--- UTC +Index: gcc/tree-vect-loop.c +=================================================================== +--- gcc/tree-vect-loop.c (revision 273856) ++++ gcc/tree-vect-loop.c (working copy) +@@ -55,6 +55,8 @@ along with GCC; see the file COPYING3. If not see + #include "vec-perm-indices.h" + #include "tree-eh.h" + ++#define vec_step vec_step_ ++ + /* Loop Vectorization Pass. + + This pass tries to vectorize loops.