From patchwork Tue Dec 10 07:13:29 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rusty Russell X-Patchwork-Id: 3314671 Return-Path: X-Original-To: patchwork-linux-kbuild@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 55B6DC0D4A for ; Tue, 10 Dec 2013 07:14:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7CF64202FE for ; Tue, 10 Dec 2013 07:14:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A965920270 for ; Tue, 10 Dec 2013 07:14:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752215Ab3LJHOV (ORCPT ); Tue, 10 Dec 2013 02:14:21 -0500 Received: from ozlabs.org ([203.10.76.45]:52501 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750789Ab3LJHOS (ORCPT ); Tue, 10 Dec 2013 02:14:18 -0500 Received: by ozlabs.org (Postfix, from userid 1011) id BA0CB2C00C2; Tue, 10 Dec 2013 18:14:17 +1100 (EST) From: Rusty Russell To: "LKML" Cc: Subject: [PATCH] scripts/gcc-version.sh: handle CC="gcc -m32" User-Agent: Notmuch/0.15.2 (http://notmuchmail.org) Emacs/23.4.1 (x86_64-pc-linux-gnu) Date: Tue, 10 Dec 2013 17:43:29 +1030 Message-ID: <87d2l5ji06.fsf@rustcorp.com.au> MIME-Version: 1.0 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Without it we get ugly warnings (though build still succeeds). $ make -j8 CC="gcc -m32" In file included from :0:0: /usr/include/stdc-predef.h:30:26: fatal error: bits/predefs.h: No such file or directory #include ^ compilation terminated. In file included from :0:0: /usr/include/stdc-predef.h:30:26: fatal error: bits/predefs.h: No such file or directory #include ^ compilation terminated. /home/rusty/devel/kernel/linux/scripts/gcc-version.sh: line 31: printf: #: invalid number /home/rusty/devel/kernel/linux/scripts/gcc-version.sh: line 31: printf: #: invalid number /bin/sh: 1: [: 0001: unexpected operator CHK include/config/kernel.release CHK include/generated/uapi/linux/version.h make[1]: Nothing to be done for `all'. ... Signed-off-by: Rusty Russell --- 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/scripts/gcc-version.sh b/scripts/gcc-version.sh index 7f2126df91f2..d48b0cbaf246 100644 --- a/scripts/gcc-version.sh +++ b/scripts/gcc-version.sh @@ -14,7 +14,7 @@ if [ "$1" = "-p" ] ; then shift; fi -compiler="$*" +compiler="$1" if [ ${#compiler} -eq 0 ]; then echo "Error: No compiler specified."