Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp2180523pxy; Sun, 2 May 2021 14:10:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyrU1jp7upYruTGTEza8CuCCjc1ogAKDCthwya5SFohaVZg5Ie2+jWkDdcume8DZSFfVYPF X-Received: by 2002:a63:d70f:: with SMTP id d15mr15478966pgg.397.1619989809815; Sun, 02 May 2021 14:10:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619989809; cv=none; d=google.com; s=arc-20160816; b=wYWZIpB5b/TIPYOPVuO0imhdFKDtBbhpmNY49r+sZTn0i/hH+L96nYpOxELQ6j9PVs FM+zvEC/ZyJB+VnayzJkzDdJTkixagCS9q4EunQR/sHEbCuaE7Q6tuhOLXIgfR9UTK5r BaBd+sh0DBNjadq8XI3nbOSpK63PF2Y6ovWe+opzfp7qvVqoRst03rAKVWs+IzPjrd9V rRUML1DFws+anxphiqumcVGhBJCgbDXPnbZHa63xbygmsqz8SbKxlPsyXDvjPxfHHL6e 22NMuHoizGLF33zdVfveA6LMACfR9Qc3bqjZUhHtjDbxbLITnRTpC6gC721R2nn7LYpC onNw== 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; bh=ztLe0PUCKTK2LtdP2HGMOWnOHEgLtC71r4QQFdpNTzw=; b=v/Gbl3YUTKar1kWPtY97DXA3eOwl7DvhvbOmjcvh2xhX5AL6FHPDUfUiy4C0oLZ63B SZOM154bEZMdnKmFJtIOOiPUhCpvHDKB8/X0xr0YYDhsSZLZWGO7pmOX0oteC/+PfV8O p1uQTXcOUyn31wjlZu2ak3WKebwC71pIksLCXNB330ak7GGlExF4x8lOytomWqaPIIEc skD4pVqIMHMSKZv/PsilGUJukRFOzIT9lDuIP+uWA+DTI5TBZyLisBFMGYdO07EUugqJ IkyC980t9bggCjbdQkTNw6Q4eH/M8OjgkgRxXQHUKbUZ4lhxetKQpNl3XU7KOGYU53Vz 3DBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=YBiD6aB1; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l9si11513510pgp.593.2021.05.02.14.09.45; Sun, 02 May 2021 14:10:09 -0700 (PDT) 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=@linux-foundation.org header.s=google header.b=YBiD6aB1; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232338AbhEBVJo (ORCPT + 99 others); Sun, 2 May 2021 17:09:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232457AbhEBVJn (ORCPT ); Sun, 2 May 2021 17:09:43 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51517C061756 for ; Sun, 2 May 2021 14:08:51 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id z13so5239977lft.1 for ; Sun, 02 May 2021 14:08:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ztLe0PUCKTK2LtdP2HGMOWnOHEgLtC71r4QQFdpNTzw=; b=YBiD6aB1h/sCqYhKTphH+dg0wIZGGo6mw2O+h2UbBPaKs2j+amxCQcnTb6T4EcSFDi 569RK7dsnKNOuJGN1Zq3Sl1+5gAq1k0k2Eo073vJURqtQ79ulv+UTiBKQN1QHx0TnXJL 8kMigLRMuOZq6Z9mW4YA2S0oPDLTJFBkJG6AU= 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; bh=ztLe0PUCKTK2LtdP2HGMOWnOHEgLtC71r4QQFdpNTzw=; b=GiWu4IlK80WEw+Iv9noiDyvn1LE4FRaSYN94zkd4yt+Sb8wtOCg9rv1FnXtiN/7g9Q w4eemNpHuR3e4iXFyXp3yzMwjsQDJ69s0VgDRjmFccwoSjfXhiSfA2t8uuq74CAF2wfY JvY2ZgmfaiiRoF+qwb2Fxbhp9+l1gvf8e1RqjWm6+Pto0wylg55SvWcVE+nSCZGyGIkQ Y4RZAtNdzeCq2hRZZjF/0AyALxRdwGm2QfnwQeZFgacZbLhjKv2Z7rp8N0aa3HEF4b4u vrfJscqEfrT3rvBrhnxW3U6F7VvI9a75UF6gzacBSt40x8t/zO1UnOmzwGeiHnOy6P+p +L5A== X-Gm-Message-State: AOAM533AaHlkqksgbuHY30+C1cMC4+LphumEtb4PpQyorMWL/mth0jx+ D2PNJF3/wJyFEKSc8xi9rXh//+Dg4uP1+BWe X-Received: by 2002:a05:6512:3c91:: with SMTP id h17mr6331148lfv.106.1619989729461; Sun, 02 May 2021 14:08:49 -0700 (PDT) Received: from mail-lj1-f177.google.com (mail-lj1-f177.google.com. [209.85.208.177]) by smtp.gmail.com with ESMTPSA id h7sm944149lfu.199.2021.05.02.14.08.47 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 02 May 2021 14:08:48 -0700 (PDT) Received: by mail-lj1-f177.google.com with SMTP id s9so4515350ljj.6 for ; Sun, 02 May 2021 14:08:47 -0700 (PDT) X-Received: by 2002:a2e:330f:: with SMTP id d15mr11126850ljc.251.1619989727157; Sun, 02 May 2021 14:08:47 -0700 (PDT) MIME-Version: 1.0 References: <20210501151538.145449-1-masahiroy@kernel.org> <3943bc020f6227c8801907317fc113aa13ad4bad.camel@perches.com> <20210502183030.GF10366@gate.crashing.org> <81a926a3bdb70debe3ae2b13655ea8d249fb9991.camel@perches.com> <20210502203253.GH10366@gate.crashing.org> In-Reply-To: <20210502203253.GH10366@gate.crashing.org> From: Linus Torvalds Date: Sun, 2 May 2021 14:08:31 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] Raise the minimum GCC version to 5.2 To: Segher Boessenkool Cc: Joe Perches , Miguel Ojeda , Masahiro Yamada , Albert Ou , Arnd Bergmann , Linux Kbuild mailing list , Greg Kroah-Hartman , Jonathan Corbet , Linux Doc Mailing List , linux-kernel , Palmer Dabbelt , Paul Walmsley , Catalin Marinas , Miguel Ojeda , Paul Mackerras , linux-riscv@lists.infradead.org, linuxppc-dev , Will Deacon , Linux ARM Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, May 2, 2021 at 1:38 PM Segher Boessenkool wrote: > > The point is, you inconvenience users if you require a compiler version > they do not already have. Five years might be fine, but three years is > not. So this should be our main issue - not how old a compiler is, but how our compiler version limitations end up possibly making it harder for users to upgrade. Of course, one issue there is whether said users would have upgraded regardless - if you have a very old distribution, how likely are you to upgrade the kernel at all? But we do very much want to encourage people to upgrade their kernels, even if they might be running otherwise fairly old user space. If for no other reason than that it's good for our kernel coverage testing - the more different distributions people test a new kernel with, the better. And some of the less common architectures have their own issues, with distros possibly not even supporting them any more (if they ever did - considering all the odd ad-hoc cross-compiler builds people have had..) This is why "our clang support requires a very recent version of clang" is not relevant - distributions won't have old versions of clang anyway, and even if they do, such distributions will be gcc-based, so "build the kernel with clang" for that situation is perhaps an exercise for some intrepid person who is willing to do odd and unusual things, and might as well build their own clang version too. So I really wish people didn't get hung about some "three years ago" or similar. It's not relevant. What is relevant is what version of gcc various distributions actually have reasonably easily available, and how old and relevant the distributions are. We did decide that (just as an example) RHEL 7 was too old to worry about when we updated the gcc version requirement last time. Last year, Arnd and Kirill (maybe others were involved too) made a list of distros and older gcc versions. But I don't think anybody actually _maintains_ such a list. It would be perhaps interesting to have some way to check what compiler versions are being offered by different distros. Linus