[Debian-med-packaging] Bug#811909: parsinsert: FTBFS with GCC 6: invalid conversion

Martin Michlmayr tbm at hpe.com
Wed Jan 20 03:32:30 UTC 2016


Package: parsinsert
Version: 1.04-1
Severity: important
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-6 gcc-6-invalid-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.

You may be able to find out more about this issue at
https://gcc.gnu.org/gcc-6/changes.html

> sbuild (Debian sbuild) 0.67.0 (26 Dec 2015) on dl580gen9-02.hlinux
...
> g++ -g -O3 -c -o ParsInsert.o ParsInsert.cpp
> In file included from ParsInsert.h:29:0,
>                  from ParsInsert.cpp:34:
> ParsimonySet.h: In member function 'void CParsimonySet::TraceSegments(const char*)':
> ParsimonySet.h:429:35: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
>              DisplayL("%s [", label);
>                                    ^
> 
> ParsimonySet.h:431:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
>                  DisplayL(" %3d", segCounts[k]);
>                                               ^
> 
> ParsimonySet.h:432:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
>              DisplayL("]\n");
>                            ^
> 
> ParsInsert.cpp: At global scope:
> ParsInsert.cpp:92:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
>  char                *statsName      = "PI_Results.log";
>                                        ^~~~~~~~~~~~~~~~
> 
> ParsInsert.cpp:93:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
>  char                *logFilename    = "ParsInsert.log";
>                                        ^~~~~~~~~~~~~~~~
> 
> ParsInsert.cpp:94:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
>  char                *treeFilename   = "PI_Tree.tree";
>                                        ^~~~~~~~~~~~~~
> 
> ParsInsert.cpp:95:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
>  char                *seqFilename    = "PI_Tree.fasta";
>                                        ^~~~~~~~~~~~~~~
> 
> ParsInsert.cpp:98:42: error: invalid conversion from 'int' to 'char*' [-fpermissive]
>  char                *files[64]      = {64*0};
>                                         ~~^~

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



More information about the Debian-med-packaging mailing list