From mboxrd@z Thu Jan 1 00:00:00 1970 From: Juan Emilio Ledesma Torres Subject: [BUG] Build error due -fstack-protector-strong not supported by compiler Date: Fri, 21 Feb 2014 20:47:20 -0300 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from mail-ob0-f177.google.com ([209.85.214.177]:50760 "EHLO mail-ob0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753438AbaBUXrV (ORCPT ); Fri, 21 Feb 2014 18:47:21 -0500 Received: by mail-ob0-f177.google.com with SMTP id wp18so5031029obc.36 for ; Fri, 21 Feb 2014 15:47:20 -0800 (PST) Sender: linux-arch-owner@vger.kernel.org List-ID: To: Kees Cook , "Cc: Arjan van de Ven" , "Cc: Michal Marek" , "Cc: Russell King" , "Cc: Ralf Baechle" , "Cc: Paul Mundt" , "Cc: James Hogan" , "Cc: Stephen Rothwell" , "Cc: Shawn Guo" , "Cc: Linus Torvalds" , "Cc: Andrew Morton" , "Cc: Peter Zijlstra" , "Cc: Thomas Gleixner" , linux-mips@linux-mips.org, linux-arch@vger.kernel.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 <>. make[1]: No se hace nada para <>. 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