Package: espeakedit
Version: 1.48.03-3
Severity: important
User: debian-...@lists.debian.org
Usertags: ftbfs-gcc-6 gcc-6-narrowing

This package fails to build with GCC 6.  GCC 6 has not been released
yet, but it's expected that GCC 6 will become the default compiler for
stretch.

Note that only the first error is reported; there might be more.  You
can find a snapshot of GCC 6 in experimental.  To build with GCC 6,
you can set CC=gcc-6 CXX=g++-6 explicitly.

You may be able to find out more about this issue at
https://gcc.gnu.org/gcc-6/changes.html

> sbuild (Debian sbuild) 0.67.0 (26 Dec 2015) on dl580gen9-02.hlinux
...
> make[1]: Entering directory '/<<PKGBUILDDIR>>/src'
> g++ -O2  -Wall -fexceptions `wx-config --cflags` -DGTK_NO_CHECK_CASTS 
> -D__WXGTK__ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 
> -DNO_GCC_PRAGMA -D_ESPEAKEDIT -DDEB_HOST_MULTIARCH='"x86_64-linux-gnu"' 
> -DNDEBUG -I. -c -fno-exceptions compiledata.cpp
> compiledata.cpp:215:49: error: narrowing conversion of '239' from 'int' to 
> 'char' inside { } [-Wnarrowing]
>  static const char utf8_bom[] = {0xef,0xbb,0xbf,0};
>                                                  ^
> 
> compiledata.cpp:215:49: error: narrowing conversion of '187' from 'int' to 
> 'char' inside { } [-Wnarrowing]
> compiledata.cpp:215:49: error: narrowing conversion of '191' from 'int' to 
> 'char' inside { } [-Wnarrowing]
> compiledata.cpp: In function 'void CompileReport()':
> compiledata.cpp:755:2: warning: statement is indented as if it were guarded 
> by... [-Wmisleading-indentation]
>   list = (REF_HASH_TAB **)malloc((count_references)* sizeof(REF_HASH_TAB *));
>   ^~~~
> 
> compiledata.cpp:751:5: note: ...this 'if' clause, but it is not
>      if(f_report == NULL)
>      ^~
> 
> compiledata.cpp: In function 'void CompilePhonemeData2(const char*)':
> compiledata.cpp:3687:2: warning: statement is indented as if it were guarded 
> by... [-Wmisleading-indentation]
>   fclose(f_phindex);
>   ^~~~~~
> 
> compiledata.cpp:3685:5: note: ...this 'if' clause, but it is not
>      if(f_prog_log != NULL)
>      ^~
> 
> compiledata.cpp: In function 'int LoadEnvelope2(FILE*, const char*)':
> compiledata.cpp:2072:36: warning: ignoring return value of 'char* 
> fgets(char*, int, FILE*)', declared with attribute warn_unused_result 
> [-Wunused-result]
>   fgets(line_buf,sizeof(line_buf),f);   // skip first line
>                                     ^
> 
> Makefile:33: recipe for target 'compiledata.o' failed
> make[1]: *** [compiledata.o] Error 1

-- 
Martin Michlmayr
Linux for HPE Helion, Hewlett Packard Enterprise

Reply via email to