Package: aegis
Version: 4.24.3-3
Severity: important
User: [email protected]
Usertags: ftbfs-gcc-6 gcc-6-exception-specifier

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
...
> mv libdir.o common/libdir.o
> g++ -I. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector-strong 
> -Wformat -Werror=format-security -Wall  -I/usr/include/libxml2 -c 
> common/mem.cc
> In file included from /usr/include/string.h:25:0,
>                  from ./common/ac/string.h:26,
>                  from common/mem.cc:21:
> /usr/include/features.h:148:3: warning: #warning "_BSD_SOURCE and 
> _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
>  # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
>    ^~~~~~~
> 
> common/mem.cc: In function 'void* operator new(size_t)':
> common/mem.cc:246:1: error: declaration of 'void* operator new(size_t) throw 
> (std::bad_alloc)' has a different exception specifier
>  operator new(size_t nbytes)
>  ^~~~~~~~
> 
> In file included from common/mem.cc:26:0:
> ./common/mem.h:134:7: note: from previous declaration 'void* operator 
> new(std::size_t)'
>  void *operator new(size_t nbytes) THROW_BAD_ALLOC;
>        ^~~~~~~~
> 
> common/mem.cc: In function 'void* operator new [](size_t)':
> common/mem.cc:266:1: error: declaration of 'void* operator new [](size_t) 
> throw (std::bad_alloc)' has a different exception specifier
>  operator new[](size_t nbytes)
>  ^~~~~~~~
> 
> In file included from common/mem.cc:26:0:
> ./common/mem.h:141:7: note: from previous declaration 'void* operator new 
> [](std::size_t)'
>  void *operator new[](size_t nbytes) THROW_BAD_ALLOC;
>        ^~~~~~~~
> 
> Makefile:9040: recipe for target 'common/mem.o' failed
> make[1]: *** [common/mem.o] Error 1

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

Reply via email to