Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1349573rwi; Thu, 13 Oct 2022 12:23:29 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7B0vHkK747G590YZqzRqOcwIXOwdWsxfu7a4DYChWXsKv00/D0mqPGarjSmiZZ9X5S9AIP X-Received: by 2002:a17:90b:3ec6:b0:20a:eb6b:c832 with SMTP id rm6-20020a17090b3ec600b0020aeb6bc832mr12838644pjb.22.1665689008956; Thu, 13 Oct 2022 12:23:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665689008; cv=none; d=google.com; s=arc-20160816; b=lzlkQSM5RuQNGSYhbTkN+fzOuIUoKWjMBt5AiRdSl6LTzvPaDwimdjF+EeaErA33+H 4siC5bWliKFeXtMUQOOqn9yyQYcRJCGWN72VgEJSg74oWGsKI9U8McATv+SJWzteBXvA LkVjsuz86JWRUt1MgiXGh2sx6JJ7yprNjTy4VPpfA91JizfI0Kq9EFG3vO9iqCMNnvl3 rQiroE5lXBgYtG/NRpXhRlCBhhHeeTurzjuZ6d7LXBK4uh6kYgjTBccyVGceJr3+h0KU Y9zv/7VifRLw17ER051n91Fxg/VjaZRSbtDr7z9xYLWADI5YzPOwJN+pFqH9bygm+5Ak 8eeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=Ji+NyK6PnYbavkYjDFsnOf76oGImlagiYlW5om5fOkg=; b=EUiicvqB0LdmpfQnWs8dp+ARfumjTc8NAxaaLPweWZTkD0lAoGNZp9I55DUSbG/DyG c/DSlyzmgKK8gkq6o29ziaLOjBU1rjGGhp1tlSfJ40phXTXxOrBCbCseYXlpJ9bb/eZR IaDqgb80YzYDYMNPdeK06WjgMnBpRe+ob1hRUOW7sl6Ifi8Dg4MtvFRRAnWxayAByd37 dtJR0JjJ8XvMPQSGbxLY3jUrRnr6zbgIaLl2X9ebINLOg93+0ma/QeDjOFj5EMHYdD64 WUZbjEgiK9aQKnJWli4Q8BqFUG0KHF47efzZRsjjORG0ScWiFtBVVHc4yWYXoTHWnmPk Vlqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Le56xPjT; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n15-20020a170902d2cf00b0018225d6e68bsi494889plc.539.2022.10.13.12.23.15; Thu, 13 Oct 2022 12:23:28 -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=@redhat.com header.s=mimecast20190719 header.b=Le56xPjT; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232134AbiJMSmj (ORCPT + 99 others); Thu, 13 Oct 2022 14:42:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229504AbiJMSmW (ORCPT ); Thu, 13 Oct 2022 14:42:22 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12D38B6026 for ; Thu, 13 Oct 2022 11:40:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1665686360; 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=Ji+NyK6PnYbavkYjDFsnOf76oGImlagiYlW5om5fOkg=; b=Le56xPjTNc25BHyHgjI38C+RguFasI5URT+KV9mJaHGxFZ/a3Uf6yjgXFgoXGPCLYmP907 AzYSkBQ3pjt/dV2DMZAgRwYe/xTW8UYGnqr9YuLr7TtuEkzujMQ40b5qbDeSWspsw2DZRT M3Y38kgExUf/pi1UaxgAFCFEdMlLWOs= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-640-pgkOP4lWMnq5PGbJSSkoLg-1; Thu, 13 Oct 2022 14:39:17 -0400 X-MC-Unique: pgkOP4lWMnq5PGbJSSkoLg-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 1466D185A7A8; Thu, 13 Oct 2022 18:39:17 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.2.16.73]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9E0AA40F16A; Thu, 13 Oct 2022 18:39:15 +0000 (UTC) From: Florian Weimer To: "Jason A. Donenfeld" Cc: Mark Brown , linux-toolchains@vger.kernel.org, Linux Kbuild mailing list , LKML Subject: Re: gcc 5 & 6 & others already out of date? References: Date: Thu, 13 Oct 2022 20:39:13 +0200 In-Reply-To: (Jason A. Donenfeld's message of "Thu, 13 Oct 2022 09:23:36 -0600") Message-ID: <87mt9zwotq.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 * Jason A. Donenfeld: > 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. But not everything will be built with the cross-compiler. For the kernel build tools and other userspace components, you'll need a native toolchain that can build programs that can actually run on the build host. At the very least, this means that the right search paths have to be baked into the tools, and I'm not sure this will happen automatically for popular distributions. (I only know that it wouldn't happen for glibc, but you can't really rebuild that.) This seems unexplored territory to me. The existence of working cross-tools doesn't tell us much how native builds and integration with installed native libraries will play out in practice. There's also going to be much greater variance of compilers people actually use if everyone just picks an upstream release branch snapshot at some point in time. None of this may be sufficient reason to support old toolchains. But if you require more recent versions, you really should tell people to upgrade to new distributions, or use newer toolchain versions specifically built for the distribution by their distribution vendor. And not to try to build their own toolchain. Thanks, Florian