From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Fri, 12 Oct 2007 18:49:13 +0100 (BST) Received: from smtp1.dnsmadeeasy.com ([205.234.170.144]:11675 "EHLO smtp1.dnsmadeeasy.com") by ftp.linux-mips.org with ESMTP id S20030944AbXJLRtE (ORCPT ); Fri, 12 Oct 2007 18:49:04 +0100 Received: from smtp1.dnsmadeeasy.com (localhost [127.0.0.1]) by smtp1.dnsmadeeasy.com (Postfix) with ESMTP id 8642B30CD17; Fri, 12 Oct 2007 17:49:08 +0000 (UTC) X-Authenticated-Name: js.dnsmadeeasy X-Transit-System: In case of SPAM please contact abuse@dnsmadeeasy.com Received: from avtrex.com (unknown [67.116.42.147]) by smtp1.dnsmadeeasy.com (Postfix) with ESMTP; Fri, 12 Oct 2007 17:49:08 +0000 (UTC) Received: from [192.168.7.26] ([192.168.7.26]) by avtrex.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 12 Oct 2007 10:48:54 -0700 Message-ID: <470FB386.6080709@avtrex.com> Date: Fri, 12 Oct 2007 10:48:54 -0700 From: David Daney User-Agent: Thunderbird 1.5.0.12 (X11/20070719) MIME-Version: 1.0 To: Ralf Baechle Cc: linux-mips@linux-mips.org Subject: Re: Gcc 4.2.2 broken for kernel builds References: <20071012172254.GA10835@linux-mips.org> In-Reply-To: <20071012172254.GA10835@linux-mips.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 12 Oct 2007 17:48:54.0932 (UTC) FILETIME=[2866FD40:01C80CF8] Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 16995 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: ddaney@avtrex.com Precedence: bulk X-list: linux-mips 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. Thanks, David Daney