Package: xdrawchem
Version: 2.0-3
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++ -c -m64 -pipe -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector 
> --param=ssp-buffer-size=4 -Wformat -Werror=format-security -g -O0 -g3 
> -D_REENTRANT -Wall -W -DUNIX -DRINGHOME="/usr/share/xdrawchem2" 
> -DQT_NO_CAST_TO_ASCII -DQT_XML_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB 
> -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. 
> -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork 
> -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4 
> -I/usr/include/openbabel-2.0 -I.moc -o .obj/molecule_obmol.o 
> xdrawchem/molecule_obmol.cpp
> In file included from /usr/include/openbabel-2.0/openbabel/atom.h:33:0,
>                  from /usr/include/openbabel-2.0/openbabel/mol.h:42,
>                  from xdrawchem/molecule.h:6,
>                  from xdrawchem/molecule_obmol.cpp:9:
> /usr/include/openbabel-2.0/openbabel/base.h: In member function 'virtual 
> const char* OpenBabel::OBBase::GetTitle(bool) const':
> /usr/include/openbabel-2.0/openbabel/base.h:287:68: warning: unused parameter 
> 'replaceNewlines' [-Wunused-parameter]
>        virtual const char  *GetTitle(bool UNUSED(replaceNewlines) = true) 
> const { return "";}
>                                                                     ^~~~
> 
> xdrawchem/molecule_obmol.cpp: In member function 'OpenBabel::OBMol* 
> Molecule::convertToOBMol()':
> xdrawchem/molecule_obmol.cpp:222:28: error: cannot convert 'bool' to 
> 'OpenBabel::OBMol*' in return
>              return ( false );
>                             ^
> 
> xdrawchem/molecule_obmol.cpp:239:28: error: cannot convert 'bool' to 
> 'OpenBabel::OBMol*' in return
>              return ( false );
>                             ^
> 
> Makefile:1293: recipe for target '.obj/molecule_obmol.o' failed

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

Reply via email to