Red Hat Bugzilla – Bug 37637
gcc has problems compiling the kernel 2.4.3 with --march=k6
Last modified: 2007-04-18 12:32:50 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.76 [en] (X11; U; Linux 2.4.3 i586)
Giving the processor type as k6 compiles the kernel with a -march=k6 flag
which seems to cause the problem. Switching processor type to pentium tsc
allows the kernel to compile cleanly.. This problem didn't show up when I
was using gcc-2.96-69 but is present in gcc-2.96-81.
Steps to Reproduce:
1. make menuconfig and choose k6 as processor
2. try to compile kernel
Actual Results: gcc -D__KERNEL__ -I/usr/src/linux-2.4.3/include -Wall
-Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe
-mpreferred-stack-boundary=2 -march=k6 -c -o setup.o setup.c
setup.c: In function `check_cx686_slop':
setup.c:1143: Internal error: Segmentation fault.
Please submit a full bug report.
Created attachment 16409 [details]
kernel config file
*** Bug 37636 has been marked as a duplicate of this bug. ***
Is it reproduceable? If yes, can you run
gcc -D__KERNEL__ -I/usr/src/linux-2.4.3/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -mpreferred-stack-boundary=2 -march=k6 -c -o setup.o setup.c -save-temps -v
and attach here setup.i it creates?
No, apparently my memory or cpu is flaky because I'm getting seg faults in
random places during compilation. Sorry about the spurious bug report.