Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp692015yba; Wed, 15 May 2019 08:20:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqy22pEc3lXxg7V7oNCqC6NK3AFEdNyKsR7nIJ7m3mmatvIsMF0pJcIF490HIM4MmitUYAzo X-Received: by 2002:a63:7:: with SMTP id 7mr45349091pga.108.1557933635320; Wed, 15 May 2019 08:20:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557933635; cv=none; d=google.com; s=arc-20160816; b=KiPSZikLn6x7IUql6KZR8suXhprAr+k9Xw39F+0Ty76Vp8TjXWKEFleLjmTPFNQx0x F7OkEWNcGLpLidn2Okgm5ULljwEiDyM1LlNixGK/w35iIYqgA3rrYqbG0HNY3Nr5ckn8 7Jo3p0xrJEjn7mZ/G0BF3StN/THuADl1n9gE8UCX/gTi9j88/H5W9MBLQQwSX/i925nz MNHta4s2yt5ObsDcNbrECTtBocvbu6b0Z3+FvCyZXPrh/YV4nntWkDJtYLTP2Nr+eafY N5CSVGErodSUNaoBgKy/XdzwCm9hELhj+GujduwXhUxXb8KMheJHpMdKLlP6ysV7GiSb 9Gtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=NM9VRyfOyYbSMTlNiuGaoTagXW5rCfpwLLBk6IQ5CmY=; b=xvvfDZuIR5BJ0i0TrjJs5K3aGa0oEPCn0ZM7o6Pn7Vj4/UpEg13CzKSTBfirYIpJY3 pDgsBriXU4KnaYLTWW41njLP7IolTGllFXQRsHEQDSi8KCgwYVuT3bBDhZjhl3hnt0Ik ihkXgpv/ZqvdvRk9aSlzRAD6F/3YKH9YN5/G/9u2CE7xDg8XPyxgQjStKZ6NgEbS34Kn q92zKyIibpgfTcjSvRyETySTuPiwt+3El7vNLAB6CM7XqEpcaAIm03zIuN/pwJoMRyJi ef2ZieA3WGfDNvg1rYA+vc9/K3lvzgR4SarUMj8AmeA8Z2Jyk6AtRq2xJF19/HUtLLrC VH6g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l11si2025954plb.369.2019.05.15.08.20.20; Wed, 15 May 2019 08:20:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727871AbfEOPSz (ORCPT + 99 others); Wed, 15 May 2019 11:18:55 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51620 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726567AbfEOPSy (ORCPT ); Wed, 15 May 2019 11:18:54 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C13E830842A2; Wed, 15 May 2019 15:18:54 +0000 (UTC) Received: from treble (ovpn-123-166.rdu2.redhat.com [10.10.123.166]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4DBA75C1A3; Wed, 15 May 2019 15:18:53 +0000 (UTC) Date: Wed, 15 May 2019 10:18:50 -0500 From: Josh Poimboeuf To: Nathan Chancellor Cc: Peter Zijlstra , Nick Desaulniers , clang-built-linux@googlegroups.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] objtool: Allow AR to be overridden with HOSTAR Message-ID: <20190515151850.g2syltlev4fa7tud@treble> References: <20190514224047.28505-1-natechancellor@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190514224047.28505-1-natechancellor@gmail.com> User-Agent: NeoMutt/20180716 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.40]); Wed, 15 May 2019 15:18:54 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 14, 2019 at 03:40:47PM -0700, Nathan Chancellor wrote: > Currently, this Makefile hardcodes GNU ar, meaning that if it is not > available, there is no way to supply a different one and the build will > fail. > > $ make AR=llvm-ar CC=clang LD=ld.lld HOSTAR=llvm-ar HOSTCC=clang \ > HOSTLD=ld.lld HOSTLDFLAGS=-fuse-ld=lld defconfig modules_prepare > ... > AR /out/tools/objtool/libsubcmd.a > /bin/sh: 1: ar: not found > ... > > Follow the logic of HOST{CC,LD} and allow the user to specify a > different ar tool via HOSTAR (which is used elsewhere in other > tools/ Makefiles). > > Link: https://github.com/ClangBuiltLinux/linux/issues/481 > Signed-off-by: Nathan Chancellor Thanks Nathan. I'll send it along to the tip tree. -- Josh