2011-07-10 14:10:22

by Mickael Chazaux

[permalink] [raw]
Subject: Compile failure

git://git.kernel.org/pub/scm/bluetooth/bluez.git, branch master,
commit c34e7956441 fails to build :

CC tools/lexer.o
cc1: warnings being treated as errors
tools/lexer.c: In function ‘yy_get_next_buffer’:
tools/lexer.c:1095: erreur: comparaison entre des expressions entières
signée et non signée
tools/lexer.c: In function ‘yy_init_buffer’:
tools/lexer.c:1415: erreur: implicit declaration of function ‘isatty’
make[1]: *** [tools/lexer.o] Erreur 1

Regards,

Mickael


2011-07-11 14:56:58

by Mickael Chazaux

[permalink] [raw]
Subject: Re: Compile failure

Hi,

2011/7/11 Gustavo Padovan <[email protected]>:
> * Mickael Chazaux <[email protected]> [2011-07-10 16:10:22 +0200]:
>
>> git://git.kernel.org/pub/scm/bluetooth/bluez.git, branch master,
>> commit c34e7956441 fails to build :
>>
>>   CC     tools/lexer.o
>> cc1: warnings being treated as errors
>> tools/lexer.c: In function ‘yy_get_next_buffer’:
>> tools/lexer.c:1095: erreur: comparaison entre des expressions entières
>> signée et non signée
>> tools/lexer.c: In function ‘yy_init_buffer’:
>> tools/lexer.c:1415: erreur: implicit declaration of function ‘isatty’
>> make[1]: *** [tools/lexer.o] Erreur 1
>
> Are you using gentoo? There is a bug in gentoo flex ebuild that cause this.
>
Yes I am using Gentoo. Removing -Werror in the makefile works around
this problem at the moment.

Thanks,

Regards,

Mickael

2011-07-11 14:37:34

by Gustavo Padovan

[permalink] [raw]
Subject: Re: Compile failure

* Mickael Chazaux <[email protected]> [2011-07-10 16:10:22 +0200]:

> git://git.kernel.org/pub/scm/bluetooth/bluez.git, branch master,
> commit c34e7956441 fails to build :
>
> CC tools/lexer.o
> cc1: warnings being treated as errors
> tools/lexer.c: In function ‘yy_get_next_buffer’:
> tools/lexer.c:1095: erreur: comparaison entre des expressions entières
> signée et non signée
> tools/lexer.c: In function ‘yy_init_buffer’:
> tools/lexer.c:1415: erreur: implicit declaration of function ‘isatty’
> make[1]: *** [tools/lexer.o] Erreur 1

Are you using gentoo? There is a bug in gentoo flex ebuild that cause this.

Gustavo

2011-07-11 13:05:53

by Lucas De Marchi

[permalink] [raw]
Subject: Re: Compile failure

Hi Mickael,

On Sun, Jul 10, 2011 at 11:10 AM, Mickael Chazaux
<[email protected]> wrote:
> git://git.kernel.org/pub/scm/bluetooth/bluez.git, branch master,
> commit c34e7956441 fails to build :
>
> ?CC ? ? tools/lexer.o
> cc1: warnings being treated as errors
> tools/lexer.c: In function ?yy_get_next_buffer?:
> tools/lexer.c:1095: erreur: comparaison entre des expressions enti?res
> sign?e et non sign?e
> tools/lexer.c: In function ?yy_init_buffer?:
> tools/lexer.c:1415: erreur: implicit declaration of function ?isatty?
> make[1]: *** [tools/lexer.o] Erreur 1


This file is generated by flex. What version are you using? Here I have:


$ flex --version
flex 2.5.35


And there's no such error.

regards,
Lucas De Marchi