Bug#792129: marked as done (apt fails to build with gcc-snapshot (c++14))
Your message dated Thu, 29 May 2025 20:05:16 +0200
with message-id <783ddfd1-bef8-4cef-8855-407c7fe24cc7@wp.pl>
and subject line Re: Bug#792129: apt fails to build with gcc-snapshot (c++14)
has caused the Debian Bug report #792129,
regarding apt fails to build with gcc-snapshot (c++14)
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 owner@bugs.debian.org
immediately.)
--
792129: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=792129
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: apt fails to build with gcc-snapshot (c++14)
- From: Matthias Klose <doko@debian.org>
- Date: Sat, 11 Jul 2015 21:46:07 +0200
- Message-id: <55A1727F.9080209@debian.org>
Package: src:apt
just seen when looking at a compiler issue:
/scratch/packages/tmp/apt-1.0.9.10ubuntu1/cmdline/apt-get.cc: In function 'bool
DoDownload(CommandLine&)':
/scratch/packages/tmp/apt-1.0.9.10ubuntu1/cmdline/apt-get.cc:633:36: error: no
matching function for call to 'APT::CacheSetHelper::CacheSetHelper(std::ostream&)'
APT::CacheSetHelper helper(c0out);
^
--- End Message ---
--- Begin Message ---
- To: 792129-done@bugs.debian.org
- Cc: doko@debian.org
- Subject: Re: Bug#792129: apt fails to build with gcc-snapshot (c++14)
- From: Kamil Ignacak <acerion@wp.pl>
- Date: Thu, 29 May 2025 20:05:16 +0200
- Message-id: <783ddfd1-bef8-4cef-8855-407c7fe24cc7@wp.pl>
- In-reply-to: <55A1727F.9080209@debian.org>
- References: <55A1727F.9080209@debian.org>
Version: 1.0.10
Hi!
This problem has been fixed in this commit:
https://salsa.debian.org/apt-team/apt/-/commit/d86a3ff03d
A. Info about test machine
acerion@debian:~$ grep CODENAME /etc/os-release
VERSION_CODENAME=buster
acerion@debian:~$ g++ --version
g++ (Debian 8.3.0-6) 8.3.0
[...]
acerion@debian:~$ apt --version
apt 1.8.2.3 (amd64)
B. Successful reproduction in commit 2cabeee2dd (before the fix):
/tmp/ticket/before/apt/cmdline/apt-get.cc: In function ‘bool DoDownload(CommandLine&)’:
/tmp/ticket/before/apt/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 /tmp/ticket/before/apt/cmdline/apt-get.cc:34:
../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 { /*{{{*/
^~~~~~~~~~~~~~
../build/include/apt-pkg/cacheset.h:39:7: note: no known conversion for argument 1 from ‘std::ostream’ {aka ‘std::basic_ostream<char>’} to ‘const APT::CacheSetHelper&’
/tmp/ticket/before/apt/cmdline/apt-get.cc: In function ‘bool DoChangelog(CommandLine&)’:
/tmp/ticket/before/apt/cmdline/apt-get.cc:1531:36: error: no matching function for call to ‘APT::CacheSetHelper::CacheSetHelper(std::ostream&)’
APT::CacheSetHelper helper(c0out);
^
In file included from /tmp/ticket/before/apt/cmdline/apt-get.cc:34:
../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 { /*{{{*/
^~~~~~~~~~~~~~
../build/include/apt-pkg/cacheset.h:39:7: note: no known conversion for argument 1 from ‘std::ostream’ {aka ‘std::basic_ostream<char>’} to ‘const APT::CacheSetHelper&’
There was also another, unrelated error in apt-pkg/deb/debsrcrecords.cc,
but it's not in scope of this ticket.
C. Reproduction attempt in commit d86a3ff03d (implementing the fix):
<build passes without reporting errors for apt-get.cc file>
Since the problem was fixed, I'm closing this ticket.
Kamil
--- End Message ---
Reply to: