Package: squid3
Version: 3.5.12-1
Severity: important
User: debian-...@lists.debian.org
Usertags: ftbfs-gcc-6

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.

You may be able to find out more about this issue at
https://gcc.gnu.org/gcc-6/changes.html

> sbuild (Debian sbuild) 0.67.0 (26 Dec 2015) on dl580gen9-02.hlinux
...
> libtool: compile:  g++ -DHAVE_CONFIG_H -DDEFAULT_STATEDIR=\"/var/run/squid\" 
> -I../.. -I../../include -I../../lib -I../../src -I../../include -isystem 
> /usr/include/mit-krb5 -I/usr/include/libxml2 -Wdate-time -D_FORTIFY_SOURCE=2 
> -I/usr/include/libxml2 -Wall -Wpointer-arith -Wwrite-strings -Wcomments 
> -Wshadow -Werror -pipe -D_REENTRANT -m64 -I/usr/include/p11-kit-1 -g -O2 
> -fstack-protector-strong -Wformat -Werror=format-security -c MemMap.cc  -fPIC 
> -DPIC -o .libs/MemMap.o
> In file included from ../../src/ipc/MemMap.h:13:0,
>                  from MemMap.cc:12:
> ../../src/ipc/mem/FlexibleArray.h: In instantiation of 
> 'Ipc::Mem::FlexibleArray<Item>::FlexibleArray(int) [with Item = 
> Ipc::MemMapSlot]':
> MemMap.cc:320:68:   required from here
> ../../src/ipc/mem/FlexibleArray.h:31:23: error: placement new constructing an 
> array of objects of type 'Ipc::MemMapSlot' and size '10312' in a region of 
> type 'Ipc::MemMapSlot [1]' and size '0' [-Werror=placement-new]
>              new (items+1) Item[capacity-1];
>                   ~~~~~^~
> 
> cc1plus: all warnings being treated as errors
> Makefile:882: recipe for target 'MemMap.lo' failed

-- 
Martin Michlmayr
Linux for HPE Helion, Hewlett Packard Enterprise

Reply via email to