--- Begin Message ---
- To: submit@bugs.debian.org
- Subject: FTBFS with GCC 6: cannot convert x to y
- From: Martin Michlmayr <tbm@hpe.com>
- Date: Tue, 19 Jan 2016 16:36:44 -0800
- Message-id: <20160120003644.GX4951@jirafa.cyrius.com>
- In-reply-to: <20160119111804.F4015280CB5@dl580gen9-02.hlinux>
- References: <20160119111804.F4015280CB5@dl580gen9-02.hlinux>
Package: rlplot
Version: 1.5-2
Severity: important
User: debian-gcc@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
...
> g++ -I/usr/include/qt4/Qt -I/usr/include/qt4 -pipe -O2 -o rlplot.o -c rlplot.cpp
> In file included from rlplot.cpp:19:0:
> rlplot.h:398:2: warning: 'typedef' was ignored in this declaration
> typedef struct edge {
> ^~~~~~~
>
> rlplot.cpp: In member function 'bool Label::CalcRect(anyOutput*)':
> rlplot.cpp:5829:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
> if(!(o->oGetTextExtent("A", 1, &rx, &ry))) return false;
> ^
>
> rlplot.cpp: In member function 'void TextFrame::AddChar(anyOutput*, int)':
> rlplot.cpp:6850:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
> if(c == 8) ReplMark(o, "");
> ^
>
> rlplot.cpp: In member function 'void TextFrame::DelChar(anyOutput*)':
> rlplot.cpp:6911:17: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
> ReplMark(o, ""); return;
> ^
>
> rlplot.cpp: In member function 'bool TextFrame::CopyText(anyOutput*, bool)':
> rlplot.cpp:7163:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
> if(b_cut) ReplMark(o, "");
> ^
>
> rlplot.cpp: In destructor 'virtual Graph::~Graph()':
> rlplot.cpp:8950:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
> Undo.InvalidGO(this); DoZoom("reset");
> ^
>
> rlplot.cpp: In member function 'virtual bool Graph::Command(int, void*, anyOutput*)':
> rlplot.cpp:9151:43: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
> "a graph before you can add a legend.");
> ^
>
> rlplot.cpp:9280:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
> "a graph before you can add an axis.");
> ^
>
> rlplot.cpp:9363:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
> InfoBox("Axes used for scaling\ncan not be deleted.");
> ^
>
> rlplot.cpp:9413:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
> "a graph before you can add a plot.");
> ^
>
> g++ -I/usr/include/qt4/Qt -I/usr/include/qt4 -pipe -O2 -o Fileio.o -c Fileio.cpp
> Fileio.cpp:96:39: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
> add_to_buff(&ptr, &cbOut, &sizeOut, "\" created by RLPlot version "SZ_VERSION" for ", 0);
> ^
>
> In file included from Fileio.cpp:20:0:
> rlplot.h:398:2: warning: 'typedef' was ignored in this declaration
> typedef struct edge {
> ^~~~~~~
>
> Fileio.cpp: In function 'int OpenOutputFile(char*)':
> Fileio.cpp:88:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
> ErrorBox("Open failed for output file");
> ^
>
> Fileio.cpp:94:51: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
> cbOut = rlp_strcpy(ptr, 20, ";RLP 1.0\n;File \"");
> ^
>
> Fileio.cpp:96:90: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
> add_to_buff(&ptr, &cbOut, &sizeOut, "\" created by RLPlot version "SZ_VERSION" for ", 0);
> ^
>
> Fileio.cpp:100:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
> add_to_buff(&ptr, &cbOut, &sizeOut, "Qt", 2);
> ^
>
> Fileio.cpp:102:59: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
> add_to_buff(&ptr, &cbOut, &sizeOut, "\n;Date/Time: ", 13);
> ^
>
> Fileio.cpp: In function 'void WriteTypObjLst(GraphObj**, int)':
> Fileio.cpp:144:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
> add_to_buff(&ptr, &cbOut, &sizeOut, "(", 1);
> ^
>
> Fileio.cpp:146:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
> add_to_buff(&ptr, &cbOut, &sizeOut, "){", 2);
> ^
>
> Fileio.cpp:148:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
> if(i) add_to_buff(&ptr, &cbOut, &sizeOut, " ", 3);
> ^
>
> Fileio.cpp:152:57: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
> if(n >= no) add_to_buff(&ptr, &cbOut, &sizeOut, "}", 1);
> ^
>
> Fileio.cpp:153:51: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
> else add_to_buff(&ptr, &cbOut, &sizeOut, "\n", 1);
> ^
>
> Fileio.cpp: In function 'void WriteTypIpLst(POINT*, int)':
> Fileio.cpp:162:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
> add_to_buff(&ptr, &cbOut, &sizeOut, "(", 1);
> ^
>
> Fileio.cpp:164:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
> add_to_buff(&ptr, &cbOut, &sizeOut, "){", 2);
> ^
>
> Fileio.cpp:170:60: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
> if(n >= count) add_to_buff(&ptr, &cbOut, &sizeOut, "}", 1);
> ^
>
> Fileio.cpp:171:51: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
> else add_to_buff(&ptr, &cbOut, &sizeOut, "\n", 1);
> ^
>
> Fileio.cpp: In function 'void WriteTypFpLst(lfPOINT*, long int, bool)':
> Fileio.cpp:181:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
> add_to_buff(&ptr, &cbOut, &sizeOut, "(", 1);
> ^
>
> Fileio.cpp:183:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
> add_to_buff(&ptr, &cbOut, &sizeOut, "){", 2);
> ^
>
> Fileio.cpp:189:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
> add_to_buff(&ptr, &cbOut, &sizeOut, "\n", 1);
> ^
>
> Fileio.cpp:192:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
> add_to_buff(&ptr, &cbOut, &sizeOut, " {", 2);
> ^
>
> Fileio.cpp:199:60: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
> if(n >= count) add_to_buff(&ptr, &cbOut, &sizeOut, "}", 1);
> ^
>
> Fileio.cpp:200:51: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
> else add_to_buff(&ptr, &cbOut, &sizeOut, "\n", 1);
> ^
>
> Fileio.cpp: In function 'void WriteTypFpLst3D(fPOINT3D*, int)':
> Fileio.cpp:209:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
> add_to_buff(&ptr, &cbOut, &sizeOut, "(", 1);
> ^
>
> Fileio.cpp:211:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
> add_to_buff(&ptr, &cbOut, &sizeOut, "){", 2);
> ^
>
> Fileio.cpp:218:60: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
> if(n >= count) add_to_buff(&ptr, &cbOut, &sizeOut, "}", 1);
> ^
>
> Fileio.cpp:219:51: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
> else add_to_buff(&ptr, &cbOut, &sizeOut, "\n", 1);
> ^
>
> Fileio.cpp: In function 'bool ExecOutput(int, char*, descIO*)':
> Fileio.cpp:266:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
> add_to_buff(&ptr, &cbOut, &sizeOut, "\n[", 2);
> ^
>
> Fileio.cpp:268:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
> add_to_buff(&ptr, &cbOut, &sizeOut, "=", 1);
> ^
>
> Fileio.cpp:270:46: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
> add_to_buff(&ptr, &cbOut, &sizeOut, "]\n", 2);
> ^
>
> Fileio.cpp:273:71: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
> if(ptr[cbOut-1] != '\n') add_to_buff(&ptr, &cbOut, &sizeOut, "\n", 1);
> ^
>
> Fileio.cpp:276:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
> add_to_buff(&ptr, &cbOut, &sizeOut, "=", 1);
> ^
>
> Fileio.cpp:351:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
> add_to_buff(&ptr, &cbOut, &sizeOut, " 0x0", 4);
> ^
>
> Fileio.cpp:402:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
> add_to_buff(&ptr, &cbOut, &sizeOut, " \"", 2);
> ^
>
> Fileio.cpp:404:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
> add_to_buff(&ptr, &cbOut, &sizeOut, "\"\n", 2);
> ^
>
> Fileio.cpp:410:70: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
> if(ptr[cbOut-1] != '\n') add_to_buff(&ptr, &cbOut, &sizeOut, "\n", 1);
> ^
>
> Fileio.cpp: In function 'bool SaveGraphAs(GraphObj*)':
> Fileio.cpp:820:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
> ErrorBox("Output pending or\nno graph.");
> ^
>
> Fileio.cpp:841:50: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
> else ErrorBox("Could not write\ndata to file.");
> ^
>
> Fileio.cpp:843:48: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
> else ErrorBox("Open failed for\noutput file.");
> ^
>
> Fileio.cpp: In function 'char* GraphToMem(GraphObj*, long int*)':
> Fileio.cpp:856:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
> ErrorBox("Output pending or\nno graph.");
> ^
>
> Fileio.cpp:857:10: error: cannot convert 'bool' to 'char*' in return
> return false;
> ^~~~~
...
--
Martin Michlmayr
Linux for HPE Helion, Hewlett Packard Enterprise
--- End Message ---