[Debian-med-packaging] Bug#811633: FTBFS with GCC 6: cannot convert x to y
Sascha Steinbiss
sascha at steinbiss.name
Fri Apr 8 16:04:52 UTC 2016
Hi all,
I have fixed this FTBFS in git. Now ray builds fine for me with:
gcc version 6.0.0 20160405 (experimental) [trunk revision 234749]
(Debian 6-20160405-1)
Maybe there's an easier way with adjusting C++ standards in the build
system, but that's not my core expertise and the changes aren't that
voluminous anyway.
Cheers
Sascha
On Tue, 19 Jan 2016 16:27:59 -0800 Martin Michlmayr <tbm at hpe.com> wrote:
> 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
>
>
--
The Wellcome Trust Sanger Institute is operated by Genome Research
Limited, a charity registered in England with number 1021457 and a
company registered in England with number 2742969, whose registered
office is 215 Euston Road, London, NW1 2BE.
More information about the Debian-med-packaging
mailing list