[Top] [All Lists]

Re: Kernel compile error

To: Ho Tan <>
Subject: Re: Kernel compile error
From: Ralf Baechle <>
Date: Thu, 11 Nov 2004 13:38:15 +0100
In-reply-to: <00df01c4c7c5$cffdad90$6e01a8c0@HughTan>
Original-recipient: rfc822;
References: <00df01c4c7c5$cffdad90$6e01a8c0@HughTan>
User-agent: Mutt/1.4.1i
On Thu, Nov 11, 2004 at 04:09:48PM +0800, Ho Tan wrote:

> When compliation, everything go fine until the compiler compling entry.S 
> which locate at arch/mips/kernel. and the Error message prompt.
> make[1]: Entering directory `/usr/eldk/usr/src/linux-mips/arch/mips/kernel'
> mips_4KC-gcc -D__ASSEMBLY__ -D__KERNEL__ 
> -I/usr/eldk/usr/src/linux-mips/include -D_MIPS_SZLONG=32 -D_MIPS_SZPTR=32 
> -D_MIPS_SZINT=32  -g -G 0 -mno-abicalls -fno-pic -pipe   -c -o entry.o entry.S

_MIPS_SZLONG etc. are defined by the compiler.  If your tree has kludgery
such as defining _MIPS_SZLONG etc. you shouldn't be surprised to see
errors like this.  It also seems to indicate that mips_4KC-gcc is not a
compiler for a mips*-linux* target.

> entry.S: Assembler messages:
> entry.S:225: Error: unrecognized opcode `reg_s $8,164($29)'
> entry.S:226: Error: unrecognized opcode `reg_s $8,164($29)'

And that's what you get from it.  See include/asm-mips/asm.h for REG_S.


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