linux-mips
[Top] [All Lists]

Re: Gcc 4.2.2 broken for kernel builds

To: David Daney <ddaney@avtrex.com>
Subject: Re: Gcc 4.2.2 broken for kernel builds
From: Ralf Baechle <ralf@linux-mips.org>
Date: Fri, 12 Oct 2007 18:53:17 +0100
Cc: linux-mips@linux-mips.org
In-reply-to: <470FB386.6080709@avtrex.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20071012172254.GA10835@linux-mips.org> <470FB386.6080709@avtrex.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.14 (2007-02-12)
On Fri, Oct 12, 2007 at 10:48:54AM -0700, David Daney wrote:
> From: David Daney <ddaney@avtrex.com>
> Date: Fri, 12 Oct 2007 10:48:54 -0700
> To: Ralf Baechle <ralf@linux-mips.org>
> Cc: linux-mips@linux-mips.org
> Subject: Re: Gcc 4.2.2 broken for kernel builds
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> 
> Ralf Baechle wrote:
> >So it looks as if gcc 4.2.2 is broken for kernel builds resulting in the
> >following error message with binutils 2.18:
> >
> >  CC      drivers/mtd/mtd_blkdevs.o
> >mipsel-linux-ld: drivers/mtd/.tmp_mtd_blkdevs.o: Can't find matching LO16 
> >reloc against `$LC6' for R_MIPS_HI16 at 0x9e0 in section `.text'
> >  CC      drivers/mtd/chips/chipreg.o
> >
> >Older binutils throw a more cryptic error message about the bad assembler
> >code generated by gcc:
> >
> >  CC      drivers/mtd/mtd_blkdevs.o
> >mipsel-linux-ld: final link failed: Bad value
> >make[2]: *** [drivers/mtd/mtd_blkdevs.o] Error 1
> >make[1]: *** [drivers/mtd] Error 2
> >make: *** [drivers] Error 2
> >
> >Just as heads up ...
> >
> 
> Could you file a bug report here:
> 
> http://gcc.gnu.org/bugzilla/
> 
> If you could include a pointer to the kernel sources you were using and 
> perhaps attach your .config to the bug that might be useful as well.

If I had the time I'd have done that.  Short of that posting a warning is
what I can do.

  Ralf

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