Updates to Github #github

espeak-ng@groups.io Integration <espeak-ng@...>
 

[espeak-ng:master] New Issue Created by lgbaldoni:
#699 Build fails with gcc10 and -fno-common

espeak-ng 1.50 on openSUSE Tumbleweed, see log snippet.


[espeak-ng:master] Label removed from issue #699 Build fails with gcc10 and -fno-common by lgbaldoni.


[espeak-ng:master] New Comment on Issue #699 Build fails with gcc10 and -fno-common
By rhdunn:

I can't reproduce that issue locally. It looks like LTO is treating the samplerate in libespeak-ng the same as the one in espeak-ng. Does the following fix the issue?:

diff --git a/src/espeak-ng.c b/src/espeak-ng.c
index 10b8a887..3a7838cf 100644
--- a/src/espeak-ng.c
+++ b/src/espeak-ng.c
@@ -117,7 +117,7 @@ static const char *help_text =
     "--load     Load voice from a file in current directory by name.\n"
     "-h, --help Show this help.\n";
 
-int samplerate;
+static int samplerate;
 bool quiet = false;
 unsigned int samples_total = 0;
 unsigned int samples_split = 0;

If so, I will commit that change.

Join espeak-ng@groups.io to automatically receive all group messages.