Bug#811686: FTBFS with GCC 6: enumerator value for... is not
Package: libreoffice
Version: 1:5.0.4~rc2-2
Severity: important
User: debian-gcc@lists.debian.org
Usertags: ftbfs-gcc-6 gcc-6-enumerator-value
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
...
> /<<PKGBUILDDIR>>/basebmp/source/bitmapdevice.cxx:607:17: required from 'void basebmp::{anonymous}::BitmapRenderer<DestIterator, RawAccessor, AccessorSelector, Masks>::implDrawPolygon(const basegfx::B2DPolygon&, const basegfx::B2IBox&, basebmp::Color, const Iterator&, const RawAcc&) [with Iterator = basebmp::PackedPixelIterator<unsigned char, 1, false>; RawAcc = basebmp::BinarySetterFunctionAccessorAdapter<basebmp::NonStandardAccessor<unsigned char>, basebmp::XorFunctor<unsigned char> >; DestIterator = basebmp::PackedPixelIterator<unsigned char, 1, false>; RawAccessor = basebmp::NonStandardAccessor<unsigned char>; AccessorSelector = basebmp::PaletteAccessorSelector<basebmp::Color>; Masks = basebmp::StdMasks]'
> /<<PKGBUILDDIR>>/basebmp/source/bitmapdevice.cxx:629:17: required from 'void basebmp::{anonymous}::BitmapRenderer<DestIterator, RawAccessor, AccessorSelector, Masks>::drawPolygon_i(const basegfx::B2DPolygon&, const basegfx::B2IBox&, basebmp::Color, basebmp::DrawMode) [with DestIterator = basebmp::PackedPixelIterator<unsigned char, 1, false>; RawAccessor = basebmp::NonStandardAccessor<unsigned char>; AccessorSelector = basebmp::PaletteAccessorSelector<basebmp::Color>; Masks = basebmp::StdMasks]'
> /<<PKGBUILDDIR>>/basebmp/source/bitmapdevice.cxx:2281:1: required from here
> /<<PKGBUILDDIR>>/include/basebmp/packedpixeliterator.hxx:81:23: warning: left shift of negative value [-Wshift-negative-value]
> bit_mask=~(~0 << bits_per_pixel)
> ~~~~^~~~~~~~~~~~~~~~~~
>
> /<<PKGBUILDDIR>>/include/basebmp/packedpixeliterator.hxx:81:23: error: left operand of shift expression '(-1 << 1)' is negative [-fpermissive]
> /<<PKGBUILDDIR>>/include/basebmp/packedpixeliterator.hxx:75:10: error: enumerator value for 'bit_mask' is not an integer constant
> enum {
> ^
--
Martin Michlmayr
Linux for HPE Helion, Hewlett Packard Enterprise
Reply to: