Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757443Ab3CUGw4 (ORCPT ); Thu, 21 Mar 2013 02:52:56 -0400 Received: from vaxjo.synopsys.com ([198.182.60.75]:36985 "EHLO vaxjo.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752245Ab3CUGwy (ORCPT ); Thu, 21 Mar 2013 02:52:54 -0400 Message-ID: <514AADAD.1060503@synopsys.com> Date: Thu, 21 Mar 2013 12:20:21 +0530 From: Vineet Gupta User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130308 Thunderbird/17.0.4 MIME-Version: 1.0 To: "linux-kbuild@vger.kernel.org" CC: "linux-kernel@vger.kernel.org" , "linux-arch@vger.kernel.org" , Sam Ravnborg , Alexey Brodkin Subject: host gcc 4.7 warning when generating defconfig X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.12.197.153] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1421 Lines: 44 Hi, We do cross compile builds for ARC Linux. To avoid the env var set, we have a defconfig entry for CONFIG_CROSS_COMPILE. This worked fine so far (host gcc 4.4 i.e.). When switched to a new host distro (gcc 4.7), a defconfig build spews out the warning. ------------------->8-------------------------- mymake defconfig gcc: error: unrecognized command line option '-marc600' gcc: error: unrecognized command line option '-mA7' gcc: error: unrecognized command line option '-mno-sdata' gcc: error: unrecognized command line option '-mno-mpy' *** Default configuration is based on 'fpga_defconfig' # # configuration written to .config ------------------->8-------------------------- While the following trivial fix seems to fix this, it seems that the spew is coming due to LIBGCC definition line, which is strange to be called for defconfig generation. Any thoughts ? ----------------> diff --git a/arch/arc/Makefile b/arch/arc/Makefile index 4232d4e..97e6c20 100644 --- a/arch/arc/Makefile +++ b/arch/arc/Makefile @@ -8,6 +8,10 @@ UTS_MACHINE := arc +ifeq ($(CROSS_COMPILE),) +#CROSS_COMPILE := arc-elf32- +endif + KBUILD_DEFCONFIG := fpga_defconfig Thx, -Vineet -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/