From patchwork Thu Mar 21 06:50:21 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vineet Gupta X-Patchwork-Id: 2311171 Return-Path: X-Original-To: patchwork-linux-kbuild@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 90FB6DF264 for ; Thu, 21 Mar 2013 06:52:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753217Ab3CUGwz (ORCPT ); Thu, 21 Mar 2013 02:52:55 -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 Received: from mailhost.synopsys.com (mailhost1.synopsys.com [10.12.238.239]) by vaxjo.synopsys.com (Postfix) with ESMTP id 6BCF3DA89; Wed, 20 Mar 2013 23:52:54 -0700 (PDT) Received: from mailhost.synopsys.com (localhost [127.0.0.1]) by mailhost.synopsys.com (Postfix) with ESMTP id 56D884B6; Wed, 20 Mar 2013 23:52:54 -0700 (PDT) Received: from US01WEHTC2.internal.synopsys.com (us01wehtc2-vip.internal.synopsys.com [10.12.239.238]) by mailhost.synopsys.com (Postfix) with ESMTP id D54B54AF; Wed, 20 Mar 2013 23:52:53 -0700 (PDT) Received: from IN01WEHTC1.internal.synopsys.com (10.144.199.213) by US01WEHTC2.internal.synopsys.com (10.12.239.237) with Microsoft SMTP Server (TLS) id 14.2.298.4; Wed, 20 Mar 2013 23:50:34 -0700 Received: from [10.12.197.153] (10.12.197.153) by in01wehtc1.internal.synopsys.com (10.144.199.243) with Microsoft SMTP Server (TLS) id 14.2.298.4; Thu, 21 Mar 2013 12:20:31 +0530 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 X-Originating-IP: [10.12.197.153] Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org 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 ? ----------------> -Vineet --- To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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,