From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C42E272 for ; Wed, 20 Oct 2021 00:50:15 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id 401A960F44; Wed, 20 Oct 2021 00:50:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634691015; bh=cOeWhoeUDvU0/o6OPXU3xhOyMuNbiH62/GnL+jUSlTA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jX+KFrUb0Q0KEijK4YJyHG0XsyFnXr5tT1K8hXsuXR203vHOOVwNPpM5xTOJsW0AY zDbhZqK8IxnwzzuC4uI/v0kZPGZlGlgKTLlCosHnl8U+VN8IxTw6tQF2D+RmGx/q6I qcThK0l/yq6r/klsqeNRpzLDMYliM4D4JK2GK86wY3kCVv6M9CYAJGGa9wVgHnRXvJ oQyoCDs7BxtKxsW4M4bgX1UPURLg7WXVddWFZP/YGchHYkIyVUjf1aXIQZUmYCZ5lW US3q+VV7lqP1ZmcPyL6ktyXC4pcPvPXrh9hBC7MfqMZ2qYOxi2jzBQH98uvQZqyKH0 R0CzM5BGB4OCQ== Date: Tue, 19 Oct 2021 17:50:09 -0700 From: Nathan Chancellor To: Nick Desaulniers Cc: Catalin Marinas , Will Deacon , llvm@lists.linux.dev, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Vincenzo Frascino , Lucas Henneman , Masahiro Yamada Subject: Re: [PATCH v2 3/4] arm64: vdso32: suppress error message for 'make mrproper' Message-ID: References: <20211019223646.1146945-1-ndesaulniers@google.com> <20211019223646.1146945-4-ndesaulniers@google.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211019223646.1146945-4-ndesaulniers@google.com> On Tue, Oct 19, 2021 at 03:36:45PM -0700, Nick Desaulniers wrote: > When running the following command without arm-linux-gnueabi-gcc in > one's $PATH, the following warning is observed: > > $ ARCH=arm64 CROSS_COMPILE_COMPAT=arm-linux-gnueabi- make -j72 LLVM=1 mrproper > make[1]: arm-linux-gnueabi-gcc: No such file or directory > > This is because KCONFIG is not run for mrproper, so CONFIG_CC_IS_CLANG > is not set, and we end up eagerly evaluating various variables that try > to invoke CC_COMPAT. > > This is a similar problem to what was observed in > commit dc960bfeedb0 ("h8300: suppress error messages for 'make clean'") > > Reported-by: Lucas Henneman > Suggested-by: Masahiro Yamada > Signed-off-by: Nick Desaulniers Reviewed-by: Nathan Chancellor Tested-by: Nathan Chancellor > --- > Changes v1 -> v2: > * Change to suppressing via redirecting stderr to /dev/null, as per > Masahiro. > * Add Masahiro's SB tag. > * Cite dc960bfeedb0. > > arch/arm64/kernel/vdso32/Makefile | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/arch/arm64/kernel/vdso32/Makefile b/arch/arm64/kernel/vdso32/Makefile > index 1407516e041e..e478cebb9891 100644 > --- a/arch/arm64/kernel/vdso32/Makefile > +++ b/arch/arm64/kernel/vdso32/Makefile > @@ -38,7 +38,8 @@ cc32-disable-warning = $(call try-run,\ > # As a result we set our own flags here. > > # KBUILD_CPPFLAGS and NOSTDINC_FLAGS from top-level Makefile > -VDSO_CPPFLAGS := -DBUILD_VDSO -D__KERNEL__ -nostdinc -isystem $(shell $(CC_COMPAT) -print-file-name=include) > +VDSO_CPPFLAGS := -DBUILD_VDSO -D__KERNEL__ -nostdinc > +VDSO_CPPFLAGS += -isystem $(shell $(CC_COMPAT) -print-file-name=include 2>/dev/null) > VDSO_CPPFLAGS += $(LINUXINCLUDE) > > # Common C and assembly flags > -- > 2.33.0.1079.g6e70778dc9-goog > >