[espeak-ng:master] reported: Build fails on MacOS Catalina #github
espeak-ng@groups.io Integration <espeak-ng@...>
[espeak-ng:master] New Comment on Issue #674 Build fails on MacOS Catalina
By rhdunn:
That's strange. It should work on 64-bit. The error messages relate to compiling the "Expected a number" is from https://github.com/espeak-ng/espeak-ng/blob/master/src/libespeak-ng/compiledata.c#L819. "Expected ')'" is from https://github.com/espeak-ng/espeak-ng/blob/master/src/libespeak-ng/compiledata.c#L877. The "The phoneme feature is not recognised" messages come from the Looking at that code, we know several things:
1. the values passed to I would start by printing values and control flow in My intuition given the above information would be that the issue is at https://github.com/espeak-ng/espeak-ng/blob/master/src/libespeak-ng/compiledata.c#L760 in that it is checking for There are likely other cases like that, which would also explain why the line numbers are wrong in the output.
|
|
espeak-ng@groups.io Integration <espeak-ng@...>
[espeak-ng:master] New Comment on Issue #674 Build fails on MacOS Catalina
By BenTalagan:
Hello Reece and thanks a lot for having taken the time to provide some clues. I am currently investigating ; adding a will yield the following output :
So everything looks good until the parsing gets messy, the strangest thing being that the first occurence of a bad item parsing yields
|
|
espeak-ng@groups.io Integration <espeak-ng@...>
[espeak-ng:master] New Comment on Issue #674 Build fails on MacOS Catalina
By BenTalagan:
Second remark, investigating on the
|
|
espeak-ng@groups.io Integration <espeak-ng@...>
[espeak-ng:master] New Comment on Issue #674 Build fails on MacOS Catalina
By BenTalagan:
Ok, further investigation. Adding some debug here :
And also at the start of each phone compilation gives me this :
The parsing of the
The funny thing is that the next token
|
|
espeak-ng@groups.io Integration <espeak-ng@...>
[espeak-ng:master] New Comment on Issue #674 Build fails on MacOS Catalina
By BenTalagan:
My suspicions go to the This is how I instrumented it :
For the parsing of the
We can clearly see that after What's your opinion on this ? Edit: This might be a wrong guess, it looks like there is also the UngetItem functions which may interfere here. Still investigating.
|
|
espeak-ng@groups.io Integration <espeak-ng@...>
[espeak-ng:master] New Comment on Issue #674 Build fails on MacOS Catalina
By rhdunn:
What I am seeing with the version on commit 07012f60736016e533a0428360797b08047a22e6 (which is working for me on Debian linux) is:
|
|
espeak-ng@groups.io Integration <espeak-ng@...>
[espeak-ng:master] New Comment on Issue #674 Build fails on MacOS Catalina
By rhdunn:
Those are what I am seeing as well. So it looks like it could be the code before reading the
The Mac
|
|
espeak-ng@groups.io Integration <espeak-ng@...>
[espeak-ng:master] New Comment on Issue #674 Build fails on MacOS Catalina
By BenTalagan:
|
|
espeak-ng@groups.io Integration <espeak-ng@...>
[espeak-ng:master] New Comment on Issue #674 Build fails on MacOS Catalina
By BenTalagan:
Probably, you must be right. I'm a bit surprised that it was broken recently. Or maybe, the way espeak uses ftell + ungetc + fseek is not really legit ?
|
|
espeak-ng@groups.io Integration <espeak-ng@...>
[espeak-ng:master] New Comment on Issue #674 Build fails on MacOS Catalina
By rhdunn:
Adding:
for the seek behaviour of ungetc results in the errors looking like:
Note that seeking to
|
|
espeak-ng@groups.io Integration <espeak-ng@...>
[espeak-ng:master] New Comment on Issue #674 Build fails on MacOS Catalina
By rhdunn:
I'm aware of that limitation, but IIUC, the compile phoneme code does not need a larger ungetc buffer -- it should only be restoring the last read character on a false branch of a loop (e.g. when reading a comment line). I've adjusted for fseek in the subsequent comment. I think this is similar to how the Mac logic is behaving, given the errors. Therefore, if we can figure out how to make this work (possibly in relation to the ftell call), it should hopefully shed some light on what needs to be modified to get the Mac implementation to work.
|
|
espeak-ng@groups.io Integration <espeak-ng@...>
[espeak-ng:master] New Comment on Issue #674 Build fails on MacOS Catalina
By BenTalagan:
Ok! Just tell me when you're good and if you want me to perform some tests.
|
|
espeak-ng@groups.io Integration <espeak-ng@...>
[espeak-ng:master] New Comment on Issue #674 Build fails on MacOS Catalina
By BenTalagan:
I think it's this part : Line 798 will modify the character. I tried to invert the last line, but pushing back the ')' will result now in an infinite loop. I guess pushing back a space was a trick to get rid of the parsing of the ')'.
|
|
espeak-ng@groups.io Integration <espeak-ng@...>
[espeak-ng:master] New Comment on Issue #674 Build fails on MacOS Catalina
By BenTalagan:
Ok! I think I got it :
This will allow to compile the full phoneme files. This is my result :
Is it ok ?
|
|
espeak-ng@groups.io Integration <espeak-ng@...>
[espeak-ng:master] New Comment on Issue #674 Build fails on MacOS Catalina
By BenTalagan:
PR ready (#675) :-) Thanks a lot for having taken such time to help!
|
|