Bug#1133572: marked as done (nbdkit: ftbfs with GCC-16)

"Debian Bug Tracking System" <[email protected]> Mon, 03 Aug 2026 12:49:02 +0000
Newsgroups gmane.linux.debian.devel.bugs.rc
Message-ID <handler.1133572.D1133572.17857612502736789.ackdone@bugs.debian.org>
This is a multi-part message in MIME format...

------------=_1785761342-2738053-0
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"

Your message dated Mon, 03 Aug 2026 14:24:13 +0200
with message-id <[email protected]>
and subject line Fixed as of 1.48.0-1
has caused the Debian Bug report #1133572,
regarding nbdkit: ftbfs with GCC-16
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 [email protected]
immediately.)


--=20
1133572: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D1133572
Debian Bug Tracking System
Contact [email protected] with problems

------------=_1785761342-2738053-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at maintonly) by bugs.debian.org; 13 Apr 2026 13:08:11 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
	(2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-116.6 required=4.0 tests=BAYES_00,
	BODY_INCLUDES_PACKAGE,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,
	DKIM_VALID_AU,DKIM_VALID_EF,FOURLA,FROMDEVELOPER,FVGT_m_MULTI_ODD,
	HAS_PACKAGE,SPF_HELO_NONE,SPF_NONE,UNPARSEABLE_RELAY,
	USER_IN_DKIM_WELCOMELIST autolearn=ham autolearn_force=no
	version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 49; hammy, 150; neutral, 209; spammy,
	0. spammytokens:
	hammytokens:0.000-+--Hx-spam-relays-external:sk:stravin,
	0.000-+--H*RT:sk:stravin, 0.000-+--Hx-spam-relays-external:311,
	0.000-+--H*RT:311, 0.000-+--H*RT:108
Return-path: <[email protected]>
Received: from stravinsky.debian.org ([2001:41b8:202:deb::311:108]:34396)
	by buxtehude.debian.org with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
	(Exim 4.96)
	(envelope-from <[email protected]>)
	id 1wCH1O-002m3R-2z
	for [email protected];
	Mon, 13 Apr 2026 13:08:11 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org;
	s=smtpauto.stravinsky; h=X-Debian-User:Content-Type:MIME-Version:Message-ID:
	Subject:To:From:Date:Reply-To:Cc:Content-Transfer-Encoding:Content-ID:
	Content-Description:In-Reply-To:References;
	bh=BXWkLdoPRfcNgNCXOVle51B7ntY5sHuqG+R2THqhNRU=; b=NggotfIQ9rXVCv6gLB7yPyVwFg
	Kfo9tshSMnkdvPRA7jn53CNMpcsK54k4WU7DjoGuJgULoV9x3UlmaWOi4MjIjLeb9oJTRx4garMFq
	v4lytMD7j4HO98eNf5QRvFLaP25N1m7OslssBsvRV4P99W5kR4gEjnFVp6UkaqRPPuhurlf9hpjOz
	8sEG03kuRMtSpJpeiFY7TWbXwpw3Tpt7klkhiqLlzAIcZ9NkKx1xjMAyWqyjqoYuzH2VromdwWsQn
	xff4XA3mXPEnZwukp2+l1kFIDUE/6Btba2OqZ6k4pE0AgvUpzuUN56G/DK9BF37pp3dqVWBGA2Cxu
	JTL5BD2g==;
Received: from authenticated user
	by stravinsky.debian.org with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
	(Exim 4.96)
	(envelope-from <[email protected]>)
	id 1wCH1N-00CJUu-1C
	for [email protected];
	Mon, 13 Apr 2026 13:08:09 +0000
Date: Mon, 13 Apr 2026 15:08:09 +0200
From: Emanuele Rocca <[email protected]>
To: [email protected]
Subject: nbdkit: ftbfs with GCC-16
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
X-Debian-User: ema
Delivered-To: [email protected]

Package: src:nbdkit
Version: 1.46.2-1
Severity: important
Tags: sid forky ftbfs
User: [email protected]
Usertags: ftbfs-gcc-16

Hi,

nbdkit fails to build in a test rebuild on at least amd64 and arm64 with
gcc-16/g++-16, but builds properly with gcc-15/g++-15. The severity of this
report will be raised before the forky release.

The full build log can be found at:
https://people.debian.org/~ema/gcc-16-rebuilds/output-1/nbdkit_arm64.build.xz

The last lines of the build log are at the end of this report.

To build with GCC 16, either set CC=gcc-16 CXX=g++-16 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

  apt-get -t=experimental install g++ 

Common build failures include unused (but set) variables, array subscripts
partly outside array bounds, and new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-16/porting_to.html

Please only close this issue after double-checking that the package can be
built correctly with GCC 16.

Please do not reassign this bug to another package. If a fix in another package
is required, then file a bug for the other package (or clone), and mark this
bug as blocked by the bug in the other package.

[...]


    nbdkit-torrent-plugin.pod
libtool: compile:  g++ -std=gnu++11 -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../include -I../../common/include -I../../common/utils -I. -Wdate-time -D_FORTIFY_SOURCE=2 -pthread -fexceptions -DTORRENT_LINKING_SHARED -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_NO_DEPRECATED -DTORRENT_USE_OPENSSL -DTORRENT_USE_LIBCRYPTO -DTORRENT_SSL_PEERS -DOPENSSL_NO_SSL2 -DOPENSSL_NO_SSL3 -DOPENSSL_NO_TLS1 -DOPENSSL_NO_TLS1_1 -DOPENSSL_NO_DTLS1 -g -O2 -ffile-prefix-map=/build/reproducible-path/nbdkit-1.46.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -mbranch-protection=standard -c torrent.cpp  -fPIC -DPIC -o .libs/nbdkit_torrent_plugin_la-torrent.o
In file included from /usr/include/libtorrent/aux_/vector.hpp:39,
                 from /usr/include/libtorrent/torrent_handle.hpp:64,
                 from /usr/include/libtorrent/alert_types.hpp:50,
                 from torrent.cpp:48:
/usr/include/libtorrent/aux_/container_wrapper.hpp:64:17: error: 'decltype(auto)' type specifier only available with '-std=c++14' or '-std=gnu++14' [-Wtemplate-body]
   64 |                 decltype(auto) operator[](IndexType idx) const
      |                 ^~~~~~~~
/usr/include/libtorrent/aux_/container_wrapper.hpp:71:17: error: 'decltype(auto)' type specifier only available with '-std=c++14' or '-std=gnu++14' [-Wtemplate-body]
   71 |                 decltype(auto) operator[](IndexType idx)
      |                 ^~~~~~~~
In file included from /usr/include/libtorrent/torrent_info.hpp:61,
                 from /usr/include/libtorrent/torrent_handle.hpp:67:
/usr/include/libtorrent/file_storage.hpp:236:73: error: call to non-'constexpr' function 'const _Tp& std::min(const _Tp&, const _Tp&) [with _Tp = long int]'
  236 |                 static constexpr std::int64_t max_file_size = (std::min)(
      |                                                               ~~~~~~~~~~^
  237 |                         (std::int64_t(1) << 48) - 1
      |                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~                      
  238 |                         , std::int64_t((std::numeric_limits<int>::max)() / 2) * default_block_size);
      |                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/16/string:55,
                 from /usr/include/c++/16/bits/locale_classes.h:43,
                 from /usr/include/c++/16/bits/ios_base.h:43,
                 from /usr/include/c++/16/ios:46,
                 from /usr/include/c++/16/bits/ostream.h:43,
                 from /usr/include/c++/16/ostream:42,
                 from /usr/include/c++/16/iostream:43,
                 from torrent.cpp:36:
/usr/include/c++/16/bits/stl_algobase.h:233:5: note: 'const _Tp& std::min(const _Tp&, const _Tp&) [with _Tp = long int]' declared here
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
In file included from /usr/include/libtorrent/bitfield.hpp:41,
                 from /usr/include/libtorrent/aux_/merkle_tree.hpp:46,
                 from /usr/include/libtorrent/torrent_info.hpp:65:
/usr/include/libtorrent/aux_/unique_ptr.hpp:57:17: error: 'decltype(auto)' type specifier only available with '-std=c++14' or '-std=gnu++14' [-Wtemplate-body]
   57 |                 decltype(auto) operator[](IndexType idx) const
      |                 ^~~~~~~~
/usr/include/libtorrent/bitfield.hpp: In member function 'const char* libtorrent::bitfield::data() const':
/usr/include/libtorrent/bitfield.hpp:149:106: error: lvalue required as unary '&' operand
  149 |                 char const* data() const noexcept { return m_buf ? reinterpret_cast<char const*>(&m_buf[1]) : nullptr; }
      |                                                                                                   ~~~~~~~^
/usr/include/libtorrent/bitfield.hpp: In member function 'char* libtorrent::bitfield::data()':
/usr/include/libtorrent/bitfield.hpp:150:88: error: lvalue required as unary '&' operand
  150 |                 char* data() noexcept { return m_buf ? reinterpret_cast<char*>(&m_buf[1]) : nullptr; }
      |                                                                                 ~~~~~~~^
/usr/include/libtorrent/bitfield.hpp: In member function 'const uint32_t* libtorrent::bitfield::buf() const':
/usr/include/libtorrent/bitfield.hpp:275:99: error: lvalue required as unary '&' operand
  275 |                 std::uint32_t const* buf() const noexcept { TORRENT_ASSERT(m_buf); return &m_buf[1]; }
      |                                                                                            ~~~~~~~^
/usr/include/libtorrent/bitfield.hpp: In member function 'uint32_t* libtorrent::bitfield::buf()':
/usr/include/libtorrent/bitfield.hpp:276:87: error: lvalue required as unary '&' operand
  276 |                 std::uint32_t* buf() noexcept { TORRENT_ASSERT(m_buf); return &m_buf[1]; }
      |                                                                                ~~~~~~~^
In file included from /usr/include/libtorrent/alert_types.hpp:69:
/usr/include/libtorrent/tracker_manager.hpp: At global scope:
/usr/include/libtorrent/tracker_manager.hpp:255:17: error: 'get_executor' function uses 'auto' type specifier without trailing return type
  255 |                 auto get_executor() { return m_timeout.get_executor(); }
      |                 ^~~~
/usr/include/libtorrent/tracker_manager.hpp:255:17: note: deduced return type only available with '-std=c++14' or '-std=gnu++14'
make[4]: *** [Makefile:706: nbdkit_torrent_plugin_la-torrent.lo] Error 1
make[4]: Leaving directory '/build/reproducible-path/nbdkit-1.46.2/plugins/torrent'
make[3]: *** [Makefile:550: all-recursive] Error 1
make[3]: Leaving directory '/build/reproducible-path/nbdkit-1.46.2/plugins'
make[2]: *** [Makefile:750: all-recursive] Error 1
make[2]: Leaving directory '/build/reproducible-path/nbdkit-1.46.2'
make[1]: *** [Makefile:619: all] Error 2
make[1]: Leaving directory '/build/reproducible-path/nbdkit-1.46.2'
dh_auto_build: error: make -j128 returned exit code 2
make: *** [debian/rules:15: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2

------------=_1785761342-2738053-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at 1133572-done) by bugs.debian.org; 3 Aug 2026 12:47:30 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
	(2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-5.3 required=4.0 tests=BAYES_00,DKIM_SIGNED,
	DKIM_VALID,FROMDEVELOPER,SPF_HELO_NONE,SPF_SOFTFAIL autolearn=ham
	autolearn_force=no version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 18; hammy, 63; neutral, 17; spammy, 0.
	spammytokens: hammytokens:0.000-+--H*u:Gnus, 0.000-+--H*u:5.13,
	0.000-+--H*u:v5.13, 0.000-+--H*UA:v5.13, 0.000-+--hilko
Return-path: <[email protected]>
Received: from bobby.hilluzination.de ([89.58.33.73]:48658)
	by buxtehude.debian.org with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
	(Exim 4.96)
	(envelope-from <[email protected]>)
	id 1wqs4o-00BTxU-0Q
	for [email protected];
	Mon, 03 Aug 2026 12:47:30 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
	d=hilluzination.de; s=20190323; h=Content-Type:MIME-Version:Message-ID:Date:
	Subject:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID:
	Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc
	:Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:
	List-Subscribe:List-Post:List-Owner:List-Archive;
	bh=kHSdcSUxWecJkfnv7ZHBik9Rpddy+HiKkBseuSwdktU=; b=SvnCoi4Szw7i3mLWCbHDqn/XRo
	uzYnXsO3Jjakw/J118JV4uOGN63JsUJlxSQgejG8MZ+bpd+AfFYUtMekuMC8gBUWS62SRr1R9GMR2
	qbt81DUiB/MkvYU/GnDuq1/rj4Aycmbq8P9z/NgcncCQqNITIV5HDesK+dvsRLhri5ZZXi7wUStwl
	x+uSL2RBEhHw3P/2yVfcdJPwIeY4fWjduToh6t+0GXRjGuic6XP7uXxhTxpIklN4U1EmNG5iXhwgn
	mOMtNPLpz2loBO+gKVCuptB9Wf+o6X2X09tZ1Wwi4NE27WgqQoGs3x1ZtWITPD1z7Why1FQMFB5nj
	+Ftfxqkw==;
Received: from dynamic-078-051-188-076.78.51.pool.telefonica.de ([78.51.188.76] helo=ataraxia.localdomain)
	by bobby.hilluzination.de with esmtpsa  (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
	(Exim 4.98.2)
	(envelope-from <[email protected]>)
	id 1wqriJ-00000008orl-1Lyi
	for [email protected];
	Mon, 03 Aug 2026 14:24:15 +0200
Received: from [127.0.0.1] (helo=ataraxia)
	by ataraxia.localdomain with esmtps  (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
	(Exim 4.99.4)
	(envelope-from <[email protected]>)
	id 1wqriI-00000007ypY-0CZW
	for [email protected];
	Mon, 03 Aug 2026 14:24:14 +0200
From: Hilko Bengen <[email protected]>
To: [email protected]
Subject: Fixed as of 1.48.0-1
User-Agent: Gnus/5.13 (Gnus v5.13)
Date: Mon, 03 Aug 2026 14:24:13 +0200
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: text/plain
X-Greylist: delayed 1391 seconds by postgrey-1.37 at buxtehude; Mon, 03 Aug 2026 12:47:29 UTC

control: fixed -1 1.48.0-1

I have successfully rebuilt the current version of nbdkit using gcc 16.

Cheers,
-Hilko
------------=_1785761342-2738053-0--