[DRE-maint] Bug#1075473: ruby-prometheus-client-mmap: ftbfs with GCC-14

Matthias Klose doko at debian.org
Wed Jul 3 13:42:58 BST 2024


Package: src:ruby-prometheus-client-mmap
Version: 0.23.1-3
Severity: important
Tags: sid trixie
User: debian-gcc at 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-prometheus-client-mmap_0.23.1-3_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

[...]
/usr/include/ruby-3.1.0/ruby/internal/newobj.h:190:20: warning: unused parameter ‘dup’ [-Wunused-parameter]
  190 | rb_dup_setup(VALUE dup, VALUE obj)
      |              ~~~~~~^~~
/usr/include/ruby-3.1.0/ruby/internal/newobj.h:190:31: warning: unused parameter ‘obj’ [-Wunused-parameter]
  190 | rb_dup_setup(VALUE dup, VALUE obj)
      |                         ~~~~~~^~~
In file included from /usr/include/ruby-3.1.0/ruby/ruby.h:40:
mmap.c: In function ‘mm_update_obj_i’:
/usr/include/ruby-3.1.0/ruby/internal/iterator.h:59:67: warning: unused parameter ‘argv’ [-Wunused-parameter]
   59 |     VALUE yielded_arg, VALUE callback_arg, int argc, const VALUE *argv, VALUE blockarg
      |                                                      ~~~~~~~~~~~~~^~~~
mmap.c:46:23: note: in expansion of macro ‘RB_BLOCK_CALL_FUNC_ARGLIST’
   46 | VALUE mm_update_obj_i(RB_BLOCK_CALL_FUNC_ARGLIST(i, self)) {
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/ruby-3.1.0/ruby/internal/iterator.h:59:79: warning: unused parameter ‘blockarg’ [-Wunused-parameter]
   59 |     VALUE yielded_arg, VALUE callback_arg, int argc, const VALUE *argv, VALUE blockarg
      |                                                                         ~~~~~~^~~~~~~~
mmap.c:46:23: note: in expansion of macro ‘RB_BLOCK_CALL_FUNC_ARGLIST’
   46 | VALUE mm_update_obj_i(RB_BLOCK_CALL_FUNC_ARGLIST(i, self)) {
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~
mmap.c: In function ‘mm_recycle’:
mmap.c:79:5: warning: ‘rb_gc_force_recycle’ is deprecated: this is now a no-op function [-Wdeprecated-declarations]
   79 |     rb_gc_force_recycle(str);
      |     ^~~~~~~~~~~~~~~~~~~
In file included from /usr/include/ruby-3.1.0/ruby/intern.h:39,
                 from /usr/include/ruby-3.1.0/ruby/ruby.h:192:
/usr/include/ruby-3.1.0/ruby/internal/intern/gc.h:214:6: note: declared here
  214 | void rb_gc_force_recycle(VALUE obj);
      |      ^~~~~~~~~~~~~~~~~~~
mmap.c: In function ‘mm_i_bang’:
mmap.c:134:25: error: passing argument 1 of ‘rb_ensure’ from incompatible pointer type [-Wincompatible-pointer-types]
  134 |         res = rb_ensure(mm_protect_bang, (VALUE)tmp, mm_recycle, str);
      |                         ^~~~~~~~~~~~~~~
      |                         |
      |                         VALUE (*)(VALUE *) {aka long unsigned int (*)(long unsigned int *)}
/usr/include/ruby-3.1.0/ruby/internal/iterator.h:425:25: note: expected ‘VALUE (*)(VALUE)’ {aka ‘long unsigned int (*)(long unsigned int)’} but argument is of type ‘VALUE (*)(VALUE *)’ {aka ‘long unsigned int (*)(long unsigned int *)’}
  425 | VALUE rb_ensure(VALUE (*b_proc)(VALUE), VALUE data1, VALUE (*e_proc)(VALUE), VALUE data2);
      |                 ~~~~~~~~^~~~~~~~~~~~~~
make[1]: *** [Makefile:246: mmap.o] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>/debian/ruby-prometheus-client-mmap/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/prometheus-client-mmap-0.23.1/ext/fast_mmaped_file'
ERROR:  Error installing /tmp/d20240702-3351383-jhl7fm/prometheus-client-mmap-0.23.1.gem:
	ERROR: Failed to build gem native extension.

    current directory: /<<PKGBUILDDIR>>/debian/ruby-prometheus-client-mmap/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/prometheus-client-mmap-0.23.1/ext/fast_mmaped_file
/usr/bin/ruby3.1 -I/usr/lib/ruby/vendor_ruby extconf.rb
current directory: /<<PKGBUILDDIR>>/debian/ruby-prometheus-client-mmap/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/prometheus-client-mmap-0.23.1/ext/fast_mmaped_file
make V\=1 CC\=gcc\ -fdebug-prefix-map\=/<<PKGBUILDDIR>>\=. CXX\=g++\ -fdebug-prefix-map\=/<<PKGBUILDDIR>>\=. DESTDIR\= sitearchdir\=./.gem.20240702-3351388-69yxdd sitelibdir\=./.gem.20240702-3351388-69yxdd clean
current directory: /<<PKGBUILDDIR>>/debian/ruby-prometheus-client-mmap/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/prometheus-client-mmap-0.23.1/ext/fast_mmaped_file
make V\=1 CC\=gcc\ -fdebug-prefix-map\=/<<PKGBUILDDIR>>\=. CXX\=g++\ -fdebug-prefix-map\=/<<PKGBUILDDIR>>\=. DESTDIR\= sitearchdir\=./.gem.20240702-3351388-69yxdd sitelibdir\=./.gem.20240702-3351388-69yxdd
Building has failed. See above output for more information on the failure.
make failed, exit code 2

Gem files will remain installed in /<<PKGBUILDDIR>>/debian/ruby-prometheus-client-mmap/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/prometheus-client-mmap-0.23.1 for inspection.
Results logged to /<<PKGBUILDDIR>>/debian/ruby-prometheus-client-mmap/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/extensions/x86_64-linux/3.1.0/prometheus-client-mmap-0.23.1/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-prometheus-client-mmap/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0 /tmp/d20240702-3351383-jhl7fm/prometheus-client-mmap-0.23.1.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 `<main>'
dh_auto_install: error: dh_ruby --install /<<PKGBUILDDIR>>/debian/ruby-prometheus-client-mmap returned exit code 1
make: *** [debian/rules:8: binary] Error 25
dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit status 2



More information about the Pkg-ruby-extras-maintainers mailing list