[DTC] Compilation issue on Red-hat host systems

David Gibson david at gibson.dropbear.id.au
Thu Jul 19 13:26:33 EST 2012


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


More information about the devicetree-discuss mailing list