linux-mips
[Top] [All Lists]

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

To: Kees Cook <keescook@chromium.org>, "Cc: Arjan van de Ven" <arjan@linux.intel.com>, "Cc: Michal Marek" <mmarek@suse.cz>, "Cc: Russell King" <linux@arm.linux.org.uk>, "Cc: Ralf Baechle" <ralf@linux-mips.org>, "Cc: Paul Mundt" <lethal@linux-sh.org>, "Cc: James Hogan" <james.hogan@imgtec.com>, "Cc: Stephen Rothwell" <sfr@canb.auug.org.au>, "Cc: Shawn Guo" <shawn.guo@linaro.org>, "Cc: Linus Torvalds" <torvalds@linux-foundation.org>, "Cc: Andrew Morton" <akpm@linux-foundation.org>, "Cc: Peter Zijlstra" <peterz@infradead.org>, "Cc: Thomas Gleixner" <tglx@linutronix.de>, linux-mips@linux-mips.org, linux-arch@vger.kernel.org
Subject: [BUG] Build error due -fstack-protector-strong not supported by compiler
From: Juan Emilio Ledesma Torres <jueleto@gmail.com>
Date: Fri, 21 Feb 2014 20:47:20 -0300
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=2Wo0wTsoaL3LgAKG4dl93p3sGDXyU47ZHqMbWbLh2wE=; b=Gvmf5BuKc+jxeioI2BszJO6G6kNqQ573mEHIEgTTMBkGrhKxsb6FzT/AHVScffd5QW ySAHtIxX6wgNnltpo2Y6OiR53aLK+cEVT7hw28fHzVVLjNvqD6QX1fgOaJ6+gBR3XiZL cvTD88+/8Xkk9o/TB0uMR2MfSXovbhg2nndmqyvdaqBzPR+ux066+N2YE4F5FMkN8QKD vjNc0CBA1yMBmJzlqg4FQJIumeLW+yGANa+Ce60EJNBaIPAcqUKrDtxYucWS30sljak1 ijBd4dVwbKI3JIfJyywb2AlT3b+vjOzuSwjWodH9Mpv8LDOIVRXTi3QIEi4UK59VYy2/ MwSg==
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
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

<Prev in Thread] Current Thread [Next in Thread>
  • [BUG] Build error due -fstack-protector-strong not supported by compiler, Juan Emilio Ledesma Torres <=