From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B8E3F158094 for ; Tue, 2 Aug 2022 13:06:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EE0AFE0E5E; Tue, 2 Aug 2022 13:06:52 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CEDBDE0E5E for ; Tue, 2 Aug 2022 13:06:52 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9E9EC33D3CD for ; Tue, 2 Aug 2022 13:06:51 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3264C54F for ; Tue, 2 Aug 2022 13:06:50 +0000 (UTC) From: "Fabian Groffen" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Fabian Groffen" Message-ID: <1659445348.84982b6a98984b097e1f155699d269b3dddc7d2a.grobian@gentoo> Subject: [gentoo-commits] repo/proj/prefix:master commit in: sys-devel/gcc/ X-VCS-Repository: repo/proj/prefix X-VCS-Files: sys-devel/gcc/gcc-12.1.0.ebuild X-VCS-Directories: sys-devel/gcc/ X-VCS-Committer: grobian X-VCS-Committer-Name: Fabian Groffen X-VCS-Revision: 84982b6a98984b097e1f155699d269b3dddc7d2a X-VCS-Branch: master Date: Tue, 2 Aug 2022 13:06:50 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: e9c69d90-7a72-427f-bd33-b271407b8de7 X-Archives-Hash: 85b5c263ce61e4a774ac1c1d11dc695b commit: 84982b6a98984b097e1f155699d269b3dddc7d2a Author: Fabian Groffen gentoo org> AuthorDate: Tue Aug 2 13:02:28 2022 +0000 Commit: Fabian Groffen gentoo org> CommitDate: Tue Aug 2 13:02:28 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=84982b6a sys-devel/gcc-12.1.0: workaround compilation issue on arm64-darwin For some reason when flex invokes m4 during bootstrap of gcc, it fails which results in an empty file, causing compilation to fail. This is a really weird issue only happening on arm64/Apple SI, so just use the host flex which seems to work correctly. Signed-off-by: Fabian Groffen gentoo.org> sys-devel/gcc/gcc-12.1.0.ebuild | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sys-devel/gcc/gcc-12.1.0.ebuild b/sys-devel/gcc/gcc-12.1.0.ebuild index 29983dc1e2..590c202d8c 100644 --- a/sys-devel/gcc/gcc-12.1.0.ebuild +++ b/sys-devel/gcc/gcc-12.1.0.ebuild @@ -92,6 +92,13 @@ src_configure() { # use sysroot with the linker, #756160 export gcc_cv_ld_sysroot=yes ;; + arm64-*-darwin*) + # only supported from darwin21, so no conflict with above + # case switch + # for the time being use system flex, for our doesn't work + # here (while it does fine elsewhere), #778014 + export ac_cv_prog_FLEX=/usr/bin/flex + ;; *-solaris*) # todo: some magic for native vs. GNU linking? myconf+=( --with-gnu-ld --with-gnu-as --enable-largefile )