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

Bug#811797: swish++: FTBFS with GCC 6: error: reference is ambiguous



Package: swish++
Version: 6.1.5-3
Severity: important
User: debian-gcc@lists.debian.org
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
...
> g++ -I. -DCHARSET_utf7 -DCHARSET_utf8 -DCHARSET_utf16 -DENCODING_base64 -DENCODING_quoted_printable -DIMPLEMENT_DECODING -DMOD_html -DMOD_id3 -DMOD_latex -DMOD_mail -DMOD_man -DMOD_rtf -DFEATURE_word_pos -DSEARCH_DAEMON -DMULTI_THREADED -D_REENTRANT -D_XOPEN_SOURCE=500 -O2 -fomit-frame-pointer -D_BSD_SOURCE -fno-exceptions    -c -o index.o index.c
> In file included from /usr/include/x86_64-linux-gnu/c++/6/bits/os_defines.h:39:0,
>                  from /usr/include/x86_64-linux-gnu/c++/6/bits/c++config.h:509,
>                  from /usr/include/c++/6/cmath:41,
>                  from index.c:23:
> /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"
>    ^~~~~~~
> 
> index.c: In function 'void merge_indicies(std::ostream&)':
> index.c:886:31: error: reference to 'rank' is ambiguous
>                    << enc_int( rank(file->index_, file->occurrences_, factor) );
>                                ^~~~
> 
> index.c:676:20: note: candidates are: int rank(int, int, double)
>          inline int rank( int file_index, int occurences_in_file, double factor )
>                     ^~~~
> 
> In file included from /usr/include/c++/6/bits/move.h:57:0,
>                  from /usr/include/c++/6/bits/nested_exception.h:40,
>                  from /usr/include/c++/6/exception:171,
>                  from /usr/include/c++/6/ios:39,
>                  from /usr/include/c++/6/istream:38,
>                  from /usr/include/c++/6/fstream:38,
>                  from index.c:26:
> /usr/include/c++/6/type_traits:1471:12: note:                 template<class> struct std::rank
>      struct rank
>             ^~~~
> 
> index.c:933:31: error: reference to 'rank' is ambiguous
>                    << enc_int( rank(file->index_, file->occurrences_, factor) );
>                                ^~~~
> 
> index.c:676:20: note: candidates are: int rank(int, int, double)
>          inline int rank( int file_index, int occurences_in_file, double factor )
>                     ^~~~
> 
> In file included from /usr/include/c++/6/bits/move.h:57:0,
>                  from /usr/include/c++/6/bits/nested_exception.h:40,
>                  from /usr/include/c++/6/exception:171,
>                  from /usr/include/c++/6/ios:39,
>                  from /usr/include/c++/6/istream:38,
>                  from /usr/include/c++/6/fstream:38,
>                  from index.c:26:
> /usr/include/c++/6/type_traits:1471:12: note:                 template<class> struct std::rank
>      struct rank
>             ^~~~
> 
> index.c: In function 'void rank_full_index()':
> index.c:998:27: error: reference to 'rank' is ambiguous
>              file->rank_ = rank( file->index_, file->occurrences_, factor );
>                            ^~~~
> 
> index.c:676:20: note: candidates are: int rank(int, int, double)
>          inline int rank( int file_index, int occurences_in_file, double factor )
>                     ^~~~
> 
> In file included from /usr/include/c++/6/bits/move.h:57:0,
>                  from /usr/include/c++/6/bits/nested_exception.h:40,
>                  from /usr/include/c++/6/exception:171,
>                  from /usr/include/c++/6/ios:39,
>                  from /usr/include/c++/6/istream:38,
>                  from /usr/include/c++/6/fstream:38,
>                  from index.c:26:
> /usr/include/c++/6/type_traits:1471:12: note:                 template<class> struct std::rank
>      struct rank
>             ^~~~
> 
> <builtin>: recipe for target 'index.o' failed
> make[1]: *** [index.o] Error 1
> make[1]: Leaving directory '/build/swish++-BZAxzq/swish++-6.1.5'

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


Reply to: