Re: unable to compile a kernel
On Thu, Jun 05, 2003 at 05:27:50PM +0200, martin f krafft wrote:
> i just tried to compile the kernel.org 2.4.20 kernel, but it bailed
> out, line 440 of ide-cd.h contains invalid syntax -- for gcc-3.3.
> the kernel README says that 2.95.3 has to be used, so I installed
> 2.95.4-17 from Debian. Now the error doesn't appear anymore, but
> a new one appeeared:
>
> gcc-2.95 -D__KERNEL__
> -I/home/madduck/compile/kernel/src/linux-2.4.20-grsec1.9.9h+freeswan1.99+preempt20030413/include
> -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing
> -fno-common -fomit-frame-pointer -pipe
> -mpreferred-stack-boundary=2 -march=athlon -nostdinc -iwithprefix
> include -DKBUILD_BASENAME=sched -fno-omit-frame-pointer -c -o
> sched.o sched.c
>
> cc1: bad value (athlon) for -march= switch
Well, TMK, "athlon" is indeed an invalid -march option with gcc-2.95.
After installing gcc-2.95 did you start with a completely fresh kernel
source tree, or simply attempt compiling in the previous tree again?
Based on the error, I'm guessing the later.
--
Jamin W. Collins
This is the typical unix way of doing things: you string together lots
of very specific tools to accomplish larger tasks. -- Vineet Kumar
Reply to: