From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757585AbdDRUZm (ORCPT ); Tue, 18 Apr 2017 16:25:42 -0400 Received: from one.firstfloor.org ([193.170.194.197]:42464 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754923AbdDRUZ0 (ORCPT ); Tue, 18 Apr 2017 16:25:26 -0400 Date: Tue, 18 Apr 2017 13:25:19 -0700 From: Andi Kleen To: Josh Poimboeuf Cc: Andi Kleen , kbuild test robot , kbuild-all@01.org, linux-kernel@vger.kernel.org, Ingo Molnar , Steven Rostedt Subject: Re: arch/x86//kernel/ftrace.c:35:3: error: #error The following combination is not supported: ((compiler missing -mfentry) || (CONFIG_X86_32 and !CONFIG_DYNAMIC_FTRACE)) && CONFIG_FUNCTION_GRAPH_TRACER && CONFIG_CC_OPTIMIZE_FOR_SIZE Message-ID: <20170418202519.GI22592@two.firstfloor.org> References: <201704160947.iSmcgQi7%fengguang.wu@intel.com> <20170417133313.ibbt5nmp76xzabf4@treble> <87lgqxtuo6.fsf@firstfloor.org> <20170418201942.ohybixihlk36it4t@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170418201942.ohybixihlk36it4t@treble> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 18, 2017 at 03:19:42PM -0500, Josh Poimboeuf wrote: > On Tue, Apr 18, 2017 at 11:52:41AM -0700, Andi Kleen wrote: > > Josh Poimboeuf writes: > > > > > > The error is working as designed. gcc < 4.6.0 doesn't have -mfentry, so > > > it fails the above check on x86. Can you add a skip rule? It should > > > skip building the following case: > > > > > > x86 && ((gcc < 4.6.0) || (CONFIG_X86_32 and !CONFIG_DYNAMIC_FTRACE)) > > > && CONFIG_FUNCTION_GRAPH_TRACER && CONFIG_CC_OPTIMIZE_FOR_SIZE > > > > This will also break everyone's randconfig builds. The better way > > would be to check this in the Makefile and disable one of the options > > I don't know how to disable a config option from the Makefile like that. You just don't do something in the Makefile, e.g. don't set the -Os For an example see the LTO Makefile here https://git.kernel.org/pub/scm/linux/kernel/git/ak/linux-misc.git/tree/scripts/Makefile.lto?h=lto-411-1 -Andi