GNU bug report logs -
#11251
Use -Wl,-rpath instead of -R on GNU/Linux with GCC 4.6
Previous Next
Reported by: ludo <at> gnu.org (Ludovic Courtès)
Date: Mon, 16 Apr 2012 10:02:01 UTC
Severity: important
Done: Chong Yidong <cyd <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 11251 in the body.
You can then email your comments to 11251 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#11251
; Package
emacs
.
(Mon, 16 Apr 2012 10:02:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
ludo <at> gnu.org (Ludovic Courtès)
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Mon, 16 Apr 2012 10:02:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hello,
The patch below fixes linking of ‘temacs’ on GNU/Linux with GCC 4.6.
[Message part 2 (text/x-patch, 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
[Message part 3 (text/plain, inline)]
GCC 4.5 used to ignore ‘-R’, 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 ‘-R’
$ echo $?
1
$ gcc --version | head -1
gcc (GCC) 4.6.2
--8<---------------cut here---------------end--------------->8---
(This is why the ‘build’ job at <http://hydra.nixos.org/eval/605870> 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’.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#11251
; Package
emacs
.
(Mon, 16 Apr 2012 10:50:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 11251 <at> debbugs.gnu.org (full text, mbox):
ludo <at> gnu.org (Ludovic Courtès) writes:
> The patch below fixes linking of ‘temacs’ on GNU/Linux with 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.)
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#11251
; Package
emacs
.
(Mon, 16 Apr 2012 16:32:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 11251 <at> debbugs.gnu.org (full text, mbox):
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.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#11251
; Package
emacs
.
(Wed, 18 Apr 2012 02:16:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 11251 <at> debbugs.gnu.org (full text, mbox):
ludo <at> gnu.org (Ludovic Courtès) writes:
> The patch below fixes linking of ‘temacs’ on GNU/Linux with GCC 4.6.
Committed to the emacs-24 branch. Thanks.
bug closed, send any further explanations to
11251 <at> debbugs.gnu.org and ludo <at> gnu.org (Ludovic Courtès)
Request was from
Chong Yidong <cyd <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Wed, 18 Apr 2012 02:16:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 16 May 2012 11:24:02 GMT)
Full text and
rfc822 format available.
This bug report was last modified 13 years and 31 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.