[Top] [All Lists]

Re: Linux-MIPS compilation

To: "Neeraj Garg, Noida" <>
Subject: Re: Linux-MIPS compilation
From: Ralf Baechle <>
Date: Tue, 1 Apr 2003 13:42:58 +0200
In-reply-to: <>; from on Tue, Apr 01, 2003 at 12:05:18PM +0530
Original-recipient: rfc822;
References: <>
User-agent: Mutt/
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.


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