Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1089373rwi; Thu, 13 Oct 2022 08:57:44 -0700 (PDT) X-Google-Smtp-Source: AMsMyM42ZMyYvK1BmIe5MC/OIeu76HBvNSRH/os2TqRAiC6ICBkZS1w/L4P1QAyBz5JSRsxfqmQI X-Received: by 2002:a17:90b:388c:b0:20a:9c33:dd2b with SMTP id mu12-20020a17090b388c00b0020a9c33dd2bmr11649612pjb.225.1665676663874; Thu, 13 Oct 2022 08:57:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665676663; cv=none; d=google.com; s=arc-20160816; b=ZGV/1WZXkeAE1c2dIo2toL5j8pYh6ag54iuD9SObb5kKJ4fj2YC+xdlFJ616lN8MRI o1vtSC5MCrD5n6Q7cOqTE+TPWE81yRjM+rPF/o9KSUZdAmhco3+PotizMMRM99PdiUrW x12GblTM3A+X7v4gfZW4mq8SDfIaaVRtQuP9tK6wrLxv+W6xWnP95mAZF8POakt/RKay 4XnzOem9OXHwk2mf5p22NauAx3FtK0rqWunUhJAmu0uNlhXmmYoj5HnzXDd03g6viw26 nKf1uXC/C2zAXdCPzx2ufybn7RNSHvcByNuX/dZZJBApZM/UzbJFpokc9gQ9bm4dYm7E Ukgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Zbm6Vmx3sUgdXMvn6nLfsZeuKOKciv8fS7d6WFzgxM0=; b=pYcJkG5ngWFinBin/UkBHMPShbxhyNSEGD70vyMjoWAH4r9DIVJkL7tXClePfINFcw 49a13eE8y5KAD9SYwhjI+W4nvyPfSNYnxtNhrrKmmli3b78RZBvEJbBwZc0QCpQWZ49c BX7biO6F8P+wCArH+Gg8wrTT5aOTFcmiK28B+zrySyIpIOWfGSqfxSgzEGKg3FzEh3oh P2c6t/6grxLMUWkxjLwG7OOikg2VTSOEeixSp4gu2TI1sgXyr81SQJ0V9QGIoNYsNXgq VtzlXSd5Yf93sidafciQq+7uSLjUj1uH5oE5yFwXn5z9wuDaVj33Y38cpYqTDQlTXGKD IKnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=DWY7sMnQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=zx2c4.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g13-20020a17090a640d00b0020291c96b13si5255589pjj.121.2022.10.13.08.57.20; Thu, 13 Oct 2022 08:57:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=DWY7sMnQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=zx2c4.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229865AbiJMPYM (ORCPT + 99 others); Thu, 13 Oct 2022 11:24:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229891AbiJMPXx (ORCPT ); Thu, 13 Oct 2022 11:23:53 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8662A63343; Thu, 13 Oct 2022 08:23:43 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 71B3461843; Thu, 13 Oct 2022 15:23:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 379A1C433C1; Thu, 13 Oct 2022 15:23:41 +0000 (UTC) Authentication-Results: smtp.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="DWY7sMnQ" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zx2c4.com; s=20210105; t=1665674619; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Zbm6Vmx3sUgdXMvn6nLfsZeuKOKciv8fS7d6WFzgxM0=; b=DWY7sMnQI9los3VC++PX7LaZiNzDIcbPF9DiUHhB5FSFRkidSUaafwOD8aJmew2hqEjW8z HuPq7iACbapLj4E2t5/wl0jq+bHtC3T62Aeob1a8XOzFYXQbt0vR39K8eWm/NqHUlN+BPS brGalF0YfD2B8lPIEaJPWe7qGQumfkk= Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id b93cf1eb (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Thu, 13 Oct 2022 15:23:38 +0000 (UTC) Date: Thu, 13 Oct 2022 09:23:36 -0600 From: "Jason A. Donenfeld" To: Mark Brown Cc: linux-toolchains@vger.kernel.org, Linux Kbuild mailing list , LKML Subject: Re: gcc 5 & 6 & others already out of date? Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 13, 2022 at 01:59:52PM +0100, Mark Brown wrote: > The expected users for old toolchains was always users doing something > like building a newer kernel on an old enterprise distro rather than > people actually developing anything AIUI. > Two or three releases seems a bit ambitious, I'm sitting here in front > of a Debian stable system which probably has another year or so of being > the latest release left and it's sitting at GCC 10.2 with the latest > release of GCC being 12.2. Probably also worth noting that GCC did a > 9.5 release in May this year as it went out of their support window. > A quick look suggests that RHEL 7 is at GCC 4.8 (so running into trouble > anyway), RHEL 8 at 8.x, SLES looks like it makes newer compilers > available even for the old releases (eg, there's GCCs up to 10 available > for SLES 12 AFAICT). Ubuntu 16.04 does seem to use GCC 5 but it's on > extended security support at this point, their 18.04 is at GCC 7.4 from > the looks of it. The thing is, do we really want to be catering to this? In the first place, enterprise users and enterprise kernels are already doing freaky things, forked to no end. But moreover, do we actually want to support people building the kernel with a different compiler than most of us develop with? In a basic way, that just seems like a recipe for disaster. It's also easy, nearly trivial, to download toolchains. Arnd provides a bunch with his crosstool. "Must use a toolchain from your distro" is a requirement that affects nobody. So I just think we're thinking about this all wrong. It doesn't matter what's available on the distros. It matters what the most reasonable compiler to develop with is, first of all. And secondly, it matters that this compiler is easily available for users to download in a variety of settings need-be. And I'm pretty sure this latter part is already the case. Plus, as I mentioned earlier, this is already the model we're going toward by virtue of Rust (and to a small extent, Clang) invading. Jason