https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66563
--- Comment #46 from John Paul Adrian Glaubitz <glaubitz at physik dot fu-berlin.de> --- Furthermore, gcc also built a version of grep that is broken and simply refuses to read any options: root@tirpitz:..grep-test2/bin> ls egrep fgrep grep root@tirpitz:..grep-test2/bin> ./grep Usage: ./grep [OPTION]... PATTERN [FILE]... Try './grep --help' for more information. root@tirpitz:..grep-test2/bin> echo "hello" > bla.txt root@tirpitz:..grep-test2/bin> grep hello *txt hello root@tirpitz:..grep-test2/bin> ./grep hello *txt Usage: ./grep [OPTION]... PATTERN [FILE]... Try './grep --help' for more information. root@tirpitz:..grep-test2/bin> ./grep hello *txt j Usage: ./grep [OPTION]... PATTERN [FILE]... Try './grep --help' for more information. root@tirpitz:..grep-test2/bin> ./grep hello *txt 1 Usage: ./grep [OPTION]... PATTERN [FILE]... Try './grep --help' for more information. root@tirpitz:..grep-test2/bin> ./grep -v hello *txt 1 Usage: ./grep [OPTION]... PATTERN [FILE]... Try './grep --help' for more information. root@tirpitz:..grep-test2/bin> ./grep --help Usage: ./grep [OPTION]... PATTERN [FILE]... Try './grep --help' for more information. root@tirpitz:..grep-test2/bin> ./grep --help Usage: ./grep [OPTION]... PATTERN [FILE]... Try './grep --help' for more information. root@tirpitz:..grep-test2/bin> grep taken from here: > http://ftp.de.debian.org/debian-ports//pool-sh4/main/g/grep/grep_2.21-2+b1_sh4.deb Freshly built with gcc-4.9.3 with the patch from this bug report. I don't know whether this related though. Adrian