Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2137398imm; Fri, 7 Sep 2018 11:21:36 -0700 (PDT) X-Google-Smtp-Source: ANB0VdboZ6xJKvtEJa9IRZo0Paf9I17md8Y+Uyn+JU6hIZII0FoAXaURGdtYUdPo2qLp4WdvcObF X-Received: by 2002:a63:ce11:: with SMTP id y17-v6mr9595426pgf.201.1536344496345; Fri, 07 Sep 2018 11:21:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536344496; cv=none; d=google.com; s=arc-20160816; b=DQqK2DQH3GezKcBj/JqPgGdeKj8zdvx/P7TO9KVGJD/jH7bxvqSQY8hUO46wCIU4HL TN7uuB/GlKyng6e1MtOPHibPZ8syAK/pGU+mo2Z2zXavaOXUeJwDJw7brz7roVXAhoL0 EynFDU9FcttXhy0tRG08wQ818LYRAaBb4f5q3nhhhtJ4JQ/Vf7KY1fHQMNY0fYcNtqJv strRyNileDPikRjf/+Y1qRPYuNFhQPsqMXrSLXDhshAgSKYkHM725pZ/eYMQcdWaN4S9 3b7llFlKHXhb9qyv0phoC4bqZSuHl6m35wksSKPrAIFImZnrWlG/lwMCF+KVuwDbxkht KRUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Ah/IXBtsPqyXc/A/5h4gYXA4k7N1ClLAggpfhEb5ZAA=; b=SQop5lWi6yjagAs46kNP8Br6iMY5nrf4P6re9AePoRVaxWfOqo9xzQgbfcrRzpa9df bqYGw8FMTy2rK5u2qOzeB+RKXF2MhgzviFENIO6IIl4DGnsXtD6Isd6o3xqVe154z7CN mSsO/84P8PgxuLdOQrBjYDBa9JvpxK2zv5i1yJRPP2A3YZRgM9yzZVPag+m0t332dCKo Dio+92/Eu3fwb5UogRCj4vIH+sbZnzSbbVqFMr5UdjkANoMzWlxUF/qaLVDTqpB1hp7Z /jxhwSjZdtdBI5fgs1xfLg6wfOl3DqnLCxzIDjdgfkW3LC0BhHCCj3GPU0xgks01XyZK IIFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=c5gHjLow; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y6-v6si8969186plp.279.2018.09.07.11.21.20; Fri, 07 Sep 2018 11:21:36 -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=@google.com header.s=20161025 header.b=c5gHjLow; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727671AbeIGXCE (ORCPT + 99 others); Fri, 7 Sep 2018 19:02:04 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:43917 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727625AbeIGXCD (ORCPT ); Fri, 7 Sep 2018 19:02:03 -0400 Received: by mail-pf1-f193.google.com with SMTP id j26-v6so7391230pfi.10 for ; Fri, 07 Sep 2018 11:19:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=Ah/IXBtsPqyXc/A/5h4gYXA4k7N1ClLAggpfhEb5ZAA=; b=c5gHjLow8NYz2uUqKC0XT26sGc7Guh4ZTmn1v9nQgYtMTierK0gArOsIDXxWUpYFCu 2duRaZcPWwKdZnLac1uDUagfTw/k5Q/GFKUXNi9YhLG/RQl8Nl0947IJ2y8nm7/+uaFc SNo9X6SrV66C/zlRohaqDLokQ0o4xFuxTqwnFtsMZFiZNlAkdcEWVFz3ck0v22AqSQzU JApZP/vnMqhDfSeLMW5RMAXiX/RqzvMWTZUhOvJOTsC/0Hzv68HaxRV1K8PcCWm1opmM Y0yM61IJ1IJhDFqcAhUZLbg+6MfclF/v/M4RUX7GpLEx+td7HULCcb9JwHYCRO2b1Fxv RciA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=Ah/IXBtsPqyXc/A/5h4gYXA4k7N1ClLAggpfhEb5ZAA=; b=ALUe6f4UKkjlaMdugYfyXfP0rcbrAizQtrAxyVo7PcsQ4kMF3SR4Ze2U0xbpNlNaME TfnByV7uiCVM/huAAX5DyRnkpXqsNrmVK1K9xKfTHu4buAdhXHLGK46SqvuRP61nnVdw 9gaf2cLw5CQy2AwdmRmJAWTzU30IXymMCuZra3LaA1sXcJanaKTAOYtHfL8n60AsdG4N akKmPvkBIOiRW5tcL1EBBUCRLcEK6T6VEFIOpxfR1T/Z7FZaPaCaXlyN5sAR65+yq+R4 ehuXfH08tF1vfqB1shwjIL/1uIe8txtxSNzBLSwoe9uc0z1UfSgZExkK6srS1rfOpldb FgoA== X-Gm-Message-State: APzg51Cgzskn/xTZHIXuwfobWCIY3fpELfREN9tyI5vt16HcqQ/zW8WA lB8vTC5c4s3bNqVhHzUAAEttqzydgYrtUHXYfUDQSQ== X-Received: by 2002:a62:1815:: with SMTP id 21-v6mr9816586pfy.227.1536344394424; Fri, 07 Sep 2018 11:19:54 -0700 (PDT) MIME-Version: 1.0 References: <81a5fd11-366c-0897-4143-d8d041420a41@c-s.fr> <1324e7d6-83f8-f40f-ad34-c46e4ad3139b@c-s.fr> <20180907181337.peyfq7yvhahduvmq@ltop.local> In-Reply-To: <20180907181337.peyfq7yvhahduvmq@ltop.local> From: Nick Desaulniers Date: Fri, 7 Sep 2018 11:19:43 -0700 Message-ID: Subject: Re: Conflict between sparse and commit cafa0010cd51f ("Raise the minimum required gcc version to 4.6") To: Luc Van Oostenryck Cc: christophe.leroy@c-s.fr, joe@perches.com, Kees Cook , LKML , linux-sparse@vger.kernel.org, sparse@chrisli.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 7, 2018 at 11:13 AM Luc Van Oostenryck wrote: > > On Fri, Sep 07, 2018 at 10:22:56AM -0700, Nick Desaulniers wrote: > > On Fri, Sep 7, 2018 at 7:34 AM Christophe LEROY wrote: > > > > > > Cc linux-sparse@vger.kernel.org > > > > > > Le 07/09/2018 =C3=A0 14:22, Christophe Leroy a =C3=A9crit : > > > > Since commit cafa0010cd51f ("Raise the minimum required gcc version= to > > > > 4.6"), sparse check fails as follows: > > > > > > > > [root@pc16082vm linux-powerpc]# make C=3D2 arch/powerpc/kernel/proc= ess.o > > > > CALL scripts/checksyscalls.sh > > > > CHECK scripts/mod/empty.c > > > > ./include/linux/compiler-gcc.h:14:3: error: Sorry, your compiler is= too > > > > old - please upgrade it. > > > > CHECK arch/powerpc/kernel/process.c > > > > ./include/linux/compiler-gcc.h:14:3: error: Sorry, your compiler is= too > > > > old - please upgrade it. > > > > > > > > > > > > I have sparse version 0.5.2 > > > > > > > > What can be done to fix that ? > > > > > > > > Christophe > > > > Oof, sorry Christophe. Looks like that's the latest version of sparse: > > https://sparse.wiki.kernel.org/index.php/Main_Page#News > > > > I'm curious what sparse expands __GNUC__, __GNUC_MINOR__, and > > __GNUC_PATCHLEVEL__ to? Pre commit cafa0010cd51f, it MUST be > > expanding them to something, otherwise you'd have seen the error then, > > too. The previous check was GCC < 3.3, now it's GCC < 4.6. > > Sparse expand these macros to the same version than the compiler used > to compile GCC. I find a bit strange though to have sparse v0.5.2 but > using an old compiler. So Christophe must have a version of gcc < 4.6 installed somewhere? Does sparse use `cc`? If so, Christophe, does your `ls -l $(which cc)` point to an old version of gcc maybe? > > Also, it's worth to look at what is said in this email: > https://lore.kernel.org/lkml/CA+55aFzYEnZR2GZLR-DwpONjMNYGYoDy+6AWLCVNa= yWiaZuqoA@mail.gmail.com/ > > > -- Luc --=20 Thanks, ~Nick Desaulniers