[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: unable to compile a kernel



On Thu, 5 Jun 2003 17:27:50 +0200
martin f krafft <madduck@debian.org> 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.9
>   9+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
> 
> So I am unable to compile out of the box. What's going on?
> I searched google and the docs, but I could not find a solution.

I've compiled 2.4.20 with gcc-3.2 (and so have others here).

The problem is that gcc2.x did not recognize "athlon" as a choice; gcc3.x
does.

Kevin



Reply to: