* Cannot compile the DTC itself
@ 2009-04-02 19:07 Johns Daniel
[not found] ` <ba5d9360904021207j32a13e43i9b6347147ccf7563-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Johns Daniel @ 2009-04-02 19:07 UTC (permalink / raw)
To: devicetree-discuss-mnsaURCQ41sdnm+yROfE0A
I get similar errors for dtc-v1.1.0 and dtc-v1.2.0:
...
CC dtc-lexer.lex.o
dtc-lexer.lex.c: In function `yylex':
dtc-lexer.lex.c:762: warning: label `find_rule' defined but not used
dtc-lexer.l: At top level:
dtc-lexer.lex.c:1870: warning: 'yy_flex_realloc' defined but not used
CC dtc-parser.tab.o
dtc-parser.tab.c: In function `yyparse':
dtc-parser.tab.c:1105: warning: implicit declaration of function `YYRHSLOC'
dtc-parser.tab.c:1105: error: request for member `first_line' in
something not a structure or union
dtc-parser.tab.c:1105: error: request for member `first_column' in
something not a structure or union
dtc-parser.tab.c:1105: error: request for member `last_line' in
something not a structure or union
dtc-parser.tab.c:1105: error: request for member `last_column' in
something not a structure or union
dtc-parser.tab.c:1105: error: request for member `file' in something
not a structure or union
dtc-parser.tab.c:1105: error: request for member `last_line' in
something not a structure or union
dtc-parser.tab.c:1105: error: request for member `last_column' in
something not a structure or union
dtc-parser.tab.c:1105: error: request for member `file' in something
not a structure or union
dtc-parser.tab.c:1625: error: request for member `first_line' in
something not a structure or union
dtc-parser.tab.c:1625: error: request for member `first_column' in
something not a structure or union
dtc-parser.tab.c:1625: error: request for member `last_line' in
something not a structure or union
dtc-parser.tab.c:1625: error: request for member `last_column' in
something not a structure or union
dtc-parser.tab.c:1625: error: request for member `file' in something
not a structure or union
dtc-parser.tab.c:1625: error: request for member `last_line' in
something not a structure or union
dtc-parser.tab.c:1625: error: request for member `last_column' in
something not a structure or union
dtc-parser.tab.c:1625: error: request for member `file' in something
not a structure or union
make: *** [dtc-parser.tab.o] Error 1
Only dtc-v1.0.0 builds completely.
Any idea as to what might be wrong?
-- Johns
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Cannot compile the DTC itself
[not found] ` <ba5d9360904021207j32a13e43i9b6347147ccf7563-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2009-04-02 19:37 ` Jon Loeliger
[not found] ` <E1LpSjM-0005us-Nw-CYoMK+44s/E@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Jon Loeliger @ 2009-04-02 19:37 UTC (permalink / raw)
To: Johns Daniel; +Cc: devicetree-discuss-mnsaURCQ41sdnm+yROfE0A
> I get similar errors for dtc-v1.1.0 and dtc-v1.2.0:
>
> ...
> CC dtc-lexer.lex.o
> dtc-lexer.lex.c: In function `yylex':
> dtc-lexer.lex.c:762: warning: label `find_rule' defined but not used
> dtc-lexer.l: At top level:
> dtc-lexer.lex.c:1870: warning: 'yy_flex_realloc' defined but not used
> CC dtc-parser.tab.o
> dtc-parser.tab.c: In function `yyparse':
> dtc-parser.tab.c:1105: warning: implicit declaration of function `YYRHSLOC'
> dtc-parser.tab.c:1105: error: request for member `first_line' in
What version of flex are you using?
Have you tried to install a recent version of flex?
HTH,
jdl
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Cannot compile the DTC itself
[not found] ` <E1LpSjM-0005us-Nw-CYoMK+44s/E@public.gmane.org>
@ 2009-04-02 19:46 ` Johns Daniel
[not found] ` <ba5d9360904021246g72afa876uc69ce188040b1e71-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Johns Daniel @ 2009-04-02 19:46 UTC (permalink / raw)
To: Jon Loeliger; +Cc: devicetree-discuss-mnsaURCQ41sdnm+yROfE0A
On Thu, Apr 2, 2009 at 2:37 PM, Jon Loeliger <jdl-CYoMK+44s/E@public.gmane.org> wrote:
>> I get similar errors for dtc-v1.1.0 and dtc-v1.2.0:
>>
>> ...
>> CC dtc-lexer.lex.o
>> dtc-lexer.lex.c: In function `yylex':
>> dtc-lexer.lex.c:762: warning: label `find_rule' defined but not used
>> dtc-lexer.l: At top level:
>> dtc-lexer.lex.c:1870: warning: 'yy_flex_realloc' defined but not used
>> CC dtc-parser.tab.o
>> dtc-parser.tab.c: In function `yyparse':
>> dtc-parser.tab.c:1105: warning: implicit declaration of function `YYRHSLOC'
>> dtc-parser.tab.c:1105: error: request for member `first_line' in
>
> What version of flex are you using?
flex version 2.5.4 (the latest for my Linux distribution)
> Have you tried to install a recent version of flex?
No, not yet.
Thanks for the info! I suspected that, but could not find any evidence
to support my theory.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Cannot compile the DTC itself
[not found] ` <ba5d9360904021246g72afa876uc69ce188040b1e71-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2009-04-02 22:01 ` David Gibson
0 siblings, 0 replies; 4+ messages in thread
From: David Gibson @ 2009-04-02 22:01 UTC (permalink / raw)
To: Johns Daniel; +Cc: devicetree-discuss-mnsaURCQ41sdnm+yROfE0A
On Thu, Apr 02, 2009 at 02:46:59PM -0500, Johns Daniel wrote:
> On Thu, Apr 2, 2009 at 2:37 PM, Jon Loeliger <jdl-CYoMK+44s/E@public.gmane.org> wrote:
> >> I get similar errors for dtc-v1.1.0 and dtc-v1.2.0:
> >>
> >> ...
> >> CC dtc-lexer.lex.o
> >> dtc-lexer.lex.c: In function `yylex':
> >> dtc-lexer.lex.c:762: warning: label `find_rule' defined but not used
> >> dtc-lexer.l: At top level:
> >> dtc-lexer.lex.c:1870: warning: 'yy_flex_realloc' defined but not used
> >> CC dtc-parser.tab.o
> >> dtc-parser.tab.c: In function `yyparse':
> >> dtc-parser.tab.c:1105: warning: implicit declaration of function `YYRHSLOC'
> >> dtc-parser.tab.c:1105: error: request for member `first_line' in
> >
> > What version of flex are you using?
>
> flex version 2.5.4 (the latest for my Linux distribution)
>
> > Have you tried to install a recent version of flex?
>
> No, not yet.
>
> Thanks for the info! I suspected that, but could not find any evidence
> to support my theory.
Well, the warnings are all in generated code, so it pretty much has to
be something to do with either the flex or bison version. Actually
the YYRHSLOC warnings suggest to me that it's more likely bison than
flex (or possibly both).
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-04-02 22:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-02 19:07 Cannot compile the DTC itself Johns Daniel
[not found] ` <ba5d9360904021207j32a13e43i9b6347147ccf7563-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-04-02 19:37 ` Jon Loeliger
[not found] ` <E1LpSjM-0005us-Nw-CYoMK+44s/E@public.gmane.org>
2009-04-02 19:46 ` Johns Daniel
[not found] ` <ba5d9360904021246g72afa876uc69ce188040b1e71-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-04-02 22:01 ` David Gibson
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.