[From nobody Tue Jun 30 22:12:05 2026
Received: (at maintonly) by bugs.debian.org; 3 Jul 2024 12:42:48 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
 (2021-04-09) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-115.2 required=4.0 tests=ALL_TRUSTED,BAYES_00,
 BODY_INCLUDES_PACKAGE,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,
 DKIM_VALID_AU,DKIM_VALID_EF,FROMDEVELOPER,FVGT_m_MULTI_ODD,HAS_PACKAGE,
 USER_IN_DKIM_WELCOMELIST,USER_IN_DKIM_WHITELIST autolearn=ham
 autolearn_force=no version=3.4.6-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 30; hammy, 150; neutral, 224; spammy,
 0. spammytokens: hammytokens:0.000-+--pkgbuilddir,
 0.000-+--PKGBUILDDIR, 0.000-+--H*F:U*doko, 0.000-+--trixie,
 0.000-+--qa-logs.debian.net
Return-path: &lt;doko@paradis.debian.org&gt;
Received: from muffat.debian.org ([2607:f8f0:614:1::1274:33]:40690)
 from C=NA, ST=NA, L=Ankh Morpork, O=Debian SMTP, OU=Debian SMTP CA,
 CN=muffat.debian.org, EMAIL=hostmaster@muffat.debian.org (verified)
 by buxtehude.debian.org with esmtps
 (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.94.2) (envelope-from &lt;doko@paradis.debian.org&gt;)
 id 1sOzJx-00CmPA-Lt
 for maintonly@bugs.debian.org; Wed, 03 Jul 2024 12:42:48 +0000
Received: from paradis.debian.org ([2607:f8f0:614:1::1274:67]:59046)
 from C=NA, ST=NA, L=Ankh Morpork, O=Debian SMTP, OU=Debian SMTP CA,
 CN=paradis.debian.org, EMAIL=hostmaster@paradis.debian.org (verified)
 by muffat.debian.org with esmtps
 (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.94.2) (envelope-from &lt;doko@paradis.debian.org&gt;)
 id 1sOzJv-004FXQ-Hx
 for maintonly@bugs.debian.org; Wed, 03 Jul 2024 12:42:47 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org; 
 s=smtpauto.paradis;
 h=Date:Message-Id:Content-Transfer-Encoding:Content-Type:
 MIME-Version:From:Subject:To:Reply-To:Cc:Content-ID:Content-Description:
 In-Reply-To:References; bh=MCYYk3pCxso7hU0YnobpeFzwDMC3Sgh+VR6FFGEE9Bc=; b=hA
 1s5VngF1eK9kefHeacumQIxJEmfCJx7Wg3cI8X89azHCqdKFPM3pJ80129XytxERvv92lHlxuyHFs
 6PoMxm6U5p4WujHd5c8b86gmWIGit9N14INFgpJTomGh7TFiCrfkgMHTPSCjRnviCAT9d1Acc7XSp
 5KWdeqYSZCPwg0ghs/LXN4pevw5lIgdrl1janh+SjFoLyYykNWb5fKYEfQinRAnRbzSu1U4A3e4lu
 u/lzYAze/iBUdsbAy2WV79qLCEdQlsWcmlhQDc5bpYZhb5v7AY5IjaEPZGiJlZlKXBAF3OAuTUQpn
 VP1wUkpCZgX8WFLsS02i145NmhZ6+O7A==;
Received: from doko by paradis.debian.org with local (Exim 4.94.2)
 (envelope-from &lt;doko@paradis.debian.org&gt;) id 1sOzJu-0043e9-4B
 for maintonly@bugs.debian.org; Wed, 03 Jul 2024 12:42:46 +0000
To: maintonly@bugs.debian.org
Subject: ruby-mmap2: ftbfs with GCC-14
From: Matthias Klose &lt;doko@debian.org&gt;
MIME-Version: 1.0
Content-Type: text/plain; charset=&quot;UTF-8&quot;
Content-Transfer-Encoding: 8bit
Message-Id: &lt;E1sOzJu-0043e9-4B@paradis.debian.org&gt;
Date: Wed, 03 Jul 2024 12:42:46 +0000
Delivered-To: maintonly@bugs.debian.org

Package: src:ruby-mmap2
Version: 2.2.9-1
Severity: important
Tags: sid trixie
User: debian-gcc@lists.debian.org
Usertags: ftbfs-gcc-14

[This bug is targeted to the upcoming trixie release]

Please keep this issue open in the bug tracker for the package it
was filed for.  If a fix in another package is required, please
file a bug for the other package (or clone), and add a block in this
package. Please keep the issue open until the package can be built in
a follow-up test rebuild.

The package fails to build in a test rebuild on at least amd64 with
gcc-14/g++-14, but succeeds to build with gcc-13/g++-13. The
severity of this report will be raised before the trixie release.

The full build log can be found at:
http://qa-logs.debian.net/2024/07/01/ruby-mmap2_2.2.9-1_unstable_gccexp.log
The last lines of the build log are at the end of this report.

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

  apt-get -t=experimental install g++ 

Common build failures are new warnings resulting in build failures with
-Werror turned on, or new/dropped symbols in Debian symbols files.
For other C/C++ related build failures see the porting guide at
http://gcc.gnu.org/gcc-14/porting_to.html

[...]
mmap.c:2125:46: error: passing argument 3 of ‘rb_iterate’ from incompatible pointer type [-Wincompatible-pointer-types]
 2125 |     rb_iterate(mm_internal_each, (VALUE)tmp, rb_yield, 0);
      |                                              ^~~~~~~~
      |                                              |
      |                                              VALUE (*)(VALUE) {aka long unsigned int (*)(long unsigned int)}
/usr/include/ruby-3.1.0/ruby/internal/iterator.h:283:75: note: expected ‘rb_block_call_func_t’ {aka ‘long unsigned int (*)(long unsigned int,  long unsigned int,  int,  const long unsigned int *, long unsigned int)’} but argument is of type ‘VALUE (*)(VALUE)’ {aka ‘long unsigned int (*)(long unsigned int)’}
  283 | VALUE rb_iterate(VALUE (*func1)(VALUE), VALUE data1, rb_block_call_func_t proc, VALUE data2);
      |                                                      ~~~~~~~~~~~~~~~~~~~~~^~~~
mmap.c: In function ‘mm_each_line’:
mmap.c:2147:5: warning: ‘rb_iterate’ is deprecated: by: rb_block_call since 1.9 [-Wdeprecated-declarations]
 2147 |     rb_iterate(mm_internal_each, (VALUE)tmp, rb_yield, 0);
      |     ^~~~~~~~~~
/usr/include/ruby-3.1.0/ruby/internal/iterator.h:283:7: note: declared here
  283 | VALUE rb_iterate(VALUE (*func1)(VALUE), VALUE data1, rb_block_call_func_t proc, VALUE data2);
      |       ^~~~~~~~~~
mmap.c:2147:46: error: passing argument 3 of ‘rb_iterate’ from incompatible pointer type [-Wincompatible-pointer-types]
 2147 |     rb_iterate(mm_internal_each, (VALUE)tmp, rb_yield, 0);
      |                                              ^~~~~~~~
      |                                              |
      |                                              VALUE (*)(VALUE) {aka long unsigned int (*)(long unsigned int)}
/usr/include/ruby-3.1.0/ruby/internal/iterator.h:283:75: note: expected ‘rb_block_call_func_t’ {aka ‘long unsigned int (*)(long unsigned int,  long unsigned int,  int,  const long unsigned int *, long unsigned int)’} but argument is of type ‘VALUE (*)(VALUE)’ {aka ‘long unsigned int (*)(long unsigned int)’}
  283 | VALUE rb_iterate(VALUE (*func1)(VALUE), VALUE data1, rb_block_call_func_t proc, VALUE data2);
      |                                                      ~~~~~~~~~~~~~~~~~~~~~^~~~
mmap.c: In function ‘mm_each_byte’:
mmap.c:2165:5: warning: ‘rb_iterate’ is deprecated: by: rb_block_call since 1.9 [-Wdeprecated-declarations]
 2165 |     rb_iterate(mm_internal_each, (VALUE)tmp, rb_yield, 0);
      |     ^~~~~~~~~~
/usr/include/ruby-3.1.0/ruby/internal/iterator.h:283:7: note: declared here
  283 | VALUE rb_iterate(VALUE (*func1)(VALUE), VALUE data1, rb_block_call_func_t proc, VALUE data2);
      |       ^~~~~~~~~~
mmap.c:2165:46: error: passing argument 3 of ‘rb_iterate’ from incompatible pointer type [-Wincompatible-pointer-types]
 2165 |     rb_iterate(mm_internal_each, (VALUE)tmp, rb_yield, 0);
      |                                              ^~~~~~~~
      |                                              |
      |                                              VALUE (*)(VALUE) {aka long unsigned int (*)(long unsigned int)}
/usr/include/ruby-3.1.0/ruby/internal/iterator.h:283:75: note: expected ‘rb_block_call_func_t’ {aka ‘long unsigned int (*)(long unsigned int,  long unsigned int,  int,  const long unsigned int *, long unsigned int)’} but argument is of type ‘VALUE (*)(VALUE)’ {aka ‘long unsigned int (*)(long unsigned int)’}
  283 | VALUE rb_iterate(VALUE (*func1)(VALUE), VALUE data1, rb_block_call_func_t proc, VALUE data2);
      |                                                      ~~~~~~~~~~~~~~~~~~~~~^~~~
make[1]: *** [Makefile:246: mmap.o] Error 1
make[1]: Leaving directory '/&lt;&lt;PKGBUILDDIR&gt;&gt;/debian/ruby-mmap2/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/mmap2-2.2.9/ext/mmap'
ERROR:  Error installing /tmp/d20240702-2322959-e4lt0l/mmap2-2.2.9.gem:
	ERROR: Failed to build gem native extension.

    current directory: /&lt;&lt;PKGBUILDDIR&gt;&gt;/debian/ruby-mmap2/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/mmap2-2.2.9/ext/mmap
/usr/bin/ruby3.1 -I/usr/lib/ruby/vendor_ruby extconf.rb
current directory: /&lt;&lt;PKGBUILDDIR&gt;&gt;/debian/ruby-mmap2/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/mmap2-2.2.9/ext/mmap
make V\=1 CC\=gcc\ -fdebug-prefix-map\=/&lt;&lt;PKGBUILDDIR&gt;&gt;\=. CXX\=g++\ -fdebug-prefix-map\=/&lt;&lt;PKGBUILDDIR&gt;&gt;\=. DESTDIR\= sitearchdir\=./.gem.20240702-2322964-oey4bj sitelibdir\=./.gem.20240702-2322964-oey4bj clean
current directory: /&lt;&lt;PKGBUILDDIR&gt;&gt;/debian/ruby-mmap2/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/mmap2-2.2.9/ext/mmap
make V\=1 CC\=gcc\ -fdebug-prefix-map\=/&lt;&lt;PKGBUILDDIR&gt;&gt;\=. CXX\=g++\ -fdebug-prefix-map\=/&lt;&lt;PKGBUILDDIR&gt;&gt;\=. DESTDIR\= sitearchdir\=./.gem.20240702-2322964-oey4bj sitelibdir\=./.gem.20240702-2322964-oey4bj
Building has failed. See above output for more information on the failure.
make failed, exit code 2

Gem files will remain installed in /&lt;&lt;PKGBUILDDIR&gt;&gt;/debian/ruby-mmap2/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/mmap2-2.2.9 for inspection.
Results logged to /&lt;&lt;PKGBUILDDIR&gt;&gt;/debian/ruby-mmap2/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/extensions/x86_64-linux/3.1.0/mmap2-2.2.9/gem_make.out
/usr/lib/ruby/vendor_ruby/gem2deb.rb:52:in `run': /usr/bin/ruby3.1 -S gem install --config-file /dev/null --verbose --local --verbose --no-document --ignore-dependencies --install-dir debian/ruby-mmap2/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0 /tmp/d20240702-2322959-e4lt0l/mmap2-2.2.9.gem (Gem2Deb::CommandFailed)
	from /usr/lib/ruby/vendor_ruby/gem2deb/gem_installer.rb:213:in `block in run_gem'
	from /usr/lib/ruby/vendor_ruby/gem2deb.rb:87:in `maybe_crossbuild'
	from /usr/lib/ruby/vendor_ruby/gem2deb/gem_installer.rb:212:in `run_gem'
	from /usr/lib/ruby/vendor_ruby/gem2deb/gem_installer.rb:121:in `block in install_files_and_build_extensions'
	from /usr/lib/ruby/vendor_ruby/gem2deb/gem_installer.rb:69:in `each'
	from /usr/lib/ruby/vendor_ruby/gem2deb/gem_installer.rb:69:in `install_files_and_build_extensions'
	from /usr/lib/ruby/vendor_ruby/gem2deb/installer.rb:28:in `build'
	from /usr/lib/ruby/vendor_ruby/gem2deb/dh_ruby.rb:54:in `block in install'
	from /usr/lib/ruby/vendor_ruby/gem2deb/dh_ruby.rb:52:in `each'
	from /usr/lib/ruby/vendor_ruby/gem2deb/dh_ruby.rb:52:in `install'
	from /usr/lib/ruby/vendor_ruby/gem2deb/dh_ruby.rb:163:in `install'
	from /usr/bin/dh_ruby:89:in `&lt;main&gt;'
dh_auto_install: error: dh_ruby --install /&lt;&lt;PKGBUILDDIR&gt;&gt;/debian/ruby-mmap2 returned exit code 1
make: *** [debian/rules:9: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
]