From unknown Sat Jun 14 18:01:15 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#11251 <11251@debbugs.gnu.org> To: bug#11251 <11251@debbugs.gnu.org> Subject: Status: Use -Wl,-rpath instead of -R on GNU/Linux with GCC 4.6 Reply-To: bug#11251 <11251@debbugs.gnu.org> Date: Sun, 15 Jun 2025 01:01:15 +0000 retitle 11251 Use -Wl,-rpath instead of -R on GNU/Linux with GCC 4.6 reassign 11251 emacs submitter 11251 ludo@gnu.org (Ludovic Court=C3=A8s) severity 11251 important thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 16 06:01:48 2012 Received: (at submit) by debbugs.gnu.org; 16 Apr 2012 10:01:48 +0000 Received: from localhost ([127.0.0.1]:36383 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SJikl-0000bQ-6q for submit@debbugs.gnu.org; Mon, 16 Apr 2012 06:01:47 -0400 Received: from eggs.gnu.org ([208.118.235.92]:53918) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SJiki-0000bE-Nx for submit@debbugs.gnu.org; Mon, 16 Apr 2012 06:01:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SJikX-0000df-2b for submit@debbugs.gnu.org; Mon, 16 Apr 2012 06:01:38 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:50513) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SJikW-0000dY-W3 for submit@debbugs.gnu.org; Mon, 16 Apr 2012 06:01:33 -0400 Received: from eggs.gnu.org ([208.118.235.92]:35149) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SJikO-0003nH-Eg for bug-gnu-emacs@gnu.org; Mon, 16 Apr 2012 06:01:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SJikI-0000ZX-2A for bug-gnu-emacs@gnu.org; Mon, 16 Apr 2012 06:01:23 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:52893) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SJikH-0000ZQ-VQ for bug-gnu-emacs@gnu.org; Mon, 16 Apr 2012 06:01:17 -0400 Received: from eggs.gnu.org ([208.118.235.92]:36519) by fencepost.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1SJikH-0005Tz-Az for bug-emacs@gnu.org; Mon, 16 Apr 2012 06:01:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SJik9-0000Xi-4n for bug-emacs@gnu.org; Mon, 16 Apr 2012 06:01:16 -0400 Received: from xanadu.aquilenet.fr ([88.191.123.111]:40646) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SJik8-0000XO-Tg for bug-emacs@gnu.org; Mon, 16 Apr 2012 06:01:09 -0400 Received: from localhost (xanadu.aquilenet.fr [127.0.0.1]) by xanadu.aquilenet.fr (Postfix) with ESMTP id 43DA5930C for ; Mon, 16 Apr 2012 12:01:07 +0200 (CEST) Received: from xanadu.aquilenet.fr ([127.0.0.1]) by localhost (xanadu.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id feFaImjRXs4O for ; Mon, 16 Apr 2012 12:01:07 +0200 (CEST) Received: from pluto (unknown [193.50.110.130]) by xanadu.aquilenet.fr (Postfix) with ESMTPSA id D7C539182 for ; Mon, 16 Apr 2012 12:01:06 +0200 (CEST) From: ludo@gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=) To: bug-emacs@gnu.org Subject: Use -Wl,-rpath instead of -R on GNU/Linux with GCC 4.6 X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 28 Germinal an 220 de la =?iso-8859-1?Q?R=E9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu Date: Mon, 16 Apr 2012 12:01:06 +0200 Message-ID: <87obqsq9lp.fsf@gnu.org> User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.93 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello, The patch below fixes linking of =E2=80=98temacs=E2=80=99 on GNU/Linux with= GCC 4.6. --=-=-= Content-Type: text/x-patch Content-Disposition: inline === modified file 'configure.in' --- configure.in 2011-09-26 18:38:31 +0000 +++ configure.in 2012-04-16 09:52:23 +0000 @@ -3406,7 +3406,7 @@ case "$opsys" in ## had not yet been defined and was expanded to null. Hence LD_SWITCH_SYSTEM ## had different values in configure (in ac_link) and src/Makefile.in. ## It seems clearer therefore to put this piece in LD_SWITCH_SYSTEM_TEMACS. - gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX)" ;; + gnu-linux) LD_SWITCH_SYSTEM_TEMACS="\$(LD_SWITCH_X_SITE_AUX_RPATH)" ;; *) LD_SWITCH_SYSTEM_TEMACS= ;; esac --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable GCC 4.5 used to ignore =E2=80=98-R=E2=80=99, but GCC 4.6 rejects it: --8<---------------cut here---------------start------------->8--- $ echo "int main () { return 0; }" > t.c $ ./result/bin/gcc t.c -R/foo gcc: unrecognized option '-R/foo' $ echo $? 0 $ ./result/bin/gcc --version | head -1 gcc (GCC) 4.5.3 $ gcc t.c -R/foo gcc: error: unrecognized option =E2=80=98-R=E2=80=99 $ echo $? 1 $ gcc --version | head -1 gcc (GCC) 4.6.2 --8<---------------cut here---------------end--------------->8--- (This is why the =E2=80=98build=E2=80=99 job at has been failing since the standard build environment switched from GCC 4.5 to 4.6 last month.) In fact, the above should be applied to all GNU variants, so *gnu* may be more appropriate than gnu-linux. Thanks, Ludo=E2=80=99. --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 16 06:49:46 2012 Received: (at 11251) by debbugs.gnu.org; 16 Apr 2012 10:49:46 +0000 Received: from localhost ([127.0.0.1]:36446 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SJjVC-0002aM-1u for submit@debbugs.gnu.org; Mon, 16 Apr 2012 06:49:46 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:45938 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SJjV9-0002aF-Sz for 11251@debbugs.gnu.org; Mon, 16 Apr 2012 06:49:44 -0400 Received: from [155.69.18.17] (port=39702 helo=ulysses) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1SJjV6-0003qj-Hx; Mon, 16 Apr 2012 06:49:41 -0400 From: Chong Yidong To: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: bug#11251: Use -Wl, -rpath instead of -R on GNU/Linux with GCC 4.6 References: <87obqsq9lp.fsf@gnu.org> Date: Mon, 16 Apr 2012 18:49:31 +0800 In-Reply-To: <87obqsq9lp.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Mon, 16 Apr 2012 12:01:06 +0200") Message-ID: <87k41gq7d0.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.95 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: 11251 Cc: 11251@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) ludo@gnu.org (Ludovic Court=C3=A8s) writes: > The patch below fixes linking of =E2=80=98temacs=E2=80=99 on GNU/Linux wi= th GCC 4.6. Thanks. I guess we'll have to put this in the emacs-24 brach. It's late in the pretest, but that can't be helped. Does anyone see any problem with the patch? (BTW, maybe we don't need to AC_SUBST the LD_SWITCH_X_SITE_AUX and LD_SWITCH_X_SITE_AUX_RPATH variables; they don't seem to be used anywhere outside of configure.) From debbugs-submit-bounces@debbugs.gnu.org Mon Apr 16 12:31:20 2012 Received: (at 11251) by debbugs.gnu.org; 16 Apr 2012 16:31:20 +0000 Received: from localhost ([127.0.0.1]:37090 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SJopk-0003XE-C1 for submit@debbugs.gnu.org; Mon, 16 Apr 2012 12:31:20 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:52402 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SJoph-0003X7-Ts for 11251@debbugs.gnu.org; Mon, 16 Apr 2012 12:31:18 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1SJopb-0001xO-Fr; Mon, 16 Apr 2012 12:31:11 -0400 From: Glenn Morris To: Chong Yidong Subject: Re: bug#11251: Use -Wl, -rpath instead of -R on GNU/Linux with GCC 4.6 References: <87obqsq9lp.fsf@gnu.org> <87k41gq7d0.fsf@gnu.org> X-Spook: Consul FSF $400 million in gold bullion encryption lynch X-Ran: 8b$DZ~Tc~$9QIyb;>!V[(fz_IIZ:*jOh$1.jHr{>6)asWXeu+CrO_^s#cyM1N.,|+PO:Bk X-Hue: green X-Debbugs-No-Ack: yes X-Attribution: GM Date: Mon, 16 Apr 2012 12:31:11 -0400 In-Reply-To: <87k41gq7d0.fsf@gnu.org> (Chong Yidong's message of "Mon, 16 Apr 2012 18:49:31 +0800") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: 11251 Cc: Ludovic =?utf-8?Q?Court=C3=A8s?= , 11251@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) Chong Yidong wrote: > (BTW, maybe we don't need to AC_SUBST the LD_SWITCH_X_SITE_AUX and > LD_SWITCH_X_SITE_AUX_RPATH variables; they don't seem to be used > anywhere outside of configure.) Yes they are. Eg case "$opsys" in netbsd|openbsd) LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;; esac Note escaped \$, so these references appear in the Makefile unexpanded. From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 17 22:15:27 2012 Received: (at 11251) by debbugs.gnu.org; 18 Apr 2012 02:15:27 +0000 Received: from localhost ([127.0.0.1]:39037 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SKKQV-0006V8-SN for submit@debbugs.gnu.org; Tue, 17 Apr 2012 22:15:27 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:58828 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SKKQQ-0006Ux-DI for 11251@debbugs.gnu.org; Tue, 17 Apr 2012 22:15:23 -0400 Received: from bb116-14-12-6.singnet.com.sg ([116.14.12.6]:60577 helo=ulysses) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1SKKQD-00062T-8h; Tue, 17 Apr 2012 22:15:05 -0400 From: Chong Yidong To: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: bug#11251: Use -Wl, -rpath instead of -R on GNU/Linux with GCC 4.6 References: <87obqsq9lp.fsf@gnu.org> Date: Wed, 18 Apr 2012 10:14:57 +0800 In-Reply-To: <87obqsq9lp.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Mon, 16 Apr 2012 12:01:06 +0200") Message-ID: <877gxdn5um.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.95 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: 11251 Cc: 11251@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) ludo@gnu.org (Ludovic Court=C3=A8s) writes: > The patch below fixes linking of =E2=80=98temacs=E2=80=99 on GNU/Linux wi= th GCC 4.6. Committed to the emacs-24 branch. Thanks. From debbugs-submit-bounces@debbugs.gnu.org Tue Apr 17 22:15:32 2012 Received: (at control) by debbugs.gnu.org; 18 Apr 2012 02:15:33 +0000 Received: from localhost ([127.0.0.1]:39040 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SKKQe-0006VR-Mo for submit@debbugs.gnu.org; Tue, 17 Apr 2012 22:15:32 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:58830 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SKKQd-0006VL-21 for control@debbugs.gnu.org; Tue, 17 Apr 2012 22:15:31 -0400 Received: from bb116-14-12-6.singnet.com.sg ([116.14.12.6]:60578 helo=ulysses) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1SKKQR-00068u-8i for control@debbugs.gnu.org; Tue, 17 Apr 2012 22:15:19 -0400 From: Chong Yidong To: control@debbugs.gnu.org Subject: close 11251 Date: Wed, 18 Apr 2012 10:15:12 +0800 Message-ID: <87vckxoken.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -6.9 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) close 11251 thanks From unknown Sat Jun 14 18:01:15 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 16 May 2012 11:24:02 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator