From nobody Tue Apr 19 12:09:25 2022 X-Original-To: dev-commits-ports-all@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 97BA211E4E8A; Tue, 19 Apr 2022 12:09:25 +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 4KjMzn3d04z3r1B; Tue, 19 Apr 2022 12:09:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650370165; 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=3dm3mFSLUcjpXY/S4SpGZTRQlzxQpHeDduN7XoyMIy0=; b=EKBkpXP6at0KyiBZ/jjLtWM+kEtSwtXlJTHM27BDP1lD6Tef8LGqi9uQZ7S8zWbGs/SmNq 1OvSsgFzRe+YcupLiFrcM6gRl0SqAK3xfqAj3CYmeX+SdvyQTnEcB2azLa31BBmuRtSvbn CKWNDM5+4/UF0buvsdUkyCvN8VyaBRmB4gHGgyPARXAyF4WUlaa1+fjOkr/OPyaAWdBvem BasMsrJ+7j+pUchEKJPWrf1q6V94XwL5ThAm2O7Akuwn7Cj8hKchtG3o2zGF6TXfNOXD14 byp5EZrfDihbnenN+o7+nytruM0RPoQa+i4k1IdkJi6RUSG1aKB1ke3G1HkxIA== 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 5C97626F1F; Tue, 19 Apr 2022 12:09:25 +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 23JC9PCV076412; Tue, 19 Apr 2022 12:09:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23JC9PQP076411; Tue, 19 Apr 2022 12:09:25 GMT (envelope-from git) Date: Tue, 19 Apr 2022 12:09:25 GMT Message-Id: <202204191209.23JC9PQP076411@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: 165af9b4a218 - main - lang/gcc11: build with clang on powerpc64le List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@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: 165af9b4a218483ab15b0a039bdb588f2494f5b6 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650370165; 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=3dm3mFSLUcjpXY/S4SpGZTRQlzxQpHeDduN7XoyMIy0=; b=ICK7g0EsWNNqoy8ZX5ig0/VkXHhaVVAWnowozQbpnVLh32XZNkvVIT2j5EVEgN0gloecGL ViCz6TtxRYXEzNMWvU1CbnKJ4jiHd0NGNwzGEBze/LFVyCucOkmM9FuSXtQZyrmQp5H8Q5 7FF0mvrjk8dKZ65YFVxCLAfBV8+OVpHjnF1U6rz2do9eyjoE5HfGom/KG5zh5z9hH9huXe Hj7NQnmQToytwi/1FQH5YFyAa+PIznzSqQ/1uivdOThBa3oN9NczPbIJnX/gXE3NePhIV0 zGs2bQFN0AfzMqAW1nmtdKa+PxztVe4LOKWOic8d9TZ212M1+UrturdWEjcVkw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1650370165; a=rsa-sha256; cv=none; b=Ci3sEFrXK7+FMB9sPY3WQzFOPdLC114p6yDTwOg+Qu93AeSDOsWIeLFzNq/KB+kfbGl2LG At9Uzjkqh9kkgf4mIeglRKkeZq6cOf1q0yKMdxfR2NMgkPZyVxyf8quEutayXvLEuW2Rxd RBPQU1roZVVeM+718ZTcVcZev13cxhT/W9O5lazgz9dNNNt4+Hi5yf7b7i3zLsWhyuemQJ MhNxdOXan9fLlZH/kr3Rj0a4nO9vK/hLnhMOCrMeZZ5fmcBDCLlMGwvCm/altikI/yd6a1 hBIw9XFSy9IraARMdrLovfgFla63s7bKCrbnRMn4K0D5NgYdIrgADwor1MZBxw== 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=165af9b4a218483ab15b0a039bdb588f2494f5b6 commit 165af9b4a218483ab15b0a039bdb588f2494f5b6 Author: Piotr Kubaj AuthorDate: 2022-04-17 18:35:24 +0000 Commit: Piotr Kubaj CommitDate: 2022-04-19 12:09:14 +0000 lang/gcc11: build with clang on powerpc64le Copy the patch used for other gcc versions. --- lang/gcc11/Makefile | 3 --- lang/gcc11/files/patch-clang-vec_step | 21 +++++++++++++++++++++ 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/lang/gcc11/Makefile b/lang/gcc11/Makefile index 015cf4ef306c..3d14c2ab2ea6 100644 --- a/lang/gcc11/Makefile +++ b/lang/gcc11/Makefile @@ -64,9 +64,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/files/patch-clang-vec_step b/lang/gcc11/files/patch-clang-vec_step new file mode 100644 index 000000000000..68fbeedad582 --- /dev/null +++ b/lang/gcc11/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.