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 723ED15808B for ; Sun, 29 Sep 2024 11:22:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B7116E2A27; Sun, 29 Sep 2024 11:22:04 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A1F33E2A27 for ; Sun, 29 Sep 2024 11:22:04 +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) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D85CD343220 for ; Sun, 29 Sep 2024 11:22:03 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4D0AFC36 for ; Sun, 29 Sep 2024 11:22:02 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1727608885.9bb87839a6ad66ee7c89837a546fbf2e7f69b577.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/ X-VCS-Repository: repo/gentoo X-VCS-Files: eclass/toolchain.eclass X-VCS-Directories: eclass/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 9bb87839a6ad66ee7c89837a546fbf2e7f69b577 X-VCS-Branch: master Date: Sun, 29 Sep 2024 11:22:02 +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: 5cd62100-3383-4e94-a2f8-8e8a81fa54d3 X-Archives-Hash: f5baf9bd6b88d7d2264fc730d42f316e commit: 9bb87839a6ad66ee7c89837a546fbf2e7f69b577 Author: Sam James gentoo org> AuthorDate: Sun Sep 29 11:17:33 2024 +0000 Commit: Sam James gentoo org> CommitDate: Sun Sep 29 11:21:25 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9bb87839 toolchain.eclass: start with oldest GNAT and work upwards instead Per https://gcc.gnu.org/install/prerequisites.html """ Similarly, it is strongly recommended to use an older version of GNAT to build GNAT. More recent versions of GNAT than the version built are not guaranteed to work and will often fail during the build with compilation errors. """ Bug: https://gcc.gnu.org/PR103357 Bug: https://bugs.gentoo.org/880825 Signed-off-by: Sam James gentoo.org> eclass/toolchain.eclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index f941f08d4198..759d871fde62 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -872,8 +872,8 @@ toolchain_src_configure() { local ada_candidate # We always prefer the version being built if possible # as it has the greatest chance of success. Failing that, - # try the latest installed GCC and iterate downwards. - for ada_candidate in ${SLOT} $(seq ${latest_gcc} -1 10) ; do + # try GCC 10 and iterate upwards. + for ada_candidate in ${SLOT} $(seq 10 ${latest_gcc}) ; do has_version -b "sys-devel/gcc:${ada_candidate}" || continue ebegin "Testing sys-devel/gcc:${ada_candidate} for Ada"