Package: adplay
Version: 1.7-1
Severity: important
User: [email protected]
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
...
> g++ -DHAVE_CONFIG_H -I.  -I/usr/include/libbinio  -I/usr/include/SDL 
> -D_GNU_SOURCE=1 -D_REENTRANT -DADPLUG_DATA_DIR=\"/usr/com/adplug\" 
> -Wdate-time -D_FORTIFY_SOURCE=2  -g -O2 -fPIE -fstack-protector-strong 
> -Wformat -Werror=format-security -c -o alsa.o alsa.cc
> esound.cc: In member function 'virtual void EsoundPlayer::output(const void*, 
> long unsigned int)':
> esound.cc:46:27: warning: ignoring return value of 'ssize_t write(int, const 
> void*, size_t)', declared with attribute warn_unused_result [-Wunused-result]
>    write(socket, buf, size);
>                            ^
> 
> oss.cc: In member function 'virtual void OSSPlayer::output(const void*, long 
> unsigned int)':
> oss.cc:59:29: warning: ignoring return value of 'ssize_t write(int, const 
> void*, size_t)', declared with attribute warn_unused_result [-Wunused-result]
>    write(audio_fd, buf, size);
>                              ^
> 
> adplay.cc:98:1: error: narrowing conversion of '-1' from 'int' to 'unsigned 
> int' inside { } [-Wnarrowing]
>  };
>  ^
> 
> Makefile:497: recipe for target 'adplay.o' failed
> make[3]: *** [adplay.o] Error 1
> make[3]: *** Waiting for unfinished jobs....

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

Reply via email to