Your message dated Sun, 2 Oct 2016 10:16:51 +1300
with message-id <20161001211651.chn7a6jbzt26a...@survex.com>
and subject line Re: Bug#831268: synaptic: FTBFS: cacheset.h:718:15: error:
'make_unsigned' in namespace 'std' does not name a template type
has caused the Debian Bug report #831268,
regarding synaptic: FTBFS: cacheset.h:718:15: error: 'make_unsigned' in
namespace 'std' does not name a template type
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
831268: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=831268
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: synaptic
Version: 0.83
Severity: serious
Tags: stretch sid
User: debian...@lists.debian.org
Usertags: qa-ftbfs-20160714 qa-ftbfs
Justification: FTBFS on amd64
Hi,
During a rebuild of all packages in sid, your package failed to build on
amd64.
Relevant part (hopefully):
> g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/apt-pkg
> -DSYNAPTICLOCALEDIR=\""/usr/share/locale"\"
> -DSYNAPTICSTATEDIR=\""/var/lib/synaptic"\" -g -O2 -c -o rinstallprogress.o
> rinstallprogress.cc
> In file included from /usr/include/apt-pkg/edsp.h:12:0,
> from /usr/include/apt-pkg/packagemanager.h:27,
> from rinstallprogress.h:29,
> from rinstallprogress.cc:38:
> /usr/include/apt-pkg/cacheset.h:718:15: error: 'make_unsigned' in namespace
> 'std' does not name a template type
> typedef std::make_unsigned<const_iterator::difference_type>::type size_type;
> ^
> In file included from /usr/include/apt-pkg/packagemanager.h:27:0,
> from rinstallprogress.h:29,
> from rinstallprogress.cc:38:
> /usr/include/apt-pkg/edsp.h:270:45: error: '>>' should be '> >' within a
> nested template argument list
> std::list<std::pair<std::string,PKG_ACTION>> &actions,
> ^
> /usr/include/apt-pkg/edsp.h:272:64: error: '>>' should be '> >' within a
> nested template argument list
> bool ApplyRequest(std::list<std::pair<std::string,PKG_ACTION>> &actions,
> ^
> rinstallprogress.cc: In member function 'virtual
> pkgPackageManager::OrderResult RInstallProgress::start(pkgPackageManager*,
> int, int)':
> rinstallprogress.cc:127:35: warning: 'pkgPackageManager::OrderResult
> pkgPackageManager::DoInstallPostFork(int)' is deprecated: Use
> APT::Progress::PackageManager subclass instead of fd
> [-Wdeprecated-declarations]
> res = pm->DoInstallPostFork();
> ^
> In file included from rinstallprogress.h:29:0,
> from rinstallprogress.cc:38:
> /usr/include/apt-pkg/packagemanager.h:134:95: note: declared here
> APT_DEPRECATED_MSG("Use APT::Progress::PackageManager subclass instead of
> fd") OrderResult DoInstallPostFork(int statusFd=-1);
>
> ^
> make[4]: *** [rinstallprogress.o] Error 1
The full build log is available from:
http://people.debian.org/~lucas/logs/2016/07/14/synaptic_0.83_unstable_gcc5.log
A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.
--- End Message ---
--- Begin Message ---
On Thu, Jul 14, 2016 at 12:01:12PM +0200, Lucas Nussbaum wrote:
> During a rebuild of all packages in sid, your package failed to build on
> amd64.
>
> Relevant part (hopefully):
> > g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/include/apt-pkg
> > -DSYNAPTICLOCALEDIR=\""/usr/share/locale"\"
> > -DSYNAPTICSTATEDIR=\""/var/lib/synaptic"\" -g -O2 -c -o
> > rinstallprogress.o rinstallprogress.cc
> > In file included from /usr/include/apt-pkg/edsp.h:12:0,
> > from /usr/include/apt-pkg/packagemanager.h:27,
> > from rinstallprogress.h:29,
> > from rinstallprogress.cc:38:
> > /usr/include/apt-pkg/cacheset.h:718:15: error: 'make_unsigned' in namespace
> > 'std' does not name a template type
> > typedef std::make_unsigned<const_iterator::difference_type>::type
> > size_type;
> > ^
std::make_unsigned() is new in C++11:
http://en.cppreference.com/w/cpp/types/make_unsigned
> > In file included from /usr/include/apt-pkg/packagemanager.h:27:0,
> > from rinstallprogress.h:29,
> > from rinstallprogress.cc:38:
> > /usr/include/apt-pkg/edsp.h:270:45: error: '>>' should be '> >' within a
> > nested template argument list
> > std::list<std::pair<std::string,PKG_ACTION>> &actions,
> > ^
> > /usr/include/apt-pkg/edsp.h:272:64: error: '>>' should be '> >' within a
> > nested template argument list
> > bool ApplyRequest(std::list<std::pair<std::string,PKG_ACTION>> &actions,
And being able to write >> to close a nested template is also a C++11
feature.
It seems synaptic assumes a C++11 compiler, though wasn't attempting to
select C++11 mode. Not sure how this was working, but GCC6 now defaults
to C++ so this FTBFS has been fixed by the change to using GCC6. Fix
confirmed by my NMU 0.83+nmu1 building without the errors above.
Cheers,
Olly
--- End Message ---