Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1093711pxb; Thu, 4 Mar 2021 03:08:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJxGHPs8bdY8WioNc2A0plh1qHRmqXk05zBB3T70Ph7Zli2jtAOFIunOGpulOCACUTlVzdZ9 X-Received: by 2002:a05:6402:1d9b:: with SMTP id dk27mr3676534edb.209.1614856119456; Thu, 04 Mar 2021 03:08:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614856119; cv=none; d=google.com; s=arc-20160816; b=iDZZv3qQ4H7zdJgttxObUYGAZWD2Yqzag7YCiYtukerAFifFnXETsV10R/ylfh6oyx l/kVBdMUXaWLKv4ALhd8RdHwLEXEaOsfHKWeGc2AV2SyZop+6oqzeN9Fnov+rTkk8skt RCBQFftKtm5zNcIWUfaG3tyWcjX213hWdvXhdmbjXezvxaUS6bCJ9XnoI0H/Hko38XZt 2NzReJKQ5mwAp7jbn70id5JHRp9W8Nu5nsStwu3DWHR/jphtdC2t2ZiQKLcrSDx7gVtQ /0s9jhbGrDjV/FVkBXOnXsQux/KV2DTYTr71uUTyVh4sK+g535arJJh/a9ogI63blM/f qfeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:reply-to :in-reply-to:references:mime-version:dkim-signature; bh=qTLKl4WRx8k2U5ZCH5+kS1apZMNxgxTKeDKtO94gMy4=; b=mq0qyIuHyn4VGRInLMQ0Z9anRBvycl9pZMp4+ts9M94Z39qTBNg1VmnVvqlR9IOTPv YUWDeoQdoIzPEHTFo8YUyjkSV3vzGusXxBCFkG11G7EAaXa4U6Jijzp3VTEOihVfVYjm 16vMMnwKq9L40/8ZU8EymUyWnUuXvdkk0ttBD78Wduik/z8qoLbJaMQBbn41dfkRpKLh agIbtnU312mXEyPPBfOa2J6gKCZ4BkY/7OwEvV7nN/un7E5GF1YTOxKW0+cq85bK6eH6 Lt0cqe3BJgX+NMfSzQjifEwivBMsHVEcetn9sHJvF7YMbjdsNqipDag752XAPHPbEalM hY4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nHkmQZrZ; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c10si7333040edv.12.2021.03.04.03.08.16; Thu, 04 Mar 2021 03:08:39 -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=@gmail.com header.s=20161025 header.b=nHkmQZrZ; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1576116AbhCCRrW (ORCPT + 99 others); Wed, 3 Mar 2021 12:47:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1383601AbhCCOjc (ORCPT ); Wed, 3 Mar 2021 09:39:32 -0500 Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DFFFFC061788; Wed, 3 Mar 2021 06:23:12 -0800 (PST) Received: by mail-io1-xd30.google.com with SMTP id n132so14025003iod.0; Wed, 03 Mar 2021 06:23:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to:cc; bh=qTLKl4WRx8k2U5ZCH5+kS1apZMNxgxTKeDKtO94gMy4=; b=nHkmQZrZzdun+B9sIkH371xZnU8fAH1CfNG/niULY+7g6azuJ0S9yKmayfIX5x0dwD 2kJWdTCSVM0vMOMPhHbtaBgkcoTA6+eZBXXPeb94Cqg4gAqfMzoAXltcl21ZIquHhxbU tzkMKZV98QDj0J96lTQ16N54hygZ3cKPljpY05TJLSXwbcRR3GPVL0u2mFe6TVyAVeej Rklnp4xnTk1yGJOl6X9Ho30P5EPzxtiguCTY22rZBDYR5qiqD04retU0KJLgnLOKZbTj l5o4xwhp+QYFHIEoXv3Oe7aWtSIjCaYVDYjnZ4GvDU4bXJZ434pu76yy48wtvGEsMJkq Xw6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc; bh=qTLKl4WRx8k2U5ZCH5+kS1apZMNxgxTKeDKtO94gMy4=; b=EewK3Isge4UiZEjqe0aorapKD7kXA+eOHfSpfWWrHaNTIz8eZNaO48EP3JgvZQ00DK YOb19h2LJS/nyh2b4iHE6wviplRdvHYC5wAZP1v8tciMTQRIBsRWJPBVI/fEZZfhHJ+S 0QA57AozwEv4xDU+tA0lXF+FZTkjeWKznnNxowwIEb+NRSGDQUZnG/OfDOqLmiq2RUMG Fx/CgOto19OJHBXg2ghqdMw5uIQ83MbYkc0At7KID5CQuIqFIaPoTbqZZZMVUtUQz3jH FuVWhC/E7XSNX7gNFkqPHAqDE83G0odVOy/8irdHl3rftHUfigdOCNbaiGw72MR1AaxP 4aAg== X-Gm-Message-State: AOAM532nd2jIZoEYv/1jMNKg8f+/Kavalb3cqlpct+Ff+XilMuupOkN7 lNge8hBBSuBt177lEOBF7M1s3w+my7mESB8iirA= X-Received: by 2002:a02:9a0a:: with SMTP id b10mr8435021jal.132.1614781392157; Wed, 03 Mar 2021 06:23:12 -0800 (PST) MIME-Version: 1.0 References: <20210302210646.3044738-1-nathan@kernel.org> In-Reply-To: Reply-To: sedat.dilek@gmail.com From: Sedat Dilek Date: Wed, 3 Mar 2021 15:22:36 +0100 Message-ID: Subject: Re: [PATCH 1/2] Makefile: Remove '--gcc-toolchain' flag To: Nathan Chancellor Cc: Masahiro Yamada , Michal Marek , Nick Desaulniers , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Clang-Built-Linux ML , Behan Webster Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 3, 2021 at 4:25 AM Sedat Dilek wrote: > > On Tue, Mar 2, 2021 at 10:07 PM Nathan Chancellor wrote: > > > > This is not necessary anymore now that we specify '--prefix=', which > > tells clang exactly where to find the GNU cross tools. This has been > > verified with self compiled LLVM 10.0.1 and LLVM 13.0.0 as well as a > > distribution version of LLVM 11.1.0 without binutils in the LLVM > > toolchain locations. > > > > Signed-off-by: Nathan Chancellor > > [ CC Behan ] > > Hahaha, that is a change of a very early commit in times of the > LLVM/Clang Linux-kernel development. > So-to-say a historical change :-). > > I will try this patchset later with latest Linux -v5.12-rc1+ and my > custom patchset. > I tested these two patches in my build environment. So far no issues. NOTE: I have not tested the combo: Clang and GNU AS. Tested-by: Sedat Dilek # LLVM/Clang v13-git - Sedat - > > --- > > Makefile | 4 ---- > > 1 file changed, 4 deletions(-) > > > > diff --git a/Makefile b/Makefile > > index f9b54da2fca0..c20f0ad8be73 100644 > > --- a/Makefile > > +++ b/Makefile > > @@ -568,10 +568,6 @@ ifneq ($(CROSS_COMPILE),) > > CLANG_FLAGS += --target=$(notdir $(CROSS_COMPILE:%-=%)) > > GCC_TOOLCHAIN_DIR := $(dir $(shell which $(CROSS_COMPILE)elfedit)) > > CLANG_FLAGS += --prefix=$(GCC_TOOLCHAIN_DIR)$(notdir $(CROSS_COMPILE)) > > -GCC_TOOLCHAIN := $(realpath $(GCC_TOOLCHAIN_DIR)/..) > > -endif > > -ifneq ($(GCC_TOOLCHAIN),) > > -CLANG_FLAGS += --gcc-toolchain=$(GCC_TOOLCHAIN) > > endif > > ifneq ($(LLVM_IAS),1) > > CLANG_FLAGS += -no-integrated-as > > > > base-commit: 7a7fd0de4a9804299793e564a555a49c1fc924cb > > -- > > 2.31.0.rc0.75.gec125d1bc1 > > > > -- > > You received this message because you are subscribed to the Google Groups "Clang Built Linux" group. > > To unsubscribe from this group and stop receiving emails from it, send an email to clang-built-linux+unsubscribe@googlegroups.com. > > To view this discussion on the web visit https://groups.google.com/d/msgid/clang-built-linux/20210302210646.3044738-1-nathan%40kernel.org.