[DRE-maint] Bug#1015322: ruby-kyotocabinet: FTBFS: kccommon.h:19:8: error: expected identifier or ‘?=(=?UTF-8?Q?’ before string constant
Antonio Terceiro
terceiro at debian.org
Tue Jul 19 14:52:31 BST 2022
Source: ruby-kyotocabinet
Version: 1.34-0.1+rebuild1658134192
Severity: important
Justification: FTBFS
Tags: bookworm sid ftbfs
User: debian-ruby at lists.debian.org
Usertags: ruby3.1
Hi,
We are about to start the ruby3.1 transition in unstable. While trying to
rebuild ruby-kyotocabinet with ruby3.1 enabled, the build failed.
Relevant part of the build log (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
> current directory: /<<PKGBUILDDIR>>
> ["/usr/bin/ruby3.1", "-I", "/usr/lib/ruby/vendor_ruby", "-r", "./siteconf20220718-1652283-7agkrf.rb", "extconf.rb"]
> setting variables ...
> $CFLAGS = -I. -Wall -g -O2 -ffile-prefix-map=/build/ruby3.1-qIoNYd/ruby3.1-3.1.2=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -O2
> $LDFLAGS = -L. -Wl,-z,relro -Wl,-z,now -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,--no-as-needed -L.
> $libs = -lkyotocabinet
> checking for kccommon.h... no
> *** extconf.rb failed ***
> Could not create Makefile due to some reason, probably lack of necessary
> libraries and/or headers. Check the mkmf.log file for more details. You may
> need configuration options.
>
> Provided configuration options:
> --with-opt-dir
> --without-opt-dir
> --with-opt-include
> --without-opt-include=${opt-dir}/include
> --with-opt-lib
> --without-opt-lib=${opt-dir}/lib
> --with-make-prog
> --without-make-prog
> --srcdir=.
> --curdir
> --ruby=/usr/bin/$(RUBY_BASE_NAME)3.1
> --with-kyotocabinet-dir
> --without-kyotocabinet-dir
> --with-kyotocabinet-include
> --without-kyotocabinet-include=${kyotocabinet-dir}/include
> --with-kyotocabinet-lib
> --without-kyotocabinet-lib=${kyotocabinet-dir}/lib
> --with-kccommon-dir
> --without-kccommon-dir
> --with-kccommon-include
> --without-kccommon-include=${kccommon-dir}/include
> --with-kccommon-lib
> --without-kccommon-lib=${kccommon-dir}/lib
> ~~~~~~~~~~~~~~~~~~~~~ ↓ mkmf.log ~~~~~~~~~~~~~~~~~~~~~
> have_header: checking for kccommon.h... -------------------- no
>
> LD_LIBRARY_PATH=.:/usr/lib/x86_64-linux-gnu "x86_64-linux-gnu-gcc -o conftest -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. -Wdate-time -D_FORTIFY_SOURCE=2 -I. -Wall -g -O2 -ffile-prefix-map=/build/ruby3.1-qIoNYd/ruby3.1-3.1.2=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -O2 conftest.c -L. -L/usr/lib/x86_64-linux-gnu -L. -Wl,-z,relro -Wl,-z,now -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,--no-as-needed -L. -lkyotocabinet -lruby-3.1 -lm -lc"
> checked program was:
> /* begin */
> 1: #include "ruby.h"
> 2:
> 3: int main(int argc, char **argv)
> 4: {
> 5: return !!argv[argc];
> 6: }
> /* end */
>
> LD_LIBRARY_PATH=.:/usr/lib/x86_64-linux-gnu "x86_64-linux-gnu-gcc -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. -Wdate-time -D_FORTIFY_SOURCE=2 -I. -Wall -g -O2 -ffile-prefix-map=/build/ruby3.1-qIoNYd/ruby3.1-3.1.2=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -O2 -c conftest.c"
> In file included from conftest.c:3:
> /usr/include/kccommon.h:19:8: error: expected identifier or ‘(’ before string constant
> 19 | extern "C" {
> | ^~~
> /usr/include/kccommon.h:25:10: fatal error: cassert: No such file or directory
> 25 | #include <cassert>
> | ^~~~~~~~~
> compilation terminated.
> checked program was:
> /* begin */
> 1: #include "ruby.h"
> 2:
> 3: #include <kccommon.h>
> /* end */
>
> --------------------
>
> /usr/lib/ruby/vendor_ruby/rubygems/ext/builder.rb:95:in `run': extconf failed, exit code 1 (Gem::InstallError)
> from /usr/lib/ruby/vendor_ruby/rubygems/ext/ext_conf_builder.rb:47:in `block in build'
> from /usr/lib/ruby/3.1.0/tempfile.rb:317:in `open'
> from /usr/lib/ruby/vendor_ruby/rubygems/ext/ext_conf_builder.rb:26:in `build'
> from /usr/lib/ruby/vendor_ruby/gem2deb/extension_builder.rb:81:in `block in build_and_install'
> from /usr/lib/ruby/vendor_ruby/gem2deb/extension_builder.rb:71:in `chdir'
> from /usr/lib/ruby/vendor_ruby/gem2deb/extension_builder.rb:71:in `build_and_install'
> from /usr/lib/ruby/vendor_ruby/gem2deb/extension_builder.rb:115:in `block in build_all_extensions'
> from /usr/lib/ruby/vendor_ruby/gem2deb/extension_builder.rb:112:in `each'
> from /usr/lib/ruby/vendor_ruby/gem2deb/extension_builder.rb:112:in `build_all_extensions'
> from /usr/lib/ruby/vendor_ruby/gem2deb/extension_builder.rb:128:in `<main>'
> ~~~~~~~~~~~~~~~~~~~~~ ↑ mkmf.log ~~~~~~~~~~~~~~~~~~~~~
> /usr/lib/ruby/vendor_ruby/gem2deb.rb:54:in `run': /usr/bin/ruby3.1 /usr/lib/ruby/vendor_ruby/gem2deb/extension_builder.rb /<<PKGBUILDDIR>> debian/ruby-kyotocabinet (Gem2Deb::CommandFailed)
> from /usr/lib/ruby/vendor_ruby/gem2deb.rb:65:in `run_ruby'
> from /usr/lib/ruby/vendor_ruby/gem2deb/installer.rb:54:in `block in install_files_and_build_extensions'
> from /usr/lib/ruby/vendor_ruby/gem2deb/installer.rb:51:in `each'
> from /usr/lib/ruby/vendor_ruby/gem2deb/installer.rb:51:in `install_files_and_build_extensions'
> from /usr/lib/ruby/vendor_ruby/gem2deb/installer.rb:28:in `install'
> from /usr/lib/ruby/vendor_ruby/gem2deb/dh_ruby.rb:86:in `block in install'
> from /usr/lib/ruby/vendor_ruby/gem2deb/dh_ruby.rb:84:in `each'
> from /usr/lib/ruby/vendor_ruby/gem2deb/dh_ruby.rb:84:in `install'
> from /usr/bin/dh_ruby:89:in `<main>'
> dh_auto_install: error: dh_ruby --install /<<PKGBUILDDIR>>/debian/ruby-kyotocabinet returned exit code 1
> make: *** [debian/rules:15: binary] Error 25
The full build log is available from:
https://people.debian.org/~terceiro/ruby3.1/ruby-kyotocabinet_1.34-0.1+rebuild1658134192_amd64.log
To reproduce this, you need to install ruby-all-dev >= 1:3.0+2 (in experimental).
If you fail to reproduce, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.
A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-ruby-extras-maintainers/attachments/20220719/30b1d2d2/attachment-0001.sig>
More information about the Pkg-ruby-extras-maintainers
mailing list