[DRE-maint] Bug#996310: ruby-kyotocabinet: FTBFS with ruby3.0: stdalign.h:93:1: error: template with C linkage

Antonio Terceiro terceiro at debian.org
Tue Oct 12 23:44:03 BST 2021


Source: ruby-kyotocabinet
Version: 1.33-1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: debian-ruby at lists.debian.org
Usertags: ruby3.0

Hi,

We are about to enable building against ruby3.0 on unstable. During a test
rebuild, ruby-kyotocabinet was found to fail to build in that situation.

To reproduce this locally, you need to install ruby-all-dev from experimental
on an unstable system or build chroot.

Relevant part (hopefully):
> g++ -fdebug-prefix-map=/<<PKGBUILDDIR>>=. -I. -I/usr/include/x86_64-linux-gnu/ruby-3.0.0 -I/usr/include/ruby-3.0.0/ruby/backward -I/usr/include/ruby-3.0.0 -I. -DHAVE_KCCOMMON_H -Wdate-time -D_FORTIFY_SOURCE=2   -fPIC -g -O2 -ffile-prefix-map=/build/ruby3.0-2KsnwC/ruby3.0-3.0.2=. -fstack-protector-strong -Wformat -Werror=format-security  -o kyotocabinet.o -c kyotocabinet.cc
> In file included from /usr/include/ruby-3.0.0/ruby/backward/2/stdalign.h:23,
>                  from /usr/include/ruby-3.0.0/ruby/defines.h:77,
>                  from /usr/include/ruby-3.0.0/ruby/ruby.h:23,
>                  from /usr/include/ruby-3.0.0/ruby.h:38,
>                  from kyotocabinet.cc:22:
> /usr/include/ruby-3.0.0/ruby/internal/stdalign.h:93:1: error: template with C linkage
>    93 | template<typename T>
>       | ^~~~~~~~
> kyotocabinet.cc:20:1: note: ‘extern "C"’ linkage started here
>    20 | extern "C" {
>       | ^~~~~~~~~~
> make[1]: *** [Makefile:213: kyotocabinet.o] Error 1


The full build log is available at
https://people.debian.org/~kanashiro/ruby3.0/round2/builds/3/ruby-kyotocabinet/ruby-kyotocabinet_1.33-1+rebuild1633384978_amd64.build.txt
-------------- 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/20211012/c46cc192/attachment.sig>


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