[Bug 794373] Re: gcc now returns -1 when passed -R
Hamish Downer
794373 at bugs.launchpad.net
Mon Dec 26 21:54:58 UTC 2011
This also breaks some configure scripts. I just hit this while trying to
install some ruby gems
sudo gem install xapian-full
This failed and in the config.log I found
configure:3888: gcc -R/var/lib/gems/1.8/gems/xapian-full-1.2.3/lib conftest.c >&5
gcc: error: unrecognized option '-R'
configure:3892: $? = 1
configure:3930: result: no
Is this something I should report to the package maintainer? Or is there
anything else I can do? Or is this bug actually valid?
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gcc-defaults in Ubuntu.
https://bugs.launchpad.net/bugs/794373
Title:
gcc now returns -1 when passed -R
Status in “gcc-defaults” package in Ubuntu:
Invalid
Bug description:
In natty and earlier, passing -R to gcc would cause it to print an error
message, but return 0.
#cat > hw.c << EOF
#include <stdio.h>
int main() {
printf("hello, world\n");
}
EOF
#gcc -R/lib hw.c
gcc-4.5.real: unrecognized option '-R/lib'
You have new mail in /var/mail/serge
serge at sergelap:~/delme/ipsec-tools/l/ipsec-tools-0.7.1$ echo $?
0
But in oneiric, it returns -1:
(ipsec)serge at sergelap:~/delme/ipsec-tools/l/ipsec-tools-0.7.1$ gcc -R/lib hw.c
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
gcc-4.6.real: error: unrecognized option '-R'
(ipsec)serge at sergelap:~/delme/ipsec-tools/l/ipsec-tools-0.7.1$ echo $?
1
This breaks the ipsec-tools configure script.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-defaults/+bug/794373/+subscriptions
More information about the foundations-bugs
mailing list