Csound Csound-dev Csound-tekno Search About

[Csnd-dev] sign-compare

Date2018-02-02 15:25
FromJohn
Subject[Csnd-dev] sign-compare
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

Date2018-02-02 15:30
FromVictor Lazzarini
SubjectRe: [Csnd-dev] sign-compare
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  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 -Wn

Date2018-02-02 15:36
Fromjpff
SubjectRe: [Csnd-dev] sign-compare
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  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
>
>

Date2018-02-02 15:59
Fromjpff
SubjectRe: [Csnd-dev] sign-compare
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

Date2018-02-02 16:05
FromVictor Lazzarini
SubjectRe: [Csnd-dev] sign-compare
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  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
>