[Debian-med-packaging] Bug#811633: FTBFS with GCC 6: cannot convert x to y

Martin Michlmayr tbm at hpe.com
Wed Jan 20 00:27:59 UTC 2016


Package: ray
Version: 2.3.1-2
Severity: important
User: debian-gcc at lists.debian.org
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
...
>   CXX code/GeneOntology/KeyEncoder.o
>   CXX code/GeneOntology/GeneOntology.o
> In file included from /usr/lib/openmpi/include/mpi.h:253:0,
>                  from RayPlatform/RayPlatform/memory/DirtyBuffer.h:27,
>                  from RayPlatform/RayPlatform/memory/RingAllocator.h:25,
>                  from RayPlatform/RayPlatform/communication/VirtualCommunicator.h:28,
>                  from ./code/Searcher/Searcher.h:39,
>                  from code/GeneOntology/GeneOntology.h:26,
>                  from code/GeneOntology/GeneOntology.cpp:25:
> /usr/lib/openmpi/include/mpi_portable_platform.h:374:34: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
>               _STRINGIFY(__GNUC__)"."_STRINGIFY(__GNUC_MINOR__)"."_STRINGIFY(__GNUC_PATCHLEVEL__)
>                                   ^
> 
> /usr/lib/openmpi/include/mpi_portable_platform.h:374:63: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
>               _STRINGIFY(__GNUC__)"."_STRINGIFY(__GNUC_MINOR__)"."_STRINGIFY(__GNUC_PATCHLEVEL__)
>                                                                ^
> 
> code/GeneOntology/GeneOntology.cpp: In member function 'bool GeneOntology::fetchArguments()':
> code/GeneOntology/GeneOntology.cpp:221:20: error: cannot convert 'std::ifstream {aka std::basic_ifstream<char>}' to 'bool' in initialization
>    bool test1Result=test1;
>                     ^~~~~
> 
> code/GeneOntology/GeneOntology.cpp:230:20: error: cannot convert 'std::ifstream {aka std::basic_ifstream<char>}' to 'bool' in initialization
>    bool test2Result=test2;
>                     ^~~~~
> 
> Makefile:160: recipe for target 'code/GeneOntology/GeneOntology.o' failed
> make[2]: *** [code/GeneOntology/GeneOntology.o] Error 1

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



More information about the Debian-med-packaging mailing list