[BUG] Build error due -fstack-protector-strong not supported by compiler

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

When building latest Torvalds tree (HEAD d158fc7f) on a x86_64 machine
using the attached defconfig I got the following build error:

/home/pc12/linux/arch/x86/Makefile:118: stack-protector enabled but
compiler support broken
Makefile:614: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG:
-fstack-protector-strong not supported by compiler

Makefile:614: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG:
-fstack-protector-strong not supported by compiler
make[1]: No se hace nada para <<all>>.
make[1]: No se hace nada para <<relocs>>.
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  CC      kernel/bounds.s
cc1: error: the command line option is not recognized '-fstack-protector-strong'
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2

I had already reported the bug on bugzilla [0] but I'm also reporting
here for completeness.

Bisecting this break was introduced on commit 19952a92
("stackprotector: Unify the HAVE_CC_STACKPROTECTOR logic between
architectures")

I don't know if this problem is with the above commit or with my
compiler (gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3)

[0]: https://bugzilla.kernel.org/show_bug.cgi?id=70951

-- 

Best regards,
Juan Ledesma


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux