Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp123598pxb; Thu, 14 Jan 2021 01:23:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJyWDGIUrgBkBrGyqPmwvEsfSkmuLfJIRAMwLC8gaGNiUrbBdLD+gXGNe/txHkHA4dDaLBk4 X-Received: by 2002:a05:6402:1386:: with SMTP id b6mr5060151edv.42.1610616218615; Thu, 14 Jan 2021 01:23:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610616218; cv=none; d=google.com; s=arc-20160816; b=me3FkVkkvoV03OSzSglUddjgbMcB2zYp1KZsY1JlzbPZPUG2bVFvJb3wmFjGo36Eaw yuNJJnb6nKvuP7z4p/tHyZJY26DOSbsGp3taYYP0sr+LD1fYoz8fXFG6vC4sFDY1EZDX ntt9MUnJf8CjOnC2IPD+OEa9EK7/eYieRWyZx4lL9ettMAhaGJkvncyFF1M7SWSb+GAu vF1CeGWqQH1XAn+1YeUMZfd5vqkEBZTRmrCKOrzate20CNqk+WnoAZkFJGdLg/GOo5Qc 945uDrON2uKOH8wbJDn6E5bPqQ5swKiM3Q2EBb+4AAUHv2gn3KObSFhJvgh6LE8zl/MP qQGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature:dkim-filter; bh=GIb0FR4aAJ1kV0/4W9xH+1ZDMIfRJ13sU7o4iHJooWs=; b=RJq/GOcG7UgPl9FMLh9Or2rBWxZoJkyu4smD+G5zXU8ufbiknpkctRkixsfVg7EbG7 vgdBcBMu/vSahcssZyLrFUmJWaOSFmaqS7EP8Motzl6yo3uflG4VqBQqOlnoBGTOzvWS DgmYwX8qTcAhxafsODb/qQk7/uyqjiM85dDMNt+G7hxsYsiDgzhjhsal93b9y/n7pDdo ScAjNC5xdCjhvOSlcHmdQlU7kWDGMmaBp7CdEXAgYwzPICNz3Qe67DeEs/hyAGpmKUa9 596MMA1F1YdiRisJLmfbhcfKnvx//g1AkL/8OIAXGRGXNRX96V4yCi44U6tngeamvLc/ u+eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=ZwBVEYtV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q17si220992ejd.397.2021.01.14.01.23.14; Thu, 14 Jan 2021 01:23:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=ZwBVEYtV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727319AbhANJWH (ORCPT + 99 others); Thu, 14 Jan 2021 04:22:07 -0500 Received: from conssluserg-02.nifty.com ([210.131.2.81]:17189 "EHLO conssluserg-02.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726478AbhANJWE (ORCPT ); Thu, 14 Jan 2021 04:22:04 -0500 Received: from mail-pg1-f175.google.com (mail-pg1-f175.google.com [209.85.215.175]) (authenticated) by conssluserg-02.nifty.com with ESMTP id 10E9KqSV019480; Thu, 14 Jan 2021 18:20:53 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com 10E9KqSV019480 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1610616053; bh=GIb0FR4aAJ1kV0/4W9xH+1ZDMIfRJ13sU7o4iHJooWs=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=ZwBVEYtVaQI3Ad1/Y/kI2tJl7/mbCio5Ka5MzlaPdjnmiA61H/XgvFsPkKj1OGsOi cIjU2CVxv936oipOnX4YLFlEyN/1fKLytRQzveLHseJ38HBEJvN0R74oM/KVLybo8d zjWDZLesZFm0bOOMV3EAY4FwNHLB+xCl1m8YXbI+kgjY/PPowo1DG3HfKLS3gWirUv jh0ybJjMt9kA0ROlRTDdpxS3WzR9f0aa+mtFlz57FM4Ah82MH5essNRUxJcc1HfYW3 BR+tuCNkpsiARAYa8IFpFHTwcDw8I2OxAiyY4J520OimsdRiJE2NbZP13/K4qurdcb iIlmzmIFeOpQQ== X-Nifty-SrcIP: [209.85.215.175] Received: by mail-pg1-f175.google.com with SMTP id p18so3348217pgm.11; Thu, 14 Jan 2021 01:20:53 -0800 (PST) X-Gm-Message-State: AOAM533x0SA382nMT86WYi1L4GAQxN39LzwJs3q+uIWos12bO0ECNe6h ffxKnK7mAyvBX25YEwV1iTlFHuoWDHuNe6lQhZI= X-Received: by 2002:a62:820d:0:b029:1ad:d810:6805 with SMTP id w13-20020a62820d0000b02901add8106805mr6554390pfd.63.1610616052534; Thu, 14 Jan 2021 01:20:52 -0800 (PST) MIME-Version: 1.0 References: <20210114042420.229524-1-masahiroy@kernel.org> In-Reply-To: From: Masahiro Yamada Date: Thu, 14 Jan 2021 18:20:15 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] kbuild: check the minimum compiler version in Kconfig To: Ilie Halip Cc: Linux Kbuild mailing list , Paul Gortmaker , Linus Torvalds , Nathan Chancellor , Nick Desaulniers , Will Deacon , clang-built-linux , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 14, 2021 at 4:55 PM Ilie Halip wrote: > > Hi Masahiro, > > > + #elif defined(__INTEL_COMPILER) > > + /* How to get the version of intel compiler? */ > > + ICC 0 0 0 > > According to Intel documentation[1], this should do the trick: > > ICC __INTEL_COMPILER __INTEL_COMPILER_UPDATE > __INTEL_COMPILER_BUILD_DATE > > I don't have the compiler installed, but I tested this on godbolt[2] and > looks fine to me. What do you think? > > [1] https://software.intel.com/content/www/us/en/develop/documentation/cpp-compiler-developer-guide-and-reference/top/compiler-reference/macros/additional-predefined-macros.html > [2] https://godbolt.org/z/E5PE6f > > I.H. Thanks. The following is the result from godbolt (except the beta releases of 21.1.*) version __INTEL_COMPILER __INTEL_COMPILER_UPDATE 13.0.1 1300 (unsupported) 16.0.3 1600 3 17.0.0 1700 0 18.0.0 1800 0 19.0.0 1900 0 19.0.1 1900 0 Presumably, the version string xx.yy.zz corresponds to __INTEL_COMPILER=xxyy __INTEL_COMPILER_UPDATE=zz The output from 19.0.1 does not make sense, though. BTW, when I tried ICC a few years ago, I could not build the kernel with it. -- Best Regards Masahiro Yamada