Re: [2.1.127-pre3] gcc crashes in schec.c!

Michael H. Warfield (mhw@wittsend.com)
Mon, 2 Nov 1998 17:28:10 -0500 (EST)


Matti Aarnio enscribed thusly:
> ...
> > Has anybody actually BOOTED the kernel as compiled with egcs-1.1?
> > Still, 2.92.00 may still have been buggy. Perhaps after egcs stabilizes
> > again, it would be a good time to make sure everything works together.
> > Hopefully the Linus vs. egcs thing with asms will get straightened out :S

> Hmm.. No, not egcs-1.1, but a bit latter version:

> gcc version egcs-2.92.15 19981013 (gcc2 ss-980609 experimental)

> However, this is an Alpha system, not Intel...

> > -BenRI

> /Matti Aarnio <matti.aarnio@sonera.fi>

I just ran into a gcc crash with 2.1.127pre3 that I did not see
in 2.1.127pre2. It may be the same thing that started out this thread
(did not save original message but the subject sounded right). I get
the following error attempting to compile sched.c

gcc -D__KERNEL__ -I/u/src/linux-2.1.127pre3/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=686 -fno-omit-frame-pointer -c -o sched.o sched.c
gcc: Internal compiler error: program cc1 got fatal signal 11
make[2]: *** [sched.o] Error 1
make[2]: Leaving directory `/u/src/linux-2.1.127pre3/kernel'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/u/src/linux-2.1.127pre3/kernel'
make: *** [_dir_kernel] Error 2

This is my gcc version:

gcc version 2.7.2.3

One thing notable is that I originally compile the source on one
system (Cryrix processor) and got the error. I went to a second system
(Pentium II) and it compiled successfully. Then I remembered that I
forgot to comment out the SMP=1 in the Makefile on the second system.
Doing that and rebuilding results in the same error as on the first
machine (which I did remember to set for single processor). So it looks
like it's a problem if SMB is disabled. I know Linus is primarily focusing
on SMP and I have no problem there... I'll see if I can narrow down
the problem to a particular change...

Another point on the curve is that there is no difference between
sched.c in 2.1.127pre2 where it compiles single processor and in 2.1.127pre3
where it blows the compiler. Macro expansion?

Mike

-- 
 Michael H. Warfield    |  (770) 985-6132   |  mhw@WittsEnd.com
  (The Mad Wizard)      |  (770) 925-8248   |  http://www.wittsend.com/mhw/
  NIC whois:  MHW9      |  An optimist believes we live in the best of all
 PGP Key: 0xDF1DD471    |  possible worlds.  A pessimist is sure of it!

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/