[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#984204: libreoffice: ftbfs with GCC-11



Package: src:libreoffice
Version: 1:7.0.4-3
Severity: normal
Tags: sid bookworm
User: debian-gcc@lists.debian.org
Usertags: ftbfs-gcc-11

[This bug is not targeted to the upcoming bullseye release]

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-11/g++-11, but succeeds to build with gcc-10/g++-10. The
severity of this report will be raised before the bookworm release,
so nothing has to be done for the bullseye release.

The full build log can be found at:
http://people.debian.org/~doko/logs/20210228/filtered/gcc11/libreoffice_7.0.4-3_unstable_gcc11.log
The last lines of the build log are at the end of this report.

To build with GCC 11, either set CC=gcc-11 CXX=g++-11 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-11/porting_to.html

GCC 11 defaults to the GNU++17 standard.  If your package installs
header files in /usr/include, please don't work around C++17 issues
by choosing a lower C++ standard for the package build, but fix these
issues to build with the C++17 standard.

[...]
      |           ^~~~~~
/<<PKGBUILDDIR>>/include/o3tl/lru_map.hxx:17:1: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
   16 | #include <unordered_map>
  +++ |+#include <cstddef>
   17 | 
/<<PKGBUILDDIR>>/include/o3tl/lru_map.hxx:69:19: error: expected ‘)’ before ‘nMaxSize’
   69 |     lru_map(size_t nMaxSize)
      |            ~      ^~~~~~~~~
      |                   )
/<<PKGBUILDDIR>>/include/o3tl/lru_map.hxx:168:5: error: ‘size_t’ does not name a type
  168 |     size_t size() const
      |     ^~~~~~
/<<PKGBUILDDIR>>/include/o3tl/lru_map.hxx:168:5: note: ‘size_t’ is defined in header ‘<cstddef>’; did you forget to ‘#include <cstddef>’?
/<<PKGBUILDDIR>>/include/o3tl/lru_map.hxx: In member function ‘void o3tl::lru_map<Key, Value, KeyHash, KeyEqual>::checkLRU()’:
/<<PKGBUILDDIR>>/include/o3tl/lru_map.hxx:55:30: error: ‘mMaxSize’ was not declared in this scope
   55 |         if (mLruMap.size() > mMaxSize)
      |                              ^~~~~~~~
S=/<<PKGBUILDDIR>> && I=$S/instdir && W=$S/workdir &&  mkdir -p $W/CxxObject/vcl/source/window/ $W/Dep/CxxObject/vcl/source/window/ && cd /<<PKGBUILDDIR>> &&   	  x86_64-linux-gnu-g++ -DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_SYSTEM_NO_DEPRECATED -DCPPU_ENV=gcc3 -DLINUX -DNDEBUG -DOSL_DEBUG_LEVEL=0 -DUNIX -DUNX -DX86_64 -D_FORTIFY_SOURCE=2 -D_PTHREADS -D_REENTRANT -Wdate-time -Wdate-time -D_FORTIFY_SOURCE=2 -DVCL_DLLIMPLEMENTATION -DDLLIMPLEMENTATION_UITEST -DCUI_DLL_NAME=\"libcuilo.so\" -DDESKTOP_DETECTOR_DLL_NAME=\"\" -DTK_DLL_NAME=\"libmergedlo.so\"  -DGLM_ENABLE_EXPERIMENTAL  -DGLM_FORCE_CTOR_INIT   -fvisibility=hidden  -Wno-stringop-overflow   -Wall -Wno-missing-braces -Wnon-virtual-dtor -Wendif-labels -Wextra -Wundef -Wunreachable-code -Wunused-macros  -finput-charset=UTF-8 -fmessage-length=0 -fno-common -pipe   -Wdeprecated-copy-dtor -Wduplicated-cond -Wlogical-op -Wshift-overflow=2 -Wunused-const-variable=1 -Wno-cast-function-type -fvisibility-inlines-hidden -fPIC -Wshadow -Wove
 rloaded-virtual -std=c++17 -pthread  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security  -DEXCEPTIONS_ON -fexceptions -fno-enforce-eh-specs    -DLIBO_INTERNAL_ONLY  -c $S/vcl/source/window/bufferdevice.cxx -o $W/CxxObject/vcl/source/window/bufferdevice.o -MMD -MT $W/CxxObject/vcl/source/window/bufferdevice.o -MP -MF $W/Dep/CxxObject/vcl/source/window/bufferdevice.d_ -isystem /usr/include/mdds-1.5 -I$W/UnpackedTarball/pdfium/public -DCOMPONENT_BUILD -I$S/include  -I/usr/lib/jvm/default-java/include -I/usr/lib/jvm/default-java/include/linux -I$S/config_host  -I$S/vcl/inc  -I$W/UnoApiHeadersTarget/udkapi/normal -I$W/UnoApiHeadersTarget/offapi/normal -I$W/CustomTarget/officecfg/registry         -isystem /usr/include/libpng16   -I/usr/include          -isystem /usr/include/harfbuzz -isystem /usr/include/glib-2.0 -isystem /usr/lib/x86_64-linux-gnu/glib-2.0/include -isystem /usr/include/freetype2 -isystem /usr/include/libpng16      -Wno-lo
 ng-long      -isystem /usr/include/cairo -isystem /usr/include/glib-2.0 -isystem /usr/lib/x86_64-linux-gnu/glib-2.0/include -isystem /usr/include/pixman-1 -isystem /usr/include/uuid -isystem /usr/include/freetype2 -isystem /usr/include/libpng16     -isystem /usr/include/freetype2 -isystem /usr/include/libpng16     -isystem /usr/include/freetype2 -isystem /usr/include/libpng16     -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16   && mv $W/Dep/CxxObject/vcl/source/window/bufferdevice.d_ $W/Dep/CxxObject/vcl/source/window/bufferdevice.d 
[build CXX] vcl/source/window/accessibility.cxx
S=/<<PKGBUILDDIR>> && I=$S/instdir && W=$S/workdir &&  mkdir -p $W/CxxObject/vcl/source/window/ $W/Dep/CxxObject/vcl/source/window/ && cd /<<PKGBUILDDIR>> &&   	  x86_64-linux-gnu-g++ -DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_SYSTEM_NO_DEPRECATED -DCPPU_ENV=gcc3 -DLINUX -DNDEBUG -DOSL_DEBUG_LEVEL=0 -DUNIX -DUNX -DX86_64 -D_FORTIFY_SOURCE=2 -D_PTHREADS -D_REENTRANT -Wdate-time -Wdate-time -D_FORTIFY_SOURCE=2 -DVCL_DLLIMPLEMENTATION -DDLLIMPLEMENTATION_UITEST -DCUI_DLL_NAME=\"libcuilo.so\" -DDESKTOP_DETECTOR_DLL_NAME=\"\" -DTK_DLL_NAME=\"libmergedlo.so\"  -DGLM_ENABLE_EXPERIMENTAL  -DGLM_FORCE_CTOR_INIT   -fvisibility=hidden  -Wno-stringop-overflow   -Wall -Wno-missing-braces -Wnon-virtual-dtor -Wendif-labels -Wextra -Wundef -Wunreachable-code -Wunused-macros  -finput-charset=UTF-8 -fmessage-length=0 -fno-common -pipe   -Wdeprecated-copy-dtor -Wduplicated-cond -Wlogical-op -Wshift-overflow=2 -Wunused-const-variable=1 -Wno-cast-function-type -fvisibility-inlines-hidden -fPIC -Wshadow -Wove
 rloaded-virtual -std=c++17 -pthread  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security  -DEXCEPTIONS_ON -fexceptions -fno-enforce-eh-specs    -DLIBO_INTERNAL_ONLY  -c $S/vcl/source/window/accessibility.cxx -o $W/CxxObject/vcl/source/window/accessibility.o -MMD -MT $W/CxxObject/vcl/source/window/accessibility.o -MP -MF $W/Dep/CxxObject/vcl/source/window/accessibility.d_ -isystem /usr/include/mdds-1.5 -I$W/UnpackedTarball/pdfium/public -DCOMPONENT_BUILD -I$S/include  -I/usr/lib/jvm/default-java/include -I/usr/lib/jvm/default-java/include/linux -I$S/config_host  -I$S/vcl/inc  -I$W/UnoApiHeadersTarget/udkapi/normal -I$W/UnoApiHeadersTarget/offapi/normal -I$W/CustomTarget/officecfg/registry         -isystem /usr/include/libpng16   -I/usr/include          -isystem /usr/include/harfbuzz -isystem /usr/include/glib-2.0 -isystem /usr/lib/x86_64-linux-gnu/glib-2.0/include -isystem /usr/include/freetype2 -isystem /usr/include/libpng16      -Wn
 o-long-long      -isystem /usr/include/cairo -isystem /usr/include/glib-2.0 -isystem /usr/lib/x86_64-linux-gnu/glib-2.0/include -isystem /usr/include/pixman-1 -isystem /usr/include/uuid -isystem /usr/include/freetype2 -isystem /usr/include/libpng16     -isystem /usr/include/freetype2 -isystem /usr/include/libpng16     -isystem /usr/include/freetype2 -isystem /usr/include/libpng16     -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16   && mv $W/Dep/CxxObject/vcl/source/window/accessibility.d_ $W/Dep/CxxObject/vcl/source/window/accessibility.d 
[build CXX] vcl/source/window/legacyaccessibility.cxx
In file included from /<<PKGBUILDDIR>>/vcl/source/window/brdwin.cxx:21:
/<<PKGBUILDDIR>>/vcl/inc/svdata.hxx: At global scope:
/<<PKGBUILDDIR>>/vcl/inc/svdata.hxx:224:62: error: no matching function for call to ‘o3tl::lru_map<ScaleCacheKey, BitmapEx>::lru_map(int)’
  224 |     lru_scale_cache         maScaleCache = lru_scale_cache(10); // Cache for scaled images
      |                                                              ^
In file included from /<<PKGBUILDDIR>>/vcl/inc/svdata.hxx:25,
                 from /<<PKGBUILDDIR>>/vcl/source/window/brdwin.cxx:21:
/<<PKGBUILDDIR>>/include/o3tl/lru_map.hxx:35:7: note: candidate: ‘o3tl::lru_map<ScaleCacheKey, BitmapEx>::lru_map()’
   35 | class lru_map final
      |       ^~~~~~~
/<<PKGBUILDDIR>>/include/o3tl/lru_map.hxx:35:7: note:   candidate expects 0 arguments, 1 provided
/<<PKGBUILDDIR>>/include/o3tl/lru_map.hxx:35:7: note: candidate: ‘o3tl::lru_map<ScaleCacheKey, BitmapEx>::lru_map(const o3tl::lru_map<ScaleCacheKey, BitmapEx>&)’
/<<PKGBUILDDIR>>/include/o3tl/lru_map.hxx:35:7: note:   no known conversion for argument 1 from ‘int’ to ‘const o3tl::lru_map<ScaleCacheKey, BitmapEx>&’
In file included from /<<PKGBUILDDIR>>/vcl/source/window/brdwin.cxx:21:
/<<PKGBUILDDIR>>/vcl/inc/svdata.hxx:231:95: error: no matching function for call to ‘o3tl::lru_map<rtl::OUString, BitmapEx>::lru_map(int)’
  231 |     o3tl::lru_map<OUString, BitmapEx> maThemeImageCache = o3tl::lru_map<OUString, BitmapEx>(10);
      |                                                                                               ^
In file included from /<<PKGBUILDDIR>>/vcl/inc/svdata.hxx:25,
                 from /<<PKGBUILDDIR>>/vcl/source/window/brdwin.cxx:21:
/<<PKGBUILDDIR>>/include/o3tl/lru_map.hxx:35:7: note: candidate: ‘o3tl::lru_map<rtl::OUString, BitmapEx>::lru_map()’
   35 | class lru_map final
      |       ^~~~~~~
/<<PKGBUILDDIR>>/include/o3tl/lru_map.hxx:35:7: note:   candidate expects 0 arguments, 1 provided
/<<PKGBUILDDIR>>/include/o3tl/lru_map.hxx:35:7: note: candidate: ‘o3tl::lru_map<rtl::OUString, BitmapEx>::lru_map(const o3tl::lru_map<rtl::OUString, BitmapEx>&)’
/<<PKGBUILDDIR>>/include/o3tl/lru_map.hxx:35:7: note:   no known conversion for argument 1 from ‘int’ to ‘const o3tl::lru_map<rtl::OUString, BitmapEx>&’
In file included from /<<PKGBUILDDIR>>/vcl/source/window/brdwin.cxx:21:
/<<PKGBUILDDIR>>/vcl/inc/svdata.hxx:232:112: error: no matching function for call to ‘o3tl::lru_map<rtl::OUString, gfx::DrawRoot>::lru_map(int)’
  232 |     o3tl::lru_map<OUString, gfx::DrawRoot> maThemeDrawCommandsCache = o3tl::lru_map<OUString, gfx::DrawRoot>(50);
      |                                                                                                                ^
In file included from /<<PKGBUILDDIR>>/vcl/inc/svdata.hxx:25,
                 from /<<PKGBUILDDIR>>/vcl/source/window/brdwin.cxx:21:
/<<PKGBUILDDIR>>/include/o3tl/lru_map.hxx:35:7: note: candidate: ‘o3tl::lru_map<rtl::OUString, gfx::DrawRoot>::lru_map()’
   35 | class lru_map final
      |       ^~~~~~~
/<<PKGBUILDDIR>>/include/o3tl/lru_map.hxx:35:7: note:   candidate expects 0 arguments, 1 provided
/<<PKGBUILDDIR>>/include/o3tl/lru_map.hxx:35:7: note: candidate: ‘o3tl::lru_map<rtl::OUString, gfx::DrawRoot>::lru_map(const o3tl::lru_map<rtl::OUString, gfx::DrawRoot>&)’
/<<PKGBUILDDIR>>/include/o3tl/lru_map.hxx:35:7: note:   no known conversion for argument 1 from ‘int’ to ‘const o3tl::lru_map<rtl::OUString, gfx::DrawRoot>&’
S=/<<PKGBUILDDIR>> && I=$S/instdir && W=$S/workdir &&  mkdir -p $W/CxxObject/vcl/source/window/ $W/Dep/CxxObject/vcl/source/window/ && cd /<<PKGBUILDDIR>> &&   	  x86_64-linux-gnu-g++ -DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_SYSTEM_NO_DEPRECATED -DCPPU_ENV=gcc3 -DLINUX -DNDEBUG -DOSL_DEBUG_LEVEL=0 -DUNIX -DUNX -DX86_64 -D_FORTIFY_SOURCE=2 -D_PTHREADS -D_REENTRANT -Wdate-time -Wdate-time -D_FORTIFY_SOURCE=2 -DVCL_DLLIMPLEMENTATION -DDLLIMPLEMENTATION_UITEST -DCUI_DLL_NAME=\"libcuilo.so\" -DDESKTOP_DETECTOR_DLL_NAME=\"\" -DTK_DLL_NAME=\"libmergedlo.so\"  -DGLM_ENABLE_EXPERIMENTAL  -DGLM_FORCE_CTOR_INIT   -fvisibility=hidden  -Wno-stringop-overflow   -Wall -Wno-missing-braces -Wnon-virtual-dtor -Wendif-labels -Wextra -Wundef -Wunreachable-code -Wunused-macros  -finput-charset=UTF-8 -fmessage-length=0 -fno-common -pipe   -Wdeprecated-copy-dtor -Wduplicated-cond -Wlogical-op -Wshift-overflow=2 -Wunused-const-variable=1 -Wno-cast-function-type -fvisibility-inlines-hidden -fPIC -Wshadow -Wove
 rloaded-virtual -std=c++17 -pthread  -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security  -DEXCEPTIONS_ON -fexceptions -fno-enforce-eh-specs    -DLIBO_INTERNAL_ONLY  -c $S/vcl/source/window/legacyaccessibility.cxx -o $W/CxxObject/vcl/source/window/legacyaccessibility.o -MMD -MT $W/CxxObject/vcl/source/window/legacyaccessibility.o -MP -MF $W/Dep/CxxObject/vcl/source/window/legacyaccessibility.d_ -isystem /usr/include/mdds-1.5 -I$W/UnpackedTarball/pdfium/public -DCOMPONENT_BUILD -I$S/include  -I/usr/lib/jvm/default-java/include -I/usr/lib/jvm/default-java/include/linux -I$S/config_host  -I$S/vcl/inc  -I$W/UnoApiHeadersTarget/udkapi/normal -I$W/UnoApiHeadersTarget/offapi/normal -I$W/CustomTarget/officecfg/registry         -isystem /usr/include/libpng16   -I/usr/include          -isystem /usr/include/harfbuzz -isystem /usr/include/glib-2.0 -isystem /usr/lib/x86_64-linux-gnu/glib-2.0/include -isystem /usr/include/freetype2 -isystem /usr/i
 nclude/libpng16      -Wno-long-long      -isystem /usr/include/cairo -isystem /usr/include/glib-2.0 -isystem /usr/lib/x86_64-linux-gnu/glib-2.0/include -isystem /usr/include/pixman-1 -isystem /usr/include/uuid -isystem /usr/include/freetype2 -isystem /usr/include/libpng16     -isystem /usr/include/freetype2 -isystem /usr/include/libpng16     -isystem /usr/include/freetype2 -isystem /usr/include/libpng16     -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16   && mv $W/Dep/CxxObject/vcl/source/window/legacyaccessibility.d_ $W/Dep/CxxObject/vcl/source/window/legacyaccessibility.d 
[build CXX] vcl/source/window/clipping.cxx
make[3]: *** [/<<PKGBUILDDIR>>/solenv/gbuild/LinkTarget.mk:301: /<<PKGBUILDDIR>>/workdir/CxxObject/vcl/source/window/brdwin.o] Error 1
make[3]: *** Waiting for unfinished jobs....
rm /<<PKGBUILDDIR>>/workdir/CustomTarget/i18npool/breakiterator/dict_word.txt /<<PKGBUILDDIR>>/workdir/CustomTarget/i18npool/breakiterator/char.brk /<<PKGBUILDDIR>>/workdir/CustomTarget/i18npool/breakiterator/sent.brk /<<PKGBUILDDIR>>/workdir/CustomTarget/i18npool/breakiterator/char_in.txt /<<PKGBUILDDIR>>/workdir/CustomTarget/i18npool/breakiterator/edit_word_hu.txt /<<PKGBUILDDIR>>/workdir/CustomTarget/i18npool/breakiterator/edit_word.brk /<<PKGBUILDDIR>>/workdir/CustomTarget/i18npool/breakiterator/line.txt /<<PKGBUILDDIR>>/workdir/CustomTarget/i18npool/breakiterator/dict_word_prepostdash.txt /<<PKGBUILDDIR>>/workdir/CustomTarget/i18npool/breakiterator/edit_word_he.brk /<<PKGBUILDDIR>>/workdir/CustomTarget/i18npool/breakiterator/dict_word_nodash.brk /<<PKGBUILDDIR>>/workdir/CustomTarget/i18npool/breakiterator/dict_word_he.brk /<<PKGBUILDDIR>>/workdir/CustomTarget/i18npool/breakiterator/dict_word_hu.txt /<<PKGBUILDDIR>>/workdir/CustomTarget/i18npool/breakiterator/edit_word_hu.brk /<<
 PKGBUILDDIR>>/workdir/CustomTarget/i18npool/breakiterator/char_in.brk /<<PKGBUILDDIR>>/workdir/CustomTarget/i18npool/breakiterator/count_word.brk /<<PKGBUILDDIR>>/workdir/CustomTarget/i18npool/breakiterator/dict_word_prepostdash.brk /<<PKGBUILDDIR>>/workdir/CustomTarget/i18npool/breakiterator/dict_word_nodash.txt /<<PKGBUILDDIR>>/workdir/CustomTarget/i18npool/breakiterator/char.txt /<<PKGBUILDDIR>>/workdir/CustomTarget/i18npool/breakiterator/edit_word_he.txt /<<PKGBUILDDIR>>/workdir/CustomTarget/i18npool/breakiterator/count_word.txt /<<PKGBUILDDIR>>/workdir/CustomTarget/i18npool/breakiterator/dict_word_hu.brk /<<PKGBUILDDIR>>/workdir/CustomTarget/i18npool/breakiterator/dict_word_he.txt /<<PKGBUILDDIR>>/workdir/CustomTarget/i18npool/breakiterator/line.brk /<<PKGBUILDDIR>>/workdir/CustomTarget/i18npool/breakiterator/sent.txt /<<PKGBUILDDIR>>/workdir/CustomTarget/i18npool/breakiterator/edit_word.txt /<<PKGBUILDDIR>>/workdir/CustomTarget/i18npool/breakiterator/dict_word.brk
make[3]: Leaving directory '/<<PKGBUILDDIR>>'
make[2]: *** [Makefile:274: build] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [/<<PKGBUILDDIR>>/debian/rules:1926: debian/stampdir/build-arch] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:1916: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2


Reply to: