Return-Path: Date: Thu, 29 Nov 2018 11:27:19 +0100 From: Greg Kroah-Hartman To: Nathan Chancellor Cc: Sasha Levin , stable@vger.kernel.org, linux-kernel@vger.kernel.org, Nick Desaulniers , Stefan Agner , Masahiro Yamada Subject: Re: [PATCH 4.14] kbuild: allow to use GCC toolchain not in Clang search path Message-ID: <20181129102719.GC20297@kroah.com> References: <20181129053511.8016-1-natechancellor@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181129053511.8016-1-natechancellor@gmail.com> List-ID: On Wed, Nov 28, 2018 at 10:35:12PM -0700, Nathan Chancellor wrote: > From: Stefan Agner > > commit ef8c4ed9db80261f397f0c0bf723684601ae3b52 upstream. > > When using a GCC cross toolchain which is not in a compiled in > Clang search path, Clang reverts to the system assembler and > linker. This leads to assembler or linker errors, depending on > which tool is first used for a given architecture. > > It seems that Clang is not searching $PATH for a matching > assembler or linker. > > Make sure that Clang picks up the correct assembler or linker by > passing the cross compilers bin directory as search path. > > This allows to use Clang provided by distributions with GCC > toolchains not in /usr/bin. > > Link: https://github.com/ClangBuiltLinux/linux/issues/78 > Signed-off-by: Stefan Agner > Reviewed-and-tested-by: Nick Desaulniers > Signed-off-by: Masahiro Yamada > [nc: Adjust context] > Signed-off-by: Nathan Chancellor > --- > Makefile | 8 +++++--- > 1 file changed, 5 insertions(+), 3 deletions(-) We also need this for 4.9, right? thanks, greg k-h