--- Begin Message ---
Package: aria2
Version: 1.19.0-1
Severity: important
User: debian-...@lists.debian.org
Usertags: ftbfs-gcc-6 gcc-6-overloaded-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
...
> CXX Context.lo
> AuthConfig.cc: In static member function 'static
> std::unique_ptr<aria2::AuthConfig>
> aria2::AuthConfig::create(std::__cxx11::string, std::__cxx11::string)':
> AuthConfig.cc:66:72: error: call of overloaded
> 'make_unique(std::remove_reference<std::__cxx11::basic_string<char>&>::type,
> std::remove_reference<std::__cxx11::basic_string<char>&>::type)' is ambiguous
> return make_unique<AuthConfig>(std::move(user), std::move(password));
> ^
>
> In file included from AuthConfig.cc:39:0:
> a2functional.h:178:1: note: candidate: typename std::enable_if<(!
> std::is_array< <template-parameter-1-1> >::value), std::unique_ptr<_Tp>
> >::type aria2::make_unique(U&& ...) [with T = aria2::AuthConfig; U =
> {std::__cxx11::basic_string<char, std::char_traits<char>,
> std::allocator<char> >, std::__cxx11::basic_string<char,
> std::char_traits<char>, std::allocator<char> >}; typename std::enable_if<(!
> std::is_array< <template-parameter-1-1> >::value), std::unique_ptr<_Tp>
> >::type = std::unique_ptr<aria2::AuthConfig>]
> make_unique(U&&... u)
> ^~~~~~~~~~~
>
> In file included from /usr/include/c++/6/memory:81:0,
> from AuthConfig.h:42,
> from AuthConfig.cc:35:
> /usr/include/c++/6/bits/unique_ptr.h:786:5: note: candidate: typename
> std::_MakeUniq<_Tp>::__single_object std::make_unique(_Args&& ...) [with _Tp
> = aria2::AuthConfig; _Args = {std::__cxx11::basic_string<char,
> std::char_traits<char>, std::allocator<char> >,
> std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>
> >}; typename std::_MakeUniq<_Tp>::__single_object =
> std::unique_ptr<aria2::AuthConfig>]
> make_unique(_Args&&... __args)
> ^~~~~~~~~~~
>
> CXX ContextAttribute.lo
> CXX Cookie.lo
> Makefile:2299: recipe for target 'AuthConfig.lo' failed
> make[4]: *** [AuthConfig.lo] Error 1
> make[4]: *** Waiting for unfinished jobs....
> AuthConfigFactory.cc: In member function 'std::unique_ptr<aria2::AuthConfig>
> aria2::AuthConfigFactory::createAuthConfig(const
> std::shared_ptr<aria2::Request>&, const aria2::Option*)':
> AuthConfigFactory.cc:70:71: error: call of overloaded 'make_unique(const
> string&, const string&, const string&, uint16_t, const string&, bool)' is
> ambiguous
> request->getDir(), true));
> ^
>
> In file included from AuthConfigFactory.h:45:0,
> from AuthConfigFactory.cc:35:
> a2functional.h:178:1: note: candidate: typename std::enable_if<(!
> std::is_array< <template-parameter-1-1> >::value), std::unique_ptr<_Tp>
> >::type aria2::make_unique(U&& ...) [with T = aria2::BasicCred; U = {const
> std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>
> >&, const std::__cxx11::basic_string<char, std::char_traits<char>,
> std::allocator<char> >&, const std::__cxx11::basic_string<char,
> std::char_traits<char>, std::allocator<char> >&, short unsigned int, const
> std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>
> >&, bool}; typename std::enable_if<(! std::is_array< <template-parameter-1-1>
> >::value), std::unique_ptr<_Tp> >::type = std::unique_ptr<aria2::BasicCred>]
> make_unique(U&&... u)
> ^~~~~~~~~~~
>
> In file included from /usr/include/c++/6/memory:81:0,
> from AuthConfigFactory.h:42,
> from AuthConfigFactory.cc:35:
> /usr/include/c++/6/bits/unique_ptr.h:786:5: note: candidate: typename
> std::_MakeUniq<_Tp>::__single_object std::make_unique(_Args&& ...) [with _Tp
> = aria2::BasicCred; _Args = {const std::__cxx11::basic_string<char,
> std::char_traits<char>, std::allocator<char> >&, const
> std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>
> >&, const std::__cxx11::basic_string<char, std::char_traits<char>,
> std::allocator<char> >&, short unsigned int, const
> std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>
> >&, bool}; typename std::_MakeUniq<_Tp>::__single_object =
> std::unique_ptr<aria2::BasicCred>]
> make_unique(_Args&&... __args)
> ^~~~~~~~~~~
>
> AuthConfigFactory.cc: In member function 'bool
> aria2::AuthConfigFactory::activateBasicCred(const string&, uint16_t, const
> string&, const aria2::Option*)':
> AuthConfigFactory.cc:185:71: error: call of overloaded 'make_unique(const
> string&, const string&, const string&, uint16_t&, const string&, bool)' is
> ambiguous
> host, port, path, true));
> ^
>
> In file included from AuthConfigFactory.h:45:0,
> from AuthConfigFactory.cc:35:
> a2functional.h:178:1: note: candidate: typename std::enable_if<(!
> std::is_array< <template-parameter-1-1> >::value), std::unique_ptr<_Tp>
> >::type aria2::make_unique(U&& ...) [with T = aria2::BasicCred; U = {const
> std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>
> >&, const std::__cxx11::basic_string<char, std::char_traits<char>,
> std::allocator<char> >&, const std::__cxx11::basic_string<char,
> std::char_traits<char>, std::allocator<char> >&, short unsigned int&, const
> std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>
> >&, bool}; typename std::enable_if<(! std::is_array< <template-parameter-1-1>
> >::value), std::unique_ptr<_Tp> >::type = std::unique_ptr<aria2::BasicCred>]
> make_unique(U&&... u)
> ^~~~~~~~~~~
>
> In file included from /usr/include/c++/6/memory:81:0,
> from AuthConfigFactory.h:42,
> from AuthConfigFactory.cc:35:
> /usr/include/c++/6/bits/unique_ptr.h:786:5: note: candidate: typename
> std::_MakeUniq<_Tp>::__single_object std::make_unique(_Args&& ...) [with _Tp
> = aria2::BasicCred; _Args = {const std::__cxx11::basic_string<char,
> std::char_traits<char>, std::allocator<char> >&, const
> std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>
> >&, const std::__cxx11::basic_string<char, std::char_traits<char>,
> std::allocator<char> >&, short unsigned int&, const
> std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>
> >&, bool}; typename std::_MakeUniq<_Tp>::__single_object =
> std::unique_ptr<aria2::BasicCred>]
> make_unique(_Args&&... __args)
> ^~~~~~~~~~~
>
> AuthConfigFactory.cc: In member function
> 'std::set<std::unique_ptr<aria2::BasicCred>,
> aria2::DerefLess<std::unique_ptr<aria2::BasicCred> > >::iterator
> aria2::AuthConfigFactory::findBasicCred(const string&, uint16_t, const
> string&)':
> AuthConfigFactory.cc:237:60: error: call of overloaded 'make_unique(const
> char [1], const char [1], const string&, uint16_t&, const string&)' is
> ambiguous
> auto bc = make_unique<BasicCred>("", "", host, port, path);
> ^
>
> In file included from AuthConfigFactory.h:45:0,
> from AuthConfigFactory.cc:35:
> a2functional.h:178:1: note: candidate: typename std::enable_if<(!
> std::is_array< <template-parameter-1-1> >::value), std::unique_ptr<_Tp>
> >::type aria2::make_unique(U&& ...) [with T = aria2::BasicCred; U = {const
> char (&)[1], const char (&)[1], const std::__cxx11::basic_string<char,
> std::char_traits<char>, std::allocator<char> >&, short unsigned int&, const
> std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>
> >&}; typename std::enable_if<(! std::is_array< <template-parameter-1-1>
> >::value), std::unique_ptr<_Tp> >::type = std::unique_ptr<aria2::BasicCred>]
> make_unique(U&&... u)
> ^~~~~~~~~~~
>
> In file included from /usr/include/c++/6/memory:81:0,
> from AuthConfigFactory.h:42,
> from AuthConfigFactory.cc:35:
> /usr/include/c++/6/bits/unique_ptr.h:786:5: note: candidate: typename
> std::_MakeUniq<_Tp>::__single_object std::make_unique(_Args&& ...) [with _Tp
> = aria2::BasicCred; _Args = {const char (&)[1], const char (&)[1], const
> std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>
> >&, short unsigned int&, const std::__cxx11::basic_string<char,
> std::char_traits<char>, std::allocator<char> >&}; typename
> std::_MakeUniq<_Tp>::__single_object = std::unique_ptr<aria2::BasicCred>]
> make_unique(_Args&&... __args)
> ^~~~~~~~~~~
>
> Makefile:2299: recipe for target 'AuthConfigFactory.lo' failed
> make[4]: *** [AuthConfigFactory.lo] Error 1
> ChecksumCheckIntegrityEntry.cc: In member function 'virtual void
> aria2::ChecksumCheckIntegrityEntry::initValidator()':
> ChecksumCheckIntegrityEntry.cc:66:42: error: call of overloaded
> 'make_unique(const std::shared_ptr<aria2::DownloadContext>&, const
> std::shared_ptr<aria2::PieceStorage>&)' is ambiguous
> getRequestGroup()->getPieceStorage());
> ^
>
> In file included from ValueBase.h:45:0,
> from DownloadContext.h:47,
> from ChecksumCheckIntegrityEntry.cc:37:
> a2functional.h:178:1: note: candidate: typename std::enable_if<(!
> std::is_array< <template-parameter-1-1> >::value), std::unique_ptr<_Tp>
> >::type aria2::make_unique(U&& ...) [with T =
> aria2::IteratableChecksumValidator; U = {const
> std::shared_ptr<aria2::DownloadContext>&, const
> std::shared_ptr<aria2::PieceStorage>&}; typename std::enable_if<(!
> std::is_array< <template-parameter-1-1> >::value), std::unique_ptr<_Tp>
> >::type = std::unique_ptr<aria2::IteratableChecksumValidator,
> std::default_delete<aria2::IteratableChecksumValidator> >]
> make_unique(U&&... u)
> ^~~~~~~~~~~
>
> In file included from /usr/include/c++/6/memory:81:0,
> from RequestGroupEntry.h:40,
> from CheckIntegrityEntry.h:38,
> from ChecksumCheckIntegrityEntry.h:38,
> from ChecksumCheckIntegrityEntry.cc:35:
> /usr/include/c++/6/bits/unique_ptr.h:786:5: note: candidate: typename
> std::_MakeUniq<_Tp>::__single_object std::make_unique(_Args&& ...) [with _Tp
> = aria2::IteratableChecksumValidator; _Args = {const
> std::shared_ptr<aria2::DownloadContext>&, const
> std::shared_ptr<aria2::PieceStorage>&}; typename
> std::_MakeUniq<_Tp>::__single_object =
> std::unique_ptr<aria2::IteratableChecksumValidator,
> std::default_delete<aria2::IteratableChecksumValidator> >]
> make_unique(_Args&&... __args)
> ^~~~~~~~~~~
>
> ChecksumCheckIntegrityEntry.cc: In member function 'virtual void
> aria2::ChecksumCheckIntegrityEntry::onDownloadIncomplete(std::vector<std::unique_ptr<aria2::Command>
> >&, aria2::DownloadEngine*)':
> ChecksumCheckIntegrityEntry.cc:83:63: error: call of overloaded
> 'make_unique(aria2::RequestGroup*, std::unique_ptr<aria2::Command>)' is
> ambiguous
> (getRequestGroup(), popNextCommand()),
> ^
>
> In file included from ValueBase.h:45:0,
> from DownloadContext.h:47,
> from ChecksumCheckIntegrityEntry.cc:37:
> a2functional.h:178:1: note: candidate: typename std::enable_if<(!
> std::is_array< <template-parameter-1-1> >::value), std::unique_ptr<_Tp>
> >::type aria2::make_unique(U&& ...) [with T =
> aria2::StreamFileAllocationEntry; U = {aria2::RequestGroup*,
> std::unique_ptr<aria2::Command, std::default_delete<aria2::Command> >};
> typename std::enable_if<(! std::is_array< <template-parameter-1-1> >::value),
> std::unique_ptr<_Tp> >::type =
> std::unique_ptr<aria2::StreamFileAllocationEntry,
> std::default_delete<aria2::StreamFileAllocationEntry> >]
> make_unique(U&&... u)
> ^~~~~~~~~~~
>
> In file included from /usr/include/c++/6/memory:81:0,
> from RequestGroupEntry.h:40,
> from CheckIntegrityEntry.h:38,
> from ChecksumCheckIntegrityEntry.h:38,
> from ChecksumCheckIntegrityEntry.cc:35:
> /usr/include/c++/6/bits/unique_ptr.h:786:5: note: candidate: typename
> std::_MakeUniq<_Tp>::__single_object std::make_unique(_Args&& ...) [with _Tp
> = aria2::StreamFileAllocationEntry; _Args = {aria2::RequestGroup*,
> std::unique_ptr<aria2::Command, std::default_delete<aria2::Command> >};
> typename std::_MakeUniq<_Tp>::__single_object =
> std::unique_ptr<aria2::StreamFileAllocationEntry,
> std::default_delete<aria2::StreamFileAllocationEntry> >]
> make_unique(_Args&&... __args)
> ^~~~~~~~~~~
>
> Makefile:2299: recipe for target 'ChecksumCheckIntegrityEntry.lo' failed
--- End Message ---