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

Re: Bug#811686: FTBFS with GCC 6: enumerator value for... is not



tag 811686 + pending
thanks

Hi,

On Tue, Jan 19, 2016 at 04:58:11PM -0800, Martin Michlmayr wrote:
> Note that only the first error is reported; there might be more.  You

There definitely are. (And some subtle ones, reading from upstreams commits
for 5.2.x)

> > /<<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 {
> >           ^

That one's fixed by http://cgit.freedesktop.org/libreoffice/core/commit/basebmp/inc/packedpixeliterator.hxx?id=352f9fdff619b5a0a1414c29cfc47068165a599c
(actually in 5.2.x the whole thing is gone.) but there definitely are more.

See https://whatofhow.wordpress.com/2016/01/20/gcc-6/.

And when trying it on 5.1.x I get a ICE :/
(actually Stephans post above says two ICEs, one of them can be worked around
in LO, the other one (PR 69327) is to be patched in boost but at least in my
attempt[¹] I didn't run into a ICE. But if it happened we'd need a patched boost
and/or we wait for a fixed gcc 6...)

TL;DR: Will be fixed in 5.1 packages.

Regards,

Rene

[¹] http://anonscm.debian.org/cgit/pkg-openoffice/libreoffice.git/commit/?h=debian-experimental-5.1&id=4d0c964951697d437c6d12a70e64d73bae6b81a4


Reply to: