[Csnd-dev] sign-compare

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[Csnd-dev] sign-compare

jpff
The recent changes did not fix this problem in flex

Engine/csound_orclex.c: In function ‘yy_get_next_buffer’:
Engine/csound_orclex.c:1082:18: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
Engine/csound_orclex.c:2381:3: note: in expansion of macro ‘YY_INPUT’
Engine/csound_orclex.c: In function ‘csound_orc_scan_bytes’:
Engine/csound_orclex.c:2940:17: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
cc1: all warnings being treated as errors
CMakeFiles/csound64-static.dir/build.make:5149: recipe for target 'CMakeFiles/csound64-static.dir/csound_orclex.c.o' failed

so I assume I have to ru with -Wno-sign-compare

==John ffitch
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd-dev] sign-compare

Victor Lazzarini-2
I don’t seem to have this problem here with

$ flex --version
flex 2.6.4

I built it from the sources. Not sure if it is an option for you.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

> On 2 Feb 2018, at 15:25, John <[hidden email]> wrote:
>
> The recent changes did not fix this problem in flex
>
> Engine/csound_orclex.c: In function ‘yy_get_next_buffer’:
> Engine/csound_orclex.c:1082:18: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
> Engine/csound_orclex.c:2381:3: note: in expansion of macro ‘YY_INPUT’
> Engine/csound_orclex.c: In function ‘csound_orc_scan_bytes’:
> Engine/csound_orclex.c:2940:17: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
> cc1: all warnings being treated as errors
> CMakeFiles/csound64-static.dir/build.make:5149: recipe for target 'CMakeFiles/csound64-static.dir/csound_orclex.c.o' failed
>
> so I assume I have to ru with -Wno-sign-compare
>
> ==John ffitch

Reply | Threaded
Open this post in threaded view
|

Re: [Csnd-dev] sign-compare

jpff
ailed to find sources when I looked earlier.  Will try again


On Fri, 2 Feb 2018, Victor Lazzarini wrote:

> I don’t seem to have this problem here with
>
> $ flex --version
> flex 2.6.4
>
> I built it from the sources. Not sure if it is an option for you.
> ========================
> Prof. Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
>
>> On 2 Feb 2018, at 15:25, John <[hidden email]> wrote:
>>
>> The recent changes did not fix this problem in flex
>>
>> Engine/csound_orclex.c: In function ‘yy_get_next_buffer’:
>> Engine/csound_orclex.c:1082:18: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
>> Engine/csound_orclex.c:2381:3: note: in expansion of macro ‘YY_INPUT’
>> Engine/csound_orclex.c: In function ‘csound_orc_scan_bytes’:
>> Engine/csound_orclex.c:2940:17: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
>> cc1: all warnings being treated as errors
>> CMakeFiles/csound64-static.dir/build.make:5149: recipe for target 'CMakeFiles/csound64-static.dir/csound_orclex.c.o' failed
>>
>> so I assume I have to ru with -Wno-sign-compare
>>
>> ==John ffitch
>
>
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd-dev] sign-compare

jpff
In reply to this post by Victor Lazzarini-2
I found and installed flex 2.6.0 but it made zero difference.  Ensured I
delete *lex.c as well but I still got the same until #i remembered io
delete the CMakeCache.txt file

Seems ok now
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd-dev] sign-compare

Victor Lazzarini-2
https://github.com/westes/flex/releases/tag/v2.6.4

is where I got it.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

> On 2 Feb 2018, at 15:59, jpff <[hidden email]> wrote:
>
> I found and installed flex 2.6.0 but it made zero difference.  Ensured I delete *lex.c as well but I still got the same until #i remembered io delete the CMakeCache.txt file
>
> Seems ok now