All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] gdb-cross: depends on flex-native and bison-native
@ 2016-11-23  2:00 Yuanjie Huang
  2016-11-23  3:05 ` Khem Raj
  0 siblings, 1 reply; 6+ messages in thread
From: Yuanjie Huang @ 2016-11-23  2:00 UTC (permalink / raw)
  To: openembedded-core

From: Yuanjie Huang <yuanjie.huang@windriver.com>

Some source code of gdb is generated with flex or bison. Make both
dependencies, to avoid compilation failure on host without them.

Signed-off-by: Yuanjie Huang <yuanjie.huang@windriver.com>
---
 meta/recipes-devtools/gdb/gdb-cross.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-devtools/gdb/gdb-cross.inc b/meta/recipes-devtools/gdb/gdb-cross.inc
index 5fa7c33..a34223e 100644
--- a/meta/recipes-devtools/gdb/gdb-cross.inc
+++ b/meta/recipes-devtools/gdb/gdb-cross.inc
@@ -1,6 +1,6 @@
 require gdb-common.inc
 
-DEPENDS = "expat-native ncurses-native"
+DEPENDS = "expat-native ncurses-native flex-native bison-native"
 
 inherit python3native
 
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/1] gdb-cross: depends on flex-native and bison-native
  2016-11-23  2:00 [PATCH 1/1] gdb-cross: depends on flex-native and bison-native Yuanjie Huang
@ 2016-11-23  3:05 ` Khem Raj
  2016-11-23  3:22   ` Yuanjie Huang
  0 siblings, 1 reply; 6+ messages in thread
From: Khem Raj @ 2016-11-23  3:05 UTC (permalink / raw)
  To: Yuanjie Huang; +Cc: openembedded-core


> On Nov 22, 2016, at 6:00 PM, Yuanjie Huang <Yuanjie.Huang@windriver.com> wrote:
> 
> From: Yuanjie Huang <yuanjie.huang@windriver.com>
> 
> Some source code of gdb is generated with flex or bison. Make both
> dependencies, to avoid compilation failure on host without them.


can you find out which parts those are ? what is it trying to do to need flex/yacc
> 
> Signed-off-by: Yuanjie Huang <yuanjie.huang@windriver.com>
> ---
> meta/recipes-devtools/gdb/gdb-cross.inc | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/meta/recipes-devtools/gdb/gdb-cross.inc b/meta/recipes-devtools/gdb/gdb-cross.inc
> index 5fa7c33..a34223e 100644
> --- a/meta/recipes-devtools/gdb/gdb-cross.inc
> +++ b/meta/recipes-devtools/gdb/gdb-cross.inc
> @@ -1,6 +1,6 @@
> require gdb-common.inc
> 
> -DEPENDS = "expat-native ncurses-native"
> +DEPENDS = "expat-native ncurses-native flex-native bison-native"
> 
> inherit python3native
> 
> -- 
> 2.7.4
> 
> -- 
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/1] gdb-cross: depends on flex-native and bison-native
  2016-11-23  3:05 ` Khem Raj
@ 2016-11-23  3:22   ` Yuanjie Huang
  2016-11-23  3:38     ` Khem Raj
  0 siblings, 1 reply; 6+ messages in thread
From: Yuanjie Huang @ 2016-11-23  3:22 UTC (permalink / raw)
  To: Khem Raj; +Cc: openembedded-core

Hi Raj,

We observed gdb/ada-lex.l is processed by flex while gdb/c-exp.y, 
gdb/f-exp.y, gdb/go-exp.y and many others are handled by bison. 
Basically, all language-specific codes in gdb are generated.

Best,
Yuanjie

On 11/23/2016 11:05 AM, Khem Raj wrote:
>> On Nov 22, 2016, at 6:00 PM, Yuanjie Huang <Yuanjie.Huang@windriver.com> wrote:
>>
>> From: Yuanjie Huang <yuanjie.huang@windriver.com>
>>
>> Some source code of gdb is generated with flex or bison. Make both
>> dependencies, to avoid compilation failure on host without them.
>
> can you find out which parts those are ? what is it trying to do to need flex/yacc
>> Signed-off-by: Yuanjie Huang <yuanjie.huang@windriver.com>
>> ---
>> meta/recipes-devtools/gdb/gdb-cross.inc | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/meta/recipes-devtools/gdb/gdb-cross.inc b/meta/recipes-devtools/gdb/gdb-cross.inc
>> index 5fa7c33..a34223e 100644
>> --- a/meta/recipes-devtools/gdb/gdb-cross.inc
>> +++ b/meta/recipes-devtools/gdb/gdb-cross.inc
>> @@ -1,6 +1,6 @@
>> require gdb-common.inc
>>
>> -DEPENDS = "expat-native ncurses-native"
>> +DEPENDS = "expat-native ncurses-native flex-native bison-native"
>>
>> inherit python3native
>>
>> -- 
>> 2.7.4
>>
>> -- 
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-core



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/1] gdb-cross: depends on flex-native and bison-native
  2016-11-23  3:22   ` Yuanjie Huang
@ 2016-11-23  3:38     ` Khem Raj
  2016-11-23  6:49       ` Yuanjie Huang
  0 siblings, 1 reply; 6+ messages in thread
From: Khem Raj @ 2016-11-23  3:38 UTC (permalink / raw)
  To: Yuanjie Huang; +Cc: openembedded-core

are they regenerating code during configure ?

> On Nov 22, 2016, at 7:22 PM, Yuanjie Huang <yuanjie.huang@windriver.com> wrote:
> 
> Hi Raj,
> 
> We observed gdb/ada-lex.l is processed by flex while gdb/c-exp.y, gdb/f-exp.y, gdb/go-exp.y and many others are handled by bison. Basically, all language-specific codes in gdb are generated.
> 
> Best,
> Yuanjie
> 
> On 11/23/2016 11:05 AM, Khem Raj wrote:
>>> On Nov 22, 2016, at 6:00 PM, Yuanjie Huang <Yuanjie.Huang@windriver.com> wrote:
>>> 
>>> From: Yuanjie Huang <yuanjie.huang@windriver.com>
>>> 
>>> Some source code of gdb is generated with flex or bison. Make both
>>> dependencies, to avoid compilation failure on host without them.
>> 
>> can you find out which parts those are ? what is it trying to do to need flex/yacc
>>> Signed-off-by: Yuanjie Huang <yuanjie.huang@windriver.com>
>>> ---
>>> meta/recipes-devtools/gdb/gdb-cross.inc | 2 +-
>>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>> 
>>> diff --git a/meta/recipes-devtools/gdb/gdb-cross.inc b/meta/recipes-devtools/gdb/gdb-cross.inc
>>> index 5fa7c33..a34223e 100644
>>> --- a/meta/recipes-devtools/gdb/gdb-cross.inc
>>> +++ b/meta/recipes-devtools/gdb/gdb-cross.inc
>>> @@ -1,6 +1,6 @@
>>> require gdb-common.inc
>>> 
>>> -DEPENDS = "expat-native ncurses-native"
>>> +DEPENDS = "expat-native ncurses-native flex-native bison-native"
>>> 
>>> inherit python3native
>>> 
>>> -- 
>>> 2.7.4
>>> 
>>> -- 
>>> _______________________________________________
>>> Openembedded-core mailing list
>>> Openembedded-core@lists.openembedded.org
>>> http://lists.openembedded.org/mailman/listinfo/openembedded-core
> 



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/1] gdb-cross: depends on flex-native and bison-native
  2016-11-23  3:38     ` Khem Raj
@ 2016-11-23  6:49       ` Yuanjie Huang
  2016-11-23  6:52         ` Khem Raj
  0 siblings, 1 reply; 6+ messages in thread
From: Yuanjie Huang @ 2016-11-23  6:49 UTC (permalink / raw)
  To: Khem Raj; +Cc: openembedded-core


On 11/23/2016 11:38 AM, Khem Raj wrote:
> are they regenerating code during configure ?
No, code is generated during compilation. Corresponding c files are not 
included in git repo, so these files are always compiled from flex/bison 
source files.
>> On Nov 22, 2016, at 7:22 PM, Yuanjie Huang <yuanjie.huang@windriver.com> wrote:
>>
>> Hi Raj,
>>
>> We observed gdb/ada-lex.l is processed by flex while gdb/c-exp.y, gdb/f-exp.y, gdb/go-exp.y and many others are handled by bison. Basically, all language-specific codes in gdb are generated.
>>
>> Best,
>> Yuanjie
>>
>> On 11/23/2016 11:05 AM, Khem Raj wrote:
>>>> On Nov 22, 2016, at 6:00 PM, Yuanjie Huang <Yuanjie.Huang@windriver.com> wrote:
>>>>
>>>> From: Yuanjie Huang <yuanjie.huang@windriver.com>
>>>>
>>>> Some source code of gdb is generated with flex or bison. Make both
>>>> dependencies, to avoid compilation failure on host without them.
>>> can you find out which parts those are ? what is it trying to do to need flex/yacc
>>>> Signed-off-by: Yuanjie Huang <yuanjie.huang@windriver.com>
>>>> ---
>>>> meta/recipes-devtools/gdb/gdb-cross.inc | 2 +-
>>>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>>>
>>>> diff --git a/meta/recipes-devtools/gdb/gdb-cross.inc b/meta/recipes-devtools/gdb/gdb-cross.inc
>>>> index 5fa7c33..a34223e 100644
>>>> --- a/meta/recipes-devtools/gdb/gdb-cross.inc
>>>> +++ b/meta/recipes-devtools/gdb/gdb-cross.inc
>>>> @@ -1,6 +1,6 @@
>>>> require gdb-common.inc
>>>>
>>>> -DEPENDS = "expat-native ncurses-native"
>>>> +DEPENDS = "expat-native ncurses-native flex-native bison-native"
>>>>
>>>> inherit python3native
>>>>
>>>> -- 
>>>> 2.7.4
>>>>
>>>> -- 
>>>> _______________________________________________
>>>> Openembedded-core mailing list
>>>> Openembedded-core@lists.openembedded.org
>>>> http://lists.openembedded.org/mailman/listinfo/openembedded-core



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/1] gdb-cross: depends on flex-native and bison-native
  2016-11-23  6:49       ` Yuanjie Huang
@ 2016-11-23  6:52         ` Khem Raj
  0 siblings, 0 replies; 6+ messages in thread
From: Khem Raj @ 2016-11-23  6:52 UTC (permalink / raw)
  To: Yuanjie Huang; +Cc: openembedded-core


> On Nov 22, 2016, at 10:49 PM, Yuanjie Huang <yuanjie.huang@windriver.com> wrote:
> 
> 
> On 11/23/2016 11:38 AM, Khem Raj wrote:
>> are they regenerating code during configure ?
> No, code is generated during compilation. Corresponding c files are not included in git repo, so these files are always compiled from flex/bison source files.

OK. 

>>> On Nov 22, 2016, at 7:22 PM, Yuanjie Huang <yuanjie.huang@windriver.com> wrote:
>>> 
>>> Hi Raj,
>>> 
>>> We observed gdb/ada-lex.l is processed by flex while gdb/c-exp.y, gdb/f-exp.y, gdb/go-exp.y and many others are handled by bison. Basically, all language-specific codes in gdb are generated.
>>> 
>>> Best,
>>> Yuanjie
>>> 
>>> On 11/23/2016 11:05 AM, Khem Raj wrote:
>>>>> On Nov 22, 2016, at 6:00 PM, Yuanjie Huang <Yuanjie.Huang@windriver.com> wrote:
>>>>> 
>>>>> From: Yuanjie Huang <yuanjie.huang@windriver.com>
>>>>> 
>>>>> Some source code of gdb is generated with flex or bison. Make both
>>>>> dependencies, to avoid compilation failure on host without them.
>>>> can you find out which parts those are ? what is it trying to do to need flex/yacc
>>>>> Signed-off-by: Yuanjie Huang <yuanjie.huang@windriver.com>
>>>>> ---
>>>>> meta/recipes-devtools/gdb/gdb-cross.inc | 2 +-
>>>>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>>>> 
>>>>> diff --git a/meta/recipes-devtools/gdb/gdb-cross.inc b/meta/recipes-devtools/gdb/gdb-cross.inc
>>>>> index 5fa7c33..a34223e 100644
>>>>> --- a/meta/recipes-devtools/gdb/gdb-cross.inc
>>>>> +++ b/meta/recipes-devtools/gdb/gdb-cross.inc
>>>>> @@ -1,6 +1,6 @@
>>>>> require gdb-common.inc
>>>>> 
>>>>> -DEPENDS = "expat-native ncurses-native"
>>>>> +DEPENDS = "expat-native ncurses-native flex-native bison-native"
>>>>> 
>>>>> inherit python3native
>>>>> 
>>>>> -- 
>>>>> 2.7.4
>>>>> 
>>>>> -- 
>>>>> _______________________________________________
>>>>> Openembedded-core mailing list
>>>>> Openembedded-core@lists.openembedded.org
>>>>> http://lists.openembedded.org/mailman/listinfo/openembedded-core
> 



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-11-23  6:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-23  2:00 [PATCH 1/1] gdb-cross: depends on flex-native and bison-native Yuanjie Huang
2016-11-23  3:05 ` Khem Raj
2016-11-23  3:22   ` Yuanjie Huang
2016-11-23  3:38     ` Khem Raj
2016-11-23  6:49       ` Yuanjie Huang
2016-11-23  6:52         ` Khem Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.