From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Gibson Subject: Re: [DTC] Compilation issue on Red-hat host systems Date: Thu, 19 Jul 2012 13:26:33 +1000 Message-ID: <20120719032633.GC8100@truffala.fritz.box> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Sender: "devicetree-discuss" To: jagan <402jagan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org List-Id: devicetree@vger.kernel.org On Mon, Jul 16, 2012 at 03:29:49PM +0530, jagan wrote: > Hi, > > I am building dtc as follows > $ git clone git://jdl.com/software/dtc.git > $ cd dtc > $ make > I got the below error while doing make > convert-dtsv0-lexer.lex.c:684: warning: no previous prototype for 'yylex' > make: *** [convert-dtsv0-lexer.lex.o] Error 1 > > Can anyone help me, I am I missing any PATH setup It's almost certainly an issue with the particular version of flex generating code which triggers warnings we have enabled. What does "flex --version" say. As a workaround you can remove -Wstrict-prototypes from 'WARNINGS' in the Makefile. -- 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