Hi,
change the HOSTCFLAGS in /usr/src/linux/Makefile and CFLAGS_NSR/CFLAGS in
/usr/src/linux/arch/i386/Makefile to
-O2 -fomit-frame-pointer -pipe -Wall
and avoid using any optimized compiler, use gcc-2.7.2.3 or 2.95.2
if you want a stable kernel.
Rene
On Mar 12 Tom Berkley wrote:
> Barry
>
> Have you looked at http://www.kernelnote.org to see the minimal
> requirements to compile the 2.2.13 kernel and checked everything on your
> system against the list. I would expect that from a new install you
> should be able to compile but ???
> Also have you installed all of the 6.1 updates yet. If not it would be a
> good idea to do that first. I've had weird problems trying to compile
> some kernel versions but when I checked the requirements and updated my
> modules, the compilation worked.
>
> Tom
>
>
> Barry Winch wrote:
>
> > Hi, I have recently installed Linux Mandrake 6.1 on a K6-2 400Mhz
> > machine, 64Mb Mem and 8Gb Hard drive. All appears to be working well,
> > it is on a LAN, X works etc. The next thing I need to do is to
> > recompile the kernel to put in the HAM RADIO AX25 options. The current
> > kernel is the stock 2.2.13 -4mdk.Initially I planned to use xconfig to
> > set up the configuration but "make xconfig" gave the following
> > error: rm -f include/asm( cd include ; ln -sf asm-i386 asm) make -C
> > scripts kconfig.tkmake[1]: Entering directory
> > `/usr/src/linux-2.2.13/scripts'gcc -O6 -fomit-frame-pointer
> > -fno-exceptions -fno-rtti -pipe -s -mpentium -mcpu=pentium
> > -march=pentium -ffast-math -fexpensive-optimizations -malign-loops=2
> > -malign-jumps=2 -malign-functions=2 -mpreferred-stack-boundary=2 -c -o
> > tkparse.o tkparse.ccc1: Invalid option
> > 'preferred-stack-boundary=2'make[1]: *** [tkparse.o] Error 1make[1]:
> > Leaving directory `/usr/src/linux-2.2.13/scripts'make: *** [xconfig]
> > Error 2 I could overcome the error and get xconfig to compile and run
> > if I removed the '-mpreferred-stack-boundary=2' diective from the
> > HOSTCFLAGS portion of the Makefile.
> >
> > Anyway just to be safe I did a make config. This went OK. next make
> > dep, then make clean then a make. This led to the following error:
> >
> > gcc -D__KERNEL__ -I/usr/src/linux-2.2.13/include -Wall
> > -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing
> > -pipe -O6 -fomit-frame-pointer -fno-exceptions -fno-rtti -pipe -s
> > -mpentium -mcpu=pentium -march=pentium -ffast-math
> > -fexpensive-optimizations -malign-loops=2 -malign-jumps=2
> > -malign-functions=2 -mpreferred-stack-boundary=2 -malign-loops=2
> > -malign-jumps=2 -malign-functions=2 -DCPU=586 -c -o init/main.o
> > init/main.ccc1: Invalid option 'preferred-stack-boundary=2'make[1]:
> > *** [init/main.o] Error 1 This time I removed the
> > '-mpreferred-stack-boundary=2' diective from the HOSTCFLAGS portion of
> > the Makefile in the arch/i386 directory, and the compile went a little
> > further, but I then got a number of other messages similar to: gcc:
> > Internal compiler error: program cc1 got fatal signal 11make[3]: ***
> > [ide.o] Error 1make[2]: *** [first_rule] Error 2make[1]: ***
> > [_subdir_block] Error 2make: *** [_dir_drivers] Error 2[root@mandrake
> > linux-2.2.13]#cpp: output pipe has been closed{standard input}:
> > Assembler messages:{standard input}: 4588: Warning end of file not at
> > end of a line; new line inserted{standard input}: 5627: Error:
> > unbalanced parentesis in second operand. These message seem to change
> > from compile to compile, but they are all along the same line. Any
> > ideas, is the related to my having removed the
> > '-mpreferred-stack-boundary=2' directives?How do I get this to
> > compile with those directories in. As I said earlier this is a clean
> > Mandrake 6.1 install, nothing else has been "played" with yet.The gcc
> > version is pgcc-2.1.66 19990314. Any help will be much
> > appreciated Barry
>
--
UNIX was never designed to keep people from doing stupid things, because
that policy would also keep them from doing clever things. (Doug Gwyn)