Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752002AbbDPPV4 (ORCPT ); Thu, 16 Apr 2015 11:21:56 -0400 Received: from blu004-omc1s37.hotmail.com ([65.55.116.48]:55787 "EHLO BLU004-OMC1S37.hotmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750753AbbDPPVs (ORCPT ); Thu, 16 Apr 2015 11:21:48 -0400 X-TMN: [3FAPLNQzrx9bGJNF3sqYViPOz/9ZYD7A] X-Originating-Email: [xili_gchen_5257@hotmail.com] Message-ID: Date: Thu, 16 Apr 2015 23:21:56 +0800 From: Chen Gang User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: "realmz6@gmail.com" , Richard Weinberger CC: "adi-buildroot-devel@lists.sourceforge.net" , "linux-kernel@vger.kernel.org" Subject: [Consult] blackfin: About one building break issue for STACKTRACE Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 16 Apr 2015 15:21:46.0519 (UTC) FILETIME=[0D5A5270:01D07859] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1909 Lines: 65 Hello Maintainers: I want to consult one building issue about blackfin, the related issue is: CC arch/blackfin/kernel/stacktrace.o arch/blackfin/kernel/stacktrace.c: In function 'save_stack_trace': arch/blackfin/kernel/stacktrace.c:23:6: error: frame pointer required, but reserved void save_stack_trace(struct stack_trace *trace) ^ arch/blackfin/kernel/stacktrace.c:13:24: note: for 'current_frame_pointer' register unsigned long current_frame_pointer asm("FP"); ^ For me: - Originally, I treated it as gcc's issue, but after think of, for me, gcc is OK: "-fomit-frame-pointer" is needed by extern "FP" pointer. "-fomit-frame-pointer" is against "-pg" (they can not be together). - For kernel: STACKTRACE needs "-fomit-frame-pointer", and FUNCTION_TRACER will enable "-pg", FUNCTION_TRACER and STACKTRACE are related. The related commit: "1c873be Blackfin: initial support for ftrace" (the commit time point is Jun 9 2009). - After this related commit, it never can pass building by upstream blackfin gcc5: make defconfig && make menuconfig enable FUNCTION_TRACER (which also enable STACKTRACE) make (which will cause building break) So I want to consult: - Is it OK to use upstream gcc5 for blackfin? (or which gcc version is suitable for building blackfin Linux kernel?) - Did the original commit pass building ? (e.g. by one of old gcc version). - How to fix this issue, next? Welcome any members ideas, suggestions and completions. Thanks. -- Chen Gang Open, share, and attitude like air, water, and life which God blessed -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/