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 { /*{{{*/
^
debian/rules:
export CC = /usr/lib/ gcc-snapshot/ bin/gcc gcc-snapshot/ bin/g++ gcc-snapshot/ bin/gcc -E gcc-snapshot/ bin/g++ -E
export CXX = /usr/lib/
export CPP = /usr/lib/
export CXXCPP = /usr/lib/
and call the check target with
LD_LIBRARY_ PAth=/usr/ lib/gcc- snapshot/ lib $(MAKE) test