From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Gibson Subject: Re: Cannot compile the DTC itself Date: Fri, 3 Apr 2009 09:01:34 +1100 Message-ID: <20090402220134.GA29690@yookeroo.seuss> References: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-mnsaURCQ41sdnm+yROfE0A@public.gmane.org Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-mnsaURCQ41sdnm+yROfE0A@public.gmane.org To: Johns Daniel Cc: devicetree-discuss-mnsaURCQ41sdnm+yROfE0A@public.gmane.org List-Id: devicetree@vger.kernel.org On Thu, Apr 02, 2009 at 02:46:59PM -0500, Johns Daniel wrote: > On Thu, Apr 2, 2009 at 2:37 PM, Jon Loeliger wrote: > >> I get similar errors for dtc-v1.1.0 and dtc-v1.2.0: > >> > >> ... > >> =A0 =A0 =A0 =A0 =A0CC 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 > >> =A0 =A0 =A0 =A0 =A0CC dtc-parser.tab.o > >> dtc-parser.tab.c: In function `yyparse': > >> dtc-parser.tab.c:1105: warning: implicit declaration of function `YYRH= SLOC' > >> 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