Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp310913pxm; Wed, 2 Mar 2022 16:04:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJzKLupj8gVzqriNudaT/rLZrBRz1BPANiH1iyqdNEYZR0G3cmhAc6MnwefFJ4wLC1QhRnOO X-Received: by 2002:a63:3d5:0:b0:373:6b1:8e65 with SMTP id 204-20020a6303d5000000b0037306b18e65mr27776395pgd.408.1646265886880; Wed, 02 Mar 2022 16:04:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646265886; cv=none; d=google.com; s=arc-20160816; b=JPi6JzbpzM/iIhmWrpfQ/eHeyLu2V5mU/+wbfe4nAen2x0nAOxb4AyBi0cQTfDA5c3 FcqfzLFZltv09cEsWm02dE1Ze+vfDgpTSwc9GyYCBr7vNkHFoBjkRitbLcLGjaXcHlMu JaoPlawtfLW6RjgBPpq0dJpQpihsVYs2arQOfuQvgFdEn1v2a4QBdLqi8phdbwfsa76C NQf3fI0I3WRalhsfnZI/u0/3cOA4A/WI+KFbAOz5mXc9/tMLX/92hqTOF/d2z76VbC3J dUaUAJ+csfkFUutbbbX+BExJNGpL5Kb+oIV4cwSq5MROOroqp6h0zipINhUtqPskRTn6 ytGQ== 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=x9QK2yVKnHXX9jQ390KTQ2jtnuQQLQpf+Jo2tSG+1rU=; b=P4Oh2qO1d6RzFAGETWDgYU0Pd/61N+9vSQvWsyD6emxdCqDtx3BGDkk0XbpJ9Gpzie o5+evv1jcvlgdk18POD8ysqkgIbjcXYy32rJoaYqEED1F4AwyNU0uoRoz+fsgtt2bBZA HkJqbrAT3Lq0lLJFfyBFQ4PPit+uzRQ/YdLz58i2c94UFXEh5j2/5C0VRlq1Ta8Pz7+N 4RAhRdePzLfhPZmTYbJc6zZPAj5ft8++bKGe+SyGgpIJZmIrB4wZIf+7BiqE24mpiA6y sTycDJBOgm6KfwoT2Ymh4+XDYEhnSwoZjzJSpiteIC4wXou6dQJpv8cVzC9dG4WGK44x Cvow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=K0w3rmEN; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id a13-20020a62d40d000000b004f112080e0csi597514pfh.58.2022.03.02.16.04.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Mar 2022 16:04:46 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=K0w3rmEN; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D1E731A8057; Wed, 2 Mar 2022 15:22:17 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238778AbiCBAsW (ORCPT + 99 others); Tue, 1 Mar 2022 19:48:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238769AbiCBAsU (ORCPT ); Tue, 1 Mar 2022 19:48:20 -0500 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B87A310FE7 for ; Tue, 1 Mar 2022 16:47:37 -0800 (PST) Received: by mail-pj1-x102e.google.com with SMTP id q8-20020a17090a178800b001bc299b8de1so355722pja.1 for ; Tue, 01 Mar 2022 16:47:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=x9QK2yVKnHXX9jQ390KTQ2jtnuQQLQpf+Jo2tSG+1rU=; b=K0w3rmENKCFKu/kVw1y4oxTkcApN/P/9sr5+yrue16Serc2l/M80n7D1Ab67znYt03 evBC76oc18NVyOSdwcqBLbwG8MIcA49FhAkY1cr5vkoyIc/7/XaVuMu3KzGBBEoYUeb+ ujGaHlK3mH3whXfpwJK0gpohpnNNHsZi0afT8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=x9QK2yVKnHXX9jQ390KTQ2jtnuQQLQpf+Jo2tSG+1rU=; b=vms/S9L48K+qZ0qRo608AScMlR7+fE5wchFXv+QKvWiLQamZ//mjNjyWcOX++Jtrej bpx+SmJQPj0qASuCl6Gbg/F4Co0xWTECBmftdlN0PujQmun6bD0b+AB/1w9uw+pc8ZbS yp1ddFfgl5IsdcLxAQgSXVuBBV07QHwlk9MNEKVDSK8++Vvnktq0qsuLiMmoZOTk4wXn 0ofGEz+CD/FN6DM3BWW+jnoZ0+6/YOZnZ2Z0PGYwofiF+oMyTxotIPDXmyJqoBB5Jufb eVKlHHbPAqcirr4K/WHy6n2/b66UUx7/IQ8BiwA6JMd5OqD8V4c85iQpQjX8F1BJjI0s /FYQ== X-Gm-Message-State: AOAM533bPu2cmNdMnfhXbjf8L3I7b3XQOjf9jl2gJSeyXyPJH14h6+l1 unKhx0IjCOKL5oqH4oNvpvgPqQ== X-Received: by 2002:a17:903:1c1:b0:14f:dad3:e7dd with SMTP id e1-20020a17090301c100b0014fdad3e7ddmr27754507plh.130.1646182057252; Tue, 01 Mar 2022 16:47:37 -0800 (PST) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id h12-20020a056a00218c00b004c3a2450acasm19634414pfi.147.2022.03.01.16.47.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Mar 2022 16:47:36 -0800 (PST) Date: Tue, 1 Mar 2022 16:47:36 -0800 From: Kees Cook To: Nick Desaulniers Cc: Peter Zijlstra , x86@kernel.org, joao@overdrivepizza.com, hjl.tools@gmail.com, jpoimboe@redhat.com, andrew.cooper3@citrix.com, linux-kernel@vger.kernel.org, samitolvanen@google.com, mark.rutland@arm.com, alyssa.milburn@intel.com, mbenes@suse.cz, rostedt@goodmis.org, mhiramat@kernel.org, alexei.starovoitov@gmail.com, Masahiro Yamada , Linux Kbuild mailing list , llvm@lists.linux.dev, Nathan Chancellor Subject: Re: [PATCH v2 01/39] kbuild: Fix clang build Message-ID: <202203011636.40D2F83@keescook> References: <20220224145138.952963315@infradead.org> <20220224151322.072632223@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE 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 On Tue, Mar 01, 2022 at 01:16:04PM -0800, Nick Desaulniers wrote: > Also, Kees mentions this is an issue for testing multiple different > versions of gcc, too. There perhaps is a way to simplify the builds > for BOTH toolchains; i.e. a yet-to-be-created shared variable denoting > the suffix for binaries? The primary pain point seems to be Debian's > suffixing scheme; it will suffix GCC, clang, and lld, but not GNU > binutils IIUC. Right. Though I think auto-detection still makes sense. If I do: make CC=clang-12 LLVM=1 it'd be nice if it also used ld.lld-12. > [...] > Just curious, what prefixes have you observed in the wild? For me, where ever I built clang, and "/usr/bin" -- Kees Cook