Kernel compilation problem "gcc: Internal compiler error: program cc1 got fatal signal 6" help??

Kernel compilation problem "gcc: Internal compiler error: program cc1 got fatal signal 6" help??

Post by Robert C. Pri » Fri, 18 Jul 1997 04:00:00



   The error does indicate that the compiler crashed because of a
self-perceived flaw.  
   I noticed the -DCPU switch says 686.  What kind of processor do you
have?  You are prompted to enter this value  during config, I believe.
Mine always offers 386, 486, and Pentium.  I have (and indicate) a
Pentium and this translates into -DCPU being 586.  The docs say 686 is
for the Pentium Pro.  If you don't have a Pro that might be something to
change?

   Good luck and happy hacking.

--
_____

Robert Price

http://homepage.interaccess.com/~bobprice
"What lies behind us and what lies before us are tiny matters compared to
what lies within us" - Ralph W. Emerson

 
 
 

Kernel compilation problem "gcc: Internal compiler error: program cc1 got fatal signal 6" help??

Post by Marlo » Fri, 18 Jul 1997 04:00:00


I have been trying to compile a new kernel. (2.0.30) I have InfoMagics
Slackware 3.2  (6 CD set April 97) release.

I have been able to get pass "make dep" and "make clean", but when I
attempt "make zImage" it begins to compile but after awhile, the
following error message arrises:
-----------------------------

make[2]: Leaving directory `/usr/src/linux-2.0.30/drivers/sound'
make all_targets
make[2]: Entering directory `/usr/src/linux-2.0.30/drivers'
make[2]: Nothing to be done for `all_targets'.
make[2]: Leaving directory `/usr/src/linux-2.0.30/drivers'
make[1]: Leaving directory `/usr/src/linux-2.0.30/drivers'
make[1]: Entering directory `/usr/src/linux-2.0.30/mm'
make all_targets
make[2]: Entering directory `/usr/src/linux-2.0.30/mm'
gcc -D__KERNEL__ -I/usr/src/linux-2.0.30/include -Wall
-Wstrict-prototypes -O2 -fomit-frame-pointer
-fno-strength-reduce -pipe -m486 -malign-loops=2 -malign-jumps=2
-malign-functions=2 -DCPU=686  -c -o memory.o
memory.c
gcc: Internal compiler error: program cc1 got fatal signal 6
make[2]: *** [memory.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.0.30/mm'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/src/linux-2.0.30/mm'
make: *** [linuxsubdirs] Error 2
--------------------------------

it seems as though it has to do with the gcc compiler itself. Does
anyone know how to resolve this problem????//

 
 
 

Kernel compilation problem "gcc: Internal compiler error: program cc1 got fatal signal 6" help??

Post by James Youngma » Sat, 19 Jul 1997 04:00:00



> gcc -D__KERNEL__ -I/usr/src/linux-2.0.30/include -Wall
> -Wstrict-prototypes -O2 -fomit-frame-pointer
> -fno-strength-reduce -pipe -m486 -malign-loops=2 -malign-jumps=2
> -malign-functions=2 -DCPU=686  -c -o memory.o
> memory.c
> gcc: Internal compiler error: program cc1 got fatal signal 6

Sometimes you get signal 6 (SIGIOT) when other people get signal 11
(SIGSEGV) in the case of memory problems.   Take a look at
http://www.bitwizard.nl/sig11, which might help.

** Followups redirected to the appropriate group. **

 
 
 

Kernel compilation problem "gcc: Internal compiler error: program cc1 got fatal signal 6" help??

Post by Ricardo Ferreira a.k.a. Stor » Sat, 19 Jul 1997 04:00:00



> I have been trying to compile a new kernel. (2.0.30) I have InfoMagics
> Slackware 3.2  (6 CD set April 97) release.

> I have been able to get pass "make dep" and "make clean", but when I
> attempt "make zImage" it begins to compile but after awhile, the
> following error message arrises:
> -----------------------------

If you type 'make zImage' again does it die with the same message in the
same file (memory.o) ?

If not, go to http://www.cdrom.com and download the Service Pack 2 for
Slackware 3.2. It helped me.

--


______/   /   /_____//    \ /    /   | WWW: http://dux.isec.pt/~9505001
-------------------------------------^---------------------------------

 
 
 

Kernel compilation problem "gcc: Internal compiler error: program cc1 got fatal signal 6" help??

Post by raresil » Mon, 11 Aug 1997 04:00:00




> > I have been trying to compile a new kernel. (2.0.30) I have
> InfoMagics
> > Slackware 3.2  (6 CD set April 97) release.

> > I have been able to get pass "make dep" and "make clean", but when I

> > attempt "make zImage" it begins to compile but after awhile, the
> > following error message arrises:
> > -----------------------------

> If you type 'make zImage' again does it die with the same message in
> the
> same file (memory.o) ?

> If not, go to http://www.cdrom.com and download the Service Pack 2 for

> Slackware 3.2. It helped me.

Actually, I just worked my way through this compile quitting problem on
Slackware 3.3, so I doubt the patch to 3.2 will fix it.  From watching
my "xload" I suspect the compiler eats up memory in some buggy way,
because xload goes to a high peak, then the compiler quits with an error
like the one you described.  This is not a fix but a workaround that
will allow you to compile (I have used it successfully on kernels,
xservers, and wine):

1. At crashtime, note the name of the "object file" your compiler
crashed in (it has extension *.o)  Then try to "Cntl-Alt-Fx" to another
virtual terminal, log in as root there, and run "ps."  You will see
about three processes running in the gcc compiler.  Kill only the last
one.  This should enable you to switch back to the virtual terminal
you're compiling in -- if so, skip to (3).  If not, or if you are hard
locked up and can't switch terminals:

2.  Do a hard reset into Linux.  You may be forced to run e2fsck as
root, but usually you won't have any dire losses.

3.  Go back to /usr/src/linux and run "make zlilo" again (yes, without
doing make dep, make clean or any of that).  This causes gcc to attempt
to pick up where it left off.  Sometimes this will allow you to continue
compiling right from where you left off, and survive till the end.
However, sometimes you will crash again in the same spot.  If so:

4.  Run "make dep; make zlilo" (do not run make clean).  Sometimes this
will get you over the hump.  However, if you crash again at the same
spot, you will usually get an error message resembling "can't recognize
dma_buff.o -- file truncated."  The "file truncated" message means (I
believe) that on your first pass you completed the object file enough
for gcc not to try to recompile it, but when it tries to link the files
it does not recognize it.  Therefore:

5.  Locate and remove the object file you crashed on.  BE CAREFUL!  The
object file is something you compiled yourself, so you can safely remove
it without altering your source code.  However, only remove files with
*.o as an extension.  NEVER remove a file with the *.c extension -- it
is part of your source code and you can't compile without it.  Now:

6.  Do "make dep; make zlilo" and you should be fine.

If this doesn't work, you have no choice but to start over.  I've
tentatively decided that a memory usage bug is causing the crashes,
because I have 32 meg physical ram and 64 megs swap, so why would my
system be starved for memory.  My previous experience has been that gcc
just slows down when it's starving.  However, it's possible that you and
I share a configuration bug elsewhere in the system which is improperly
recognizing free memory.  Do you notice, for example, that very little
swapping is going on, even when your memory load is high.  I'm curious
if anyone else has this theory, particularly anyone who (unlike me)
knows what they're talking about.

 
 
 

1. "Internal compiler error: program cc1 got fatal signal 11" on 1.2.1 compile


SS> Bad memory, overclocked processor, bus speed too fast, bad cache chips,
SS> overheated processor.
[ ... ]

SS> http://einstein.et.tudelft.nl:80/~wolff/sig11/ for a good summary
SS> of what happens.

I can also report at least one (mine !) case of a ill-behaved EIDE hard
disk.
I use an ASUS p55tp4xe with a P133 and 256K standard PBurst (think it's
15ns but not checked) ... with 70ns SIMMs (albeit ASUS recommends 60ns
ones) and two 1G EIDE (WD Caviar 21) drives for RAID0 ("md", very good,
recommended !)

It gave very numerous flaws (gcc compilation was impossible) => I disabled
the PBurst cache and all went good.

But one of the EIDE drives was in fact bad (did not dynamically remap bad
sectors).
I have it changed and the entire thing now works no flawlessly, even
with PBurst on.

Compilations (kernel and gcc) and "memtest" does not reveal any more
problem in an entire afternoon.

I do not know the explanation. Perhaps bus-timings related problems, since
IDE-family drives 'controlers' are bus extensions (?)

But the box is more responsive. The Byte bench performance index is now
15.2, it's a 39% boost (thanks to the RAID0 and PBurst cache) !

[ Followup-To: comp.os.linux.hardware ]

2. Solaris-8 and firewalling?

3. Connecting modems to terminal servers

4. [Re: gcc: internal compiler error: program cc1 got fatal signal 11]

5. Linux upgrade

6. gcc: Internal compiler error: program cc1 got fatal signal 11

7. Terminal input on RISC

8. gcc: internal compiler error: program cc1 got fatal signal 11

9. gcc: Internal compiler error: program cc1 got fatal signal 11

10. gcc: Internal compiler error: program cc1 got fatal Signal 6

11. gcc: Internal compiler error: program cc1 got fatal signal 11

12. gcc: Internal compiler error: program cc1 got fatal signal 4