|
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.tk
make[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.c
cc1: Invalid option
'preferred-stack-boundary=2'
make[1]: *** [tkparse.o] Error
1
make[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.c cc1: 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 11
make[3]: *** [ide.o] Error 1
make[2]: *** [first_rule] Error 2
make[1]: *** [_subdir_block] Error 2
make: *** [_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
|
- Re: [expert] Kernel Compile Barry Winch
- Re: [expert] Kernel Compile Tom Berkley
- Re: [expert] Kernel Compile Rene Scott
- Re: [expert] Kernel Compile Dana J. Laude
- Re: [expert] Kernel Compile - Apologies Barry Winch
- Re: [expert] Kernel Compile - Apologies Tom Berkley
- Re: [expert] Kernel Compile - Apologies Barry Winch
- Re: [expert] Kernel Compile - Apol... Tom Berkley
- Re: [expert] Kernel Compile - ... Joseph S. Gardner
- Re: [expert] Kernel Compile - Apologies John Aldrich
