Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp981130pxb; Wed, 3 Mar 2021 23:23:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJx5qpYdfSUIXgv9yy1K4OKzzgNMUHn3IoQURCIxTA1KfU0/ztkCf8TaH7IrdelZNNCXjWYa X-Received: by 2002:a17:906:1ecc:: with SMTP id m12mr2781209ejj.4.1614842589073; Wed, 03 Mar 2021 23:23:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614842589; cv=none; d=google.com; s=arc-20160816; b=HF5N/uRDqkNb5WiNs8GZu2HdcYoHWu6xffXI6ROBD5ENu4oXkvAEiEZkF4gE4N9I1k w6kugCc9CS7BPOEP0AK3nyvhZQuh3ak5yF2duTHOW+QIbwpOz0HqbOItWUt7Pr1DknI3 wYmgGyhaCMB2qk2dWZER7gXQPHVul7wmmUMIgUtDuglqwDRR8K4KGFcW/X14jV7KfSub DVO30WQ0Gtz5yQudNh3n8CdHgmTtZtP1+JANZDkxsbyjsRSfflUjmn1O7fM1J+EKbYI0 27REo7UFZt8MMizu6fEaNzsO6URDuOSwGmpah7Y04rUYnuSPjHaoDOnKxCPZBgx5iJU6 /9ag== 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=VSzmNjYTy01rJCfITYLeDvSot7XkofY2f8pmB6oIiPU=; b=uj/56l0OGnJt3Q+KtI9u2U4+eowvYhIhrzRKViAfMRYZlJdfwfqEvhfaZGwu1uTaJA rELBgXCFxMs3HpaiCjG9YM4GRUGCKi0q3PNVC6+x6QHLA0iEr6nPwtwWEMxsQY+CC+CO UTZZ3znDaAbe81+ExChIGOWwfUAQ22Gbz/lIIsuZizbALjiOiKvVHIiTpusGSrZ7aHHr loOSul9hr1wbkuQF+z4W/3OKIbHETbaQ8YfYO/vm5DFepP2Ba110C6N5M9/oeFdOv4fa 52IBjmM42hi8G7hDGAQJd2jnxe+Ofm9/3QUODsYL1gQIUG++DF8jCYPz+rQ69uwn+RJB e5Aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=v37pp5Ke; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o11si17129184eju.241.2021.03.03.23.22.46; Wed, 03 Mar 2021 23:23:09 -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=@google.com header.s=20161025 header.b=v37pp5Ke; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1384516AbhCBWlK (ORCPT + 99 others); Tue, 2 Mar 2021 17:41:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2359807AbhCBWDh (ORCPT ); Tue, 2 Mar 2021 17:03:37 -0500 Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D34BC061756 for ; Tue, 2 Mar 2021 14:02:57 -0800 (PST) Received: by mail-pl1-x62c.google.com with SMTP id c16so3363200ply.0 for ; Tue, 02 Mar 2021 14:02:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=VSzmNjYTy01rJCfITYLeDvSot7XkofY2f8pmB6oIiPU=; b=v37pp5Ker1zCTvHH+3OnIxFtYbk5M3rLpiFL+FTfZJ5mpMChJzIUg9M320fc4moIzs kpSj8bAmqKmbeth9zC67P+0SqwGAGippvQLKIN/fDhxY35Q8lrdxFABYWGXoEV+xYQ+1 O2n6FbBHXRNDPKlU8icEXpQCYVy3TRjdB4TBG23vdkYWIC2v7q8BsvG5ExlX97G6dupj jXJKfhRpFJwJCzwg5qz/P/vLfr18awjf14gftsfr0VB7iUL+RsnggfP3mBd6SvQYFQse 9YHaBYt3wiFgZpxsEnsFjddP0V8ydTQ/MKvW3+Nb4tQlir7nYoouuRhW6MtmYnrs48Sp u2fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=VSzmNjYTy01rJCfITYLeDvSot7XkofY2f8pmB6oIiPU=; b=AxiOn2DVpjU0J20eBQrQ7KsnDA9lC2Qf4KCYUZstYKUSPcEIfVWBKf35ZDKtADJDnM Le0SeRFEHTXv76stDJ1SnTMApo/eAo3l20AJubD1BlO0vmEkiGIza69EX993yr/YW5W0 rBToS6d+C28LUlHfEhO92bUwPjbi4neh6vsx2RbPhAzYOvszyMIqH/wp1f0E/RglqMZR hBrhat38A26rdFf1ed+K66vgNyAvptM7R3PPguwpeXYcMhFHDrHFlQy2W/gmwjUQiDAy r9E8qxoUYZ5YFLCFAGrcP2x314l0fILRMMTZKqTN3EXr6Wkv6fzjRgNnjlUIoX7KrK71 udAg== X-Gm-Message-State: AOAM531uEDtQR6coMl8+jbEnZlqqhGR5hwl1doaNLjxglwCwLRHckggE FydgpNX5swTeSlT4LSJIOU3hZA== X-Received: by 2002:a17:90a:1b08:: with SMTP id q8mr6229310pjq.203.1614722576641; Tue, 02 Mar 2021 14:02:56 -0800 (PST) Received: from google.com ([2620:15c:2ce:0:fce5:88bc:1857:36b4]) by smtp.gmail.com with ESMTPSA id g6sm22462672pfi.15.2021.03.02.14.02.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Mar 2021 14:02:56 -0800 (PST) Date: Tue, 2 Mar 2021 14:02:52 -0800 From: Fangrui Song To: Nathan Chancellor Cc: Masahiro Yamada , Michal Marek , Nick Desaulniers , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com Subject: Re: [PATCH 2/2] Makefile: Only specify '--prefix=' when building with clang + GNU as Message-ID: <20210302220252.ulvlsfyp4ordwrky@google.com> References: <20210302210646.3044738-1-nathan@kernel.org> <20210302210646.3044738-2-nathan@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20210302210646.3044738-2-nathan@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-03-02, Nathan Chancellor wrote: >When building with LLVM_IAS=1, there is no point to specifying >'--prefix=' because that flag is only used to find the cross assembler, >which is clang itself when building with LLVM_IAS=1. All of the other >tools are invoked directly from PATH or a full path specified via the >command line, which does not depend on the value of '--prefix='. > >Sharing commands to reproduce issues becomes a little bit easier without >a '--prefix=' value because that '--prefix=' value is specific to a >user's machine due to it being an absolute path. > >Signed-off-by: Nathan Chancellor Reviewed-by: Fangrui Song clang can spawn GNU as (if -f?no-integrated-as is specified) and GNU objcopy (-f?no-integrated-as and -gsplit-dwarf and -g[123]). With LLVM_IAS=1, these cases are ruled out.