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

Bug#811913: tuxcmd-modules: FTBFS with GCC 6: declared in this scope



Package: tuxcmd-modules
Version: 0.6.70+ds-5
Severity: important
User: debian-gcc@lists.debian.org
Usertags: ftbfs-gcc-6 gcc-6-not-declared

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
...
> g++ -I. -I./ZipArchive/ -I/usr/include -Wall -fPIC -O2 -g -DG_DISABLE_DEPRECATED -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -D__VERBOSE_DEBUGx `pkg-config glib-2.0 --cflags` -c zip.cpp
> In file included from zip.cpp:39:0:
> strutils.h:32:24: error: expected unqualified-id before '{' token
>    #define log(msg...)  { }
>                         ^
> 
> In file included from /usr/include/features.h:361:0,
>                  from /usr/include/string.h:25,
>                  from zip.cpp:27:
> /usr/include/x86_64-linux-gnu/bits/mathcalls.h:109:1: error: expected unqualified-id before 'throw'
>  __MATHCALL_VEC (log,, (_Mdouble_ __x));
>  ^
> 
> In file included from /usr/include/c++/6/random:38:0,
>                  from /usr/include/c++/6/bits/stl_algo.h:66,
>                  from /usr/include/c++/6/algorithm:62,
>                  from ./ZipArchive/ZipString_stl.h:27,
>                  from ./ZipArchive/ZipString.h:32,
>                  from ./ZipArchive/ZipException.h:35,
>                  from ./ZipArchive/ZipArchive.h:40,
>                  from zip.cpp:44:
> /usr/include/c++/6/cmath:353:11: error: '::log' has not been declared
>    using ::log;
>            ^~~
> 
> In file included from /usr/include/c++/6/random:49:0,
>                  from /usr/include/c++/6/bits/stl_algo.h:66,
>                  from /usr/include/c++/6/algorithm:62,
>                  from ./ZipArchive/ZipString_stl.h:27,
>                  from ./ZipArchive/ZipString.h:32,
>                  from ./ZipArchive/ZipException.h:35,
>                  from ./ZipArchive/ZipArchive.h:40,
>                  from zip.cpp:44:
> /usr/include/c++/6/bits/random.h: In member function 'void std::geometric_distribution<_IntType>::param_type::_M_initialize()':
> /usr/include/c++/6/bits/random.h:4040:36: error: call of overloaded 'log(double)' is ambiguous
>   { _M_log_1_p = std::log(1.0 - _M_p); }
>                                     ^
> 
> In file included from /usr/include/c++/6/random:38:0,
>                  from /usr/include/c++/6/bits/stl_algo.h:66,
>                  from /usr/include/c++/6/algorithm:62,
>                  from ./ZipArchive/ZipString_stl.h:27,
>                  from ./ZipArchive/ZipString.h:32,
>                  from ./ZipArchive/ZipException.h:35,
>                  from ./ZipArchive/ZipArchive.h:40,
>                  from zip.cpp:44:
> /usr/include/c++/6/cmath:357:3: note: candidate: constexpr float std::log(float)
>    log(float __x)
>    ^~~
> 
> /usr/include/c++/6/cmath:361:3: note: candidate: constexpr long double std::log(long double)
>    log(long double __x)
>    ^~~
> 
> In file included from /usr/include/c++/6/random:51:0,
>                  from /usr/include/c++/6/bits/stl_algo.h:66,
>                  from /usr/include/c++/6/algorithm:62,
>                  from ./ZipArchive/ZipString_stl.h:27,
>                  from ./ZipArchive/ZipString.h:32,
>                  from ./ZipArchive/ZipException.h:35,
>                  from ./ZipArchive/ZipArchive.h:40,
>                  from zip.cpp:44:
> /usr/include/c++/6/bits/random.tcc: In member function 'void std::poisson_distribution<_IntType>::param_type::_M_initialize()':
> /usr/include/c++/6/bits/random.tcc:1401:32: error: call of overloaded 'log(double&)' is ambiguous
>     _M_lm_thr = std::log(_M_mean);
>                                 ^
> 
> In file included from /usr/include/c++/6/random:38:0,
>                  from /usr/include/c++/6/bits/stl_algo.h:66,
>                  from /usr/include/c++/6/algorithm:62,
>                  from ./ZipArchive/ZipString_stl.h:27,
>                  from ./ZipArchive/ZipString.h:32,
>                  from ./ZipArchive/ZipException.h:35,
>                  from ./ZipArchive/ZipArchive.h:40,
>                  from zip.cpp:44:
> /usr/include/c++/6/cmath:357:3: note: candidate: constexpr float std::log(float)
>    log(float __x)
>    ^~~
> 
> /usr/include/c++/6/cmath:361:3: note: candidate: constexpr long double std::log(long double)
>    log(long double __x)
>    ^~~
> 
> In file included from /usr/include/c++/6/random:51:0,
>                  from /usr/include/c++/6/bits/stl_algo.h:66,
>                  from /usr/include/c++/6/algorithm:62,
>                  from ./ZipArchive/ZipString_stl.h:27,
>                  from ./ZipArchive/ZipString.h:32,
>                  from ./ZipArchive/ZipException.h:35,
>                  from ./ZipArchive/ZipArchive.h:40,
>                  from zip.cpp:44:
> /usr/include/c++/6/bits/random.tcc:1407:22: error: call of overloaded 'log(double)' is ambiguous
>               / __pi_4));
>                       ^


Reply to: