Package: bino
Version: 1.6.1-1
Severity: important
User: [email protected]
Usertags: ftbfs-gcc-6 gcc-6-cannot-convert
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.
> sbuild (Debian sbuild) 0.67.0 (26 Dec 2015) on dl580gen9-02.hlinux
...
> g++ -DHAVE_CONFIG_H -DHTMLDIR=\"/usr/share/doc/bino/html\"
> -DLOCALEDIR=\"/usr/share/locale\" -I. -I.. -I../src/base
> -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu
> -I/usr/include/x86_64-linux-gnu -I/usr/include/harfbuzz
> -I/usr/include/freetype2 -I/usr/include/fribidi -I/usr/include/freetype2
> -I/usr/include/AL -I/usr/include/libdrm -DGLEW_MX -I/usr/include/libdrm
> -I/usr/include/x86_64-linux-gnu/qt5/QtOpenGL
> -I/usr/include/x86_64-linux-gnu/qt5
> -I/usr/include/x86_64-linux-gnu/qt5/QtWidgets
> -I/usr/include/x86_64-linux-gnu/qt5 -I/usr/include/x86_64-linux-gnu/qt5/QtGui
> -I/usr/include/x86_64-linux-gnu/qt5
> -I/usr/include/x86_64-linux-gnu/qt5/QtCore
> -I/usr/include/x86_64-linux-gnu/qt5 -pthread -Wdate-time
> -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector-strong -Wformat
> -Werror=format-security -fPIC -c -o video_output_qt-moc.o
> video_output_qt-moc.cpp
> media_object.cpp: In member function 'void media_object::open(const string&,
> const device_request&)':
> media_object.cpp:862:30: warning: 'AVFormatContext::max_analyze_duration' is
> deprecated [-Wdeprecated-declarations]
> _ffmpeg->format_ctx->max_analyze_duration = 0;
> ^~~~~~~~~~~~~~~~~~~~
>
> In file included from media_object.cpp:30:0:
> /usr/include/x86_64-linux-gnu/libavformat/avformat.h:1409:9: note: declared
> here
> int max_analyze_duration;
> ^~~~~~~~~~~~~~~~~~~~
>
> media_object.cpp:862:30: warning: 'AVFormatContext::max_analyze_duration' is
> deprecated [-Wdeprecated-declarations]
> _ffmpeg->format_ctx->max_analyze_duration = 0;
> ^~~~~~~~~~~~~~~~~~~~
>
> In file included from media_object.cpp:30:0:
> /usr/include/x86_64-linux-gnu/libavformat/avformat.h:1409:9: note: declared
> here
> int max_analyze_duration;
> ^~~~~~~~~~~~~~~~~~~~
>
> media_object.cpp:862:30: warning: 'AVFormatContext::max_analyze_duration' is
> deprecated [-Wdeprecated-declarations]
> _ffmpeg->format_ctx->max_analyze_duration = 0;
> ^~~~~~~~~~~~~~~~~~~~
>
> In file included from media_object.cpp:30:0:
> /usr/include/x86_64-linux-gnu/libavformat/avformat.h:1409:9: note: declared
> here
> int max_analyze_duration;
> ^~~~~~~~~~~~~~~~~~~~
>
> main.cpp:168:14: error: 'FILE* logf' redeclared as different kind of symbol
> static FILE *logf = NULL;
> ^~~~
>
> In file included from /usr/include/c++/6/cmath:44:0,
> from /usr/include/c++/6/random:38,
> from /usr/include/c++/6/bits/stl_algo.h:66,
> from /usr/include/c++/6/algorithm:62,
> from /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:85,
> from
> /usr/include/x86_64-linux-gnu/qt5/QtCore/qcoreapplication.h:37,
> from
> /usr/include/x86_64-linux-gnu/qt5/QtCore/QCoreApplication:1,
> from main.cpp:42:
> /usr/include/x86_64-linux-gnu/bits/mathcalls.h:109:1: note: previous
> declaration 'float logf(float)'
> __MATHCALL_VEC (log,, (_Mdouble_ __x));
> ^
>
> main.cpp: In function 'void close_log_file()':
> main.cpp:173:31: error: cannot convert 'float (*)(float) throw ()' to 'FILE*
> {aka _IO_FILE*}' for argument '1' to 'int fclose(FILE*)'
> (void)std::fclose(logf);
> ^
>
> main.cpp: In function 'int main(int, char**)':
> main.cpp:399:56: error: assignment of function 'float logf(float)'
> logf = std::fopen(log_file.value().c_str(), "a");
> ^
>
> main.cpp:399:56: error: cannot convert 'FILE* {aka _IO_FILE*}' to
> 'float(float) throw ()' in assignment
> main.cpp:406:27: error: cannot convert 'float (*)(float) throw ()' to 'FILE*
> {aka _IO_FILE*}' for argument '1' to 'void msg::set_file(FILE*)'
> msg::set_file(logf);
> ^
>
> Makefile:712: recipe for target 'main.o' failed
> make[5]: *** [main.o] Error 1
--
Martin Michlmayr
Linux for HPE Helion, Hewlett Packard Enterprise