http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57332
Bug ID: 57332 Summary: Fedora 18 unable to compile any C code even hello world Product: gcc Version: 4.7.2 Status: UNCONFIRMED Severity: blocker Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: ray.brunkow at gmail dot com gcc --version gcc (GCC) 4.7.2 20121109 (Red Hat 4.7.2-8) Copyright (C) 2012 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ uname -a Linux home.home 3.8.11-200.fc18.x86_64 #1 SMP Wed May 1 19:44:27 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux $ cat /etc/issue Fedora release 18 (Spherical Cow) Kernel \r on an \m (\l) GCC was installed via YUM, no other options provided. $ cat TEST.c #include <stdio.h> int main(void){ printf("My first C program\n"); return 0; } $ gcc -Wall -Wextra -o TEST TEST.c In file included from /usr/include/features.h:399:0, from /usr/include/stdio.h:27, from TEST.c:1: /usr/include/gnu/stubs.h:10:27: fatal error: gnu/stubs-64.h: No such file or directory compilation terminated. $ gcc -fno-strict-aliasing -fwrapv -fno-aggressive-loop-optimizations -o TEST TEST.c gcc: error: unrecognized command line option ‘-fno-aggressive-loop-optimizations’ $ gcc -fno-strict-aliasing -fwrapv -o TEST TEST.c In file included from /usr/include/features.h:399:0, from /usr/include/stdio.h:27, from TEST.c:1: /usr/include/gnu/stubs.h:10:27: fatal error: gnu/stubs-64.h: No such file or directory compilation terminated. $ gcc -o TEST TEST.c In file included from /usr/include/features.h:399:0, from /usr/include/stdio.h:27, from TEST.c:1: /usr/include/gnu/stubs.h:10:27: fatal error: gnu/stubs-64.h: No such file or directory compilation terminated. gcc -o TEST TEST.c -save-temps In file included from /usr/include/features.h:399:0, from /usr/include/stdio.h:27, from TEST.c:1: /usr/include/gnu/stubs.h:10:27: fatal error: gnu/stubs-64.h: No such file or directory compilation terminated. $ cat TEST.i # 1 "TEST.c" # 1 "<command-line>" # 1 "TEST.c" # 1 "/usr/include/stdio.h" 1 3 4 # 27 "/usr/include/stdio.h" 3 4 # 1 "/usr/include/features.h" 1 3 4 # 345 "/usr/include/features.h" 3 4 # 1 "/usr/include/stdc-predef.h" 1 3 4 # 346 "/usr/include/features.h" 2 3 4 # 375 "/usr/include/features.h" 3 4 # 1 "/usr/include/sys/cdefs.h" 1 3 4 # 387 "/usr/include/sys/cdefs.h" 3 4 # 1 "/usr/include/bits/wordsize.h" 1 3 4 # 388 "/usr/include/sys/cdefs.h" 2 3 4 # 376 "/usr/include/features.h" 2 3 4 # 399 "/usr/include/features.h" 3 4 # 1 "/usr/include/gnu/stubs.h" 1 3 4 This error occurs 100% of the time and does not matter what the code is. Even in this example a simple hello world is refusing to compile with the exact same error. As you can clearly see below the GCC being used on my Fedora 18 box is the most current offered by RedHat. Thanks in advance for advice and more importantly a resolution. # yum -y update gcc Loaded plugins: fastestmirror, langpacks, presto, refresh-packagekit adobe-linux-x86_64 | 951 B 00:00:00 fedora/18/x86_64/metalink | 20 kB 00:00:00 google-chrome | 951 B 00:00:00 rpmfusion-free-updates | 3.3 kB 00:00:00 rpmfusion-nonfree-updates | 3.3 kB 00:00:00 updates/18/x86_64/metalink | 16 kB 00:00:00 updates | 4.6 kB 00:00:00 updates/primary_db | 9.2 MB 00:00:12 Loading mirror speeds from cached hostfile * fedora: mirror.hiwaay.net * rpmfusion-free: mirror.hiwaay.net * rpmfusion-free-updates: mirror.hiwaay.net * rpmfusion-nonfree: mirror.hiwaay.net * rpmfusion-nonfree-updates: mirror.hiwaay.net * updates: mirror.hiwaay.net No Packages marked for Update now in gcc-4.2.1 on my Mac I can compile with zero problems.