All of lore.kernel.org
 help / color / mirror / Atom feed
* [DTC] Compilation issue on Red-hat host systems
@ 2012-07-16  9:59 jagan
       [not found] ` <CALdT2jzsyC9TuXRgZxRP-zJjyfihUN_u2uXF=bSER3ARpPot3Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: jagan @ 2012-07-16  9:59 UTC (permalink / raw)
  To: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ


[-- Attachment #1.1: Type: text/plain, Size: 344 bytes --]

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

Regards,
Jagan.

[-- Attachment #1.2: Type: text/html, Size: 569 bytes --]

[-- Attachment #2: Type: text/plain, Size: 192 bytes --]

_______________________________________________
devicetree-discuss mailing list
devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org
https://lists.ozlabs.org/listinfo/devicetree-discuss

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [DTC] Compilation issue on Red-hat host systems
       [not found] ` <CALdT2jzsyC9TuXRgZxRP-zJjyfihUN_u2uXF=bSER3ARpPot3Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2012-07-19  3:26   ` David Gibson
       [not found]     ` <20120719032633.GC8100-MK4v0fQdeXQXU02nzanrWNbf9cGiqdzd@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: David Gibson @ 2012-07-19  3:26 UTC (permalink / raw)
  To: jagan; +Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [DTC] Compilation issue on Red-hat host systems
       [not found]     ` <20120719032633.GC8100-MK4v0fQdeXQXU02nzanrWNbf9cGiqdzd@public.gmane.org>
@ 2012-07-28  9:33       ` jagan
       [not found]         ` <CALdT2jw_m=uR8T=uE8BiptLG40_6K=5FsRWs4maR0u=4vUEyCA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: jagan @ 2012-07-28  9:33 UTC (permalink / raw)
  To: David Gibson; +Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ


[-- Attachment #1.1: Type: text/plain, Size: 1216 bytes --]

My flex version on system is flex version 2.5.4
I tried by  -Wstrict-prototypes  form Makefile, But still I got the same
error.

Do I need to upgrade my flex.

Regards,
Jagan.

On Thu, Jul 19, 2012 at 8:56 AM, David Gibson
<david-xT8FGy+AXnRB3Ne2BGzF6laj5H9X9Tb+@public.gmane.org>wrote:

> 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
>

[-- Attachment #1.2: Type: text/html, Size: 1963 bytes --]

[-- Attachment #2: Type: text/plain, Size: 192 bytes --]

_______________________________________________
devicetree-discuss mailing list
devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org
https://lists.ozlabs.org/listinfo/devicetree-discuss

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [DTC] Compilation issue on Red-hat host systems
       [not found]         ` <CALdT2jw_m=uR8T=uE8BiptLG40_6K=5FsRWs4maR0u=4vUEyCA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2012-07-29  2:09           ` David Gibson
  2012-07-29 12:15           ` Jon Loeliger
  1 sibling, 0 replies; 5+ messages in thread
From: David Gibson @ 2012-07-29  2:09 UTC (permalink / raw)
  To: jagan; +Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ

On Sat, Jul 28, 2012 at 03:03:50PM +0530, jagan wrote:
> My flex version on system is flex version 2.5.4
> I tried by  -Wstrict-prototypes  form Makefile, But still I got the same
> error.

Ah, sorry, I think that warning comes from -Wmissing-prototypes, not
-Wstrict-prototypes  try removing that one instead.

-- 
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] 5+ messages in thread

* Re: [DTC] Compilation issue on Red-hat host systems
       [not found]         ` <CALdT2jw_m=uR8T=uE8BiptLG40_6K=5FsRWs4maR0u=4vUEyCA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  2012-07-29  2:09           ` David Gibson
@ 2012-07-29 12:15           ` Jon Loeliger
  1 sibling, 0 replies; 5+ messages in thread
From: Jon Loeliger @ 2012-07-29 12:15 UTC (permalink / raw)
  To: jagan; +Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ

> 
> My flex version on system is flex version 2.5.4
> I tried by  -Wstrict-prototypes  form Makefile, But still I got the same
> error.
> 
> Do I need to upgrade my flex.
> 
> Regards,
> Jagan.

My flex is:

    $ flex --version
    flex 2.5.35

    $ gcc --version
    gcc (Debian 4.4.5-8) 4.4.5

and it works fine.

So, yes, upgrade your flex.

jdl

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-07-29 12:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-16  9:59 [DTC] Compilation issue on Red-hat host systems jagan
     [not found] ` <CALdT2jzsyC9TuXRgZxRP-zJjyfihUN_u2uXF=bSER3ARpPot3Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-07-19  3:26   ` David Gibson
     [not found]     ` <20120719032633.GC8100-MK4v0fQdeXQXU02nzanrWNbf9cGiqdzd@public.gmane.org>
2012-07-28  9:33       ` jagan
     [not found]         ` <CALdT2jw_m=uR8T=uE8BiptLG40_6K=5FsRWs4maR0u=4vUEyCA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-07-29  2:09           ` David Gibson
2012-07-29 12:15           ` Jon Loeliger

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.