Re: [linux-next:master 1341/1811] cc1: error: unrecognized command line option "-mstack-alignment=8"

From: Matthias Kaehlcke
Date: Thu Jul 20 2017 - 12:37:58 EST


On Thu, Jul 20, 2017 at 1:29 AM, Ingo Molnar <mingo@xxxxxxxxxx> wrote:
>
> * kbuild test robot <fengguang.wu@xxxxxxxxx> wrote:
>
>> tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
>> head: c981f0b3fb08ee58aacb208fe7f45628af420bba
>> commit: 79e6b917e69a34d45e83e72f1e9bb7487d5f5832 [1341/1811] x86/build: Fix stack alignment for CLang
>> config: x86_64-randconfig-a0-07200731 (attached as .config)
>> compiler: gcc-4.4 (Debian 4.4.7-8) 4.4.7
>> reproduce:
>> git checkout 79e6b917e69a34d45e83e72f1e9bb7487d5f5832
>> # save the attached .config to linux build tree
>> make ARCH=x86_64
>>
>> All errors (new ones prefixed by >>):
>>
>> arch/x86/Makefile:172: Disabling CONFIG_CC_OPTIMIZE_FOR_SIZE. Your compiler does not have -mfentry so you cannot optimize for size with CONFIG_FUNCTION_GRAPH_TRACER.
>> >> cc1: error: unrecognized command line option "-mstack-alignment=8"
>> make[2]: *** [kernel/bounds.s] Error 1
>> make[2]: Target '__build' not remade because of errors.
>> make[1]: *** [prepare0] Error 2
>> make[1]: Target 'prepare' not remade because of errors.
>> make: *** [sub-make] Error 2
>
> Ok, I've removed this commit from x86/urgent for now, pending the resolution of
> this build bug.

Sorry for breaking the build, I will look for a better solution.

Matthias