Public bug reported:
please fix building apt using gcc-snapshot. I'd like to check the
possible wrong-code issue with the GCC trunk version. The build fails
with:
In file included from ../build/include/apt-pkg/algorithms.h:35:0,
from
/scratch/doko/tmp/apt-1.0.9.10ubuntu4/cmdline/apt-get.cc:31:
../build/include/apt-pkg/depcache.h: In member function 'bool
pkgDepCache::MarkAndSweep()':
../build/include/apt-pkg/depcache.h:406:11: warning: 'template<class> class
std::auto_ptr' is deprecated [-Wd
eprecated-declarations]
std::auto_ptr<InRootSetFunc> f(GetRootSetFunc());
^
In file included from /usr/lib/gcc-snapshot/include/c++/6.0.0/memory:81:0,
from ../build/include/apt-pkg/depcache.h:48,
from ../build/include/apt-pkg/algorithms.h:35,
from
/scratch/doko/tmp/apt-1.0.9.10ubuntu4/cmdline/apt-get.cc:31:
/usr/lib/gcc-snapshot/include/c++/6.0.0/bits/unique_ptr.h:49:28: note: declared
here
template<typename> class auto_ptr;
^
/scratch/doko/tmp/apt-1.0.9.10ubuntu4/cmdline/apt-get.cc: In function 'bool
DoDownload(CommandLine&)':
/scratch/doko/tmp/apt-1.0.9.10ubuntu4/cmdline/apt-get.cc:633:36: error: no
matching function for call to
'APT::CacheSetHelper::CacheSetHelper(std::ostream&)'
APT::CacheSetHelper helper(c0out);
^
In file included from
/scratch/doko/tmp/apt-1.0.9.10ubuntu4/cmdline/apt-get.cc:34:0:
../build/include/apt-pkg/cacheset.h:49:2: note: candidate:
APT::CacheSetHelper::CacheSetHelper(bool, GlobalError::MsgType)
CacheSetHelper(bool const ShowError = true,
^
../build/include/apt-pkg/cacheset.h:49:2: note: no known conversion for
argument 1 from 'std::ostream {aka std::basic_ostream<char>}' to 'bool'
../build/include/apt-pkg/cacheset.h:39:7: note: candidate: constexpr
APT::CacheSetHelper::CacheSetHelper(const APT::CacheSetHelper&)
class CacheSetHelper { /*{{{*/
^
** Affects: apt (Ubuntu)
Importance: High
Assignee: Michael Vogt (mvo)
Status: Confirmed
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/1477299
Title:
please fix building apt using gcc-snapshot
Status in apt package in Ubuntu:
Confirmed
Bug description:
please fix building apt using gcc-snapshot. I'd like to check the
possible wrong-code issue with the GCC trunk version. The build fails
with:
In file included from ../build/include/apt-pkg/algorithms.h:35:0,
from
/scratch/doko/tmp/apt-1.0.9.10ubuntu4/cmdline/apt-get.cc:31:
../build/include/apt-pkg/depcache.h: In member function 'bool
pkgDepCache::MarkAndSweep()':
../build/include/apt-pkg/depcache.h:406:11: warning: 'template<class> class
std::auto_ptr' is deprecated [-Wd
eprecated-declarations]
std::auto_ptr<InRootSetFunc> f(GetRootSetFunc());
^
In file included from /usr/lib/gcc-snapshot/include/c++/6.0.0/memory:81:0,
from ../build/include/apt-pkg/depcache.h:48,
from ../build/include/apt-pkg/algorithms.h:35,
from
/scratch/doko/tmp/apt-1.0.9.10ubuntu4/cmdline/apt-get.cc:31:
/usr/lib/gcc-snapshot/include/c++/6.0.0/bits/unique_ptr.h:49:28: note:
declared here
template<typename> class auto_ptr;
^
/scratch/doko/tmp/apt-1.0.9.10ubuntu4/cmdline/apt-get.cc: In function 'bool
DoDownload(CommandLine&)':
/scratch/doko/tmp/apt-1.0.9.10ubuntu4/cmdline/apt-get.cc:633:36: error: no
matching function for call to
'APT::CacheSetHelper::CacheSetHelper(std::ostream&)'
APT::CacheSetHelper helper(c0out);
^
In file included from
/scratch/doko/tmp/apt-1.0.9.10ubuntu4/cmdline/apt-get.cc:34:0:
../build/include/apt-pkg/cacheset.h:49:2: note: candidate:
APT::CacheSetHelper::CacheSetHelper(bool, GlobalError::MsgType)
CacheSetHelper(bool const ShowError = true,
^
../build/include/apt-pkg/cacheset.h:49:2: note: no known conversion for
argument 1 from 'std::ostream {aka std::basic_ostream<char>}' to 'bool'
../build/include/apt-pkg/cacheset.h:39:7: note: candidate: constexpr
APT::CacheSetHelper::CacheSetHelper(const APT::CacheSetHelper&)
class CacheSetHelper { /*{{{*/
^
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1477299/+subscriptions
--
Mailing list: https://launchpad.net/~touch-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~touch-packages
More help : https://help.launchpad.net/ListHelp