[DRE-maint] Bug#1075455: ruby-augeas: ftbfs with GCC-14
Matthias Klose
doko at debian.org
Wed Jul 3 13:42:23 BST 2024
Package: src:ruby-augeas
Version: 1:0.5.0+gem-1
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-augeas_0.5.0+gem-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
[...]
Failed to load /dev/null because it doesn't contain valid YAML hash
/<<PKGBUILDDIR>>/debian/ruby-augeas/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/ruby-augeas-0.5.0/ext/augeas/_augeas.c
/<<PKGBUILDDIR>>/debian/ruby-augeas/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/ruby-augeas-0.5.0/ext/augeas/_augeas.h
/<<PKGBUILDDIR>>/debian/ruby-augeas/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/ruby-augeas-0.5.0/ext/augeas/extconf.rb
/<<PKGBUILDDIR>>/debian/ruby-augeas/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/ruby-augeas-0.5.0/lib/augeas.rb
Building native extensions. This could take a while...
current directory: /<<PKGBUILDDIR>>/debian/ruby-augeas/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/ruby-augeas-0.5.0/ext/augeas
["/usr/bin/ruby3.1", "-I/usr/lib/ruby/vendor_ruby", "extconf.rb"]
creating Makefile
current directory: /<<PKGBUILDDIR>>/debian/ruby-augeas/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/ruby-augeas-0.5.0/ext/augeas
["make", "V=1", "CC=gcc -fdebug-prefix-map=/<<PKGBUILDDIR>>=.", "CXX=g++ -fdebug-prefix-map=/<<PKGBUILDDIR>>=.", "DESTDIR=", "sitearchdir=./.gem.20240702-2643770-phuufh", "sitelibdir=./.gem.20240702-2643770-phuufh", "clean"]
make[1]: Entering directory '/<<PKGBUILDDIR>>/debian/ruby-augeas/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/ruby-augeas-0.5.0/ext/augeas'
rm -f
rm -fr _augeas.so false *.o *.bak mkmf.log .*.time
make[1]: Leaving directory '/<<PKGBUILDDIR>>/debian/ruby-augeas/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/ruby-augeas-0.5.0/ext/augeas'
current directory: /<<PKGBUILDDIR>>/debian/ruby-augeas/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/ruby-augeas-0.5.0/ext/augeas
["make", "V=1", "CC=gcc -fdebug-prefix-map=/<<PKGBUILDDIR>>=.", "CXX=g++ -fdebug-prefix-map=/<<PKGBUILDDIR>>=.", "DESTDIR=", "sitearchdir=./.gem.20240702-2643770-phuufh", "sitelibdir=./.gem.20240702-2643770-phuufh"]
ERROR: Error installing /tmp/d20240702-2643765-akjrtw/ruby-augeas-0.5.0.gem:
ERROR: Failed to build gem native extension.
current directory: /<<PKGBUILDDIR>>/debian/ruby-augeas/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/ruby-augeas-0.5.0/ext/augeas
/usr/bin/ruby3.1 -I/usr/lib/ruby/vendor_ruby extconf.rb
current directory: /<<PKGBUILDDIR>>/debian/ruby-augeas/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/ruby-augeas-0.5.0/ext/augeas
make V\=1 CC\=gcc\ -fdebug-prefix-map\=/<<PKGBUILDDIR>>\=. CXX\=g++\ -fdebug-prefix-map\=/<<PKGBUILDDIR>>\=. DESTDIR\= sitearchdir\=./.gem.20240702-2643770-phuufh sitelibdir\=./.gem.20240702-2643770-phuufh clean
current directory: /<<PKGBUILDDIR>>/debian/ruby-augeas/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/ruby-augeas-0.5.0/ext/augeas
make V\=1 CC\=gcc\ -fdebug-prefix-map\=/<<PKGBUILDDIR>>\=. CXX\=g++\ -fdebug-prefix-map\=/<<PKGBUILDDIR>>\=. DESTDIR\= sitearchdir\=./.gem.20240702-2643770-phuufh sitelibdir\=./.gem.20240702-2643770-phuufh
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-augeas/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/ruby-augeas-0.5.0 for inspection.
Results logged to /<<PKGBUILDDIR>>/debian/ruby-augeas/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/extensions/x86_64-linux/3.1.0/ruby-augeas-0.5.0/gem_make.out
make[1]: Entering directory '/<<PKGBUILDDIR>>/debian/ruby-augeas/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/ruby-augeas-0.5.0/ext/augeas'
gcc -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -I. -I/usr/include/x86_64-linux-gnu/ruby-3.1.0 -I/usr/include/ruby-3.1.0/ruby/backward -I/usr/include/ruby-3.1.0 -I. -I/usr/include/libxml2 -I/usr/include/libxml2 -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=BUILDDIR=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -fPIC -o _augeas.o -c _augeas.c
In file included from /usr/include/ruby-3.1.0/ruby/ruby.h:26,
from /usr/include/ruby-3.1.0/ruby.h:38,
from _augeas.h:21,
from _augeas.c:22:
_augeas.c: In function ‘Init__augeas’:
/usr/include/ruby-3.1.0/ruby/internal/anyargs.h:287:135: error: passing argument 3 of ‘rb_define_method_01’ from incompatible pointer type [-Wincompatible-pointer-types]
287 | #define rb_define_method(klass, mid, func, arity) RBIMPL_ANYARGS_DISPATCH_rb_define_method((arity), (func))((klass), (mid), (func), (arity))
| ^~~~~~
| |
| VALUE (*)(VALUE, VALUE, VALUE) {aka long unsigned int (*)(long unsigned int, long unsigned int, long unsigned int)}
_augeas.c:531:5: note: in expansion of macro ‘rb_define_method’
531 | rb_define_method(c_augeas, "rm", augeas_rm, 1);
| ^~~~~~~~~~~~~~~~
/usr/include/ruby-3.1.0/ruby/internal/anyargs.h:276:21: note: expected ‘VALUE (*)(VALUE, VALUE)’ {aka ‘long unsigned int (*)(long unsigned int, long unsigned int)’} but argument is of type ‘VALUE (*)(VALUE, VALUE, VALUE)’ {aka ‘long unsigned int (*)(long unsigned int, long unsigned int, long unsigned int)’}
276 | RBIMPL_ANYARGS_DECL(rb_define_method, VALUE, const char *)
| ^~~~~~~~~~~~~~~~
/usr/include/ruby-3.1.0/ruby/internal/anyargs.h:255:41: note: in definition of macro ‘RBIMPL_ANYARGS_DECL’
255 | RBIMPL_ANYARGS_ATTRSET(sym) static void sym ## _01(__VA_ARGS__, VALUE(*)(VALUE, VALUE), int); \
| ^~~
make[1]: *** [Makefile:246: _augeas.o] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>/debian/ruby-augeas/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/ruby-augeas-0.5.0/ext/augeas'
/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-augeas/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0 /tmp/d20240702-2643765-akjrtw/ruby-augeas-0.5.0.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 /<<BUILDDIR>>/ruby-augeas-0.5.0\+gem/debian/ruby-augeas returned exit code 1
make: *** [debian/rules:7: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
More information about the Pkg-ruby-extras-maintainers
mailing list