Cannot compile the DTC itself

Johns Daniel johns.daniel at gmail.com
Fri Apr 3 06:07:33 EST 2009


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



More information about the devicetree-discuss mailing list