Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2651376imm; Mon, 10 Sep 2018 04:36:19 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda5rVSc/yplk6yO9woBOqBC5pK3YJmVqaMGUvxBSMuA8Dix/OeyIzE0wYpvSbhttMAfu56C X-Received: by 2002:a62:8186:: with SMTP id t128-v6mr22791672pfd.192.1536579379529; Mon, 10 Sep 2018 04:36:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536579379; cv=none; d=google.com; s=arc-20160816; b=XohycOrQ9hNTPrL0fU/Pk+RrUWa0Qt5ppe0Wv4P610HaBMmid6TrhLd6Vk/TqlUnNW JOtBICc3d24UTsELeTXutDS9tvCdYFSvKU6WEQelHjoN784UuOlpusbDY19Dbe15dVKI RCBHAG7/cqB3OLlrpeuLqpm+OwqvzQNTp+xvQywPN/s93801Rn2ywes9I+WC257UfzmC w62D3cfUxsfLE8NgDARgAm2D8YHbOwKq0EDNze691KeiHX+EQBpKPB7wWbe9N06NfwD2 PzIu3fdkhZTsqQimOdGiXm3D3wERh2RmxMALSB8KxSh3jaOLk4J8sEcl4JYy7gHNxzQS x4+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=KTylQ4ofpLVoXS5Zc6IRLrkWY3vps1FjxB8a0pzObeI=; b=O55nuWXztWacwNyNOuU+yHnJCuov4tUMYGKzobIzzeI5bt1ExBSk2icwyVpbRoz2dn JpVxsOfR/qh//XKnhzC+s4aL2uQi8rfxWNpxwaXzCRncny/YPGFlr/5x/PYoEiyDNKtX xeXWoSTPF52J5VD1MRAXR7ufENKvFoIYXW0dSUA5+ejInPrF+fluj/x0w9wxWP4I6MSu omzm7mQyPtPpd/+Wh1MLyS2JcxWKrhC7vdIh5EfY+fPmr8mJtcRgxYShWn4ljcJWzz4Q ZSypPmzf764ygVxg7RZOdymWSXdiyJtgFutRPy37Ca/cDtaxfV3vcTB+MNW/Edj4N54I qeyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Bzxe0Yq1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p12-v6si15676291pls.53.2018.09.10.04.36.04; Mon, 10 Sep 2018 04:36:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Bzxe0Yq1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728208AbeIJQ2b (ORCPT + 99 others); Mon, 10 Sep 2018 12:28:31 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:35723 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727727AbeIJQ2b (ORCPT ); Mon, 10 Sep 2018 12:28:31 -0400 Received: by mail-wm0-f67.google.com with SMTP id o18-v6so21118564wmc.0; Mon, 10 Sep 2018 04:34:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=KTylQ4ofpLVoXS5Zc6IRLrkWY3vps1FjxB8a0pzObeI=; b=Bzxe0Yq1PrGZCGh6jfv7LNG9XiWpUZ3I2xhn8/AEwu1g7E8i8LggZBr+ckTPntk3hD 5bEM4d7021ZcySHyOZ7SxovTlysV/GqgJjIWTBrCzQNsjo+vJogtvYw/H7UJr092sznY qHpaiCWLfkbXN+geIdPr/UxU5Mj+cLGG0ku4RtjObbZPliir1IRg9FULyw3zCzlMRnYI 0jMpj6GW6SgVPFMtX61rEPgFgHHv5RFKKFppaBb1v+fIa/wl0QSiKvW/kwqxMMXut/du tIfLsNWNNlAUF3dfZylBd8qqpRvuJYtG3j0RfpXz2xZYIQfgO0H63TGPgZFcIcHjLGvV p6dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=KTylQ4ofpLVoXS5Zc6IRLrkWY3vps1FjxB8a0pzObeI=; b=HItnumZnXSFvJaZSgWyMCV6vpQ+HIlXlF/izeB/1KPtXGe3tV7Y53cYpLQFXhWAvHH uHbgQY31hSjiUd8Tl+Pa/EXGvgbBmccsU4zOjfzi+ZID2qPCrGHIQSEZvEiM1bgOSz2M +BVB63ekjRrnKZUHyIERfe8GBGUaEDmjuUVsS5KyENDCbu4BytDHAxpwFsNYsEdF8ylT T8dMjYGIQkMMImQzPUyG2Smu+gVDRdlg38m5zkaqsCeSBSGDs4dlhGtr3a2lfPa5Gm/+ DX88k0okydzjL51DJkfQJuJr6sV2wX2uqACs0m7F+dISrxmdS2Xwu+ezH1bNWq0HYUY6 yRaw== X-Gm-Message-State: APzg51A0R1Tyjz7Z2Sa+vGRiovtMyAWS4lI+53utBTYKxR/6NTXQreET YhD7H/27KugvCbbK5/BkkAQ= X-Received: by 2002:a1c:1609:: with SMTP id 9-v6mr466859wmw.12.1536579291772; Mon, 10 Sep 2018 04:34:51 -0700 (PDT) Received: from ltop.local ([2a02:a03f:4006:df00:81e:af75:e036:d35f]) by smtp.gmail.com with ESMTPSA id y205-v6sm7121059wmc.3.2018.09.10.04.34.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Sep 2018 04:34:51 -0700 (PDT) Date: Mon, 10 Sep 2018 13:34:49 +0200 From: Luc Van Oostenryck To: Christophe Leroy Cc: Nick Desaulniers , joe@perches.com, Kees Cook , LKML , linux-sparse@vger.kernel.org, sparse@chrisli.org, linuxppc-dev@lists.ozlabs.org Subject: Re: Conflict between sparse and commit cafa0010cd51f ("Raise the minimum required gcc version to 4.6") Message-ID: <20180910113448.dxnfvznyimtj3tkv@ltop.local> References: <81a5fd11-366c-0897-4143-d8d041420a41@c-s.fr> <1324e7d6-83f8-f40f-ad34-c46e4ad3139b@c-s.fr> <20180907181337.peyfq7yvhahduvmq@ltop.local> <20180910092835.v5nex5nzfgtl475m@ltop.local> <061b3056-1a9a-af6b-de2a-49fea394320d@c-s.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <061b3056-1a9a-af6b-de2a-49fea394320d@c-s.fr> User-Agent: NeoMutt/20180622 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 10, 2018 at 09:56:33AM +0000, Christophe Leroy wrote: > > # export REAL_CC=ppc-linux-gcc > # make CHECK="cgcc -target=ppc -D_CALL_ELF=2 -D__GCC__=5 > -D__GCC_MINOR__=4" C=2 arch/powerpc/kernel/process.o > scripts/kconfig/conf --syncconfig Kconfig > # > # configuration written to .config > # > UPD include/config/kernel.release > UPD include/generated/utsrelease.h > CC kernel/bounds.s > CC arch/powerpc/kernel/asm-offsets.s > CALL scripts/checksyscalls.sh > CHECK scripts/mod/empty.c > Can't exec "/bin/sh": Argument list too long at /usr/local/bin/cgcc line 86. > make[2]: *** [scripts/mod/empty.o] Error 1 > make[1]: *** [scripts/mod] Error 2 > make: *** [scripts] Error 2 OK. Clearly nobody has ever used it so :( There is an infinite loop because cgcc use the env var CHECK to call sparse while kbuild use CHECK to call cgcc here. The following seems to work here. $ export REAL_CC=ppc-linux-gcc $ make CHECK="CHECK=sparse cgcc -target=ppc ... It's a bit kludgy, I admit. -- Luc