[Bug 794373] [NEW] gcc now returns -1 when passed -R

Serge Hallyn 794373 at bugs.launchpad.net
Wed Jun 8 04:35:22 UTC 2011


Public bug reported:

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.

** Affects: gcc-defaults (Ubuntu)
     Importance: Undecided
         Status: New

-- 
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:
  New

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.




More information about the foundations-bugs mailing list