Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Ralf Baechle <ralf@linux-mips.org>
To: Shireesh Annam <annamshr@gmail.com>
Cc: linux-mips@linux-mips.org
Subject: Re: 2.4.22 Kernel Build Error
Date: Thu, 15 Dec 2005 14:51:32 +0000	[thread overview]
Message-ID: <20051215145132.GA2812@linux-mips.org> (raw)
In-Reply-To: <9498e5c10512150449x625a7270s168d6a6339330e29@mail.gmail.com>

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
> www.linux-mips.org website.
> 
> I have installed the Linux/386 cross for big-endian target i.e. MIPS
> SDE 6.02.03 from ftp.mips.com 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.

  Ralf

  reply	other threads:[~2005-12-15 14:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-15 12:49 2.4.22 Kernel Build Error Shireesh Annam
2005-12-15 14:51 ` Ralf Baechle [this message]
2005-12-15 18:48   ` Shireesh Annam
     [not found]     ` <9498e5c10512172146q17c25655t9df0224bf7443111@mail.gmail.com>
2005-12-18  5:48       ` Shireesh Annam
  -- strict thread matches above, loose matches on Subject: below --
2005-12-18 13:40 Øyvind Kristiansen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051215145132.GA2812@linux-mips.org \
    --to=ralf@linux-mips.org \
    --cc=annamshr@gmail.com \
    --cc=linux-mips@linux-mips.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox