linux-mips
[Top] [All Lists]

Re: Linux-MIPS compilation

To: "Neeraj Garg, Noida" <ngarg@noida.hcltech.com>
Subject: Re: Linux-MIPS compilation
From: Ralf Baechle <ralf@linux-mips.org>
Date: Tue, 1 Apr 2003 13:42:58 +0200
Cc: linux-mips@linux-mips.org
In-reply-to: <E04CF3F88ACBD5119EFE00508BBB2121086ED859@exch-01.noida.hcltech.com>; from ngarg@noida.hcltech.com on Tue, Apr 01, 2003 at 12:05:18PM +0530
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <E04CF3F88ACBD5119EFE00508BBB2121086ED859@exch-01.noida.hcltech.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.2.5.1i
On Tue, Apr 01, 2003 at 12:05:18PM +0530, Neeraj  Garg, Noida wrote:

> Using compilation options:
> mips-linux-gcc -D__KERNEL__ -D__linux__ -D_MIPS_SZLONG=32
> -I/usr/emb_linux/linux-2.4.20/include -D__linux__ -Wall -Wstrict-prototypes
> -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -I
> /usr/emb_linux/linux-2.4.20/include/asm/gcc -G 0 -mno-abicalls -fno-pic
> -pipe -g -mcpu=r4600 -mips2 -Wa,--trap  -DUTS_MACHINE='"mips"'
> 
> I have got a tons of warnings named as:
> {standard input}: Assembler messages:
> {standard input}:784: Warning: Macro instruction expanded into multiple
> instructions
> {standard input}:784: Warning: No .cprestore pseudo-op used in PIC code
> 
> Can anybody help out to remove these warnings?

The options -D__linux__ -D_MIPS_SZLONG=32 and the error messages make it
look like you're forcing a non-Linux toolchain into building a kernel.

  Ralf

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