[PATCH 1/1] powerpc: Detect broken or mismatched toolchains

Scott Wood oss at buserror.net
Tue Feb 23 13:05:01 AEDT 2016


On Mon, 2016-02-22 at 16:13 +1100, Sam Bobroff wrote:
> It can currently be difficult to diagnose a build that fails due to
> the compiler, linker or other parts of the toolchain being unable to
> build binaries of the type required by the kernel config. For example
> using a little endian toolchain to build a big endian kernel may
> produce:
> 
> as: unrecognized option '-maltivec'
> 
> This patch adds a basic compile test and error message to
> arch/powerpc/Makefile so that the above error becomes:
> 
> *** Sorry, your toolchain seems to be broken or incorrect. ***
> Make sure it supports your kernel configuration (ppc64).
> 
> Signed-off-by: Sam Bobroff <sam.bobroff at au1.ibm.com>
> ---

How is this more useful than getting to actually see the way in which the
toolchain (or the CFLAGS) is broken?

-Scott



More information about the Linuxppc-dev mailing list