This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: cc1 received fatal signal 6

Am Sat, 27 Jun 1998 schrieb Gerry Dubois:
>I'm trying to build a Linux Kernel 2.1.106 using Redhat on a Motorloa
>Powerstack box. In module fs/super.c I consistantly receive the following
>error message
>gcc -D__KERNEL__ -I/usr/src/linux/include  -Wall -Wstrict-prototypes -O2
>-fomit-frame-pointer -D__powerpc__ -fsigned-char -msoft-float -pipe
>-fno-builtin -ffixed-r2 -Wno-uninitialized -mmultiple -mstring -mcpu=860
>-c -o super.o super.c
>cpp: output pipe has been closed
>gcc: Internal compiler error: program cc1 got fatal signal 6
>make[2]: *** [super.o] Error 1
>The version of EGCS I'm using is 
>[root@grover linux]# gcc -v
>Reading specs from
>gcc version egcs-2.90.29 980515 (egcs-1.0.3 release)
>I believe I have properly built the compiler and I have rebuilt and
>installed Binutils 2.9.1 with egcs. As suggested in the README files.
>The same source tree compiles without error using gcc
>Unfortunately the emitted object code for the 860 proceesor is not correct
>( according to the fellow doing the Linux port the the Motorola MBX board).
>I've hacked around the dependencies on super.c and the reset of the kernel
>compiles OK.
>So my real problem is I don't know how to proceed from here to try to debug
>this problem. Can anybody suggest a next step for me.

Add the following lines at the top of fs/Makefile:

CFLAGS-super.o += -fno-expensive-optimizations
CFLAGS-namei.o += -fno-expensive-optimizations

That works around a bug in the compiler. And til a better solution is checked in
I also recommend this patch:

Index: io.h
RCS file: /cvsroot/linux/include/asm-ppc/io.h,v
retrieving revision 1.29
diff -u -r1.29 io.h
--- io.h        1998/06/23 20:06:13     1.29
+++ io.h        1998/06/23 23:15:44
@@ -202,7 +202,7 @@
 extern inline void eieio(void)
-       asm volatile ("eieio" : :);
+       __asm__ __volatile__ ("eieio" : : : "memory" );



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]