Package: packup
Version: 0.6-2
Severity: important
User: [email protected]
Usertags: ftbfs-gcc-6 gcc-6-reference-ambiguous

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
...
> Compiling: Lexer.o
> Compiling: p.tab.o
> In file included from collections.hh:28:0,
>                  from parser.hh:41,
>                  from p.bison:6:
> PackageVersions.hh: In member function 'size_t 
> hash_package_versions::operator()(const PackageVersions&) const':
> PackageVersions.hh:90:7: error: reference to 'hash' is ambiguous
>        hash<const char*> h1;
>        ^~~~
> 
> In file included from /usr/include/c++/6/backward/hashtable.h:66:0,
>                  from /usr/include/c++/6/ext/hash_set:64,
>                  from common_types.hh:28,
>                  from parser.hh:40,
>                  from p.bison:6:
> /usr/include/c++/6/backward/hash_fun.h:68:12: note: candidates are: 
> template<class _Key> struct __gnu_cxx::hash
>      struct hash { };
>             ^~~~
> 
> In file included from /usr/include/c++/6/bits/basic_string.h:5628:0,
>                  from /usr/include/c++/6/string:52,
>                  from p.bison:4:
> /usr/include/c++/6/bits/functional_hash.h:58:12: note:                 
> template<class _Tp> struct std::hash
>      struct hash;
>             ^~~~
> 
> In file included from collections.hh:28:0,
>                  from parser.hh:41,
>                  from p.bison:6:
> PackageVersions.hh:90:12: error: expected primary-expression before 'const'
>        hash<const char*> h1;
>             ^~~~~
> 
> PackageVersions.hh:91:34: error: 'h1' was not declared in this scope
>        return h1(pvs.name().data()) ^  ((size_t)pvs.op()) ^ 
> ((size_t)pvs.version());
>                                   ^
> 
> In file included from collections.hh:29:0,
>                  from parser.hh:41,
>                  from p.bison:6:
> package_version.hh: At global scope:
> package_version.hh:38:8: error: reference to 'hash' is ambiguous
>  extern hash<int>         h2;
>         ^~~~
> 
> In file included from /usr/include/c++/6/backward/hashtable.h:66:0,
>                  from /usr/include/c++/6/ext/hash_set:64,
>                  from common_types.hh:28,
>                  from parser.hh:40,
>                  from p.bison:6:
> /usr/include/c++/6/backward/hash_fun.h:68:12: note: candidates are: 
> template<class _Key> struct __gnu_cxx::hash
>      struct hash { };
>             ^~~~
> 
> In file included from /usr/include/c++/6/bits/basic_string.h:5628:0,
>                  from /usr/include/c++/6/string:52,
>                  from p.bison:4:
> /usr/include/c++/6/bits/functional_hash.h:58:12: note:                 
> template<class _Tp> struct std::hash
>      struct hash;
>             ^~~~
> 
> In file included from collections.hh:29:0,
>                  from parser.hh:41,
>                  from p.bison:6:
> package_version.hh:39:8: error: reference to 'hash' is ambiguous
>  extern hash<const char*> h1;
...

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

Reply via email to