From unknown Sat Jun 14 18:56:06 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#78433] [PATCH] Search for gcc-ar Resent-From: Sam James Original-Sender: "Debbugs-submit" Resent-CC: automake-patches@gnu.org Resent-Date: Thu, 15 May 2025 02:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 78433 X-GNU-PR-Package: automake-patches X-GNU-PR-Keywords: patch To: 78433@debbugs.gnu.org Cc: Sam James X-Debbugs-Original-To: automake-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.174727726419802 (code B ref -1); Thu, 15 May 2025 02:48:02 +0000 Received: (at submit) by debbugs.gnu.org; 15 May 2025 02:47:44 +0000 Received: from localhost ([127.0.0.1]:48312 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uFOdL-00059J-KY for submit@debbugs.gnu.org; Wed, 14 May 2025 22:47:43 -0400 Received: from lists.gnu.org ([2001:470:142::17]:45930) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uFOdH-000594-4Z for submit@debbugs.gnu.org; Wed, 14 May 2025 22:47:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uFOdA-0002wg-8B for automake-patches@gnu.org; Wed, 14 May 2025 22:47:32 -0400 Received: from woodpecker.gentoo.org ([140.211.166.183] helo=smtp.gentoo.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1uFOd8-0005co-AJ for automake-patches@gnu.org; Wed, 14 May 2025 22:47:32 -0400 Received: from mop.. (unknown [82.8.138.118]) (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) (Authenticated sender: sam@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 7852934374B; Thu, 15 May 2025 02:47:20 +0000 (UTC) From: Sam James Date: Thu, 15 May 2025 03:46:55 +0100 Message-ID: X-Mailer: git-send-email 2.49.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=140.211.166.183; envelope-from=sam@gentoo.org; helo=smtp.gentoo.org X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.3 (/) GCC requires `ar` to have plugin support when using LTO. While the situation has improved as many distributions install the GCC plugin to a location that GNU Binutils can automatically find, this isn't required and isn't done by default. By searching for `gcc-ar` first, we can make this case work without intervention from the user. Problem reported by R. Diez in: https://savannah.gnu.org/support/?110475 * m4/ar-lib.m4 (AM_PROG_AR): Search for gcc-ar. --- I'm still testing this and going to play with it some more in the wild, but how does this look in principle? NEWS | 3 +++ m4/ar-lib.m4 | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 30c0cd2c7..d448dba26 100644 --- a/NEWS +++ b/NEWS @@ -17,6 +17,9 @@ New in 1.17.92: - Support for Algol 68 added, based on the GNU Algol 68 compiler. (bug#75807) + - AM_PROG_AR now searches for 'gcc-ar' first. + (https://savannah.gnu.org/support/?110475) + * Bugs fixed - Do not make Perl warnings fatal, per Perl's recommendation. diff --git a/m4/ar-lib.m4 b/m4/ar-lib.m4 index 568ea0798..c00c1a51e 100644 --- a/m4/ar-lib.m4 +++ b/m4/ar-lib.m4 @@ -16,7 +16,7 @@ AC_BEFORE([$0], [AC_PROG_LIBTOOL])dnl AC_BEFORE([$0], [AC_PROG_AR])dnl AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([ar-lib])dnl -AC_CHECK_TOOLS([AR], [ar lib "link -lib"], [false]) +AC_CHECK_TOOLS([AR], [gcc-ar ar lib "link -lib"], [false]) : ${AR=ar} : ${ARFLAGS=cr} -- 2.49.0 From unknown Sat Jun 14 18:56:06 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#78433] [PATCH] Search for gcc-ar Resent-From: Sam James Original-Sender: "Debbugs-submit" Resent-CC: automake-patches@gnu.org Resent-Date: Thu, 15 May 2025 03:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 78433 X-GNU-PR-Package: automake-patches X-GNU-PR-Keywords: patch To: 78433@debbugs.gnu.org Received: via spool by 78433-submit@debbugs.gnu.org id=B78433.174727901730654 (code B ref 78433); Thu, 15 May 2025 03:17:02 +0000 Received: (at 78433) by debbugs.gnu.org; 15 May 2025 03:16:57 +0000 Received: from localhost ([127.0.0.1]:48487 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uFP5d-0007yJ-08 for submit@debbugs.gnu.org; Wed, 14 May 2025 23:16:57 -0400 Received: from woodpecker.gentoo.org ([140.211.166.183]:47302 helo=smtp.gentoo.org) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1uFP5a-0007xf-6L for 78433@debbugs.gnu.org; Wed, 14 May 2025 23:16:54 -0400 Received: from mop.sam.mop (unknown [82.8.138.118]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: sam) by smtp.gentoo.org (Postfix) with ESMTPSA id E0D6934372B for <78433@debbugs.gnu.org>; Thu, 15 May 2025 03:16:47 +0000 (UTC) From: Sam James In-Reply-To: Organization: Gentoo References: User-Agent: mu4e 1.12.9; emacs 31.0.50 Date: Thu, 15 May 2025 04:16:45 +0100 Message-ID: <87cycasgv6.fsf@gentoo.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Sam James writes: > GCC requires `ar` to have plugin support when using LTO. While the situation > has improved as many distributions install the GCC plugin to a location > that GNU Binutils can automatically find, this isn't required and isn't done > by default. > > By searching for `gcc-ar` first, we can make this case work without > intervention from the user. > > Problem reported by R. Diez in: https://savannah.gnu.org/support/?110475 > > * m4/ar-lib.m4 (AM_PROG_AR): Search for gcc-ar. > --- > I'm still testing this and going to play with it some more in the wild, > but how does this look in principle? I've sent a patch to autoconf as well at https://lists.gnu.org/archive/html/autoconf-patches/2025-05/msg00007.html. > > NEWS | 3 +++ > m4/ar-lib.m4 | 2 +- > 2 files changed, 4 insertions(+), 1 deletion(-) > > diff --git a/NEWS b/NEWS > index 30c0cd2c7..d448dba26 100644 > --- a/NEWS > +++ b/NEWS > @@ -17,6 +17,9 @@ New in 1.17.92: > > - Support for Algol 68 added, based on the GNU Algol 68 compiler. (bug#75807) > > + - AM_PROG_AR now searches for 'gcc-ar' first. > + (https://savannah.gnu.org/support/?110475) > + > * Bugs fixed > > - Do not make Perl warnings fatal, per Perl's recommendation. > diff --git a/m4/ar-lib.m4 b/m4/ar-lib.m4 > index 568ea0798..c00c1a51e 100644 > --- a/m4/ar-lib.m4 > +++ b/m4/ar-lib.m4 > @@ -16,7 +16,7 @@ AC_BEFORE([$0], [AC_PROG_LIBTOOL])dnl > AC_BEFORE([$0], [AC_PROG_AR])dnl > AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl > AC_REQUIRE_AUX_FILE([ar-lib])dnl > -AC_CHECK_TOOLS([AR], [ar lib "link -lib"], [false]) > +AC_CHECK_TOOLS([AR], [gcc-ar ar lib "link -lib"], [false]) > : ${AR=ar} > : ${ARFLAGS=cr} From unknown Sat Jun 14 18:56:06 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#78433] [PATCH] Search for gcc-ar References: Resent-From: Karl Berry Original-Sender: "Debbugs-submit" Resent-CC: automake-patches@gnu.org Resent-Date: Thu, 15 May 2025 22:25:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 78433 X-GNU-PR-Package: automake-patches X-GNU-PR-Keywords: patch To: sam@gentoo.org Cc: 78433@debbugs.gnu.org Received: via spool by 78433-submit@debbugs.gnu.org id=B78433.174734785013505 (code B ref 78433); Thu, 15 May 2025 22:25:03 +0000 Received: (at 78433) by debbugs.gnu.org; 15 May 2025 22:24:10 +0000 Received: from localhost ([127.0.0.1]:57355 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uFgzo-0003Va-K4 for submit@debbugs.gnu.org; Thu, 15 May 2025 18:24:10 -0400 Received: from frenzy.freefriends.org ([198.99.81.75]:44008 helo=freefriends.org) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uFgzj-0003UR-3d for 78433@debbugs.gnu.org; Thu, 15 May 2025 18:24:04 -0400 X-Envelope-From: karl@freefriends.org Received: from freefriends.org (localhost [127.0.0.1]) by freefriends.org (8.16.1/8.16.1) with ESMTPS id 54FMO1xG2625851 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Thu, 15 May 2025 16:24:01 -0600 Received: (from apache@localhost) by freefriends.org (8.16.1/8.14.7/Submit) id 54FMO1g02625850; Thu, 15 May 2025 16:24:01 -0600 Date: Thu, 15 May 2025 16:24:01 -0600 Message-Id: <202505152224.54FMO1g02625850@freefriends.org> From: Karl Berry In-Reply-To: X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi Sam, but how does this look in principle? -AC_CHECK_TOOLS([AR], [ar lib "link -lib"], [false]) +AC_CHECK_TOOLS([AR], [gcc-ar ar lib "link -lib"], [false]) Seems about as simple a change as it could be. Assuming that gcc-ar behaves like normal ar in normal situations (no plugins or LTO involved), I don't see a problem with it. It even seems safe enough to me to make the next release without another pretest. Wdyt? My only comment on the patch is that I think this searching for gcc-ar should be mentioned in the documentation for AM_PROG_AR. (I can do that.) I'm still testing this and going to play with it some more in the wild, Do you want me to install the patch? A few people run automake from the dev sources so it would get some minor additional testing that way. Thanks, Karl From unknown Sat Jun 14 18:56:06 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#78433] [PATCH] Search for gcc-ar Resent-From: Sam James Original-Sender: "Debbugs-submit" Resent-CC: automake-patches@gnu.org Resent-Date: Fri, 16 May 2025 04:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 78433 X-GNU-PR-Package: automake-patches X-GNU-PR-Keywords: patch To: Karl Berry Cc: 78433@debbugs.gnu.org Received: via spool by 78433-submit@debbugs.gnu.org id=B78433.174737005630907 (code B ref 78433); Fri, 16 May 2025 04:35:02 +0000 Received: (at 78433) by debbugs.gnu.org; 16 May 2025 04:34:16 +0000 Received: from localhost ([127.0.0.1]:60199 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uFmlz-00082Q-NK for submit@debbugs.gnu.org; Fri, 16 May 2025 00:34:16 -0400 Received: from dev.gentoo.org ([2001:470:ea4a:1:5054:ff:fec7:86e4]:52635 helo=smtp.gentoo.org) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1uFmlw-000824-MA for 78433@debbugs.gnu.org; Fri, 16 May 2025 00:34:13 -0400 Received: from mop.sam.mop (unknown [82.8.138.118]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: sam) by smtp.gentoo.org (Postfix) with ESMTPSA id 411AB34375F; Fri, 16 May 2025 04:34:03 +0000 (UTC) From: Sam James In-Reply-To: <202505152224.54FMO1g02625850@freefriends.org> Organization: Gentoo References: <202505152224.54FMO1g02625850@freefriends.org> User-Agent: mu4e 1.12.9; emacs 31.0.50 Date: Fri, 16 May 2025 05:34:00 +0100 Message-ID: <87ecwpqimf.fsf@gentoo.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Karl Berry writes: > Hi Sam, Hi Karl, > > but how does this look in principle? > > -AC_CHECK_TOOLS([AR], [ar lib "link -lib"], [false]) > +AC_CHECK_TOOLS([AR], [gcc-ar ar lib "link -lib"], [false]) > > Seems about as simple a change as it could be. Assuming that gcc-ar > behaves like normal ar in normal situations (no plugins or LTO > involved), I don't see a problem with it. It even seems safe enough to > me to make the next release without another pretest. Wdyt? > > My only comment on the patch is that I think this searching for gcc-ar > should be mentioned in the documentation for AM_PROG_AR. (I can do that.) > > I'm still testing this and going to play with it some more in the wild, > > Do you want me to install the patch? A few people run automake from the > dev sources so it would get some minor additional testing that way. Thanks for the prompt and helpful as ever reply. I've been thinking about it more today and also discussing it more on the autoconf side: https://lists.gnu.org/archive/html/autoconf-patches/2025-05/msg00012.html. The gist is that there's a (very unlikely) case we could hurt, and while it's possible to detect that, it seems like it's more worthwhile to pursue fixing it on the GCC side: https://gcc.gnu.org/PR84995. I'll withdraw the patch, at least for now. cheers, sam From unknown Sat Jun 14 18:56:06 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#78433] [PATCH] Search for gcc-ar References: Resent-From: Karl Berry Original-Sender: "Debbugs-submit" Resent-CC: automake-patches@gnu.org Resent-Date: Fri, 16 May 2025 22:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 78433 X-GNU-PR-Package: automake-patches X-GNU-PR-Keywords: patch To: sam@gentoo.org Cc: 78433@debbugs.gnu.org Received: via spool by 78433-submit@debbugs.gnu.org id=B78433.174743564723705 (code B ref 78433); Fri, 16 May 2025 22:48:02 +0000 Received: (at 78433) by debbugs.gnu.org; 16 May 2025 22:47:27 +0000 Received: from localhost ([127.0.0.1]:41626 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uG3pu-0006A1-B2 for submit@debbugs.gnu.org; Fri, 16 May 2025 18:47:27 -0400 Received: from frenzy.freefriends.org ([198.99.81.75]:60608 helo=freefriends.org) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uG3pr-00069R-9L; Fri, 16 May 2025 18:47:23 -0400 X-Envelope-From: karl@freefriends.org Received: from freefriends.org (localhost [127.0.0.1]) by freefriends.org (8.16.1/8.16.1) with ESMTPS id 54GMlM7Y2715483 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Fri, 16 May 2025 16:47:22 -0600 Received: (from apache@localhost) by freefriends.org (8.16.1/8.14.7/Submit) id 54GMlLps2715482; Fri, 16 May 2025 16:47:21 -0600 Date: Fri, 16 May 2025 16:47:21 -0600 Message-Id: <202505162247.54GMlLps2715482@freefriends.org> From: Karl Berry In-Reply-To: <87ecwpqimf.fsf@gentoo.org> X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) pursue fixing it on the GCC side: https://gcc.gnu.org/PR84995. Egad. I'm glad I'm not on the hook for that stuff :). I'll withdraw the patch, at least for now. Duly closing. Thanks Sam. --best, karl. From unknown Sat Jun 14 18:56:06 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Sam James Subject: bug#78433: closed (Re: [bug#78433] [PATCH] Search for gcc-ar) Message-ID: References: <202505162247.54GMlLps2715482@freefriends.org> X-Gnu-PR-Message: they-closed 78433 X-Gnu-PR-Package: automake-patches X-Gnu-PR-Keywords: patch Reply-To: 78433@debbugs.gnu.org Date: Fri, 16 May 2025 22:48:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1747435683-24003-1" This is a multi-part message in MIME format... ------------=_1747435683-24003-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #78433: [PATCH] Search for gcc-ar which was filed against the automake-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 78433@debbugs.gnu.org. --=20 78433: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D78433 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1747435683-24003-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 78433-done) by debbugs.gnu.org; 16 May 2025 22:47:26 +0000 Received: from localhost ([127.0.0.1]:41624 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uG3pt-00069v-UR for submit@debbugs.gnu.org; Fri, 16 May 2025 18:47:26 -0400 Received: from frenzy.freefriends.org ([198.99.81.75]:60608 helo=freefriends.org) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uG3pr-00069R-9L; Fri, 16 May 2025 18:47:23 -0400 X-Envelope-From: karl@freefriends.org Received: from freefriends.org (localhost [127.0.0.1]) by freefriends.org (8.16.1/8.16.1) with ESMTPS id 54GMlM7Y2715483 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Fri, 16 May 2025 16:47:22 -0600 Received: (from apache@localhost) by freefriends.org (8.16.1/8.14.7/Submit) id 54GMlLps2715482; Fri, 16 May 2025 16:47:21 -0600 Date: Fri, 16 May 2025 16:47:21 -0600 Message-Id: <202505162247.54GMlLps2715482@freefriends.org> From: Karl Berry To: sam@gentoo.org Subject: Re: [bug#78433] [PATCH] Search for gcc-ar In-Reply-To: <87ecwpqimf.fsf@gentoo.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 78433-done Cc: 78433@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) pursue fixing it on the GCC side: https://gcc.gnu.org/PR84995. Egad. I'm glad I'm not on the hook for that stuff :). I'll withdraw the patch, at least for now. Duly closing. Thanks Sam. --best, karl. ------------=_1747435683-24003-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 15 May 2025 02:47:44 +0000 Received: from localhost ([127.0.0.1]:48312 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uFOdL-00059J-KY for submit@debbugs.gnu.org; Wed, 14 May 2025 22:47:43 -0400 Received: from lists.gnu.org ([2001:470:142::17]:45930) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uFOdH-000594-4Z for submit@debbugs.gnu.org; Wed, 14 May 2025 22:47:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uFOdA-0002wg-8B for automake-patches@gnu.org; Wed, 14 May 2025 22:47:32 -0400 Received: from woodpecker.gentoo.org ([140.211.166.183] helo=smtp.gentoo.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1uFOd8-0005co-AJ for automake-patches@gnu.org; Wed, 14 May 2025 22:47:32 -0400 Received: from mop.. (unknown [82.8.138.118]) (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) (Authenticated sender: sam@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 7852934374B; Thu, 15 May 2025 02:47:20 +0000 (UTC) From: Sam James To: automake-patches@gnu.org Subject: [PATCH] Search for gcc-ar Date: Thu, 15 May 2025 03:46:55 +0100 Message-ID: X-Mailer: git-send-email 2.49.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=140.211.166.183; envelope-from=sam@gentoo.org; helo=smtp.gentoo.org X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: submit Cc: Sam James X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.3 (/) GCC requires `ar` to have plugin support when using LTO. While the situation has improved as many distributions install the GCC plugin to a location that GNU Binutils can automatically find, this isn't required and isn't done by default. By searching for `gcc-ar` first, we can make this case work without intervention from the user. Problem reported by R. Diez in: https://savannah.gnu.org/support/?110475 * m4/ar-lib.m4 (AM_PROG_AR): Search for gcc-ar. --- I'm still testing this and going to play with it some more in the wild, but how does this look in principle? NEWS | 3 +++ m4/ar-lib.m4 | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 30c0cd2c7..d448dba26 100644 --- a/NEWS +++ b/NEWS @@ -17,6 +17,9 @@ New in 1.17.92: - Support for Algol 68 added, based on the GNU Algol 68 compiler. (bug#75807) + - AM_PROG_AR now searches for 'gcc-ar' first. + (https://savannah.gnu.org/support/?110475) + * Bugs fixed - Do not make Perl warnings fatal, per Perl's recommendation. diff --git a/m4/ar-lib.m4 b/m4/ar-lib.m4 index 568ea0798..c00c1a51e 100644 --- a/m4/ar-lib.m4 +++ b/m4/ar-lib.m4 @@ -16,7 +16,7 @@ AC_BEFORE([$0], [AC_PROG_LIBTOOL])dnl AC_BEFORE([$0], [AC_PROG_AR])dnl AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([ar-lib])dnl -AC_CHECK_TOOLS([AR], [ar lib "link -lib"], [false]) +AC_CHECK_TOOLS([AR], [gcc-ar ar lib "link -lib"], [false]) : ${AR=ar} : ${ARFLAGS=cr} -- 2.49.0 ------------=_1747435683-24003-1--