Received: by 2002:a17:90b:8d0:0:0:0:0 with SMTP id ds16csp4880231pjb; Mon, 27 Jul 2020 07:28:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxCS5QF8E0t4DtpPYK00kdEqSOX9ihEdlE2cUhqi5CqnKQXERfgYR+WINj/jDUHSexbCPEh X-Received: by 2002:a05:6402:508:: with SMTP id m8mr5883717edv.279.1595860120224; Mon, 27 Jul 2020 07:28:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595860120; cv=none; d=google.com; s=arc-20160816; b=a8xjsmz4iAgRY4GgYcdU4DkysNd6ZLnk2IznScL+d+BSNu7gwpcou6Iw5kVJIlEhmZ VarEgaO3jozK2ZXYhAgHzbc/zJSplFBOx+5D7ngjBR1ol6w4WDvyvcUvz0P+4bZegYyP ypazIq0hxO+DPHykxu0zNQZ9J5pfsowTrmPoWinM8kVbw79m3UG/li7W5Xl/4DhoxwqT /QNC1BTUL6UWrGsK/2fDIk62K6r2VEKO4L4dgTgiUcc8zeBFG2lONM/HIQlcc8snJW0l uX96gp/9NzQQIQuxXBPxRJfFB3vR+33Kbpy+lXKpng/vcEq93ahb4GIRWSFsvL4RUtsu ewhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=p8FN9Ze18BOJQMU6+JITdJ5fcxcw0Eh6xLPeFBL3ZL4=; b=UdyUQ6368V/0h0Z/4u7bJba1JQ/fJqFgPc37DqnfsXr9slnQWlmDv9BNlrGLbwSFnL FsPeJCFpSnL/rL+uhugUuvUDNF7i79PihypBcRXQc7Wx+eNI4WQJV1mPCD8v6lTG/MH8 jYkq+Ju5zX3JO/RSZEgOkEYnIFu8SLjDtxSKKN7uVGH5tuQamF93SKFvTrmZ4OjHj1ld GX7Ld0SGG0G7rKkxVXwdWCdN1Gjy4mGv/NhocT3HWiCM+DOOUnepylKwAAfKPVWb7H3E w7yJpsgUVlKT+QcyoMfS0W6XWRbdx8K4KvmoqTyeFukntxlZAJVnl+fAec476fMF7/YL dBvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=PZ86PCtS; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y19si5431355ejm.324.2020.07.27.07.28.18; Mon, 27 Jul 2020 07:28:40 -0700 (PDT) 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=@kernel.org header.s=default header.b=PZ86PCtS; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731939AbgG0OZ4 (ORCPT + 99 others); Mon, 27 Jul 2020 10:25:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:56056 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732521AbgG0OZy (ORCPT ); Mon, 27 Jul 2020 10:25:54 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BD2F52083E; Mon, 27 Jul 2020 14:25:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595859954; bh=iw7b5Ga/Zabe3ME/O2Un0NjM35mZgksvInAywE3Qzek=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PZ86PCtSAl9sMi0wyIor5pSjOmCnPqOvSY9Tl1y/DoQp6eW0W7cK73c+1KECxx4kW XqCYiqZZGJ8FgEyF6T5CyDd7frQdUPZWIn7fYTjg0v2g1xdklEM0C9lDt88omXNLSA 46aYOHBdXP1umYGk4WPmPimhfrNsRQGmjSco6BQQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nathan Chancellor , Will Deacon Subject: [PATCH 5.7 169/179] arm64: vdso32: Fix --prefix= value for newer versions of clang Date: Mon, 27 Jul 2020 16:05:44 +0200 Message-Id: <20200727134940.893164221@linuxfoundation.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200727134932.659499757@linuxfoundation.org> References: <20200727134932.659499757@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nathan Chancellor commit 7b7891c7bdfd61fc9ed6747a0a05efe2394dddc6 upstream. Newer versions of clang only look for $(COMPAT_GCC_TOOLCHAIN_DIR)as [1], rather than $(COMPAT_GCC_TOOLCHAIN_DIR)$(CROSS_COMPILE_COMPAT)as, resulting in the following build error: $ make -skj"$(nproc)" ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- \ CROSS_COMPILE_COMPAT=arm-linux-gnueabi- LLVM=1 O=out/aarch64 distclean \ defconfig arch/arm64/kernel/vdso32/ ... /home/nathan/cbl/toolchains/llvm-binutils/bin/as: unrecognized option '-EL' clang-12: error: assembler command failed with exit code 1 (use -v to see invocation) make[3]: *** [arch/arm64/kernel/vdso32/Makefile:181: arch/arm64/kernel/vdso32/note.o] Error 1 ... Adding the value of CROSS_COMPILE_COMPAT (adding notdir to account for a full path for CROSS_COMPILE_COMPAT) fixes this issue, which matches the solution done for the main Makefile [2]. [1]: https://github.com/llvm/llvm-project/commit/3452a0d8c17f7166f479706b293caf6ac76ffd90 [2]: https://lore.kernel.org/lkml/20200721173125.1273884-1-maskray@google.com/ Signed-off-by: Nathan Chancellor Cc: stable@vger.kernel.org Link: https://github.com/ClangBuiltLinux/linux/issues/1099 Link: https://lore.kernel.org/r/20200723041509.400450-1-natechancellor@gmail.com Signed-off-by: Will Deacon Signed-off-by: Greg Kroah-Hartman --- arch/arm64/kernel/vdso32/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/arm64/kernel/vdso32/Makefile +++ b/arch/arm64/kernel/vdso32/Makefile @@ -14,7 +14,7 @@ COMPAT_GCC_TOOLCHAIN_DIR := $(dir $(shel COMPAT_GCC_TOOLCHAIN := $(realpath $(COMPAT_GCC_TOOLCHAIN_DIR)/..) CC_COMPAT_CLANG_FLAGS := --target=$(notdir $(CROSS_COMPILE_COMPAT:%-=%)) -CC_COMPAT_CLANG_FLAGS += --prefix=$(COMPAT_GCC_TOOLCHAIN_DIR) +CC_COMPAT_CLANG_FLAGS += --prefix=$(COMPAT_GCC_TOOLCHAIN_DIR)$(notdir $(CROSS_COMPILE_COMPAT)) CC_COMPAT_CLANG_FLAGS += -no-integrated-as -Qunused-arguments ifneq ($(COMPAT_GCC_TOOLCHAIN),) CC_COMPAT_CLANG_FLAGS += --gcc-toolchain=$(COMPAT_GCC_TOOLCHAIN)