Package: libbpp-core
Version: 2.1.0-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
...
> [ 1%] Building CXX object
> src/CMakeFiles/bppcore-shared.dir/Bpp/App/ApplicationTools.cpp.o
> In file included from /<<PKGBUILDDIR>>/src/Bpp/App/ApplicationTools.h:45:0,
> from /<<PKGBUILDDIR>>/src/Bpp/App/ApplicationTools.cpp:41:
> /<<PKGBUILDDIR>>/src/Bpp/App/../Io/OutputStream.h:172:16: warning:
> 'template<class> class std::auto_ptr' is deprecated
> [-Wdeprecated-declarations]
> mutable std::auto_ptr<std::ostream> stream_;
> ^~~~~~~~
>
> In file included from /usr/include/c++/6/memory:81:0,
> from /<<PKGBUILDDIR>>/src/Bpp/App/../Io/OutputStream.h:50,
> from /<<PKGBUILDDIR>>/src/Bpp/App/ApplicationTools.h:45,
> from /<<PKGBUILDDIR>>/src/Bpp/App/ApplicationTools.cpp:41:
> /usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here
> template<typename> class auto_ptr;
> ^~~~~~~~
>
> [ 2%] Building CXX object
> src/CMakeFiles/bppcore-shared.dir/Bpp/App/BppApplication.cpp.o
> In file included from /<<PKGBUILDDIR>>/src/Bpp/App/ApplicationTools.h:45:0,
> from /<<PKGBUILDDIR>>/src/Bpp/App/BppApplication.cpp:42:
> /<<PKGBUILDDIR>>/src/Bpp/App/../Io/OutputStream.h:172:16: warning:
> 'template<class> class std::auto_ptr' is deprecated
> [-Wdeprecated-declarations]
> mutable std::auto_ptr<std::ostream> stream_;
> ^~~~~~~~
>
> In file included from /usr/include/c++/6/memory:81:0,
> from /<<PKGBUILDDIR>>/src/Bpp/App/../Io/OutputStream.h:50,
> from /<<PKGBUILDDIR>>/src/Bpp/App/ApplicationTools.h:45,
> from /<<PKGBUILDDIR>>/src/Bpp/App/BppApplication.cpp:42:
> /usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here
> template<typename> class auto_ptr;
> ^~~~~~~~
>
> [ 2%] Building CXX object
> src/CMakeFiles/bppcore-shared.dir/Bpp/App/NumCalcApplicationTools.cpp.o
> In file included from /<<PKGBUILDDIR>>/src/Bpp/App/ApplicationTools.h:45:0,
> from
> /<<PKGBUILDDIR>>/src/Bpp/App/NumCalcApplicationTools.h:44,
> from
> /<<PKGBUILDDIR>>/src/Bpp/App/NumCalcApplicationTools.cpp:40:
> /<<PKGBUILDDIR>>/src/Bpp/App/../Io/OutputStream.h:172:16: warning:
> 'template<class> class std::auto_ptr' is deprecated
> [-Wdeprecated-declarations]
> mutable std::auto_ptr<std::ostream> stream_;
> ^~~~~~~~
>
> In file included from /usr/include/c++/6/memory:81:0,
> from /<<PKGBUILDDIR>>/src/Bpp/App/../Io/OutputStream.h:50,
> from /<<PKGBUILDDIR>>/src/Bpp/App/ApplicationTools.h:45,
> from
> /<<PKGBUILDDIR>>/src/Bpp/App/NumCalcApplicationTools.h:44,
> from
> /<<PKGBUILDDIR>>/src/Bpp/App/NumCalcApplicationTools.cpp:40:
> /usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here
> template<typename> class auto_ptr;
> ^~~~~~~~
>
> [ 3%] Building CXX object
> src/CMakeFiles/bppcore-shared.dir/Bpp/Io/FileTools.cpp.o
> /<<PKGBUILDDIR>>/src/Bpp/Io/FileTools.cpp: In static member function 'static
> bool bpp::FileTools::fileExists(const string&)':
> /<<PKGBUILDDIR>>/src/Bpp/Io/FileTools.cpp:57:15: error: cannot convert
> 'std::ifstream {aka std::basic_ifstream<char>}' to 'bool' in initialization
> bool test = file;
> ^~~~
>
> /<<PKGBUILDDIR>>/src/Bpp/Io/FileTools.cpp: In static member function 'static
> bool bpp::FileTools::directoryExists(const string&)':
> /<<PKGBUILDDIR>>/src/Bpp/Io/FileTools.cpp:67:15: error: cannot convert
> 'std::ifstream {aka std::basic_ifstream<char>}' to 'bool' in initialization
> bool test = file;
> ^~~~
>
> src/CMakeFiles/bppcore-shared.dir/build.make:182: recipe for target
> 'src/CMakeFiles/bppcore-shared.dir/Bpp/Io/FileTools.cpp.o' failed
> make[3]: *** [src/CMakeFiles/bppcore-shared.dir/Bpp/Io/FileTools.cpp.o] Error
> 1
> make[3]: Leaving directory '/<<PKGBUILDDIR>>'
--
Martin Michlmayr
Linux for HPE Helion, Hewlett Packard Enterprise