Re: [Adi-buildroot-devel] [Consult] blackfin: About one building break issue for STACKTRACE

2015-09-04 Thread Chen Gang
On 9/3/15 11:05, Chen Gang wrote:
> On 4/17/15 22:02, Chen Gang wrote:
>> On 4/17/15 11:02, Zhang, Sonic wrote:
>>> 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.
>>>

After a simply trying, I guess, this issue is not quite difficult to be
fixed.

 - The current gcc 'think', our current usage is incorrect.

 - But the original gcc 'think', our current usage is OK.

 - The related commits is "e52beba PR debug/54694" in gcc git repo.

I shall try to consult the gcc related members for it, so we can make
sure whether we need fix our code or the new gcc need be fixed.

Thanks.

> 
> I shall try to merge the 2014R1 to the latest gcc upstream to support
> the related feature in my free time.
> 
> I hope I can finish within 2 months (although I am not quite sure --
> maybe need 3 months or more).
> 
> Welcome any related ideas, suggestions and completions.
> 
> Thanks.
> 
>>
>> OK, thank you very much for your reply. :-)
>>
>>
>> For me, I want to let gcc5 support Blackfin properly, but sorry, at
>> present I can not.
>>
>>  - In honest, I am still not quite familiar with gcc (although I am
>>trying and improving).
>>
>>  - This year, I have no enough time resource for it (I am mainly for
>>upstream qemu this year).
>>
>> But if next year, upstream gcc is still not ported to Blackfin properly,
>> I shall try.
>>
>> However, there are still several another issues for upstream blackfin
>> gcc5 (they are all coredumps), I should still try to analyze them and
>> find root causes, hope I can finish within this month.
>>
>>
>> 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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [Adi-buildroot-devel] [Consult] blackfin: About one building break issue for STACKTRACE

2015-09-04 Thread Chen Gang
On 9/3/15 11:05, Chen Gang wrote:
> On 4/17/15 22:02, Chen Gang wrote:
>> On 4/17/15 11:02, Zhang, Sonic wrote:
>>> 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.
>>>

After a simply trying, I guess, this issue is not quite difficult to be
fixed.

 - The current gcc 'think', our current usage is incorrect.

 - But the original gcc 'think', our current usage is OK.

 - The related commits is "e52beba PR debug/54694" in gcc git repo.

I shall try to consult the gcc related members for it, so we can make
sure whether we need fix our code or the new gcc need be fixed.

Thanks.

> 
> I shall try to merge the 2014R1 to the latest gcc upstream to support
> the related feature in my free time.
> 
> I hope I can finish within 2 months (although I am not quite sure --
> maybe need 3 months or more).
> 
> Welcome any related ideas, suggestions and completions.
> 
> Thanks.
> 
>>
>> OK, thank you very much for your reply. :-)
>>
>>
>> For me, I want to let gcc5 support Blackfin properly, but sorry, at
>> present I can not.
>>
>>  - In honest, I am still not quite familiar with gcc (although I am
>>trying and improving).
>>
>>  - This year, I have no enough time resource for it (I am mainly for
>>upstream qemu this year).
>>
>> But if next year, upstream gcc is still not ported to Blackfin properly,
>> I shall try.
>>
>> However, there are still several another issues for upstream blackfin
>> gcc5 (they are all coredumps), I should still try to analyze them and
>> find root causes, hope I can finish within this month.
>>
>>
>> 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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [Adi-buildroot-devel] [Consult] blackfin: About one building break issue for STACKTRACE

2015-09-02 Thread Chen Gang
On 4/17/15 22:02, Chen Gang wrote:
> On 4/17/15 11:02, Zhang, Sonic wrote:
>> 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.
>>

I shall try to merge the 2014R1 to the latest gcc upstream to support
the related feature in my free time.

I hope I can finish within 2 months (although I am not quite sure --
maybe need 3 months or more).

Welcome any related ideas, suggestions and completions.

Thanks.

> 
> OK, thank you very much for your reply. :-)
> 
> 
> For me, I want to let gcc5 support Blackfin properly, but sorry, at
> present I can not.
> 
>  - In honest, I am still not quite familiar with gcc (although I am
>trying and improving).
> 
>  - This year, I have no enough time resource for it (I am mainly for
>upstream qemu this year).
> 
> But if next year, upstream gcc is still not ported to Blackfin properly,
> I shall try.
> 
> However, there are still several another issues for upstream blackfin
> gcc5 (they are all coredumps), I should still try to analyze them and
> find root causes, hope I can finish within this month.
> 
> 
> 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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [Adi-buildroot-devel] [Consult] blackfin: About one building break issue for STACKTRACE

2015-09-02 Thread Chen Gang
On 4/17/15 22:02, Chen Gang wrote:
> On 4/17/15 11:02, Zhang, Sonic wrote:
>> 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.
>>

I shall try to merge the 2014R1 to the latest gcc upstream to support
the related feature in my free time.

I hope I can finish within 2 months (although I am not quite sure --
maybe need 3 months or more).

Welcome any related ideas, suggestions and completions.

Thanks.

> 
> OK, thank you very much for your reply. :-)
> 
> 
> For me, I want to let gcc5 support Blackfin properly, but sorry, at
> present I can not.
> 
>  - In honest, I am still not quite familiar with gcc (although I am
>trying and improving).
> 
>  - This year, I have no enough time resource for it (I am mainly for
>upstream qemu this year).
> 
> But if next year, upstream gcc is still not ported to Blackfin properly,
> I shall try.
> 
> However, there are still several another issues for upstream blackfin
> gcc5 (they are all coredumps), I should still try to analyze them and
> find root causes, hope I can finish within this month.
> 
> 
> 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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [Adi-buildroot-devel] [Consult] blackfin: About one building break issue for STACKTRACE

2015-04-18 Thread Chen Gang
On 4/18/15 06:20, Chen Gang wrote:
> On 4/17/15 22:02, Chen Gang wrote:
>> On 4/17/15 11:02, Zhang, Sonic wrote:
>>> 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.
>>>

For building linux-next with allmodconfig by upstream gcc5, at present, I
found 2 issues totally, and report them to upstream gcc bugzilla:

 - For stacktrace.c issue:

   https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65804
   "blackfin: Not support global frame pointer with -fno-omit-frame-pointer"

 - For coredump issues (for duplication reason, only report one, now):

   https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65803
   "blackfin: internal compiler error: segment fault linux kernel"

At least, I shall try to fix the coredump issues within this month (
although at present, I guess, I can not send patch v1 for it within
2015-04-20).


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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [Adi-buildroot-devel] [Consult] blackfin: About one building break issue for STACKTRACE

2015-04-18 Thread Chen Gang
On 4/18/15 06:20, Chen Gang wrote:
 On 4/17/15 22:02, Chen Gang wrote:
 On 4/17/15 11:02, Zhang, Sonic wrote:
 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.


For building linux-next with allmodconfig by upstream gcc5, at present, I
found 2 issues totally, and report them to upstream gcc bugzilla:

 - For stacktrace.c issue:

   https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65804
   blackfin: Not support global frame pointer with -fno-omit-frame-pointer

 - For coredump issues (for duplication reason, only report one, now):

   https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65803
   blackfin: internal compiler error: segment fault linux kernel

At least, I shall try to fix the coredump issues within this month (
although at present, I guess, I can not send patch v1 for it within
2015-04-20).


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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [Adi-buildroot-devel] [Consult] blackfin: About one building break issue for STACKTRACE

2015-04-17 Thread Chen Gang
On 4/17/15 22:02, Chen Gang wrote:
> On 4/17/15 11:02, Zhang, Sonic wrote:
>> 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.
>>

However, I should still try to consult gcc members for this issue. At
least, I should report to Bugzilla and try to find root cause (although
I can not fix it, at present).

> 
> OK, thank you very much for your reply. :-)
> 
> 
> For me, I want to let gcc5 support Blackfin properly, but sorry, at
> present I can not.
> 
>  - In honest, I am still not quite familiar with gcc (although I am
>trying and improving).
> 
>  - This year, I have no enough time resource for it (I am mainly for
>upstream qemu this year).
> 
> But if next year, upstream gcc is still not ported to Blackfin properly,
> I shall try.
> 
> However, there are still several another issues for upstream blackfin
> gcc5 (they are all coredumps), I should still try to analyze them and
> find root causes, hope I can finish within this month.
> 
> 
> Thanks.
> 

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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [Adi-buildroot-devel] [Consult] blackfin: About one building break issue for STACKTRACE

2015-04-17 Thread Chen Gang
On 4/17/15 11:02, Zhang, Sonic wrote:
> 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.
> 

OK, thank you very much for your reply. :-)


For me, I want to let gcc5 support Blackfin properly, but sorry, at
present I can not.

 - In honest, I am still not quite familiar with gcc (although I am
   trying and improving).

 - This year, I have no enough time resource for it (I am mainly for
   upstream qemu this year).

But if next year, upstream gcc is still not ported to Blackfin properly,
I shall try.

However, there are still several another issues for upstream blackfin
gcc5 (they are all coredumps), I should still try to analyze them and
find root causes, hope I can finish within this month.


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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [Adi-buildroot-devel] [Consult] blackfin: About one building break issue for STACKTRACE

2015-04-17 Thread Chen Gang
On 4/17/15 11:02, Zhang, Sonic wrote:
 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.
 

OK, thank you very much for your reply. :-)


For me, I want to let gcc5 support Blackfin properly, but sorry, at
present I can not.

 - In honest, I am still not quite familiar with gcc (although I am
   trying and improving).

 - This year, I have no enough time resource for it (I am mainly for
   upstream qemu this year).

But if next year, upstream gcc is still not ported to Blackfin properly,
I shall try.

However, there are still several another issues for upstream blackfin
gcc5 (they are all coredumps), I should still try to analyze them and
find root causes, hope I can finish within this month.


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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [Adi-buildroot-devel] [Consult] blackfin: About one building break issue for STACKTRACE

2015-04-17 Thread Chen Gang
On 4/17/15 22:02, Chen Gang wrote:
 On 4/17/15 11:02, Zhang, Sonic wrote:
 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.


However, I should still try to consult gcc members for this issue. At
least, I should report to Bugzilla and try to find root cause (although
I can not fix it, at present).

 
 OK, thank you very much for your reply. :-)
 
 
 For me, I want to let gcc5 support Blackfin properly, but sorry, at
 present I can not.
 
  - In honest, I am still not quite familiar with gcc (although I am
trying and improving).
 
  - This year, I have no enough time resource for it (I am mainly for
upstream qemu this year).
 
 But if next year, upstream gcc is still not ported to Blackfin properly,
 I shall try.
 
 However, there are still several another issues for upstream blackfin
 gcc5 (they are all coredumps), I should still try to analyze them and
 find root causes, hope I can finish within this month.
 
 
 Thanks.
 

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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


RE: [Adi-buildroot-devel] [Consult] blackfin: About one building break issue for STACKTRACE

2015-04-16 Thread Zhang, Sonic
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_5...@hotmail.com]
>Sent: Thursday, April 16, 2015 11:22 PM
>To: real...@gmail.com; Richard Weinberger
>Cc: adi-buildroot-de...@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_medium=email_campaign=VA_SF
>___
>Adi-buildroot-devel mailing list
>adi-buildroot-de...@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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


RE: [Adi-buildroot-devel] [Consult] blackfin: About one building break issue for STACKTRACE

2015-04-16 Thread Zhang, Sonic
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_5...@hotmail.com]
Sent: Thursday, April 16, 2015 11:22 PM
To: real...@gmail.com; Richard Weinberger
Cc: adi-buildroot-de...@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_15utm_medium=emailutm_campaign=VA_SF
___
Adi-buildroot-devel mailing list
adi-buildroot-de...@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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/