Acknowledgement sent
to Matthias Klose <[email protected]>:
New Bug report received and forwarded. Copy sent to Debian Ruby Team <[email protected]>.
(Wed, 03 Jul 2024 12:51:11 GMT) (full text, mbox, link).
Subject: ruby-prometheus-client-mmap: ftbfs with GCC-14
Date: Wed, 03 Jul 2024 12:42:58 +0000
Package: src:ruby-prometheus-client-mmap
Version: 0.23.1-3
Severity: important
Tags: sid trixie
User: [email protected]
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
Acknowledgement sent
to "Rebecca N. Palmer" <[email protected]>:
Extra info received and forwarded to list. Copy sent to Debian Ruby Team <[email protected]>.
(Sun, 15 Dec 2024 13:51:02 GMT) (full text, mbox, link).
Subject: fix or update? Re: prometheus-client-mmap FTBFS with gcc 14
Date: Sun, 15 Dec 2024 13:49:56 +0000
(Found while looking for semi-random RC bugs to work on, so I may be
missing context; if so, I apologize.)
Should we be trying to fix this, or does it make more sense to update to
a newer upstream version?
Upstream have replaced this C extension by a Rust extension:
https://gitlab.com/gitlab-org/ruby/gems/prometheus-client-mmap/-/blob/master/CHANGELOG.md?ref_type=heads
Its only reverse dependency appears to be gitlab, which actually wants
the newer version:
https://sources.debian.org/src/gitlab/16.8.4-1/Gemfile/?hl=387#L387
We appear to have all the Rust version's dependencies, but rb-sys-env
(0.1 vs 0.2) and thiserror (1.0 vs 2.0) are too old and nix (0.29 vs
0.25) is too new.
Source: ruby-prometheus-client-mmap
Source-Version: 1.2.9-1
Done: Ananthu C V <[email protected]>
We believe that the bug you reported is fixed in the latest version of
ruby-prometheus-client-mmap, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Ananthu C V <[email protected]> (supplier of updated ruby-prometheus-client-mmap package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Fri, 25 Apr 2025 00:18:30 +0530
Source: ruby-prometheus-client-mmap
Architecture: source
Version: 1.2.9-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Ruby Team <[email protected]>
Changed-By: Ananthu C V <[email protected]>
Closes: 10467511075473
Changes:
ruby-prometheus-client-mmap (1.2.9-1) unstable; urgency=medium
.
[ Pirate Praveen ]
* Set Rules-Requires-Root: no
* Set upstream metadata fields
.
[ Ananthu C V ]
* New upstream version 1.2.9 (Closes: #1075473)
* Add myself to uploaders
* Update d/watch to match latest gitlab tarball paths
* Configure the rust extension building properly to use debianisms
* Patch dependency versions to match debian packaged versions
* Clean files before build to ensure reproducibility (Closes: #1046751)
* Update build-dependencies
* Bump standards version to 4.7.2 (no changes needed)
* Update d/copyright
* Add ruby interprreter as dependency
Checksums-Sha1:
780b3238a20f0010a3ff4b148b29ca5ee575e049 2999 ruby-prometheus-client-mmap_1.2.9-1.dsc
6f38e0bb1003eada60982b892c56cbb99bf856d7 81902 ruby-prometheus-client-mmap_1.2.9.orig.tar.gz
62243b7d7aa5c08db4ee4b0c3b4397512153ac08 4808 ruby-prometheus-client-mmap_1.2.9-1.debian.tar.xz
b9c66604eaf2be85c3598fb20eaf5be5272214bd 21254 ruby-prometheus-client-mmap_1.2.9-1_source.buildinfo
Checksums-Sha256:
093ca090df380dc9a92250d8ed9fbb5a507bbed421557bb2e5f1f15bd358045f 2999 ruby-prometheus-client-mmap_1.2.9-1.dsc
c3654cc9ac3f3e3048f06ccd79cf4e479bee210df0735672d0b8d40e862e5975 81902 ruby-prometheus-client-mmap_1.2.9.orig.tar.gz
c79f97a828a43d4cff87de40f177c4d220b6a89faed9771ae8d52d1ea8040f62 4808 ruby-prometheus-client-mmap_1.2.9-1.debian.tar.xz
ccf80d658a15d6aee72c4400cdccf75a2ae45c161d010f2e7b22753622b631d6 21254 ruby-prometheus-client-mmap_1.2.9-1_source.buildinfo
Files:
f186b6bebd5f9a9bfe52e57f2a90dfc4 2999 ruby optional ruby-prometheus-client-mmap_1.2.9-1.dsc
67bf960eecbfd765a4e961456190952b 81902 ruby optional ruby-prometheus-client-mmap_1.2.9.orig.tar.gz
823c4232b707d279acdb1eedd6e46dd6 4808 ruby optional ruby-prometheus-client-mmap_1.2.9-1.debian.tar.xz
9bc27213c09721a2b32b23e6d16d3e3c 21254 ruby optional ruby-prometheus-client-mmap_1.2.9-1_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEUtW9Dn1NsITjS1hl1KQc+t2yDbUFAmgKjcAACgkQ1KQc+t2y
DbWSnxAAykPdvPumWF63olc9WEJtHjLakmqX47fsaBcKe/UnkIT/qLYMinfOETgS
1ECm3BNcjfmE3udfCuJVAFb7xVDdfIuc1O6we+Ej8Ip4Ld0K3c7NrBfMCUDDZ+a3
OTSvUph3jQcIdjuu0K++CC9++VLiEoN5VJ7yteCbFkXZHJj+nVhpbThVBq2ISVE8
cLHJ+R0C4s2Gu+xN2SLz2RyMDH0AuPhmosqS9JtNhOpFWxUlyPbZvNsieXEjadMl
NpUKEh0Lt0RGlkuzCizXrFy6dWKR68OiHCUif4Q9IPkYNS+CcDmHuY7w34QXzTHD
FzNadVoKd84BOZDea/pmUa6yM1Bc4Z1MMPYT8s/+wMl/hgpuAmkZpH0tyyvzVEsR
+AiZeMa9YbSnhUPZ/ybjBnp4GLPxAEGkcSGrVhd+s45RDkw8TzM1t9DAb9CoaCQy
H425MvKvQ++0MH06H5aAqtY+04vPjsnYOJEDK/T8z6/s1WJXV6F+AIeeSSU3ssdR
+ZXuATeDSMhtTT2AQjN/5PPpg6Oik2U70zostKfQZ9WRdpvGaDqXY4w38ONXp8ic
iO73IlpNVcpKBnWlareI+y9+dyySjdknAg5QM4PbTFsW/CVoKTkb+bAVMRmJTyqu
TFsuwgun3CcUedASmd85f+steehD0reEWVRy5ddRrSd0C2/oUJw=
=k13l
-----END PGP SIGNATURE-----
Debbugs is free software and licensed under the terms of the GNU General
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.