AMD K5/gcc core dumps [Re: (no subject)]

Jaromir Koutek (miri@atrey.karlin.mff.cuni.cz)
Thu, 24 Apr 1997 21:52:57 +0200 (MET DST)


> > >and then i got a segmentation fault and it dumped core. keep in mind
> > >that i had just compiled 2.0.27.
> i've received several responses on this and it seems as if the problem
> is my AMDK5 P75 CPU. i did a search of the back redhat-list archives
Yes, I have the same problem. You can avoid this by deleteting "-pipe" in
arch/i386/Makefile.
This cause segfault:
gcc -S -D__KERNEL__ -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer \
-fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 \
-malign-functions=2 -pipe -c m.c
m.c can be "void f() { }" or something else.
At this time, I don't know what is bad, but you can:
1. Use kernel compiled for 386
2. Comment that "-pipe"
3. Get another gcc, not from RH 4.1 but 4.0 (I'm not sure about this, but
I also have no problems before installing 4.1)

Jaromir Koutek