Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753120AbbDQDRd (ORCPT ); Thu, 16 Apr 2015 23:17:33 -0400 Received: from mail-bn1bon0086.outbound.protection.outlook.com ([157.56.111.86]:58912 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751355AbbDQDR1 convert rfc822-to-8bit (ORCPT ); Thu, 16 Apr 2015 23:17:27 -0400 X-Greylist: delayed 842 seconds by postgrey-1.27 at vger.kernel.org; Thu, 16 Apr 2015 23:17:27 EDT Authentication-Results: spf=pass (sender IP is 137.71.25.57) smtp.mailfrom=analog.com; vger.kernel.org; dkim=none (message not signed) header.d=none; From: "Zhang, Sonic" To: Chen Gang , "realmz6@gmail.com" , Richard Weinberger CC: "adi-buildroot-devel@lists.sourceforge.net" , "linux-kernel@vger.kernel.org" Subject: RE: [Adi-buildroot-devel] [Consult] blackfin: About one building break issue for STACKTRACE Thread-Topic: [Adi-buildroot-devel] [Consult] blackfin: About one building break issue for STACKTRACE Thread-Index: AQHQeFkZ7A43By86OUa5tbZnVGr8NZ1QhGYw Date: Fri, 17 Apr 2015 03:02:21 +0000 Message-ID: References: In-Reply-To: Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.99.24.87] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:137.71.25.57;CTRY:US;IPV:NLI;EFV:NLI;BMV:1;SFV:NSPM;SFS:(10009020)(6009001)(438002)(189002)(13464003)(199003)(51704005)(377454003)(62966003)(77156002)(54356999)(76176999)(230783001)(50986999)(19580405001)(19580395003)(6806004)(92566002)(23726002)(2656002)(55846006)(106116001)(97756001)(87936001)(46406003)(102836002)(46102003)(2950100001)(2900100001)(4001410100001)(16796002)(47776003)(2501003)(50466002)(15975445007)(106466001)(86362001)(1720100001)(33656002)(5250100002);DIR:OUT;SFP:1101;SCL:1;SRVR:BY2PR0301MB0759;H:nwd2mta2.analog.com;FPR:;SPF:Pass;MLV:sfv;MX:1;A:1;LANG:en; X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR0301MB0759; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(5005006)(5002010);SRVR:BY2PR0301MB0759;BCL:0;PCL:0;RULEID:;SRVR:BY2PR0301MB0759; X-Forefront-PRVS: 0549E6FD50 X-OriginatorOrg: analog.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Apr 2015 03:03:22.5494 (UTC) X-MS-Exchange-CrossTenant-Id: eaa689b4-8f87-40e0-9c6f-7228de4d754a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=eaa689b4-8f87-40e0-9c6f-7228de4d754a;Ip=[137.71.25.57];Helo=[nwd2mta2.analog.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR0301MB0759 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3131 Lines: 91 Hi Gang, Please only use the GCC for Blackfin 2013R1 or 2014R1 from https://sourceforge.net/projects/adi-buildroot/files/ . Upstream GCC5 isn't ported to Blackfin properly. Regards, Sonic >-----Original Message----- >From: Chen Gang [mailto:xili_gchen_5257@hotmail.com] >Sent: Thursday, April 16, 2015 11:22 PM >To: realmz6@gmail.com; Richard Weinberger >Cc: adi-buildroot-devel@lists.sourceforge.net; linux-kernel@vger.kernel.org >Subject: [Adi-buildroot-devel] [Consult] blackfin: About one building break issue for STACKTRACE > >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 > >------------------------------------------------------------------------------ >BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT Develop your own process in accordance with the BPMN >2 standard Learn Process modeling best practices with Bonita BPM through live exercises >http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ >source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF >_______________________________________________ >Adi-buildroot-devel mailing list >Adi-buildroot-devel@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/adi-buildroot-devel -- 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/