[Top] [All Lists]

Re: 2.4.22 Kernel Build Error

To: Shireesh Annam <>
Subject: Re: 2.4.22 Kernel Build Error
From: Ralf Baechle <>
Date: Thu, 15 Dec 2005 14:51:32 +0000
In-reply-to: <>
Original-recipient: rfc822;
References: <>
User-agent: Mutt/
On Thu, Dec 15, 2005 at 06:19:44PM +0530, Shireesh Annam wrote:

> I have an new AMD (Au1500) Bosporous Board and I intend to install
> MIPS Kernel 2.4.22 (linux-14oct2003.tar.gz) provided on the AMD CD
> provided along with the kit. I have been through the
> website.
> I have installed the Linux/386 cross for big-endian target i.e. MIPS
> SDE 6.02.03 from on a Red Hat host.
> After that when I try to build the kernel using the following command:
> $make ARCH=mips CROSS_COMPILE=mips-linux- zImage
> I get the following error.
> mips-linux-gcc -D__KERNEL__ -I/root/MipsLinux/oct2003/linux/include
> -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing
> -fno-common -fomit-frame-pointer -I
> /root/MipsLinux/oct2003/linux/include/asm/gcc -G 0 -mno-abicalls
> -fno-pic -pipe  -mabi=32 -mcpu=r4600 -mips2 -Wa,--trap  
> -DKBUILD_BASENAME=main -c -o init/main.o init/main.c
> cc1: error: invalid option `-mcpu=r4600'
> make: *** [init/main.o] Error 1
> I have selected MIPS32 for the CPU Architecture and the toolchain
> doesn't seem to recognize the r4600 option.

You're trying to build a stoneage kernel with a much newer compiler -
SDE 6 uses gcc 3.4 - which doesn't work.  Use an older compiler such
as gcc <= 3.3.x.  SDE 5.x contains gcc 2.96 btw.


<Prev in Thread] Current Thread [Next in Thread>