[PATCH] powerpc/Makefiles: Fix clang/llvm build
Michael Ellerman
mpe at ellerman.id.au
Tue Aug 21 15:18:15 AEST 2018
Anton Blanchard <anton at ozlabs.org> writes:
> From: Anton Blanchard <anton at samba.org>
>
> Commit 15a3204d24a3 ("powerpc/64s: Set assembler machine type to POWER4")
> passes -mpower4 to the assembler. We have more recent instructions in our
> assembly files, but gas permits them. The clang/llvm integrated assembler
> is more strict, and we get a build failure.
>
> Fix this by calling the assembler with -mcpu=power8
This breaks GCC 4.6.3 at least, which we still support:
Assembler messages:
Error: invalid switch -mpower8
Error: unrecognized option -mpower8
../scripts/mod/empty.c:1:0: fatal error: error closing -: Broken pipe
cheers
More information about the Linuxppc-dev
mailing list