Package: src:libmspub
Version: 0.1.4-1
Severity: normal
Tags: sid bullseye
User: debian-...@lists.debian.org
Usertags: ftbfs-gcc-10

Please keep this issue open in the bug tracker for the package it
was filed for.  If a fix in another package is required, please
file a bug for the other package (or clone), and add a block in this
package. Please keep the issue open until the package can be built in
a follow-up test rebuild.

The package fails to build in a test rebuild on at least amd64 with
gcc-10/g++-10, but succeeds to build with gcc-9/g++-9. The
severity of this report will be raised before the bullseye release,
so nothing has to be done for the buster release.

The full build log can be found at:
http://people.debian.org/~doko/logs/gcc10-20200225/libmspub_0.1.4-1_unstable_gcc10.log
The last lines of the build log are at the end of this report.

To build with GCC 10, either set CC=gcc-10 CXX=g++-10 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

  apt-get -t=experimental install g++ 

Common build failures are new warnings resulting in build failures with
-Werror turned on, or new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-10/porting_to.html

[...]
      |      ^~~~~~~~
In file included from MSPUBMetaData.cpp:10:
MSPUBMetaData.h:38:8: note: candidate is: ‘void 
libmspub::MSPUBMetaData::readPropertySet(librevenge::RVNGInputStream*, int, 
char*)’
   38 |   void readPropertySet(librevenge::RVNGInputStream *input, uint32_t 
offset, char *FMTID);
      |        ^~~~~~~~~~~~~~~
MSPUBMetaData.h:24:7: note: ‘class libmspub::MSPUBMetaData’ defined here
   24 | class MSPUBMetaData
      |       ^~~~~~~~~~~~~
MSPUBMetaData.cpp:141:10: error: no declaration matches ‘uint32_t 
libmspub::MSPUBMetaData::getCodePage()’
  141 | uint32_t libmspub::MSPUBMetaData::getCodePage()
      |          ^~~~~~~~
MSPUBMetaData.cpp:141:10: note: no functions named ‘uint32_t 
libmspub::MSPUBMetaData::getCodePage()’
In file included from MSPUBMetaData.cpp:10:
MSPUBMetaData.h:24:7: note: ‘class libmspub::MSPUBMetaData’ defined here
   24 | class MSPUBMetaData
      |       ^~~~~~~~~~~~~
MSPUBMetaData.cpp: In member function ‘void 
libmspub::MSPUBMetaData::readPropertyIdentifierAndOffset(librevenge::RVNGInputStream*)’:
MSPUBMetaData.cpp:160:19: error: request for member ‘push_back’ in 
‘((libmspub::MSPUBMetaData*)this)->libmspub::MSPUBMetaData::m_idsAndOffsets’, 
which is of non-class type ‘int’
  160 |   m_idsAndOffsets.push_back(std::make_pair(propertyIdentifier, offset));
      |                   ^~~~~~~~~
MSPUBMetaData.cpp: At global scope:
MSPUBMetaData.cpp:166:6: error: no declaration matches ‘void 
libmspub::MSPUBMetaData::readTypedPropertyValue(librevenge::RVNGInputStream*, 
uint32_t, uint32_t, char*)’
  166 | void 
libmspub::MSPUBMetaData::readTypedPropertyValue(librevenge::RVNGInputStream 
*input,
      |      ^~~~~~~~
In file included from MSPUBMetaData.cpp:10:
MSPUBMetaData.h:40:8: note: candidate is: ‘void 
libmspub::MSPUBMetaData::readTypedPropertyValue(librevenge::RVNGInputStream*, 
int, int, char*)’
   40 |   void readTypedPropertyValue(librevenge::RVNGInputStream *input, 
uint32_t index, uint32_t offset, char *FMTID);
      |        ^~~~~~~~~~~~~~~~~~~~~~
MSPUBMetaData.h:24:7: note: ‘class libmspub::MSPUBMetaData’ defined here
   24 | class MSPUBMetaData
      |       ^~~~~~~~~~~~~
MSPUBMetaData.cpp: In member function ‘librevenge::RVNGString 
libmspub::MSPUBMetaData::readCodePageString(librevenge::RVNGInputStream*)’:
MSPUBMetaData.cpp:250:23: error: ‘getCodePage’ was not declared in this scope
  250 |   uint32_t codepage = getCodePage();
      |                       ^~~~~~~~~~~
make[4]: *** [Makefile:563: MSPUBMetaData.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
MSPUBParser.cpp: In member function ‘bool 
libmspub::MSPUBParser::parseFontChunk(librevenge::RVNGInputStream*, const 
libmspub::ContentChunkReference&)’:
MSPUBParser.cpp:565:41: warning: 
‘eotOffset.boost::optional_detail::tc_optional_base<unsigned int>::m_storage’ 
may be used uninitialized in this function [-Wmaybe-uninitialized]
  565 |             input->seek(eotOffset.get() + 4, librevenge::RVNG_SEEK_SET);
      |                         ~~~~~~~~~~~~~~~~^~~
MSPUBParser.cpp: In member function ‘bool 
libmspub::MSPUBParser::parseShape(librevenge::RVNGInputStream*, const 
libmspub::ContentChunkReference&)’:
MSPUBParser.cpp:800:97: warning: 
‘index.boost::optional_detail::tc_optional_base<unsigned int>::m_storage’ may 
be used uninitialized in this function [-Wmaybe-uninitialized]
  800 |         const ContentChunkReference &cellsChunk = 
m_contentChunks[m_cellsChunkIndices[get(index)]];
      |                                                                         
                        ^
MSPUBParser.cpp:863:34: warning: 
‘textId.boost::optional_detail::tc_optional_base<unsigned int>::m_storage’ may 
be used uninitialized in this function [-Wmaybe-uninitialized]
  863 |         m_collector->addTextShape(get(textId), chunk.seqNum);
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
MSPUBParser.cpp:754:39: warning: 
‘rowcolArrayOffset.boost::optional_detail::tc_optional_base<unsigned 
int>::m_storage’ may be used uninitialized in this function 
[-Wmaybe-uninitialized]
  754 |       while (stillReading(input, rcao + arrayLength))
      |                                  ~~~~~^~~~~~~~~~~~~
MSPUBParser.cpp:765:46: warning: 
‘numCols.boost::optional_detail::tc_optional_base<unsigned int>::m_storage’ may 
be used uninitialized in this function [-Wmaybe-uninitialized]
  765 |               if (columnWidthsInEmu.size() < nc)
      |                                              ^~
MSPUBParser.cpp:767:49: warning: 
‘numRows.boost::optional_detail::tc_optional_base<unsigned int>::m_storage’ may 
be used uninitialized in this function [-Wmaybe-uninitialized]
  767 |               else if (rowHeightsInEmu.size() < nr)
      |                                                 ^~
MSPUBParser.cpp:781:9: warning: 
‘cellsSeqNum.boost::optional_detail::tc_optional_base<unsigned int>::m_storage’ 
may be used uninitialized in this function [-Wmaybe-uninitialized]
  781 |         if (m_contentChunks[m_cellsChunkIndices[i]].seqNum == csn)
      |         ^~
make[4]: Leaving directory '/<<PKGBUILDDIR>>/src/lib'
make[3]: *** [Makefile:387: all-recursive] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/src'
make[2]: *** [Makefile:493: all-recursive] Error 1
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [Makefile:404: all] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_auto_build: error: make -j4 returned exit code 2
make: *** [debian/rules:7: binary] Error 25
dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit 
status 2

Reply via email to