Red Hat Bugzilla – Bug 241738
GCC seg faults on kernel compile
Last modified: 2007-11-30 17:12:05 EST
Description of problem:
Attempting to build any program causes GCC to segfault
Version-Release number of selected component (if applicable):
gcc (GCC) 4.1.2 20070502 (Red Hat 4.1.2-12)
Steps to Reproduce:
1. Install kernel sources: linux-126.96.36.199
scripts/basic/fixdep.c: In function ‘strrcmp’:
scripts/basic/fixdep.c:268: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.
make: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2
Kernel should build
Created attachment 155651 [details]
Preprocessed output from build
I have a second machine with the same GCC version, and it will compile successfully.
What's weird is that I can mount that second machine's file system on the first
machine, chroot into it, and build fine - so it's not the hardware or the
kernel, but some other library, program, or header included.
I've also established that trivial programs will compile.
Run rpm -V to check cpp, gcc, glibc?
The preprocessed source you attached compiles just fine here with the same
Is it reproduceable on the file you attached?
You can install gcc-debuginfo, rerun the command with -v and cut'n'paste
the cc1 invocation, then rerun it under gdb and see where it crashed, retry
a few times to see if it is always the same spot.
Somehow cc1 got corrupted... I begin to wonder if it isn't time to retire this
machine, as I've had this sort of thing happen before....